/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #D6F1EB;
    color: #2C2C2C;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background-color: #B8E6D3;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1A5F4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #2A7F6F;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: #1A5F4F;
    background-color: rgba(26, 95, 79, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2C2C2C;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #D6F1EB 0%, #C2E8D9 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1A5F4F;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4A7C59;
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Grid */
.featured-articles {
    padding: 4rem 0;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1A5F4F;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #B8E6D3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-card h3 a {
    color: #1A5F4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #2A7F6F;
}

.article-card p {
    color: #4A4A4A;
    line-height: 1.7;
}

/* Mini Test Section */
.mini-test-section {
    padding: 4rem 0;
    text-align: center;
    background-color: #C2E8D9;
}

.mini-test-section h2 {
    margin-bottom: 1rem;
    color: #1A5F4F;
    font-size: 2rem;
}

.mini-test-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #4A7C59;
}

/* Buttons */
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1A5F4F;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1A5F4F;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #1A5F4F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 79, 0.3);
}

/* Footer */
footer {
    background-color: #B8E6D3;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #1A5F4F;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-section a {
    color: #4A7C59;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1A5F4F;
}

.footer-bottom {
    border-top: 1px solid #A8D6C3;
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    color: #4A7C59;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-notice {
    color: #4A7C59;
    font-size: 0.8rem;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    border: 2px solid #B8E6D3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-content h3 {
    color: #1A5F4F;
    margin-bottom: 1rem;
}

.popup-content p {
    color: #2C2C2C;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-btn {
    padding: 10px 20px;
    background-color: #1A5F4F;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background-color: #2A7F6F;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #B8E6D3;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Article Page Styles */
.article-header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #D6F1EB 0%, #C2E8D9 100%);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1A5F4F;
}

.article-meta {
    color: #4A7C59;
    font-size: 0.9rem;
}

.article-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: #1A5F4F;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: #2A7F6F;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #2C2C2C;
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: #2C2C2C;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #1A5F4F;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: #2A7F6F;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #B8E6D3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1A5F4F;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #B8E6D3;
    border-radius: 5px;
    background-color: #F8FDFA;
    color: #2C2C2C;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1A5F4F;
    box-shadow: 0 0 5px rgba(26, 95, 79, 0.3);
}

.form-submit {
    background-color: #1A5F4F;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #2A7F6F;
    transform: translateY(-2px);
}

/* Mini Test Styles */
.test-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #B8E6D3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #F8FDFA;
    border-radius: 8px;
    border: 1px solid #B8E6D3;
}

.question h3 {
    color: #1A5F4F;
    margin-bottom: 1rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    padding: 10px 15px;
    background-color: #FFFFFF;
    color: #2C2C2C;
    border: 2px solid #B8E6D3;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background-color: #B8E6D3;
    border-color: #1A5F4F;
}

.option-btn.selected {
    background-color: #1A5F4F;
    color: #FFFFFF;
    border-color: #1A5F4F;
}

.test-result {
    text-align: center;
    padding: 2rem;
    background-color: #F8FDFA;
    border-radius: 8px;
    margin-top: 2rem;
    display: none;
    border: 1px solid #B8E6D3;
}

.test-result h3 {
    color: #1A5F4F;
    margin-bottom: 1rem;
}

.test-result p {
    color: #2C2C2C;
}

.complete-test-btn {
    background-color: #1A5F4F;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 2rem;
}

.complete-test-btn:hover {
    background-color: #2A7F6F;
}