/* Aura Hr Articles - Shared Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --color-primary: #2f442e;
    --color-primary-light: #447843;
    --color-surface: #faf7ef;
    --color-text: #333333;
    --color-white: #ffffff;
    
    /* Secondary Colors */
    --color-accent: #b49576;
    --color-surface-secondary: #f0ede3;
    --color-text-muted: #8a7f70;
    
    /* Typography */
    --font-primary: 'Roboto Slab', serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --narrow-container-max-width: 992px;
    --border-radius: 0.5rem;
    --border-radius-small: 0.25rem;
    --border-radius-button: 0.375rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
}

body {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-surface-secondary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    transition: color var(--transition-fast);
}

nav a:hover {
    color: var(--color-accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 48px;
    font-size: 16px;
    list-style: none;
}

.nav-links a {
    color: #2f442e;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #b49576;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: #f0ede3;
    border-radius: 0.375rem;
}

.lang-link {
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    color: #2f442e;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.lang-link:hover {
    background-color: #e0ddd3;
}

.lang-link.active {
    background-color: #2f442e;
    color: #faf7ef;
}

.hero-section {
    background-color: #faf7ef;
    padding: 2rem 2rem 1.5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 32px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 14px;
    color: #333333;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-family: 'Roboto Slab', serif;
    border: 1px solid #f0ede3;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #333333;
}

.search-box:focus {
    outline: none;
    border-color: #b49576;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.categories-title {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1rem;
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.75rem 1rem;
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    font-weight: 400;
    background-color: #f0ede3;
    color: #333333;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-btn:hover {
    background-color: #447843;
    color: #ffffff;
}

.category-btn.active {
    background-color: #2f442e;
    color: #faf7ef;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: #ffffff;
    border: 1px solid #f0ede3;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(47, 68, 46, 0.1);
}

.article-card.hidden {
    display: none;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    background-color: #f0ede3;
    color: #2f442e;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 24px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-summary {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

.footer {
    background-color: #faf7ef;
    border-top: 1px solid #f0ede3;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #8a7f70;
}

.footer-content a {
    color: #2f442e;
    text-decoration: none;
}

.footer-content a:hover {
    color: #b49576;
}

.container {
    max-width: 992px;
    margin: 0 auto;
    padding: 2rem;
}

.breadcrumb {
    color: #b49576;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #333333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    margin-bottom: 2rem;
}

.category {
    display: inline-block;
    background-color: #f0ede3;
    color: #2f442e;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 48px;
    font-weight: 300;
    color: #333333;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    color: #333333;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-image {
    width: 100%;
    aspect-ratio: 16 / 9; 
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 200;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #333333;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 300;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #333333;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

.article-content h5 {
    font-size: 16px;
    font-weight: 500;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

.article-content h6 {
    font-size: 14px;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content a {
    color: #b49576;
    text-decoration: none;
    border-bottom: 1px solid #b49576;
}

.article-content a:hover {
    color: #2f442e;
    border-bottom-color: #333333;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background-color: #f0ede3;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background-color: #333333;
    color: #faf7ef;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-secondary);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.article-content thead {
    background-color: var(--color-surface);
}

.article-content th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-surface-secondary);
}

.article-content td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-surface-secondary);
    color: var(--color-text);
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:hover {
    background-color: var(--color-surface);
}

.cta-section {
    background-color: #f0ede3;
    color: #333333;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: #2f442e;
    color: #faf7ef;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #447843;
}

.back-to-articles {
    display: inline-block;
    margin-bottom: 2rem;
    color: #2f442e;
    text-decoration: none;
    font-weight: 500;
}

.back-to-articles:hover {
    color: #447843;
}

/* Footer */
footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-surface-secondary);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: var(--narrow-container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-surface-secondary);
    color: var(--color-text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 12px;
    }
    
    .hero-image {
        max-height: 300px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .container {
        padding: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .categories-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .category-btn {
        flex: 1;
        min-width: fit-content;
        text-align: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 14px;
    }
    
    .logo {
        gap: 0.2rem;
        font-size: 16px;
    }
    
    .language-switcher {
        gap: 0.25rem;
        padding: 0.2rem;
    }
    
    .lang-link {
        padding: 0.2rem 0.5rem;
        font-size: 12px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }    
}