/* --- Global Variables --- */
:root {
    --primary: #2F5233; /* Forest Green */
    --secondary: #B1D8B7; /* Sage */
    --accent: #D9534F; /* Urgent Red */
    --text: #1a1a1a;
    --bg: #f4f4f9;
    --slide-bg: #ffffff;
}

/* --- Global Resets & Basics --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
}

h1, h2, h3, h4, h5 {
    font-family: 'Merriweather', serif;
}

/* --- Presentation Specific Styles --- */
/* Base Presentation Mode */
body.presentation-mode {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #111;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Desktop: Prevent body scroll */
}

#presentation-container {
    width: 100%;
    height: 100%;
    max-width: 1600px;
    max-height: 900px;
    background-color: var(--slide-bg);
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Keep container strict */
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    padding: 3rem 4rem;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
    overflow-y: auto; /* Desktop: Scroll inside slide if needed */
}

.slide.active {
    display: flex;
}

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

/* Typography Scale */
.presentation-mode h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.presentation-mode h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    color: var(--primary);
    border-bottom: 4px solid var(--secondary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.presentation-mode h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #444;
    margin-bottom: 1rem;
}

.presentation-mode p, 
.presentation-mode li {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.presentation-mode ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.presentation-mode strong {
    color: var(--primary);
    font-weight: 700;
}

.highlight {
    color: var(--accent);
    font-weight: bold;
}

/* Layouts */
.two-column {
    display: flex;
    gap: 3rem;
    height: 100%;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Visual Elements */
.visual-box {
    background-color: #eee;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: #666;
    position: relative;
    overflow: hidden;
}

.visual-box svg {
    max-width: 100%;
    max-height: 100%;
}

.visual-box-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 1rem;
}

.big-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--accent);
}

.slide-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.quote-box {
    border-left: 8px solid var(--accent);
    padding-left: 2rem;
    font-size: clamp(1.1rem, 2vw, 2rem);
    font-style: italic;
    color: #444;
    margin: 2rem 0;
    background: #fff0f0;
    padding: 2rem;
}

.quote-box.green {
    border-color: var(--primary);
    background: #f0fdf4;
}

.back-home {
    position: absolute;
    top: 20px;
    right: 20px;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    z-index: 101;
    padding: 10px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Controls */
#controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    padding: 5px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.pres-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pres-btn:hover {
    background-color: #1e3621;
}

#slide-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1rem;
    color: #666;
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

/* Graphics helpers */
.calendar-icon {
    border: 4px solid var(--accent);
    border-radius: 10px;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: white;
}
.cal-header { background: var(--accent); color: white; padding: 5px; font-weight: bold; border-radius: 6px 6px 0 0; }
.cal-body { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold; color: #333;}

.map-mockup { width: 100%; height: 100%; background: #e0e0e0; position: relative; border-radius: 4px; }
.map-node { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; position: absolute; opacity: 0.6; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1); opacity: 0.6; } }

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    /* Allow body to scroll if needed, but prefer slide scrolling */
    body.presentation-mode {
        height: 100%; 
        overflow-y: auto;
        display: block; /* Remove centering flex */
        background-color: #fff;
    }

    #presentation-container {
        height: 100vh; /* Fill viewport */
        max-height: none; /* Remove cap */
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .slide {
        padding: 1.5rem 1.5rem 6rem 1.5rem; /* Massive bottom padding for controls */
        justify-content: flex-start; /* Align top */
    }

    .slide-center {
        justify-content: center; /* Keep title centered though */
        min-height: 80vh; /* Ensure it takes up space */
    }

    /* Stack Columns */
    .two-column {
        flex-direction: column;
        gap: 2rem;
        display: block; /* Standard block layout */
    }

    .col {
        width: 100%;
        margin-bottom: 2rem;
    }

    .visual-box {
        height: 220px; /* Smaller visuals */
        padding: 1rem;
    }

    /* Adjust Controls */
    #controls {
        position: fixed; /* Stick to screen bottom */
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 15px;
        background: rgba(255,255,255,0.95);
        border-top: 1px solid #ddd;
        border-radius: 0;
        justify-content: space-between;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .pres-btn {
        flex: 1; /* Stretch buttons */
        justify-content: center;
        padding: 15px;
        font-size: 1.1rem;
    }

    #slide-counter {
        position: fixed;
        bottom: 80px; /* Above controls */
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255,255,255,0.9);
        padding: 5px 15px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        font-size: 0.9rem;
        font-weight: bold;
        z-index: 99;
    }

    .back-home {
        position: fixed;
        top: 10px;
        right: 10px;
        font-size: 0.85rem;
        padding: 8px 12px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}

/* --- Styles from other pages (retained from index.html head) --- */
.hero-section {
    background-color: #2F3E2E;
    background-image: linear-gradient(rgba(47, 62, 46, 0.8), rgba(47, 62, 46, 0.9)), url('https://images.unsplash.com/photo-1444858291040-58f756a3bdd6?q=80&w=2078&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}
.threat-card { border-top: 5px solid #dc3545; transition: transform 0.3s; height: 100%; }
.threat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.threat-card.orange { border-top-color: #fd7e14; }
.threat-card.blue { border-top-color: #0d6efd; }
.legal-quote { background-color: #f8f9fa; border-left: 4px solid #198754; padding: 15px; font-style: italic; font-size: 0.9rem; margin-top: 15px; }
.bg-dark-custom { background-color: #212529; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Styles from Impacts Page */
.hero-section-impacts {
    background-color: #2F3E2E;
    background-image: linear-gradient(rgba(33, 37, 41, 0.9), rgba(33, 37, 41, 0.8)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2832&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
}
.impact-detail-card { border-left: 5px solid #198754; background: #fff; height: 100%; transition: transform 0.2s; }
.impact-detail-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.legal-block { background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-top: 15px; }
.link-icon-box { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background-color: #e9ecef; border-radius: 50%; color: #495057; transition: all 0.3s; }
.list-group-item-action:hover .link-icon-box { background-color: #198754; color: white; }
.comparison-table .row { border-bottom: 1px solid #dee2e6; padding: 1.5rem 0; }
.comparison-table .row:last-child { border-bottom: none; }
.status-badge { font-size: 0.8rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.05em; padding: 0.35em 0.65em; border-radius: 50rem; }

/* Styles from Action Page */
.hero-section-action {
    background-color: #2F3E2E;
    background-image: linear-gradient(rgba(33, 37, 41, 0.9), rgba(33, 37, 41, 0.85)), url('https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?q=80&w=2940&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
}
.action-step-number {
    width: 40px; height: 40px; 
    background-color: #198754; color: white; 
    border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; 
    font-weight: bold; font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}
.contact-card {
    border: 1px solid #dee2e6;
    border-left: 4px solid #198754;
    background: white;
    transition: transform 0.2s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.email-template-box {
    background-color: #f8f9fa;
    border: 1px dashed #6c757d;
    border-radius: 8px;
    padding: 25px;
    position: relative;
}

/* Styles from Petition Page */
.petition-card { border-top: 5px solid #198754; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.petition-text-box { 
    max-height: 300px; 
    overflow-y: auto; 
    background-color: #f8f9fa; 
    border: 1px solid #dee2e6; 
    padding: 20px; 
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}