/* --- Global Variables --- */
:root {
    --primary: #2F5233; /* Forest Green */
    --secondary: #B1D8B7; /* Sage */
    --accent: #D9534F; /* Urgent Red */
    --text: #1a1a1a;
    --bg: #f4f4f9;
    --slide-bg: #ffffff;
    
    /* New Palette Variables */
    --primary-green: #2F3E2E;
    --accent-gold: #FFC107;
    --text-dark: #212529;
    --text-light: #F8F9FA;
    --success-green: #198754;
}

/* --- 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;
}

/* --- Common Navigation & Buttons --- */
.navbar {
    background-color: var(--primary-green) !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link.active {
    color: var(--accent-gold) !important;
    border-bottom: 2px solid var(--accent-gold);
}

.btn-donate {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-donate:hover {
    background-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
    color: black;
}

/* --- Hero Sections --- */
.hero-section {
    background-color: #2F3E2E;
    background-image: linear-gradient(rgba(47, 62, 46, 0.8), rgba(47, 62, 46, 0.9)), url('Images/bush_trees.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(rgba(47, 62, 46, 0.85), rgba(47, 62, 46, 0.95));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* --- Specific Page Backgrounds --- */
.bg-home { background-image: url('Images/bush_trees.jpg'); } 
.bg-action { background-image: url('https://images.unsplash.com/photo-1572949645841-094f3a9c4c94?q=80&w=2070&auto=format&fit=crop'); }
.bg-impacts { background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2832&auto=format&fit=crop'); }
.bg-comms { background-image: url('https://images.unsplash.com/photo-1557200134-90327ee9fafa?q=80&w=2070&auto=format&fit=crop'); }
.bg-media { background-image: url('https://images.unsplash.com/photo-1535905557558-afc4877a26fc?q=80&w=2070&auto=format&fit=crop'); }

/* Documents Page Hero */
.hero-section-docs {
    background-color: #2F3E2E;
    background-image: linear-gradient(rgba(47, 62, 46, 0.9), rgba(47, 62, 46, 0.95)), url('Images/Hero2.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
}

/* --- Documents Page Cards --- */
.doc-card {
    transition: all 0.2s;
    border-left: 4px solid #6c757d;
}

.doc-card:hover {
    transform: translateX(5px);
    border-left-color: #198754;
    background-color: #f8f9fa;
}

.doc-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 50%;
    color: #495057;
}

/* --- Common Components --- */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* --- Presentation Mode (Legacy Support) --- */
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;
}

#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;
}

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

.slide.active {
    display: flex;
}

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

.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; }

.two-column { display: flex; gap: 3rem; height: 100%; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.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 {
    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);
}

/* Mobile Optimizations for Presentation */
@media (max-width: 768px) {
    body.presentation-mode { height: 100%; overflow-y: auto; display: block; background-color: #fff; }
    #presentation-container { height: 100vh; max-height: none; width: 100%; box-shadow: none; border-radius: 0; }
    .slide { padding: 1.5rem 1.5rem 6rem 1.5rem; justify-content: flex-start; }
    .two-column { flex-direction: column; gap: 2rem; display: block; }
    .col { width: 100%; margin-bottom: 2rem; }
    .visual-box { height: 220px; padding: 1rem; }
    #controls { position: fixed; 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; justify-content: center; padding: 15px; font-size: 1.1rem; }
    #slide-counter { position: fixed; bottom: 80px; 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); }
}

/* --- Footer --- */
footer {
    background-color: var(--text-dark);
    color: #adb5bd;
    font-size: 0.9rem;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-gold);
}