/* ============================================================
   Netra Charitable Trust – style.css
   Sections:
   01. CSS Variables (Light + Dark theme)
   02. Reset & Base
   03. Header & Desktop Navigation
   04. Hamburger + Mobile Nav Drawer
   05. Backdrop (shared overlay)
   06. Floating Accessibility Widget (FAB + Left Panel)
   07. Buttons
   08. Hero
   09. Section Helpers
   10. About
   11. Why Netra
   12. Courses (Tabs, Cards, Pricing, Benefits)
   13. UPLIFT
   14. Offline Impact
   14B. Resources & Guidelines
   14C. Volunteers
   15. Policy
   16. Contact & Form
   17. Footer & Social Icons
   18. Responsive Breakpoints
   19. Reduced Motion
   ============================================================ */

/* ===== 01. CSS VARIABLES ===== */
:root {
    --primary: #1a5c8a;
    --primary-dark: #0e3d5e;
    --primary-light: #e3eef7;
    --accent: #e88a3a;
    --accent-dark: #d97a2e;
    --success: #27ae60;
    --success-dark: #1e8449;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f9fc;
    --border: #dce3e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --touch-min: 44px;   /* Minimum touch target size */
    --header-h: 68px;    /* Approx sticky header height */
}
[data-theme="dark"] {
    --primary: #3a8ec9;
    --primary-dark: #1a5c8a;
    --primary-light: #1a2a3a;
    --accent: #f5a84a;
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --border: #333333;
}

/* ===== 02. RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* prevents sideways scroll from off-canvas panels */
}
body.no-scroll { overflow: hidden; } /* lock page while a drawer/panel is open */
img { max-width: 100%; height: auto; }

/* Sections open below the sticky header when jumped to via #anchor */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: #fff;
    padding: 0.75rem 1.5rem; z-index: 9999;
    border-radius: 4px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; outline: 3px solid #fff; }

/* Screen-reader-only text: visually hidden but announced by
   screen readers (used for labels like "Role:" / "Location:") */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
*:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== 03. HEADER & DESKTOP NAVIGATION ===== */
.header {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--primary);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow);
    transition: background 0.3s;
}
/* FIX: while the mobile drawer is open, lift the header above the
   backdrop (z-index 1500). Otherwise the header's stacking context
   traps the drawer below the backdrop and taps inside the menu fail. */
body.nav-open .header { z-index: 1601; }

.nav {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; min-height: var(--header-h);
}
.logo {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; color: var(--text-primary);
    min-height: var(--touch-min); flex-shrink: 0;
}
.logo-img {
    width: 48px; height: 48px; border-radius: 50%;
    background: #fff;            /* keeps the logo's white background looking clean in dark mode too */
    object-fit: contain; flex-shrink: 0;
    border: 1px solid var(--border);
}
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.logo-text span { color: var(--text-primary); font-weight: 300; }

.main-nav {
    display: flex; align-items: center; gap: 0.25rem;
    list-style: none;
}
.main-nav li a,
.main-nav .dropdown-toggle {
    color: var(--text-primary); text-decoration: none;
    font-weight: 500; padding: 0.5rem 0.7rem;
    border-radius: 4px; transition: background 0.2s, color 0.2s;
    font-size: 0.95rem; display: inline-flex; align-items: center;
    gap: 0.3rem; background: none; border: none; cursor: pointer;
    font-family: inherit; min-height: var(--touch-min);
}
.main-nav > li > a,
.main-nav .dropdown-toggle { white-space: nowrap; }
.main-nav li a:hover,
.main-nav li a:focus,
.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle:focus {
    background: var(--primary-light); color: var(--primary);
}

/* Drawer header – only visible inside the mobile drawer */
.nav-drawer-head { display: none; }


