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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background-color: #fefefe;
    font-size: 16px;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Merriweather', serif;
    color: #2f855a;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 15px;
}

nav a:hover, nav a.active {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 48px;
    line-height: 1.4;
    font-weight: 400;
}

/* Topic Blocks */
.topic-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.topic-block {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    font-size: 17px;
    font-weight: 500;
    color: #2d3748;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: default;
}

.topic-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.15);
    border-color: #68d391;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

/* Featured Content */
.featured-content {
    padding: 80px 0;
    background-color: #fefefe;
}

.featured-content h3 {
    font-family: 'Merriweather', serif;
    text-align: center;
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 48px;
    font-weight: 400;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.content-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(47, 133, 90, 0.15);
    border-color: #68d391;
}

.content-card h4 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    color: #2f855a;
    margin-bottom: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.content-card p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-indicator {
    color: #2f855a;
    font-weight: 600;
    font-size: 15px;
    margin-top: auto;
    align-self: flex-start;
}

/* Article Sections */
.article-sections {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fff4 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border: 1px solid #e6f7e6;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.15);
    border-color: #2f855a;
}

.article-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

.article-card h3 {
    font-family: 'Merriweather', serif;
    color: #1a365d;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-subtitle {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.article-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.article-points li {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.article-points li:before {
    content: "•";
    color: #2f855a;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.article-cta {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 1px solid #9ae6b4;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.article-cta strong {
    color: #2f855a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* Platform Info */
.platform-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

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

.info-item {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.12);
}

.info-item h4 {
    font-family: 'Merriweather', serif;
    color: #2f855a;
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

.info-item p {
    line-height: 1.6;
    color: #4a5568;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-section h4 {
    font-family: 'Merriweather', serif;
    color: #68d391;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

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

.footer-section a:hover {
    color: #68d391;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 24px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.6;
}

/* Disclaimer Popup */
.disclaimer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

.disclaimer-content {
    background: white;
    padding: 32px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 20vh;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10001;
}

.disclaimer-content h3 {
    font-family: 'Merriweather', serif;
    color: #2f855a;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.disclaimer-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #4a5568;
}

.disclaimer-btn {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.disclaimer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 133, 90, 0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 24px;
    text-align: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-accept {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 133, 90, 0.3);
}

.cookie-learn {
    color: #68d391;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-learn:hover {
    color: #9ae6b4;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    nav ul {
        justify-content: center;
        gap: 16px;
    }
    
    nav a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .topic-blocks {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .topic-block {
        padding: 20px 24px;
        font-size: 16px;
    }
    
    .featured-content h3 {
        font-size: 26px;
        margin-bottom: 32px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .content-card {
        padding: 24px;
        min-height: 200px;
    }
    
    .content-card h4 {
        font-size: 20px;
    }
    
    .article-sections {
        padding: 60px 0;
    }
    
    .article-card {
        padding: 24px;
    }
    
    .article-card h3 {
        font-size: 20px;
    }
    
    .article-cta strong {
        font-size: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .info-item {
        padding: 24px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .disclaimer-content {
        padding: 24px;
        max-height: 25vh;
    }
    
    .disclaimer-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .disclaimer-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    nav a {
        text-align: center;
        display: block;
        padding: 12px 16px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .topic-block {
        font-size: 15px;
        padding: 18px 20px;
    }
    
    .featured-content, .platform-info {
        padding: 60px 0;
    }
    
    .disclaimer-content {
        margin: 16px;
        padding: 20px;
        max-height: 30vh;
    }
    
    .disclaimer-content h3 {
        font-size: 16px;
    }
    
    .disclaimer-content p {
        font-size: 13px;
    }
    
    .disclaimer-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .content-card {
        border: 2px solid #000;
    }
    
    .content-card:hover {
        background-color: #f0f0f0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}