:root {
    --primary: #0B192C; /* Deep Navy -> Deep Sage */
    --accent: #C5A059; /* Luxury Gold */
    --accent-hover: #DFBE7B;
    --emerald: #1A365D; /* Eco Emerald Green -> Deep Sage Tint */
    --dark-bg: #FAF8F5; /* Cozy Off-White */
    --dark-panel: #FFFFFF; /* White card background */
    --border-color: rgba(11, 25, 44, 0.15); /* Sage Green border */
    --border-color-glow: rgba(11, 25, 44, 0.25);
    --text-white: #0B192C; /* Dark Olive Text */
    --text-muted: #334155; /* Gray Green */
    --border-radius: 24px;
    --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.08);
    --shadow-emerald: 0 4px 20px rgba(11, 25, 44, 0.08);
    --shadow-red: 0 4px 20px rgba(239, 68, 68, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai', 'Outfit', sans-serif;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar */
.old-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(250, 248, 245, 0.6);
    border-bottom: 1px solid rgba(11, 25, 44, 0.15);
}

.old-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 3px;
}

.old-logo-icon {
    height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    display: block;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
}

.old-back-link {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 25, 44, 0.08);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(11, 25, 44, 0.15);
}

.old-back-link:hover {
    background: var(--accent);
    color: #0B192C;
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Language Switcher */
.old-lang-switcher {
    display: flex;
    gap: 6px;
    margin-left: auto;
    margin-right: 25px;
}

.old-lang-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(11, 25, 44, 0.15);
    background: rgba(11, 25, 44, 0.04);
    color: var(--text-white);
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.old-lang-btn:hover {
    background: rgba(11, 25, 44, 0.1);
    border-color: rgba(11, 25, 44, 0.25);
    transform: translateY(-1px);
}

.old-lang-btn.active {
    background: var(--accent);
    color: #0B192C;
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.9), rgba(243, 239, 233, 0.7)), url('assets/eco_law_hero_premium.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
    border-bottom: 3px solid var(--accent);
}

.hero-content {
    max-width: 950px;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: inline-block;
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.pulse-glow {
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(197, 160, 89, 0.1); }
    100% { box-shadow: 0 0 25px rgba(197, 160, 89, 0.35); }
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent) 0%, var(--emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 50px;
    color: var(--text-muted);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.7;
}

.hero-btns-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark-bg) !important;
    padding: 18px 38px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(197, 160, 89, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 18px 38px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 120px 8%;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bg-light {
    background-color: #EBF5ED; /* Sage Cream Card Accent */
}

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 70px;
    font-weight: 300;
}

/* Tab Control System */
.tab-control-wrapper {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 50px;
    max-width: 850px;
    margin: 0 auto 60px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--accent);
    color: var(--dark-bg);
    box-shadow: var(--shadow-gold);
}

/* Tab Content Grid */
.tabs-container {
    position: relative;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--dark-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-gold);
    backdrop-filter: blur(20px);
}

.tab-image-side {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.05);
}

.tab-image-side img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

.tab-grid:hover .tab-image-side img {
    transform: scale(1.03);
}

.status-indicator-tag {
    position: absolute;
    top: 25px;
    left: 25px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    white-space: nowrap;
    z-index: 5;
}

.status-indicator-tag.status-high {
    background: rgba(13, 22, 43, 0.92);
    color: #FEE2E2; /* Bright soft red */
    border: 1.5px solid rgba(239, 68, 68, 0.85);
}

.status-indicator-tag.status-danger {
    background: rgba(13, 22, 43, 0.92);
    color: #FEE2E2; /* Bright soft red */
    border: 1.5px solid rgba(239, 68, 68, 0.95);
}

.status-indicator-tag.status-moderate {
    background: rgba(13, 22, 43, 0.92);
    color: #FEF3C7; /* Bright soft yellow */
    border: 1.5px solid rgba(245, 158, 11, 0.85);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #EF4444;
    animation: blink 1.5s infinite alternate;
}

.pulse-dot-red {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #EF4444;
    animation: blink 1s infinite alternate;
}

.pulse-dot-yellow {
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 10px #F59E0B;
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.tab-info-side h3 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
    line-height: 1.25;
}

.highlight-text {
    color: var(--accent);
}

.intro-p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

.consequence-box {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #EF4444;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    margin-bottom: 30px;
    color: #FCA5A5;
}

.consequence-box strong {
    color: #EF4444;
}

.prevention-checklist {
    list-style: none;
}