/* Dropdowns (desktop) */
.dropdown { position: relative; }
.dropdown-toggle .arrow {
    font-size: 0.6rem; transition: transform 0.3s;
    display: inline-block;
}
.dropdown-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 0.3rem); left: 0;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.5rem 0;
    min-width: 210px; box-shadow: var(--shadow-lg);
    display: none; z-index: 2000; list-style: none;
}
.dropdown-menu.active { display: block; }
.dropdown-menu.align-right { left: auto; right: 0; } /* keeps last menu inside the screen */
.dropdown-menu li a {
    display: flex; align-items: center; padding: 0.7rem 1.2rem;
    color: var(--text-primary); text-decoration: none;
    transition: background 0.2s, color 0.2s; font-size: 0.95rem;
    min-height: var(--touch-min); border-radius: 0;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background: var(--primary-light); color: var(--primary);
}
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 0.3rem 0; }
.dropdown-menu .menu-label {
    padding: 0.3rem 1.2rem; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-secondary); font-weight: 600;
}
.dropdown-menu .menu-tagline {
    padding: 0.3rem 1.2rem; font-size: 0.75rem; color: var(--text-secondary);
}
.dropdown-menu li a .fab,
.dropdown-menu li a .fas {
    width: 1.2rem; text-align: center; margin-right: 0.3rem;
}

/* ===== 04. HAMBURGER + MOBILE NAV DRAWER ===== */
.nav-toggle {
    display: none; /* shown only below 1024px */
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 48px; height: 48px;
    background: transparent; border: none; border-radius: 8px;
    cursor: pointer; flex-shrink: 0;
}
.nav-toggle .bar {
    display: block; width: 24px; height: 2.5px;
    border-radius: 2px; background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Shared close button (drawer + accessibility panel) */
.panel-close {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-secondary);
    color: var(--text-primary); font-size: 1.35rem; line-height: 1;
    cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.panel-close:hover,
.panel-close:focus { background: var(--primary-light); color: var(--primary); }

/* ===== 05. BACKDROP (shared overlay) ===== */
.backdrop {
    position: fixed; inset: 0;
    background: rgba(13, 27, 42, 0.55);
    z-index: 1500;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.backdrop.show { opacity: 1; visibility: visible; }

/* ===== 06. FLOATING ACCESSIBILITY WIDGET ===== */
/* Round button fixed on the LEFT side – stays in place while scrolling */
.a11y-fab {
    position: fixed; left: 16px; bottom: 22px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 1.45rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    z-index: 1400;
    transition: background 0.2s, transform 0.2s;
}
.a11y-fab:hover,
.a11y-fab:focus { background: var(--primary-dark); transform: scale(1.06); }
.a11y-fab::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(26, 92, 138, 0.45);
    animation: a11y-pulse 2.5s ease-out infinite;
    pointer-events: none;
}
@keyframes a11y-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(26, 92, 138, 0.45); }
    70%  { box-shadow: 0 0 0 14px rgba(26, 92, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 92, 138, 0); }
}

