/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Semi-Classic Palette */
    --navy-primary: #1a252f;
    --navy-secondary: #2c3e50;
    --gold-accent: #c0a062;
    --gold-light: #e6dace;
    --cream-bg: #f9f9f7;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    
    /* AQI Functional Colors (Flat/Matte versions) */
    --aqi-good: #27ae60;
    --aqi-moderate: #f39c12;
    --aqi-sensitive: #d35400;
    --aqi-unhealthy: #c0392b;
    --aqi-very: #8e44ad;
    --aqi-haz: #7f8c8d; /* Or Dark Maroon #581845 */

    /* Effects */
    --shadow-card: 0 5px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Lato', 'Segoe UI', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography Overrides */
h1, h2, h3, h4, .nav-title, .hero-title, .aqi-label, .cta-content h2 {
    font-family: 'Playfair Display', serif;
}

/* ========== Navigation Bar ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--navy-primary);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--navy-primary);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    color: var(--navy-primary);
    text-decoration: none;
    border: 1px solid var(--navy-primary);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--navy-primary);
    color: var(--white);
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== Hero Section ========== */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

.hero-icon-container {
    font-size: 2.5em;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2em;
    color: var(--navy-primary);
    margin-bottom: 15px;
}

.separator-line {
    width: 60px;
    height: 3px;
    background-color: var(--gold-accent);
    margin: 0 auto 20px auto;
}

.hero-subtitle {
    font-size: 1.25em;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid #ddd;
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== Content Card Generic ========== */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 50px;
    border-top: 4px solid var(--gold-accent);
    overflow: hidden;
}

.card-header {
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    background: #fdfdfd;
}

.icon-box {
    font-size: 1.5em;
    color: var(--navy-secondary);
    width: 50px;
    height: 50px;
    background: var(--cream-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.section-title {
    font-size: 1.8em;
    color: var(--navy-primary);
    margin: 0;
}

.card-body {
    padding: 40px;
}

.section-intro {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 800px;
}

/* ========== AQI Grid Layout ========== */
.aqi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.aqi-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    position: relative;
    padding-left: 25px; /* Space for colored strip */
    transition: transform 0.3s;
}

.aqi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Colored Strips for AQI Cards */
.aqi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.range-good::before { background-color: var(--aqi-good); }
.range-moderate::before { background-color: var(--aqi-moderate); }
.range-sensitive::before { background-color: var(--aqi-sensitive); }
.range-unhealthy::before { background-color: var(--aqi-unhealthy); }
.range-very-unhealthy::before { background-color: var(--aqi-very); }
.range-hazardous::before { background-color: var(--aqi-haz); }

.aqi-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.aqi-label {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Text coloring for labels matches strip */
.range-good .aqi-label { color: var(--aqi-good); }
.range-moderate .aqi-label { color: var(--aqi-moderate); }
.range-sensitive .aqi-label { color: var(--aqi-sensitive); }
.range-unhealthy .aqi-label { color: var(--aqi-unhealthy); }
.range-very-unhealthy .aqi-label { color: var(--aqi-very); }
.range-hazardous .aqi-label { color: var(--aqi-haz); }

.aqi-card p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== Images & Visuals ========== */
.visual-break {
    text-align: center;
    margin: 40px 0;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 4px solid white;
    box-shadow: var(--shadow-card);
}

.image-caption {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

/* ========== Info Box (Reused from About) ========== */
.info-box, .privacy-box {
    padding: 25px;
    border-radius: 4px;
    margin: 30px 0;
}

.classic-info {
    background-color: #f0f7ff;
    border-left: 4px solid var(--navy-secondary);
}

.privacy-box {
    background-color: #fdfdf0;
    border-left: 4px solid var(--gold-accent);
}

.info-box h3, .privacy-box h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-primary);
}

.info-box ul, .privacy-box ul {
    list-style: none;
    padding-left: 5px;
}

.info-box li, .privacy-box li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-dark);
}

.info-box li::before {
    content: "\f00c"; /* Checkmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--navy-secondary);
    font-size: 0.9em;
    top: 12px;
}

/* ========== Feature Grid (Health) ========== */
.feature-grid {
    display: grid;
    gap: 30px;
}

.feature-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.feature-item {
    background: var(--cream-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.feature-icon {
    font-size: 2em;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--navy-primary);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-item ul {
    list-style: none;
}

.feature-item li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.feature-item li::before {
    content: "•";
    color: var(--gold-accent);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

/* ========== Vulnerable Groups ========== */
.vulnerable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.vulnerable-card {
    text-align: center;
    min-height: 350px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.vulnerable-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-accent);
}

.img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 10%;
    background: var(--cream-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--gold-light);
}

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


.vulnerable-card h4 {
    color: var(--navy-primary);
    margin-bottom: 10px;
}

.vulnerable-card p {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* ========== CTA Section ========== */
.cta-section {
    background: var(--navy-primary);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 5px double var(--gold-accent);
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--gold-light);
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--navy-primary);
    padding: 15px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--white);
    transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.footer p {
    color: var(--navy-primary);
    font-weight: 700;
}

.footer-note {
    font-weight: 400 !important;
    font-size: 0.9em;
    color: var(--text-muted) !important;
    margin-top: 5px;
    font-style: italic;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .content-split {
        grid-template-columns: 1fr;
    }
    
    .feature-grid.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 2em;
    }

    .card-header {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .card-body {
        padding: 20px;
    }

    .back-btn span {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .back-btn {
        margin-left: auto; /* Push to right on small screens */
    }
}