.prevention-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.prevention-checklist li i {
    font-size: 1.4rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.text-emerald {
    color: var(--emerald);
}

.text-danger {
    color: #EF4444;
}

.prevention-checklist li strong {
    color: var(--text-white);
}

/* Side by Side Story Comparison */
.story-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.story-card {
    border-radius: var(--border-radius);
    padding: 45px;
    backdrop-filter: blur(10px);
}

.bad-story {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: var(--shadow-red);
}

.good-story {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: var(--shadow-emerald);
}

.story-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.story-card-header i {
    font-size: 2.2rem;
}

.bad-story .story-card-header i {
    color: #EF4444;
}

.good-story .story-card-header i {
    color: var(--emerald);
}

.story-card-header h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
}

.story-card-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.story-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bullet-no {
    font-size: 1.4rem;
    color: #EF4444;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: -2px;
}

.bullet-yes {
    font-size: 1.4rem;
    color: var(--emerald);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: -2px;
}

.story-item p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.story-item strong {
    color: var(--text-white);
}

/* Bento Grid Categories fallback styling */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.bento-card {
    background: var(--dark-panel);
    padding: 50px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-gold);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(197, 160, 89, 0.12);
    border-color: var(--accent);
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    background: var(--secondary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: var(--text-white);
    font-weight: 700;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Interactive Checklist Diagnostic System */
.interactive-checklist-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--dark-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-gold);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checklist-item {
    background: #FAFCFA;
    border: 1px solid rgba(212, 155, 36, 0.15);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checklist-item:hover {
    background: rgba(212, 155, 36, 0.05);
    border-color: rgba(212, 155, 36, 0.35);
    transform: translateX(5px);
}

.checkbox-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(212, 155, 36, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 1.1rem;
    transition: 0.3s;
    flex-shrink: 0;
}

.checklist-item.selected .checkbox-circle {
    border-color: #D49B24;
    background: #D49B24;
    color: #FFFFFF;
}

.checklist-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

.checklist-item.selected p {
    color: #0B192C;
}

.diagnostic-result {
    margin-top: 20px;
    background: rgba(212, 155, 36, 0.05);
    border: 1.5px solid rgba(212, 155, 36, 0.2);
    padding: 25px 30px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: 0.5s ease;
}

.diagnostic-result i {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.diagnostic-result p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Diagnostic glow states */
.risk-mild-glow {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.2);
}

.risk-mild-glow i {
    color: var(--accent);
}

.risk-mild-glow p {
    color: var(--text-white);
}

.risk-high-glow {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.risk-high-glow i {
    color: #F59E0B;
}

.risk-high-glow p {
    color: var(--text-white);
}

.risk-danger-glow {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.risk-danger-glow i {
    color: #EF4444;
}

.risk-danger-glow p {
    color: var(--text-white);
}

/* Footer & B2B Consultative CTA */
.footer {
    background: #04070e;
    color: white;
    text-align: center;
    padding: 120px 8% 60px;
    border-top: 3px solid var(--accent);
}

.footer-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

.footer-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 55px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-cta-gold {
    background: var(--accent);
    color: var(--dark-bg) !important;
}

.btn-cta-gold:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-cta-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

.btn-cta-line {
    background: #06C755;
    color: white !important;
}

.btn-cta-line:hover {
    background: #05B34C;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(6, 199, 85, 0.4);
}

.official-contacts {
    margin-bottom: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 35px;
}

.official-contacts p {
    font-size: 1rem !important;
    opacity: 0.7 !important;
    margin-bottom: 0 !important;
}

.official-contacts a {
    color: var(--accent);
    font-weight: 600;
}

.official-contacts a:hover {
    color: var(--text-white);
}

.copyright {
    font-size: 0.85rem !important;
    opacity: 0.4 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.5px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 35px;
    }
    .story-comparison-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .old-navbar {
        padding: 20px 4%;
    }
    .old-logo {
        font-size: 1.3rem;
    }
    .old-back-link {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .old-lang-switcher {
        margin-right: 15px;
        margin-left: auto;
        gap: 4px;
    }
    .old-lang-btn {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.65rem;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    .tab-control-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
    }
    .tab-btn {
        padding: 12px 20px;
    }
    .tab-image-side img {
        height: 280px;
    }
    .section-title {
        font-size: 2.1rem;
    }
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 50px;
    }
    .interactive-checklist-box {
        padding: 30px 20px;
    }
    .checklist-item {
        padding: 15px 20px;
        gap: 15px;
    }
    .checklist-item p {
        font-size: 0.95rem;
    }
    .footer-links {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0 10px;
    }
    .footer-links a {
        justify-content: center;
    }
    .status-indicator-tag {
        top: 15px;
        left: 15px;
        padding: 6px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .old-navbar {
        padding: 15px 4%;
    }
    .old-logo {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
        gap: 6px;
    }
    .old-logo-icon {
        height: 24px;
    }
    .old-back-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }
    .old-lang-switcher {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-end;
        max-width: 140px;
        margin-right: 10px;
        margin-left: auto;
    }
    .old-lang-btn {
        padding: 3px 6px;
        border-radius: 4px;
        font-size: 0.6rem;
    }
    .hero h1 {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    .section-title {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    .hero-btns-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .btn-primary, .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
        text-align: center;
    }
    .status-indicator-tag {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }
}

/* ==========================================================================
   🏥 BioRevive Premium Mobile UX & Accessibility Refinement (320px - 480px)
   ========================================================================== */

@media (max-width: 480px) {
    
    /* --- 1. NAVBAR & LANGUAGE SWITCHER OPTIMIZATION --- */
    .old-navbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 15px 16px !important;
        position: absolute !important; /* Keep floating above hero */
        background: rgba(5, 8, 17, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .old-logo {
        font-size: 1.05rem !important;
        justify-content: center;
        width: 100%;
        letter-spacing: 2px !important;
        gap: 6px !important;
    }

    .old-logo-icon {
        height: 24px !important;
    }

    /* Transform Switcher into a Premium Smooth Horizontal Scroll Bar */
    .old-lang-switcher {
        margin: 0 auto !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 12px !important;
        scrollbar-width: none; /* Hide scrollbars on Firefox */
    }

    .old-lang-switcher::-webkit-scrollbar {
        display: none; /* Hide scrollbars on Chrome/Safari */
    }

    /* WCAG 2.1 Touch Target Enhancement: Increase tap area and spacing */
    .old-lang-btn {
        padding: 8px 12px !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
        min-width: 36px;
        min-height: 36px; /* Perfect tap target response */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .old-back-link {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        gap: 6px !important;
        width: auto !important;
        display: inline-flex !important;
        justify-content: center;
        white-space: nowrap !important;
        margin-top: 4px;
    }

    /* --- 2. HERO SECTION DYNAMIC HEIGHT & SPACING --- */
    .hero {
        height: auto !important;
        min-height: auto !important;
        padding: 170px 16px 60px !important; /* Offset absolute navbar */
    }

    .hero-content {
        animation: none !important; /* Performance boost on budget phones */
    }

    .hero .badge {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
        padding: 6px 14px !important;
        margin-bottom: 20px !important;
        white-space: normal !important; /* Allow safe wrap */
        line-height: 1.4;
    }

    .hero h1 {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 35px !important;
        line-height: 1.65 !important;
    }

    /* --- 3. ALERT BANNER & LAWS GRID RECONSTRUCTION --- */
    .section {
        padding: 60px 16px !important; /* Reduce space wastage */
    }

    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .section-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 40px !important;
    }

    /* Safe override for inline styled alert banner padding */
    div[style*="padding:1.5rem 2rem"],
    div[style*="padding: 1.5rem 2rem"] {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }

    /* Stack main columns of alert banner to prevent squishing */
    div[style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Restructure the 5 Categories grid layout for safe language wrapping */
    div[style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
        gap: 6px !important;
    }

    /* Refine Category boxes and typography */
    div[style*="grid-template-columns:repeat(5,1fr)"] > div {
        padding: 6px 4px !important;
        min-height: 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 6px !important;
    }

    div[style*="grid-template-columns:repeat(5,1fr)"] div[style*="font-size:0.85rem"] {
        font-size: 0.8rem !important;
    }

    div[style*="grid-template-columns:repeat(5,1fr)"] div[style*="font-size:0.65rem"] {
        font-size: 0.58rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Prevent timeline container over-padding */
    div[style*="padding:2rem"],
    div[style*="padding: 2rem"] {
        padding: 1.25rem 1rem !important;
    }

    div[style*="grid-template-columns:repeat(auto-fit,minmax(200px,1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important; /* Perfect 2x2 grid on mobile */
        gap: 16px !important;
    }

    /* --- 4. DIAGNOSTIC INTERACTIVE TAB CORRECTION --- */
    .tab-control-wrapper {
        border-radius: 16px !important;
        padding: 6px !important;
        gap: 6px !important;
        margin-bottom: 30px !important;
    }

    .tab-btn {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
        gap: 6px !important;
    }

    .tab-btn i {
        font-size: 1.1rem !important;
    }

    .tab-grid {
        padding: 24px 16px !important;
        gap: 20px !important;
        border-radius: 16px !important;
    }

    .tab-image-side img {
        height: 160px !important; /* Professional 16:9 ratio */
        aspect-ratio: 16 / 9;
    }

    .tab-info-side h3 {
        font-size: 1.25rem !important; /* Scaled from 2.1rem for mobile standard */
        margin-bottom: 12px !important;
        line-height: 1.35 !important;
    }

    .intro-p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    .consequence-box {
        padding: 12px 14px !important;
        margin-bottom: 18px !important;
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        border-radius: 0 8px 8px 0 !important;
    }

    .prevention-checklist li {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
    }

    .prevention-checklist li i {
        font-size: 1.15rem !important;
    }

    /* --- 5. COMPARISON STORY CARDS --- */
    .story-comparison-grid {
        gap: 16px !important;
    }

    .story-card {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .story-card-header {
        margin-bottom: 20px !important;
        gap: 10px !important;
    }

    .story-card-header i {
        font-size: 1.8rem !important;
    }

    .story-card-header h4 {
        font-size: 1.2rem !important;
    }

    .story-card-body {
        gap: 14px !important;
    }

    .story-item {
        gap: 10px !important;
    }

    .story-item p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    /* --- 6. CHECKLIST & RESULT BOX REFINE --- */
    .interactive-checklist-box {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .checklist-item {
        padding: 12px 14px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }

    .checklist-item p {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
    }

    .diagnostic-result {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-top: 15px !important;
        gap: 10px !important;
    }

    .diagnostic-result i {
        font-size: 1.4rem !important;
    }

    .diagnostic-result p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* --- 7. FOOTER CTAs & HEADERS FIX (CRITICAL) --- */
    .footer {
        padding: 60px 16px 40px !important;
    }

    .footer-content h2 {
        font-size: 1.45rem !important; /* Resolve 2.8rem typography spill */
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
    }

    .footer-content p {
        font-size: 0.92rem !important;
        margin-bottom: 35px !important;
        line-height: 1.6 !important;
    }

    .footer-links {
        gap: 10px !important;
        margin-bottom: 40px !important;
    }

    .footer-links a {
        padding: 12px 20px !important;
        font-size: 0.88rem !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   🌿 BioRevive Law Design Refinement (Readability, Contrast & 2-Column Grid)
   ========================================================================== */

/* 1. Hero Layout Modification */
.hero {
    height: auto !important;
    min-height: 720px !important;
    background: linear-gradient(135deg, #FAF8F5 0%, #F3EFE9 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 140px 8% 80px !important;
    position: relative !important;
    border-bottom: 3px solid var(--accent) !important;
}

.hero-grid-layout {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 48px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hero-text-side {
    text-align: left !important;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.hero-text-side h1 {
    font-size: 3.5rem !important;
    line-height: 1.15 !important;
    margin-bottom: 25px !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    color: var(--text-white) !important;
}

.hero-text-side p {
    font-size: 1.15rem !important;
    margin-bottom: 40px !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    max-width: 100% !important;
    text-align: left !important;
}

.hero-image-side {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.hero-law-img {
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    border-radius: var(--border-radius) !important;
    border: 1px solid rgba(11, 25, 44, 0.15) !important;
    box-shadow: 0 15px 35px rgba(11, 25, 44, 0.12) !important;
}

/* 2. Environmental Law Grid (Alert Banner & Image) */
.env-law-grid {
    display: grid !important;
    grid-template-columns: 1.25fr 0.75fr !important;
    gap: 32px !important;
    align-items: stretch !important;
    margin-bottom: 2rem !important;
}

.env-law-media-side {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.env-kitchen-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 380px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    border: 1px solid rgba(11, 25, 44, 0.15) !important;
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.08) !important;
}

/* 3. Contrast Enhancements for Alert Box */
.env-law-alert-box .law-card {
    background: #ffffff !important;
    border: 1px solid rgba(11, 25, 44, 0.15) !important;
    box-shadow: 0 4px 15px rgba(11, 25, 44, 0.04) !important;
}

.env-law-alert-box .law-card h4 {
    font-weight: 700 !important;
    color: #b45309 !important; /* Slightly darker orange for better contrast */
}

.env-law-alert-box .law-card p {
    color: var(--text-white) !important;
    font-weight: 500 !important;
}

.env-law-alert-box .law-card li {
    color: var(--text-white) !important;
    font-weight: 500 !important;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero {
        padding: 120px 24px 60px !important;
    }
    .hero-grid-layout {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 32px !important;
    }
    .hero-text-side {
        text-align: center !important;
    }
    .hero-text-side h1 {
        font-size: 2.5rem !important;
    }
    .hero-text-side p {
        text-align: center !important;
    }
    .hero-law-img {
        max-width: 380px !important;
    }
    .env-law-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .env-kitchen-img {
        min-height: auto !important;
        max-height: 320px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 16px 50px !important;
    }
    .hero-text-side h1 {
        font-size: 1.8rem !important;
    }
    .hero-text-side p {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }
}