/* Left slide-in settings panel */
.a11y-panel {
    position: fixed; top: 0; left: 0;
    height: 100vh; height: 100dvh;
    width: min(320px, 88vw);
    background: var(--bg-primary);
    z-index: 1600;
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,0.2);
    overflow-y: auto;
}
.a11y-panel.open { transform: translateX(0); }
.a11y-panel-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.5rem; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-primary); z-index: 1;
}
.a11y-panel-head h2 {
    font-size: 1.05rem; color: var(--primary);
    display: flex; align-items: center; gap: 0.5rem;
}
.a11y-panel-body { padding: 1.25rem; }
.a11y-group { margin-bottom: 1.25rem; }
.a11y-label {
    display: block; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 0.5rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-group button {
    flex: 1; background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem; border-radius: 6px; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
    transition: all 0.2s; min-height: var(--touch-min);
    font-family: inherit;
}
.btn-group button:hover,
.btn-group button:focus {
    background: var(--primary-light); border-color: var(--primary);
}
.btn-group button.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.a11y-reset {
    width: 100%; background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem; border-radius: 6px; cursor: pointer;
    font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
    transition: all 0.2s; min-height: var(--touch-min);
    font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.a11y-reset:hover,
.a11y-reset:focus { background: var(--primary-light); border-color: var(--primary); }

/* ===== 07. BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 0.7rem 1.8rem;
    border-radius: 30px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    font-size: 1rem; transition: all 0.3s;
    font-family: inherit; min-height: var(--touch-min); min-width: var(--touch-min);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #1a1a1a; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* ===== 08. HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff; padding: 3rem 0 4rem;
}
.hero-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: center;
}
.hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.2; margin-bottom: 1rem;
}
.hero-text .highlight { color: var(--accent); }
.hero-text p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
    background: rgba(255,255,255,0.08); border-radius: 12px;
    padding: 2rem; text-align: center; backdrop-filter: blur(10px);
}
.hero-image .big-icon { font-size: 5rem; display: block; margin-bottom: 0.5rem; }
.hero-image .tagline { font-size: 1.2rem; font-weight: 300; margin: 0; }

/* ===== 09. SECTION HELPERS ===== */
section { padding: 3rem 0; }
.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    text-align: center; margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.section-subtitle {
    text-align: center; color: var(--text-secondary);
    font-size: 1.1rem; max-width: 750px; margin: 0 auto 2rem;
}
.section-divider {
    width: 60px; height: 3px; background: var(--primary);
    margin: 0.5rem auto 1.5rem; border-radius: 2px;
}
.note-box {
    margin-top: 1rem; background: var(--primary-light);
    padding: 1rem 1.1rem; border-radius: 6px;
    border-left: 4px solid var(--primary);
    color: var(--text-secondary);
}
.note-box strong { color: var(--text-primary); }
.intro-text {
    text-align: center; max-width: 700px;
    margin: 0 auto 2rem; color: var(--text-secondary);
}

/* ===== 10. ABOUT ===== */
.about { background: var(--bg-secondary); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; align-items: start;
}
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-text strong { color: var(--text-primary); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card {
    background: var(--bg-primary); padding: 1.5rem;
    border-radius: var(--radius); border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.vm-card .icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; color: var(--primary); }
.vm-card h3 { margin-bottom: 0.5rem; }
.vm-card p { color: var(--text-secondary); }

/* ===== 11. WHY NETRA ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}
.why-item {
    background: var(--bg-secondary); padding: 1.2rem 1.5rem;
    border-radius: var(--radius); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.8rem;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: var(--touch-min);
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-item .icon { font-size: 1.6rem; flex-shrink: 0; color: var(--primary); }
.why-item p { margin: 0; font-weight: 500; }

/* ===== 12. COURSES ===== */
.courses-section { background: var(--bg-secondary); }
.course-tabs {
    display: flex; justify-content: center; gap: 0.8rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.course-tab {
    padding: 0.6rem 1.8rem; border-radius: 30px;
    border: 2px solid var(--border); background: var(--bg-primary);
    color: var(--text-primary); font-weight: 600; cursor: pointer;
    transition: all 0.3s; font-family: inherit; font-size: 1rem;
    min-height: var(--touch-min);
}
.course-tab:hover { border-color: var(--primary); color: var(--primary); }
.course-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.badge {
    display: inline-block; padding: 0.1rem 0.6rem;
    border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.badge-free { background: var(--success); color: #fff; }
.badge-paid { background: var(--accent); color: #1a1a1a; }

.course-content { display: none; }
.course-content.active { display: block; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}
.course-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary);
    display: flex; flex-direction: column;
}
.course-card.paid { border-left-color: var(--accent); }
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.course-card .icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; color: var(--primary); }
.course-card.paid .icon { color: var(--accent); }
.card-meta {
    display: flex; align-items: center; gap: 0.5rem;
    flex-wrap: wrap; margin-bottom: 0.6rem;
}
.duration {
    display: inline-block; background: var(--primary-light);
    color: var(--primary); padding: 0.1rem 0.8rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.course-card h3 { margin-bottom: 0.3rem; color: var(--primary); }
.course-card p { color: var(--text-secondary); font-size: 0.95rem; flex-grow: 1; }
.course-card ul { list-style: none; margin-top: 0.5rem; }
.course-card ul li {
    padding: 0.2rem 0 0.2rem 1.2rem;
    position: relative; font-size: 0.9rem;
    color: var(--text-secondary);
}
.course-card ul li::before {
    content: "\2713"; color: var(--primary);
    position: absolute; left: 0; font-weight: 700;
}
.course-card.paid ul li::before { color: var(--accent); }
.course-card .btn { margin-top: 0.8rem; align-self: flex-start; }

.pricing-options {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.8rem; margin-top: 0.8rem;
    background: var(--bg-secondary); padding: 0.8rem;
    border-radius: var(--radius);
}
.pricing-option {
    text-align: center; padding: 0.5rem;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-primary);
}
.pricing-option .type { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.pricing-option .price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.pricing-option small {
    display: block; font-weight: 400; font-size: 0.72rem;
    color: var(--text-secondary); margin-top: 0.1rem;
}

.benefits-box {
    margin-top: 2.5rem; background: var(--bg-primary);
    padding: 2rem; border-radius: var(--radius);
    border: 1px solid var(--border);
}
.benefits-box h3 { text-align: center; margin-bottom: 1.5rem; color: var(--primary); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 1rem;
}
.benefit-item {
    position: relative; padding-left: 1.6rem;
    color: var(--text-secondary); font-weight: 500;
}
.benefit-item::before {
    content: "\2713"; position: absolute; left: 0;
    color: var(--success); font-weight: 700;
}

.info-cards {
    margin-top: 1.5rem; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}
.info-card {
    background: var(--bg-primary); padding: 1.5rem;
    border-radius: var(--radius); border: 1px solid var(--border);
}
.info-card h4 { color: var(--primary); margin-bottom: 0.5rem; }
.info-card p { color: var(--text-secondary); }

.paid-note {
    margin-top: 2rem; background: var(--bg-primary);
    padding: 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--border); text-align: center;
}
.paid-note p { color: var(--text-secondary); }
.paid-note p + p { margin-top: 0.5rem; }

/* ===== 13. UPLIFT ===== */
.uplift { background: var(--bg-secondary); }
.uplift-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: center;
}
.uplift-text p { color: var(--text-secondary); margin-bottom: 1rem; }
.uplift-text strong { color: var(--text-primary); }
.chip-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.chip {
    background: var(--primary-light); color: var(--primary);
    padding: 0.3rem 1rem; border-radius: 20px; font-weight: 600;
}
.chip-outline {
    background: var(--bg-primary); color: var(--text-secondary);
    border: 1px solid var(--border); font-weight: 500;
}
.uplift-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.uplift-features .feature {
    background: var(--bg-primary); padding: 0.8rem 1rem;
    border-radius: 6px; display: flex; align-items: center;
    gap: 0.5rem; border: 1px solid var(--border);
    min-height: var(--touch-min);
}
.uplift-features .feature .icon { font-size: 1.2rem; color: var(--primary); }
.uplift-note { margin-top: 1rem; font-style: italic; color: var(--text-secondary); }

/* ----- Webinar tabs & cards (Upcoming / Past) ----- */
.webinar-tabs {
    display: flex; justify-content: center; gap: 0.8rem;
    margin: 2.25rem 0 1.5rem; flex-wrap: wrap;
}
.webinar-tab i { margin-right: 0.35rem; }
.webinar-content { display: none; }
.webinar-content.active { display: block; }

.webinar-list { display: grid; gap: 1rem; max-width: 860px; margin: 0 auto; }

.webinar-card {
    display: flex; align-items: center; gap: 1.1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: var(--radius); padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.webinar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.webinar-card.past { border-left-color: var(--success); }

.webinar-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 64px; height: 64px; border-radius: var(--radius);
    background: var(--primary-light); color: var(--primary-dark);
    font-weight: 700; flex-shrink: 0;
}
.webinar-date .wd-day { font-size: 1.5rem; line-height: 1.1; }
.webinar-date .wd-month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.webinar-date.done { background: #e6f7ee; color: var(--success-dark); font-size: 1.4rem; }

.webinar-body { flex: 1; min-width: 0; }
/* Layout protection: very long words / titles wrap instead of overflowing */
.webinar-body h4,
.webinar-body p,
.webinar-topic { overflow-wrap: break-word; word-break: break-word; }
.webinar-body h4 { margin: 0.15rem 0 0.3rem; font-size: 1.05rem; }
.webinar-body p { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--text-secondary); }
.webinar-topic {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--accent-dark);
}
.webinar-meta { font-size: 0.85rem !important; }
.webinar-meta .dot { margin: 0 0.4rem; color: var(--border); }
.webinar-meta i { color: var(--primary); margin-right: 0.25rem; }

.webinar-action { flex-shrink: 0; }
.webinar-action .btn { white-space: nowrap; }

.webinar-help {
    text-align: center; margin-top: 1.25rem;
    color: var(--text-secondary); font-size: 0.92rem;
}
.webinar-help i { color: var(--primary); margin-right: 0.3rem; }

/* Shown when a webinar list is empty (managed from admin.php) */
.webinar-empty {
    max-width: 620px; margin: 0 auto; padding: 2rem 1.5rem;
    text-align: center; color: var(--text-secondary);
    border: 2px dashed var(--border); border-radius: var(--radius);
    background: var(--bg-primary);
}
.webinar-empty i { font-size: 2rem; color: var(--primary); margin-bottom: 0.6rem; }
.webinar-empty p { margin: 0.3rem 0; }
.webinar-empty a { color: var(--primary); font-weight: 600; }

/* Keep green-tinted elements readable in dark mode */
[data-theme="dark"] .webinar-date.done {
    background: #10281b; color: #6fd39a; border-color: #1e4d33;
}

/* ===== 14. OFFLINE IMPACT ===== */
.offline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem;
}
.offline-item {
    background: var(--bg-secondary); padding: 1.5rem;
    border-radius: var(--radius); text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.offline-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.offline-item .icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; color: var(--primary); }
.offline-item h4 { margin-bottom: 0.3rem; }
.offline-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== 14B. RESOURCES & GUIDELINES ===== */
.resources { background: var(--bg-secondary); }

.resource-category { margin-bottom: 2.5rem; }
.resource-category:last-child { margin-bottom: 0; }

.resource-cat-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1.2rem; color: var(--primary);
    padding-bottom: 0.5rem; margin-bottom: 1.1rem;
    border-bottom: 2px solid var(--border);
}
.resource-cat-title i { font-size: 1.1rem; }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.25rem;
}

