
/*
Theme Name: Training Simplified
Theme URI: https://example.com/
Author: Eskil SD
Author URI: https://dittnettsted.no/
Description: A dark, lightweight WordPress theme for training tips — 3-per-row grid, responsive, simple.
Version: 1.0
Tags: Dark, Responsive, Custom Logo, Featured Images, English
Text Domain: training-simplified
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
}

a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #f00;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #111;
    z-index: 1000;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

nav .left-menu, nav .right-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

nav .left-menu {
    justify-content: flex-start;
}

nav .right-menu {
    justify-content: flex-end;
}

nav .logo {
    width: 50px;
    height: 50px;
    background-color: red;
    border-radius: 4px;
    margin: 0 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.search-icon {
    font-size: 22px;
    cursor: pointer;
    text-decoration: none;
}

main {
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-6px);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #444;
}

.article-content {
    padding: 15px;
}

.article-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
}

.read-more-btn {
    background: #f00;
    border: none;
    color: white;
    padding: 10px 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background: #c00;
}

footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