.resource-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-left: 4px solid var(--primary); border-radius: var(--radius);
    padding: 1.25rem;
    display: flex; flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.resource-card .icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.6rem; }
.resource-card h4 { margin-bottom: 0.35rem; overflow-wrap: break-word; }
.resource-card p {
    color: var(--text-secondary); font-size: 0.92rem;
    flex-grow: 1; margin-bottom: 0.9rem;
}

/* "Visit Website" pill link at the bottom of each card */
.resource-link {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.45rem; align-self: flex-start;
    padding: 0.5rem 1.2rem; border-radius: 30px;
    border: 2px solid var(--primary); color: var(--primary);
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
    transition: background 0.2s, color 0.2s;
    min-height: var(--touch-min);
}
.resource-link:hover,
.resource-link:focus { background: var(--primary); color: #fff; }
.resource-link i { font-size: 0.8rem; }

/* Small chips used for the multiple screen-reader links */
.resource-mini-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.resource-mini-links a {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.4rem 1rem; border-radius: 20px;
    background: var(--primary-light); color: var(--primary);
    border: 1px solid var(--border);
    font-weight: 600; font-size: 0.88rem; text-decoration: none;
    min-height: var(--touch-min);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.resource-mini-links a:hover,
.resource-mini-links a:focus {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Desktop nav now has two extra items ("Resources" + "Volunteers") –
   slightly tighter spacing between 1024px and 1400px keeps everything
   on one line */
@media (min-width: 1024px) and (max-width: 1399.98px) {
    .main-nav { gap: 0.1rem; }
    .main-nav li a,
    .main-nav .dropdown-toggle { padding: 0.5rem 0.4rem; font-size: 0.85rem; }
}

/* ===== 14C. VOLUNTEERS ===== */
.volunteers { background: var(--bg-secondary); }

/* 2 equal columns on desktop, 1 column on phones — every card
   stretches to equal height so rows always align cleanly */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 1.75rem;
    max-width: 1100px; margin: 0 auto;
    align-items: stretch;
}

.volunteer-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.volunteer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Gradient banner behind the photo — matches the hero gradient */
.volunteer-band {
    width: 100%; height: 88px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 3px solid var(--accent);
}

/* Round photo overlapping the banner (or a neutral icon when the
   photo file is missing) */
.volunteer-photo {
    width: 150px; height: 150px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    margin-top: -75px;
    position: relative; z-index: 1;
    background: var(--primary-light);
    border: 5px solid var(--bg-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    display: flex; align-items: center; justify-content: center;
}
.volunteer-photo img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 25%; /* keeps faces framed */
    display: block;
}
.volunteer-fallback { font-size: 3.2rem; color: var(--primary); line-height: 1; }

.volunteer-body {
    width: 100%; flex: 1;
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem 1.6rem 1.75rem;
}
.volunteer-name {
    margin: 0.35rem 0 0.6rem; font-size: 1.25rem;
    color: var(--text-primary); line-height: 1.35;
    overflow-wrap: break-word; word-break: break-word;
}

/* Role shown as a pill badge */
.volunteer-role {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    font-weight: 700; font-size: 0.85rem; line-height: 1.4;
    padding: 0.35rem 1.1rem; border-radius: 20px;
    margin: 0 0 0.7rem; max-width: 100%;
    overflow-wrap: break-word; word-break: break-word;
}
.volunteer-location {
    color: var(--text-secondary); font-size: 0.92rem;
    font-weight: 500; margin: 0;
}
.volunteer-location i { color: var(--primary); margin-right: 0.3rem; }

/* Small accent divider between the details and the bio */
.volunteer-sep {
    width: 46px; height: 3px; border-radius: 2px;
    background: var(--accent);
    margin: 1rem auto 0.9rem;
}

/* Bio: left-aligned for easier reading (consistent start edge
   helps low-vision and dyslexic readers) */
.volunteer-desc {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75;
    text-align: left; margin: 0; width: 100%;
    overflow-wrap: break-word; word-break: break-word;
}

.volunteer-cta {
    text-align: center; margin-top: 2.25rem;
    color: var(--text-secondary); font-size: 1.02rem;
}
.volunteer-cta a {
    color: var(--primary); font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px;
}
.volunteer-cta a:hover,
.volunteer-cta a:focus { color: var(--primary-dark); }

/* Photo ring + banner stay clean in dark mode */
[data-theme="dark"] .volunteer-photo { box-shadow: 0 4px 14px rgba(0,0,0,0.5); }

/* ===== 15. POLICY ===== */
.policy { background: var(--bg-secondary); }
.policy-content {
    max-width: 850px; margin: 0 auto;
    background: var(--bg-primary); padding: 2rem;
    border-radius: var(--radius); border: 1px solid var(--border);
}
.policy-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--primary); }
.policy-content h3:first-child { margin-top: 0; }
.policy-content p { color: var(--text-secondary); margin-bottom: 0.8rem; }
.policy-content strong { color: var(--text-primary); }
.policy-content ul { list-style: none; margin: 0.5rem 0 1rem; }
.policy-content ul li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative; color: var(--text-secondary);
}
.policy-content ul li::before {
    content: "\25C6"; color: var(--primary);
    position: absolute; left: 0; font-size: 0.7rem; top: 0.5rem;
}

/* ===== 16. CONTACT & FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem; background: var(--bg-secondary);
    border-radius: 6px; margin-bottom: 0.8rem;
    min-height: var(--touch-min);
}
.contact-info-item .icon { font-size: 1.5rem; color: var(--primary); }
.contact-info-item strong { display: block; font-size: 0.9rem; }
.contact-info-item p { color: var(--text-secondary); margin: 0; }
.contact-info-item a { color: var(--text-primary); text-decoration: none; }
.contact-info-item a:hover { color: var(--primary); text-decoration: underline; }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; font-weight: 500; margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 0.7rem;
    border: 2px solid var(--border); border-radius: 6px;
    background: var(--bg-primary); color: var(--text-primary);
    font-family: inherit; transition: border-color 0.3s;
    font-size: 1rem; min-height: var(--touch-min);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }

/* ===== 17. FOOTER & SOCIAL ICONS ===== */
.footer { background: #0d1b2a; color: #fff; padding: 2rem 0 1rem; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2rem;
}
.footer h4 { margin-bottom: 0.75rem; color: #fff; }
.footer-logo {
    width: 72px; height: 72px; border-radius: 50%;
    background: #fff; object-fit: contain;
    display: block; margin-bottom: 0.75rem;
}
.footer p { color: rgba(255,255,255,0.8); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.4rem; }
.footer ul a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: color 0.2s; min-height: var(--touch-min);
    display: inline-block; padding: 0.2rem 0;
}
.footer ul a:hover,
.footer ul a:focus { color: #fff; }
.footer-bottom {
    text-align: center; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5); font-size: 0.875rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.social-icons { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.social-icons a {
    color: rgba(255,255,255,0.85); font-size: 1.8rem;
    transition: color 0.3s; min-height: var(--touch-min); min-width: var(--touch-min);
    display: inline-flex; align-items: center; justify-content: center;
}
.social-icons .fa-instagram:hover { color: #E4405F; }
.social-icons .fa-youtube:hover  { color: #FF0000; }
.social-icons .fa-facebook:hover { color: #1877F2; }
.social-icons .fa-linkedin:hover { color: #0A66C2; }
.social-icons .fa-whatsapp:hover { color: #25D366; }

/* ============================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablets & below: hamburger + right-side nav drawer --- */
@media (max-width: 1023.98px) {

    .nav-toggle { display: inline-flex; }

    .main-nav {
        position: fixed; top: 0; right: 0;
        height: 100vh; height: 100dvh;
        width: min(320px, 85vw);
        background: var(--bg-primary);
        flex-direction: column; align-items: stretch; gap: 0;
        padding-bottom: 2rem;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        z-index: 1600;
        overflow-y: auto;
        box-shadow: -8px 0 30px rgba(0,0,0,0.2);
    }
    .main-nav.open { transform: translateX(0); }

    .nav-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        gap: 0.5rem; padding: 0.9rem 1.25rem;
        border-bottom: 1px solid var(--border);
        font-weight: 700; color: var(--primary);
        position: sticky; top: 0; background: var(--bg-primary); z-index: 1;
    }

    .main-nav > li { width: 100%; border-bottom: 1px solid var(--border); }
    .main-nav > li:last-child { border-bottom: none; }

    .main-nav li a,
    .main-nav .dropdown-toggle {
        display: flex; width: 100%;
        padding: 0.95rem 1.25rem; border-radius: 0;
        font-size: 1rem; white-space: normal;
    }
    .main-nav .dropdown-toggle { justify-content: space-between; }
    .dropdown { width: 100%; position: static; }

    .dropdown-menu {
        position: static; display: none; width: 100%;
        box-shadow: none; border: none; border-radius: 0;
        background: var(--bg-secondary); padding: 0.25rem 0;
        min-width: 0;
    }
    .dropdown-menu.active { display: block; }
    .dropdown-menu li a { padding: 0.8rem 1.25rem 0.8rem 2rem; }

    /* Layout grids collapse */
    .hero-content,
    .about-grid,
    .contact-grid,
    .uplift-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Mobile phones (portrait) --- */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    .hero { padding: 2.25rem 0 2.75rem; }
    .hero-buttons { gap: 0.8rem; }
    .hero-buttons .btn { width: 100%; }
    .hero-image { padding: 1.5rem; }
    .hero-image .big-icon { font-size: 3.5rem; }

    .course-tabs { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .course-tab { width: 100%; text-align: center; padding: 0.7rem; }
    .course-card .btn { width: 100%; align-self: stretch; }

    .uplift-features { grid-template-columns: 1fr; }

    /* Webinar cards stack vertically on phones */
    .webinar-card { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .webinar-date { flex-direction: row; gap: 0.4rem; min-width: 0; height: auto; padding: 0.35rem 0.8rem; }
    .webinar-date .wd-day { font-size: 1.1rem; }
    .webinar-action { width: 100%; }
    .webinar-action .btn { width: 100%; }

    /* Volunteer cards adapt on phones: smaller photo + tighter padding */
    .volunteer-band { height: 74px; }
    .volunteer-photo { width: 124px; height: 124px; margin-top: -62px; }
    .volunteer-body { padding: 0.9rem 1.15rem 1.5rem; }
    .volunteer-name { font-size: 1.15rem; }

    /* Resource cards: full-width "Visit Website" button on phones */
    .resource-link { width: 100%; align-self: stretch; }
    .resource-mini-links a { flex: 1; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .social-icons { justify-content: center; }
    .footer ul a { padding: 0.4rem 0; }

    .policy-content { padding: 1.25rem; }

    /* Bigger touch targets on phones */
    .btn, .course-tab, .btn-group button, .a11y-reset { min-height: 48px; }
}

/* --- Small tablets landscape / large phones --- */
@media (max-width: 640px) {
    .vm-grid { grid-template-columns: 1fr; }
}

/* --- Very small phones --- */
@media (max-width: 480px) {
    .container { padding: 0 0.85rem; }
    .logo-text { font-size: 1.1rem; }
    .logo-img { width: 40px; height: 40px; }
    .course-card { padding: 1.1rem; }
    .pricing-options { grid-template-columns: 1fr; padding: 0.6rem; }
    .a11y-fab { width: 52px; height: 52px; left: 12px; bottom: 18px; font-size: 1.3rem; }
    .a11y-panel { width: min(300px, 92vw); }
}

/* ===== 19. REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}