/* ==========================================================================
   NGO FOUNDATION - MAIN STYLESHEET
   Separated into static/css/style.css for clean frontend architecture
   ========================================================================== */

:root {
    --ngo-primary: #0f172a;       /* Deep Slate / Dark Navy */
    --ngo-accent: #f59e0b;        /* Warm Amber / Gold */
    --ngo-accent-hover: #d97706;  /* Deep Amber */
    --ngo-secondary: #0284c7;     /* Ocean Blue */
    --ngo-light: #f8fafc;         /* Soft Cloud White */
    --ngo-dark: #1e293b;          /* Charcoal */
    --ngo-card-bg: #ffffff;
    --ngo-text-muted: #64748b;
    --ngo-border: #e2e8f0;
}

/* Keep the custom palette aligned with Bootstrap's saved color theme. */
html[data-theme="dark"] {
    --ngo-primary: #0b1220;
    --ngo-light: #0f172a;
    --ngo-dark: #e2e8f0;
    --ngo-card-bg: #1e293b;
    --ngo-text-muted: #94a3b8;
    --ngo-border: #334155;
}

/* Global Settings - Strict Horizontal Constraint prevents viewport clipping */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--ngo-light);
    color: var(--ngo-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* ========================================================================== */
/* URDU RIGHT-TO-LEFT (RTL) TYPOGRAPHY & LAYOUT ENHANCEMENTS                  */
/* Provides elegant typography and correct alignment when Urdu is selected    */
/* ========================================================================== */
html[lang="ur"], html[dir="rtl"] {
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', 'Segoe UI', Tahoma, Arial, sans-serif;
}

html[lang="ur"] body, html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Ensure proper alignment for text helper classes in RTL */
html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Adjust directional arrow icons in RTL mode */
html[dir="rtl"] .bi-arrow-right::before,
html[dir="rtl"] .bi-arrow-right-short::before {
    transform: scaleX(-1);
    display: inline-block;
}

/* Ticker Bar */
.ngo-ticker {
    background-color: var(--ngo-accent);
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Navbar */
.ngo-navbar {
    background-color: var(--ngo-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.ngo-navbar .navbar-brand {
    font-size: 1.35rem;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}

.ngo-navbar .navbar-brand span {
    color: var(--ngo-accent);
}

.ngo-navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: 0.5rem 0.55rem !important;
    white-space: nowrap !important; /* Strict single-line text - prevents multi-word wrapping */
    transition: color 0.2s ease, transform 0.2s ease;
}

.ngo-navbar .nav-link:hover,
.ngo-navbar .nav-link.active {
    color: var(--ngo-accent) !important;
}

/* Buttons */
.btn-ngo-accent {
    background-color: var(--ngo-accent);
    color: #111827;
    font-weight: 600;
    border: none;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important; /* Proper breathing room between heart icon and text */
    flex-shrink: 0 !important;
    transition: all 0.2s ease;
}

.btn-ngo-accent:hover {
    background-color: var(--ngo-accent-hover);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Ensure navbar items and action buttons strictly stay on one line */
.ngo-navbar .navbar-nav {
    flex-wrap: nowrap !important;
}

.ngo-navbar .btn {
    white-space: nowrap !important;
    text-wrap: nowrap !important;
}

/* Custom Dropdown Styling for Public Navigation Bar */
.ngo-navbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 42, 67, 0.16);
    padding: 0.5rem;
    margin-top: 0.4rem;
    min-width: 220px;
}

.ngo-navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.15s ease;
}

.ngo-navbar .dropdown-item:hover {
    background-color: rgba(245, 158, 11, 0.12);
    color: #b45309;
    transform: translateX(3px);
}

@media (min-width: 992px) and (max-width: 1280px) {
    .ngo-navbar .nav-link {
        padding: 0.45rem 0.38rem !important;
        font-size: 0.88rem !important;
    }
    .ngo-navbar .btn-ngo-accent {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
}

/* Hero Section */
.ngo-hero {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)),
                url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 0;
}

.pillars-hero {
    background:
        radial-gradient(ellipse at 85% 20%, rgba(8, 126, 139, 0.48), transparent 35%),
        linear-gradient(125deg, #102a43, #173f5f 70%, #087e8b);
}

.ngo-hero h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ngo-hero p.lead {
    color: #e2e8f0;
    max-width: 750px;
    margin: 0 auto;
}

/* Interactive Action Cards */
.ngo-card {
    background: var(--ngo-card-bg);
    border: 1px solid var(--ngo-border);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .pillar-card,
html[data-theme="dark"] .ngo-card {
    background-color: var(--ngo-card-bg);
    color: var(--ngo-dark);
    border-color: var(--ngo-border);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #0f172a;
    color: var(--ngo-dark);
    border-color: var(--ngo-border);
}

html[data-theme="dark"] .form-control::placeholder {
    color: var(--ngo-text-muted);
}

.ngo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--ngo-accent);
}

.ngo-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--ngo-accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

/* Goal / Pillar Card */
.pillar-card {
    border-left: 4px solid var(--ngo-accent);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* Flash Messages */
.alert-dismissible {
    border-radius: 8px;
    font-weight: 500;
}

/* Forms */
.form-control:focus {
    border-color: var(--ngo-accent);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}

/* Footer */
.ngo-footer {
    background-color: var(--ngo-primary);
    color: #94a3b8;
    margin-top: auto;
}

.ngo-footer h5 {
    color: #ffffff;
    font-weight: 600;
}

.ngo-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Quick Select Buttons for Donation Amount */
.donation-amount-btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.donation-amount-btn:hover,
.donation-amount-btn.active {
    background-color: var(--ngo-accent) !important;
    border-color: var(--ngo-accent) !important;
    color: #111827 !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

/* Keep the public site polished and usable without any remote asset requests. */
:root {
    --ngo-primary: #102a43;
    --ngo-accent: #f2a900;
    --ngo-accent-hover: #d89000;
    --ngo-secondary: #087e8b;
    --ngo-light: #f4f7fb;
    --ngo-dark: #243b53;
    --ngo-card-bg: #ffffff;
    --ngo-text-muted: #627d98;
    --ngo-border: #d9e2ec;
    --ngo-shadow: 0 16px 40px rgba(16, 42, 67, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background: var(--ngo-light);
    color: var(--ngo-dark);
    line-height: 1.65;
}

a {
    color: #087e8b;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #075e67;
}

.ngo-ticker {
    background: #f2a900;
    font-size: 0.82rem;
}

.ngo-navbar {
    z-index: 1030;
    padding-block: 0.65rem;
    background: #102a43 !important;
}

.ngo-navbar .navbar-brand {
    font-size: 1.2rem;
    white-space: nowrap;
}

.ngo-navbar .navbar-nav {
    gap: 0.12rem;
    flex-wrap: nowrap; /* Ensures all navigation links stay strictly on one line */
}

.ngo-navbar .nav-link {
    padding: 0.5rem 0.55rem !important;
    font-size: 0.92rem;
    white-space: nowrap !important; /* Strict single-line text - prevents multi-word wrapping */
}

@media (min-width: 1200px) {
    .ngo-navbar .nav-link {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.94rem;
    }
}

@media (min-width: 1400px) {
    .ngo-navbar .nav-link {
        padding: 0.5rem 0.78rem !important;
        font-size: 0.96rem;
    }
}

.ngo-navbar .nav-link.active {
    color: #ffd166 !important;
}

.ngo-navbar .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
}

.ngo-hero {
    min-height: 480px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 82% 18%, rgba(8, 126, 139, 0.55), transparent 34%),
        radial-gradient(ellipse at 10% 100%, rgba(242, 169, 0, 0.2), transparent 34%),
        linear-gradient(125deg, #102a43 4%, #173f5f 62%, #087e8b 140%);
}

.ngo-hero .container {
    max-width: 960px;
}

.ngo-hero h1 {
    max-width: 800px;
    margin-inline: auto;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.ngo-hero p.lead {
    max-width: 680px;
    color: #e7f0f7;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.btn {
    border-radius: 0.65rem;
    font-weight: 650;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-ngo-accent {
    background: #f2a900;
    color: #172b3a;
}

.btn-ngo-accent:hover,
.btn-ngo-accent:focus {
    background: #ffd166;
    color: #172b3a;
}

.ngo-card,
.pillar-card,
.card {
    border: 1px solid var(--ngo-border);
    border-radius: 1rem;
    background: var(--ngo-card-bg);
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.045);
}

.ngo-card {
    position: relative;
    padding: 1.5rem !important;
}

.ngo-card:hover,
.pillar-card:hover {
    border-color: rgba(8, 126, 139, 0.45);
    box-shadow: var(--ngo-shadow);
    transform: translateY(-3px);
}

.ngo-card:focus-within,
.pillar-card:focus-within {
    outline: 3px solid rgba(8, 126, 139, 0.3);
    outline-offset: 3px;
}

.ngo-card-icon {
    margin-inline: 0;
    background: #e7f4f3;
    color: #087e8b;
}

.pillar-card {
    border-left: 4px solid var(--ngo-accent);
    padding: 1.5rem !important;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #bcccdc;
    border-radius: 0.55rem;
}

textarea.form-control {
    min-height: 7rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #087e8b;
    box-shadow: 0 0 0 0.2rem rgba(8, 126, 139, 0.16);
}

.ngo-footer {
    margin-top: 0;
    background: #102a43;
}

.ngo-footer a {
    display: inline-block;
    padding-block: 0.12rem;
}

/* Compact list item spacing for streamlined footer columns */
.ngo-footer .list-unstyled {
    padding-left: 0;
}

.ngo-footer .list-unstyled li {
    margin-bottom: 0.25rem !important;
}

.alert {
    border-radius: 0.75rem;
}

.dropdown-menu {
    border: 1px solid var(--ngo-border);
    border-radius: 0.75rem;
    box-shadow: var(--ngo-shadow);
}

.dropdown-item {
    padding: 0.55rem 0.9rem;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ngo-primary: #0b1828;
    --ngo-light: #101d2d;
    --ngo-dark: #e2e8f0;
    --ngo-card-bg: #182a3d;
    --ngo-text-muted: #a9bacb;
    --ngo-border: #334a60;
    --ngo-secondary: #55c2c9;
}

/* ==========================================================================
   ENTERPRISE DARK THEME: GLOBAL COLOR & CONTRAST ACCESSIBILITY FIXES
   Ensures 100% WCAG AAA contrast ratio for all text, headings, muted/secondary
   labels, buttons, tables, badges, and modals when dark mode is enabled.
   All rules include clear descriptive English comments.
   ========================================================================== */

html[data-theme="dark"] body,
html[data-theme="dark"] .bg-light {
    background-color: var(--ngo-light) !important;
    color: var(--ngo-dark) !important;
}

/* Background White Adaptation: Ensures cards and containers with .bg-white adapt seamlessly in Dark Theme */
html[data-theme="dark"] .bg-white {
    background-color: #112338 !important;
    color: #e2e8f0 !important;
}

/* Card Headers & Containers: Replaces stark white headers with unified dark slate matching the card body */
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-header.bg-white,
html[data-theme="dark"] .card-header.bg-light {
    background-color: #112338 !important;
    border-bottom: 1px solid #1e3a5f !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .card-header h1,
html[data-theme="dark"] .card-header h2,
html[data-theme="dark"] .card-header h3,
html[data-theme="dark"] .card-header h4,
html[data-theme="dark"] .card-header h5,
html[data-theme="dark"] .card-header h6,
html[data-theme="dark"] .card-header .text-dark,
html[data-theme="dark"] .card-header.bg-white h1,
html[data-theme="dark"] .card-header.bg-white h2,
html[data-theme="dark"] .card-header.bg-white h3,
html[data-theme="dark"] .card-header.bg-white h4,
html[data-theme="dark"] .card-header.bg-white h5,
html[data-theme="dark"] .card-header.bg-white h6,
html[data-theme="dark"] .card-header.bg-white .text-dark {
    color: #ffffff !important;
}

html[data-theme="dark"] .card-header p,
html[data-theme="dark"] .card-header .text-muted,
html[data-theme="dark"] .card-header.bg-white p,
html[data-theme="dark"] .card-header.bg-white .text-muted {
    color: #94a3b8 !important;
}

/* Admin Portal Viewport: Dedicated card, header, and panel adaptations */
html[data-theme="dark"] .admin-portal-viewport .card,
html[data-theme="dark"] .admin-portal-viewport .admin-content-card,
html[data-theme="dark"] .admin-portal-viewport .admin-stat-card {
    background-color: #112338 !important;
    border: 1px solid #1e3a5f !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .admin-portal-viewport .card-header {
    background-color: #112338 !important;
    border-bottom: 1px solid #1e3a5f !important;
}

html[data-theme="dark"] .admin-portal-viewport .card-body {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .admin-portal-viewport .p-3.border.bg-light,
html[data-theme="dark"] .admin-portal-viewport .p-4.border.bg-light,
html[data-theme="dark"] .admin-portal-viewport .border.rounded-4.bg-light,
html[data-theme="dark"] .admin-portal-viewport div.bg-light {
    background-color: #0d1b2e !important;
    border-color: #1e3a5f !important;
}

/* Form Controls, Dropdowns & Input Addons in Dark Theme */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #0b1727 !important;
    color: #f1f5f9 !important;
    border-color: #1e3a5f !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: #0d1e33 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] .form-select option {
    background-color: #112338 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .input-group-text.bg-light,
html[data-theme="dark"] .input-group-text.bg-white {
    background-color: #0b1727 !important;
    color: #94a3b8 !important;
    border-color: #1e3a5f !important;
}

/* Table Headers in Dark Theme */
html[data-theme="dark"] .table thead,
html[data-theme="dark"] .table thead.bg-light,
html[data-theme="dark"] .table thead th {
    background-color: #0d1b2e !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid #1e3a5f !important;
}

/* Alert Boxes in Dark Theme */
html[data-theme="dark"] .alert-info {
    background-color: rgba(14, 165, 233, 0.12) !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .alert-info .text-dark,
html[data-theme="dark"] .alert-info strong {
    color: #38bdf8 !important;
}

/* Modal Content & Footers in Dark Theme */
html[data-theme="dark"] .modal-body.bg-white,
html[data-theme="dark"] .modal-body.bg-light {
    background-color: #112338 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .modal-footer.bg-light,
html[data-theme="dark"] .modal-footer.bg-white {
    background-color: #0b1727 !important;
    border-top: 1px solid #1e3a5f !important;
}

/* Primary text in dark mode: High-contrast soft white/slate (#e2e8f0) */
html[data-theme="dark"] .text-dark {
    color: var(--ngo-dark) !important;
}

/* Secondary labels: Upgrades Bootstrap's default dark #6c757d to bright Slate-300 #94a3b8 */
html[data-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

/* Muted helper text: Soft silver #a9bacb with optimal readability */
html[data-theme="dark"] .text-muted {
    color: var(--ngo-text-muted) !important;
}

/* Crisp headings across cards and overview sections */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3,
html[data-theme="dark"] .h4,
html[data-theme="dark"] .h5,
html[data-theme="dark"] .h6 {
    color: #f1f5f9 !important;
}

/* High-contrast border lines */
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top {
    border-color: var(--ngo-border) !important;
}

/* Global Navbar and Footer dark styling */
html[data-theme="dark"] .ngo-navbar,
html[data-theme="dark"] .ngo-footer {
    background: #0b1828 !important;
}

/* Dropdown menus & items in dark mode */
html[data-theme="dark"] .dropdown-menu {
    background: #182a3d;
    border-color: var(--ngo-border);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--ngo-dark);
}

html[data-theme="dark"] .dropdown-item:hover {
    background: #243b53;
}

/* ==========================================================================
   BUTTONS IN DARK MODE: FIXES INVISIBLE OUTLINE & DARK BUTTONS
   In Bootstrap, .btn-outline-dark defaults to black text/border which is
   invisible on dark navy surfaces. These rules make outline buttons crisp,
   readable with a luminous slate outline and golden amber hover response.
   ========================================================================== */

/* Outline Dark Buttons (e.g. Quick Operational Actions, Review buttons, Header links) */
html[data-theme="dark"] .btn-outline-dark {
    color: #e2e8f0 !important;
    border-color: #3b506b !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .btn-outline-dark:hover,
html[data-theme="dark"] .btn-outline-dark:focus,
html[data-theme="dark"] .btn-outline-dark:active {
    color: #ffffff !important;
    border-color: #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.2) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

/* Secondary outline buttons */
html[data-theme="dark"] .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: #334e68 !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .btn-outline-secondary:hover {
    color: #ffffff !important;
    border-color: #64748b !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Solid dark buttons in dark mode (filter buttons, submit buttons) */
html[data-theme="dark"] .btn-dark {
    background-color: #1e3a5f !important;
    border-color: #2e5382 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-dark:hover {
    background-color: #2b5182 !important;
    border-color: #3d6ca5 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   BADGES & PILLS IN DARK MODE
   Ensures text on warning/info badges remains dark for readability,
   and light/white badges blend smoothly into the dark interface.
   ========================================================================== */

/* Warning/Gold badges: enforce dark navy text (#0f172a) for crystal-clear readability */
html[data-theme="dark"] .badge.bg-warning,
html[data-theme="dark"] .badge.bg-warning.text-dark,
html[data-theme="dark"] .badge.bg-warning * {
    color: #0f172a !important;
}

/* Cyan/Info badges: enforce dark navy text */
html[data-theme="dark"] .badge.bg-info,
html[data-theme="dark"] .badge.bg-info.text-dark,
html[data-theme="dark"] .badge.bg-info * {
    color: #0f172a !important;
}

/* Light & White pill badges (e.g. Live Telemetry, Today Date pill, Metric badges) */
html[data-theme="dark"] .badge.bg-light,
html[data-theme="dark"] .badge.bg-white {
    background-color: #142742 !important;
    color: #cbd5e1 !important;
    border-color: #1e3a5f !important;
}

html[data-theme="dark"] .badge.bg-light.text-secondary,
html[data-theme="dark"] .badge.bg-white.text-secondary {
    color: #94a3b8 !important;
}

/* ==========================================================================
   TABLES IN DARK MODE: PENDING APPLICATIONS & MANAGEMENT QUEUES
   Provides full cell transparency, soft white row text, and clean borders.
   ========================================================================== */

html[data-theme="dark"] .table {
    --bs-table-color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-border-color: #1e3a5f;
    --bs-table-hover-color: #ffffff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    color: #e2e8f0 !important;
    border-color: #1e3a5f !important;
}

html[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-bottom-color: #1e3a5f !important;
}

html[data-theme="dark"] .table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .table td .fw-bold {
    color: #ffffff !important;
}

/* ==========================================================================
   DYNAMIC MODALS IN DARK MODE
   High-depth dark modal dialogs, seamless header/footer borders, and
   clearly legible form controls and certificate generators.
   ========================================================================== */

html[data-theme="dark"] .modal-content {
    background-color: #112338 !important;
    color: #e2e8f0 !important;
    border: 1px solid #1e3a5f !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .modal-header {
    border-bottom: 1px solid #1e3a5f !important;
}

html[data-theme="dark"] .modal-footer {
    background-color: #0b1727 !important;
    border-top: 1px solid #1e3a5f !important;
}

html[data-theme="dark"] .modal-body {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .modal-body .card.bg-light {
    background-color: #162a42 !important;
    border-color: #243b53 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .modal-body .card.bg-light .form-label,
html[data-theme="dark"] .modal-body .card.bg-light h6 {
    color: #cbd5e1 !important;
}

/* Live Certificate Preview container in dark theme */
html[data-theme="dark"] #liveCertContainer {
    background-color: #0f1d2e !important;
    border-color: #3b82f6 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] #liveCertContainer h3,
html[data-theme="dark"] #liveCertContainer .text-dark {
    color: #ffffff !important;
}

html[data-theme="dark"] #liveCertContainer .text-secondary {
    color: #94a3b8 !important;
}

@media (max-width: 991.98px) {
    .ngo-navbar .navbar-collapse {
        padding: 0.75rem 0 0.3rem;
    }

    .ngo-navbar .navbar-nav {
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    .ngo-navbar .nav-link {
        padding-inline: 0.75rem !important;
    }

    .ngo-navbar .navbar-nav .btn {
        margin: 0.25rem 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .ngo-hero {
        min-height: 440px;
    }

    .ngo-hero .container {
        padding-inline: 1.25rem;
    }

    .ngo-hero .btn {
        width: 100%;
    }

    .container {
        --bs-gutter-x: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   ADMIN DASHBOARD CUSTOM CAPSULE THEME SWITCH (Matches User Reference Image)
   ========================================================================== */

.admin-topbar {
    background-color: var(--ngo-card-bg);
    border: 1px solid var(--ngo-border) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] .admin-topbar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .admin-topbar .btn-light {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

/* Custom Theme Capsule Switch */
.theme-pill-switch {
    width: 60px;
    height: 32px;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Light Mode: Soft sky blue capsule track, vibrant blue thumb with golden sun */
.theme-pill-switch.light {
    background-color: #dbeafe;
    border: 1.5px solid #60a5fa;
}

.theme-pill-switch.light .theme-pill-thumb {
    transform: translateX(30px);
    background-color: #0284c7;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.45);
}

.theme-pill-switch.light .theme-sun-icon {
    color: #fbbf24;
    font-size: 13px;
    display: inline-block;
}

.theme-pill-switch.light .theme-moon-icon {
    display: none !important;
}

/* Dark Mode: Charcoal slate capsule track, dark thumb with cyan moon */
.theme-pill-switch.dark {
    background-color: #1e293b;
    border: 1.5px solid #475569;
}

.theme-pill-switch.dark .theme-pill-thumb {
    transform: translateX(4px);
    background-color: #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.theme-pill-switch.dark .theme-sun-icon {
    display: none !important;
}

.theme-pill-switch.dark .theme-moon-icon {
    color: #38bdf8;
    font-size: 12px;
    display: inline-block !important;
}

/* Capsule Thumb */
.theme-pill-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* Floating Notification Toast Card (Matching Reference Image) */
.admin-theme-toast {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 18px;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

html[data-theme="dark"] .admin-theme-toast {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.admin-theme-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.theme-toast-info-icon {
    font-size: 18px;
    color: #0f172a;
    display: flex;
    align-items: center;
}

html[data-theme="dark"] .theme-toast-info-icon {
    color: #93c5fd;
}

.theme-toast-text {
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.theme-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0 0 0 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.theme-toast-close:hover {
    color: #0f172a;
}

html[data-theme="dark"] .theme-toast-close:hover {
    color: #ffffff;
}

/* ==========================================================================
   ENTERPRISE NGO ADMIN SIDEBAR & PORTAL LAYOUT
   Accurately replicates the user's reference dark sidebar interface with
   badges, expandable submenus, search field (Ctrl+/), and user status footer.
   ========================================================================== */

.admin-portal-layout {
    display: flex;
    width: 100%;
    /* Full viewport height eliminating any top gap */
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    /* NGO Foundation royal deep navy gradient for a prestigious, cohesive look */
    background: linear-gradient(180deg, #0d2035 0%, #081524 100%);
    color: #94a3b8;
    flex-shrink: 0;
    position: sticky;
    /* Flush with the very top of the window - zero gap */
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #16324f;
    z-index: 1020;
    /* Smooth sliding transitions for desktop collapse and mobile drawer toggle */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-header {
    border-bottom: 1px solid #16324f;
    background-color: transparent;
}

.admin-search-group {
    background-color: #122840;
    border: 1px solid #1d3d5d;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-search-group:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.admin-search-icon {
    background: transparent !important;
    border: none !important;
    color: #64748b;
    padding-left: 0.85rem;
}

.admin-search-input {
    background: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem 0.5rem 0.25rem;
}

.admin-search-input::placeholder {
    color: #627d98;
}

.admin-search-input:focus {
    box-shadow: none !important;
    color: #ffffff !important;
}

.admin-sidebar-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem 0 1rem 0;
}

.admin-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar-scroll::-webkit-scrollbar-track {
    background: #081524;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #1d3d5d;
    border-radius: 4px;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #2b5580;
}

.admin-nav-section {
    margin-bottom: 0.75rem;
}

.admin-nav-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #627d98;
    padding: 0.85rem 1.15rem 0.35rem 1.15rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    margin: 0.15rem 0.65rem;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-left 0.2s ease;
    border-left: 3.5px solid transparent;
}

.admin-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(3px);
}

.admin-nav-item.active {
    /* Brand Navy gradient with Golden Amber indicator matching the NGO brand identity */
    background: linear-gradient(90deg, rgba(8, 126, 139, 0.28) 0%, rgba(16, 42, 67, 0.8) 100%);
    color: #ffffff;
    font-weight: 600;
    border-left: 3.5px solid #f59e0b;
}

.admin-nav-item.active .admin-nav-icon {
    color: #f59e0b !important;
}

.admin-nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    font-size: 1.05rem;
    color: #7dd3fc;
    transition: color 0.15s ease;
}

.admin-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #087e8b;
    color: #ffffff !important;
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    background-color: #142f4c;
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0 0.45rem;
    line-height: 1;
    border: 1px solid #1d3d5d;
}

.admin-badge-purple {
    background-color: #2e1c4a;
    color: #c084fc;
    border: 1px solid #4c2875;
}

.admin-badge-lock {
    background-color: #3c151c;
    color: #fca5a5;
    border: 1px solid #6c202a;
    padding: 0.2rem 0.45rem;
}

.admin-chevron {
    font-size: 0.72rem;
    color: #627d98;
    transition: transform 0.2s ease;
}

.admin-nav-item:hover .admin-chevron {
    color: #cbd5e1;
    transform: translateX(2px);
}

.admin-chevron-toggle {
    font-size: 0.72rem;
    color: #627d98;
    transition: transform 0.2s ease;
}

.admin-submenu-toggle[aria-expanded="true"] .admin-chevron-toggle {
    transform: rotate(180deg);
}

.admin-submenu {
    padding-left: 1rem;
    margin-top: 0.15rem;
}

.admin-subnav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.52rem 0.85rem;
    margin: 0.12rem 0.5rem;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.84rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-subnav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.admin-subnav-dot {
    color: #38bdf8;
    font-size: 1.25rem;
    line-height: 1;
    margin-right: 0.2rem;
}

/* Sidebar Profile Footer Card */
.admin-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #16324f;
    background-color: #0a192a;
    margin-top: auto;
}

.admin-profile-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.25rem;
}

.admin-profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.admin-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    /* Royal Navy & Teal gradient with Golden Amber border */
    background: linear-gradient(135deg, #087e8b, #102a43);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid #f59e0b;
}

.admin-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #10b981;
    border: 2px solid #0a192a;
    box-shadow: 0 0 6px #10b981;
}

.admin-profile-meta {
    min-width: 0;
}

.admin-profile-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-role {
    font-size: 0.78rem;
    color: #627d98;
}

.admin-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem;
    border-radius: 8px;
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-logout-btn:hover {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

/* Main Content Area & Background Canvas */
.admin-portal-viewport {
    flex-grow: 1;
    min-width: 0;
    padding: 1.5rem 2rem 3rem 2rem;
    /* Crisp modern executive slate canvas providing rich card contrast */
    background-color: #f1f5f9;
}

html[data-theme="dark"] .admin-portal-viewport {
    background-color: #0b1324 !important;
}

/* Responsive mobile view */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    }

    .admin-sidebar.show-mobile-sidebar {
        transform: translateX(0);
    }

    .admin-portal-viewport {
        padding: 1rem;
    }
}

/* ==========================================================================
   DEDICATED FULL-SCREEN ENTERPRISE ADMIN APP STYLING
   Hides public website navbar, ticker & footer when admin portal is active,
   producing a modern, full-screen standalone application layout.
   ========================================================================== */

body.admin-portal-active .ngo-ticker,
body.admin-portal-active .ngo-navbar,
body.admin-portal-active .ngo-footer,
body.admin-portal-active > .container.mt-3,
body.admin-portal-active .base-flash-container {
    display: none !important;
}

body.admin-portal-active main {
    padding: 0 !important;
    margin: 0 !important;
}

body.admin-portal-active {
    /* Crisp modern executive slate canvas */
    background-color: #f1f5f9;
    overflow-x: hidden;
}

html[data-theme="dark"] body.admin-portal-active {
    background-color: #0b1324;
}

/* Sidebar Collapsible Behavior: Smooth sliding transition on desktop */
.admin-portal-layout.sidebar-collapsed .admin-sidebar {
    margin-left: -280px !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border: none !important;
}

@media (max-width: 991.98px) {
    .admin-portal-layout.sidebar-collapsed .admin-sidebar {
        margin-left: 0 !important;
    }
}

/* Sidebar Brand Header with Trust Seal */
.admin-brand-header {
    border-bottom: 1px solid #16324f;
    background-color: #0d2035;
}

.admin-brand-logo-seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* Warm golden amber radial gradient for high-trust authority */
    background: radial-gradient(circle, #f59e0b 20%, #b45309 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.admin-seal-circle {
    color: #ffffff;
    font-size: 1.25rem;
}

.admin-brand-title {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.admin-brand-subtitle {
    font-size: 0.68rem;
    color: #94a3b8;
    display: block;
    line-height: 1.2;
}

/* Topbar Breadcrumb & Header Styling */
.admin-topbar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.04);
}

html[data-theme="dark"] .admin-topbar {
    background: #112338 !important;
    border-color: #1e3a5f !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.admin-topbar h4 {
    color: #102a43 !important;
}

html[data-theme="dark"] .admin-topbar h4 {
    color: #f1f5f9 !important;
}

/* Topbar Global Command Palette Pill Container */
.admin-topbar-search {
    background-color: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px !important;
    padding: 0.15rem 0.45rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden !important;
    position: relative;
    width: 100%;
}

html[data-theme="dark"] .admin-topbar-search {
    background-color: #0b1523 !important;
    border-color: #1e3a5f !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.admin-topbar-search:focus-within {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22) !important;
    background-color: #ffffff !important;
}

html[data-theme="dark"] .admin-topbar-search:focus-within {
    background-color: #0d1e34 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

.admin-topbar-search .form-control,
.admin-topbar-search input {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #102a43 !important;
    font-size: 0.88rem;
    border-radius: 0 !important;
    padding: 0.35rem 0.6rem !important;
    width: 100%;
}

html[data-theme="dark"] .admin-topbar-search .form-control,
html[data-theme="dark"] .admin-topbar-search input {
    color: #f1f5f9 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.admin-topbar-search .form-control::placeholder,
.admin-topbar-search input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.85rem;
}

.admin-topbar-search-icon,
.admin-topbar-search .input-group-text {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    padding: 0 0.25rem 0 0.5rem;
    display: flex;
    align-items: center;
}

.admin-topbar-search #adminGlobalSearchClearBtn {
    color: #94a3b8 !important;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1;
}

.admin-topbar-search #adminGlobalSearchClearBtn:hover {
    color: #ef4444 !important;
}

/* ==========================================================================
   GLOBAL TOPBAR LIVE SEARCH DROPDOWN (COMMAND PALETTE)
   Replicates the reference demo screenshot (media_1793858771581.png):
   - Categorized results (MEMBERS, SUPPORT, EVENTS, MEDIA, CONTENT, etc.)
   - Highlighted matching search characters with purple badge glow
   - Smooth hover micro-interactions, custom scrollbar & modal/page trigger
   - Complete Light & Dark mode support
   ========================================================================== */

.admin-topbar-search-wrapper {
    position: relative;
}

.admin-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: 92vw;
    max-height: 440px;
    overflow-y: auto;
    background: #112338;
    border: 1px solid #1e3a5f;
    border-radius: 16px;
    padding: 0.6rem 0.5rem 0.8rem 0.5rem;
    z-index: 1060;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: searchDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .admin-search-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 45px rgba(16, 42, 67, 0.15);
}

@keyframes searchDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom scrollbar for search dropdown */
.admin-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.admin-search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.admin-search-dropdown::-webkit-scrollbar-thumb {
    background: #234567;
    border-radius: 6px;
}

html[data-theme="light"] .admin-search-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

/* Category Section Header */
.admin-search-cat-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
}

html[data-theme="light"] .admin-search-cat-title {
    color: #94a3b8;
}

/* Individual Result Item */
.admin-search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    margin: 0.15rem 0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.admin-search-result-item:hover,
.admin-search-result-item.is-selected {
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

html[data-theme="light"] .admin-search-result-item:hover,
html[data-theme="light"] .admin-search-result-item.is-selected {
    background-color: #f1f5f9;
}

/* Result Item Left Group */
.admin-search-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Result Icon Container with Categorized Colors */
.admin-search-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background-color: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.admin-search-item-icon.icon-members {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.admin-search-item-icon.icon-support {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.admin-search-item-icon.icon-events {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.admin-search-item-icon.icon-media {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.admin-search-item-icon.icon-content {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.admin-search-item-icon.icon-donations {
    background-color: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

/* Result Item Text Meta */
.admin-search-item-meta {
    min-width: 0;
}

.admin-search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="light"] .admin-search-item-title {
    color: #0f172a;
}

.admin-search-item-cat {
    font-size: 0.72rem;
    color: #94a3b8;
    display: block;
    margin-top: 1px;
}

/* Result Item Chevron Arrow */
.admin-search-item-arrow {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.admin-search-result-item:hover .admin-search-item-arrow {
    color: #cbd5e1;
    transform: translateX(2px);
}

/* Matching Query Character Highlight (Matches purple badge in screenshot) */
.admin-search-match {
    background: rgba(168, 85, 247, 0.28);
    color: #c084fc !important;
    font-weight: 700;
    border-radius: 3px;
    padding: 0 2px;
}

html[data-theme="light"] .admin-search-match {
    background: rgba(168, 85, 247, 0.18);
    color: #7e22ce !important;
}

/* Empty Search State */
.admin-search-empty {
    padding: 2rem 1.5rem;
    text-align: center;
}

.admin-search-empty-icon {
    font-size: 2rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.admin-search-empty-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

html[data-theme="light"] .admin-search-empty-text {
    color: #475569;
}

.admin-search-empty-hint {
    font-size: 0.75rem;
    color: #64748b;
}

/* ==========================================================================
   INTERACTIVE ANIMATED HAMBURGER MENU BUTTON (THREE LINES)
   Provides an ultra-smooth, tactile micro-interaction when clicked:
   - Three Animated Lines: Morph smoothly between 3 horizontal bars and an
     executive 'X' (cross) with spring cubic-bezier timing.
   - Ripple Wave: Instant subtle golden-amber ripple pulse on click.
   - Theme Adaptability: Automatically themes in light and dark mode.
   ========================================================================== */

.admin-hamburger-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    position: relative;
    outline: none;
    box-shadow: 0 2px 5px rgba(16, 42, 67, 0.05);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

html[data-theme="dark"] .admin-hamburger-btn {
    background-color: #112338;
    border-color: #1e3a5f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* Hover and active press effects */
.admin-hamburger-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
}

html[data-theme="dark"] .admin-hamburger-btn:hover {
    background-color: #172e4a;
    border-color: #2b5580;
}

.admin-hamburger-btn:active {
    transform: scale(0.92);
}

/* Tactile Ripple Wave Feedback on Click */
.admin-hamburger-btn::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.35s ease;
}

.admin-hamburger-btn:active::after {
    opacity: 0.85;
    transform: scale(1.18);
    transition: 0s;
}

/* Individual Horizontal Line Styling (The Three Lines) */
.admin-hamburger-btn .hamburger-bar {
    display: block;
    width: 20px;
    height: 2.4px;
    background-color: #102a43;
    border-radius: 4px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6), 
                opacity 0.25s ease, 
                background-color 0.25s ease;
}

html[data-theme="dark"] .admin-hamburger-btn .hamburger-bar {
    background-color: #f1f5f9;
}

.admin-hamburger-btn:hover .hamburger-bar {
    background-color: #f59e0b; /* Amber brand accent glow on hover */
}

/* --------------------------------------------------------------------------
   ACTIVE / TOGGLED ANIMATION STATE: Morphs 3 lines into an animated 'X' cross
   -------------------------------------------------------------------------- */
.admin-hamburger-btn.is-active .hamburger-bar.bar-1 {
    transform: translateY(6.9px) rotate(45deg);
    background-color: #f59e0b;
}

.admin-hamburger-btn.is-active .hamburger-bar.bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

.admin-hamburger-btn.is-active .hamburger-bar.bar-3 {
    transform: translateY(-6.9px) rotate(-45deg);
    background-color: #f59e0b;
}

/* Greeting Banner & Waving Hand Animation */
.admin-greeting-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    letter-spacing: -0.02em;
    color: #102a43;
}

html[data-theme="dark"] .admin-greeting-title {
    color: #f1f5f9;
}

.wave-hand {
    display: inline-block;
    animation: waveHand 2.4s infinite;
    transform-origin: 70% 70%;
}

@keyframes waveHand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* ==========================================================================
   10 PROFESSIONAL BRANDED METRIC CARDS & HOVER ANIMATIONS
   Top colored border accents matching NGO Foundation identity, pastel icon boxes,
   deep royal navy metric values, and smooth 3D lift hover effects.
   ========================================================================== */

.admin-metric-card {
    display: block;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    background: #ffffff;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
}

html[data-theme="dark"] .admin-metric-card {
    background: #112338;
    border-color: #1e3a5f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    color: inherit;
}

.admin-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -4px rgba(16, 42, 67, 0.12) !important;
    border-color: #cbd5e1;
    color: inherit;
}

html[data-theme="dark"] .admin-metric-card:hover {
    box-shadow: 0 16px 30px -4px rgba(0, 0, 0, 0.4) !important;
    border-color: #334e68;
    color: inherit;
}

/* Tactile press response when clicking cards */
.admin-metric-card:active {
    transform: scale(0.97) translateY(-2px) !important;
}

/* 10 Executive Top Accent Lines matching NGO brand identity */
.admin-metric-card.accent-navy,
.admin-metric-card.accent-blue { border-top: 4px solid #1d4ed8 !important; }

.admin-metric-card.accent-emerald,
.admin-metric-card.accent-green { border-top: 4px solid #059669 !important; }

.admin-metric-card.accent-teal { border-top: 4px solid #087e8b !important; }

.admin-metric-card.accent-purple,
.admin-metric-card.accent-indigo { border-top: 4px solid #4f46e5 !important; }

.admin-metric-card.accent-gold,
.admin-metric-card.accent-amber { border-top: 4px solid #f59e0b !important; }

.admin-metric-card.accent-crimson,
.admin-metric-card.accent-rose { border-top: 4px solid #e11d48 !important; }

.admin-metric-card.accent-cyan { border-top: 4px solid #0284c7 !important; }

.admin-metric-card.accent-forest { border-top: 4px solid #047857 !important; }

.admin-metric-card.accent-bronze { border-top: 4px solid #b45309 !important; }

.admin-metric-card.accent-petrol { border-top: 4px solid #0f766e !important; }

.admin-metric-card.accent-pink { border-top: 4px solid #db2777 !important; }

/* Radiant Executive Icon Badges */
.admin-metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-metric-card:hover .admin-metric-icon {
    transform: scale(1.12);
}

/* Radiant High-Contrast Gradient Badges with Matching Glow */
.bg-navy-subtle {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.bg-emerald-subtle {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.bg-teal-subtle {
    background: linear-gradient(135deg, #087e8b 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(8, 126, 139, 0.35) !important;
}

.bg-gold-subtle {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.bg-crimson-subtle {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}

.bg-cyan-subtle {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.bg-forest-subtle {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35) !important;
}

.bg-indigo-subtle {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

.bg-bronze-subtle {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35) !important;
}

.bg-petrol-subtle {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35) !important;
}

/* Backward-compatibility aliases */
.bg-blue-subtle {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
.bg-green-subtle {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
.bg-purple-subtle {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}
.text-purple { color: #6366f1 !important; }
.bg-amber-subtle {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}
.bg-rose-subtle {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}
.bg-pink-subtle {
    background: linear-gradient(135deg, #db2777 0%, #f472b6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.35) !important;
}
.text-pink { color: #db2777 !important; }

/* Dark mode adjustments: maintain glow and crisp contrast */
html[data-theme="dark"] .bg-navy-subtle,
html[data-theme="dark"] .bg-emerald-subtle,
html[data-theme="dark"] .bg-teal-subtle,
html[data-theme="dark"] .bg-gold-subtle,
html[data-theme="dark"] .bg-crimson-subtle,
html[data-theme="dark"] .bg-cyan-subtle,
html[data-theme="dark"] .bg-forest-subtle,
html[data-theme="dark"] .bg-indigo-subtle,
html[data-theme="dark"] .bg-bronze-subtle,
html[data-theme="dark"] .bg-petrol-subtle {
    color: #ffffff !important;
}

/* High-Contrast Executive Typography */
.metric-value {
    font-size: 1.95rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #0f172a; /* Deep Slate Navy for punchy readability */
}

html[data-theme="dark"] .metric-value {
    color: #f8fafc;
}

/* ==========================================================================
   MONTHLY DONATIONS BAR CHART & ANIMATIONS
   Branded with NGO Teal-to-Navy gradient and Golden Amber hover effect.
   ========================================================================== */

.admin-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.04);
}

html[data-theme="dark"] .admin-content-card {
    background: #112338;
    border-color: #1e3a5f;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   MONTHLY DONATIONS BAR CHART: CALIBRATED Y-AXIS & GRIDLINES
   Provides mathematical accuracy, Y-axis scale, dashed gridlines, and single
   custom tooltip with downward pointer, eliminating browser native tooltip clashes.
   ========================================================================== */

.admin-chart-wrapper {
    position: relative;
    padding-bottom: 0.5rem;
}

/* Y-Axis scale labels aligned on the left */
.admin-y-axis-label {
    width: 42px;
    font-size: 0.72rem;
    color: #64748b;
    text-align: right;
    user-select: none;
}

html[data-theme="dark"] .admin-y-axis-label {
    color: #94a3b8;
}

/* Horizontal dashed reference gridlines across the chart area */
.grid-line-rule {
    border-color: rgba(226, 232, 240, 0.7) !important;
}

html[data-theme="dark"] .grid-line-rule {
    border-color: rgba(30, 58, 95, 0.4) !important;
}

.border-dashed {
    border-bottom-style: dashed !important;
}

/* Rounded pillar track behind each interactive bar */
.admin-chart-bar-wrapper {
    background-color: rgba(226, 232, 240, 0.4);
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s ease;
}

html[data-theme="dark"] .admin-chart-bar-wrapper {
    background-color: rgba(30, 58, 95, 0.25);
}

.admin-chart-bar-wrapper:hover {
    background-color: rgba(226, 232, 240, 0.75);
}

html[data-theme="dark"] .admin-chart-bar-wrapper:hover {
    background-color: rgba(30, 58, 95, 0.45);
}

/* Calibrated bar element with smooth height animation */
.admin-chart-bar {
    width: 22px;
    height: var(--bar-target-height, 40%);
    /* NGO Teal to Deep Royal Navy gradient */
    background: linear-gradient(180deg, #087e8b 0%, #102a43 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* Peak Month (November) Distinct Branded Styling */
.admin-chart-bar.admin-bar-peak {
    background: linear-gradient(180deg, #f59e0b 0%, #0d2035 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.admin-chart-bar:hover {
    /* Glowing golden highlight on hover */
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.65) !important;
    transform: scaleX(1.1);
}

/* Single Rich Tooltip with Downward Arrow Pointer */
.admin-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0d2035;
    color: #f8fafc;
    border: 1px solid #f59e0b;
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 18px rgba(13, 32, 53, 0.4);
    z-index: 20;
}

.admin-bar-tooltip strong {
    color: #f59e0b;
}

/* Little downward arrow pointer on the tooltip */
.admin-bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #f59e0b transparent transparent transparent;
}

.admin-chart-bar:hover .admin-bar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.admin-chart-bar-col:hover .admin-bar-label {
    color: #f59e0b !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   QUICK STATS WIDGET & HOVER INTERACTIONS
   ========================================================================== */

.quick-stat-item {
    display: flex;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease, border-left 0.2s ease, box-shadow 0.2s ease;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid transparent;
}

html[data-theme="dark"] .quick-stat-item {
    background-color: #142742 !important;
    border-color: #1e3a5f;
    color: inherit;
}

.quick-stat-item:hover {
    transform: translateX(4px);
    background-color: #ffffff !important;
    border-left: 3.5px solid #f59e0b;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.08);
    color: inherit;
}

html[data-theme="dark"] .quick-stat-item:hover {
    background-color: #1a3254 !important;
    border-left: 3.5px solid #f59e0b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    color: inherit;
}

/* Tactile press response when clicking quick stat item */
.quick-stat-item:active {
    transform: scale(0.98) translateX(2px) !important;
}

.quick-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

/* ==========================================================================
   ENTERPRISE MODERN AUTHENTICATION & LOGIN WORKSPACE
   Replicates modern animated login design with interactive input wrappers,
   real-time validation state indicators, password eye toggle, and high-tech
   shimmer button effects in both Light and Dark themes.
   All code includes descriptive English comments for clarity and maintenance.
   ========================================================================== */

/* 1. Entrance animation for the login container */
@keyframes modernLoginFadeIn {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 2. Spring pop animation for checkmark status icon */
@keyframes modernCheckPop {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-20deg);
    }
    70% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 3. Smooth slide-down animation for helper validation message */
@keyframes modernFeedbackSlide {
    0% {
        opacity: 0;
        transform: translateY(-6px);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 40px;
    }
}

/* 4. Glowing shimmer animation for Sign In button */
@keyframes modernButtonShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Main Login Card */
.modern-login-card {
    background: #ffffff;
    border-radius: 24px !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px rgba(16, 42, 67, 0.08);
    animation: modernLoginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

html[data-theme="dark"] .modern-login-card {
    background: #112338;
    border-color: #1e3a5f;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

/* Brand Seal Emblem at top of login */
.modern-login-seal {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
    transition: transform 0.3s ease;
}

.modern-login-seal:hover {
    transform: rotate(8deg) scale(1.05);
}

/* Modern Input Wrapper Container */
.modern-input-wrapper {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    min-height: 54px;
}

html[data-theme="dark"] .modern-input-wrapper {
    background-color: #142742;
    border-color: #1e3a5f;
}

/* Focus state with brand blue halo */
.modern-input-wrapper:focus-within {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

html[data-theme="dark"] .modern-input-wrapper:focus-within {
    border-color: #60a5fa;
    background-color: #162c4b;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Verified state with emerald green halo matching reference screenshot */
.modern-input-wrapper.is-valid-modern {
    border-color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.04) !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16) !important;
}

html[data-theme="dark"] .modern-input-wrapper.is-valid-modern {
    background-color: rgba(34, 197, 94, 0.08) !important;
}

/* Invalid / Error state with crimson red halo when wrong credentials are submitted */
.modern-input-wrapper.is-invalid-modern {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.04) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16) !important;
    animation: modernInputShake 0.4s ease-in-out;
}

html[data-theme="dark"] .modern-input-wrapper.is-invalid-modern {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

/* Subtle shake animation for invalid credential attempt */
@keyframes modernInputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Error feedback message sliding down */
.modern-input-feedback-error {
    font-size: 0.83rem;
    font-weight: 600;
    color: #ef4444 !important;
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    animation: modernFeedbackSlide 0.25s ease-out forwards;
    display: flex;
    align-items: center;
}

html[data-theme="dark"] .modern-input-feedback-error {
    color: #f87171 !important;
}

/* Transparent input control inside wrapper */
.modern-login-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.98rem;
    font-weight: 500;
    color: #0f172a !important;
}

html[data-theme="dark"] .modern-login-input {
    color: #f1f5f9 !important;
}

.modern-login-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Input Icon Container */
.modern-input-icon {
    font-size: 1.15rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
}

html[data-theme="dark"] .modern-input-icon {
    color: #94a3b8;
}

/* Verified checkmark status icon with pop animation */
.modern-input-status-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e !important;
    animation: modernCheckPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Eye password visibility toggle button */
.modern-eye-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px;
    display: flex;
    align-items: center;
}

.modern-eye-btn:hover {
    color: #0f172a;
    transform: scale(1.15);
}

html[data-theme="dark"] .modern-eye-btn {
    color: #94a3b8;
}

html[data-theme="dark"] .modern-eye-btn:hover {
    color: #ffffff;
}

/* Validation Feedback message sliding down smoothly */
.modern-input-feedback {
    font-size: 0.83rem;
    font-weight: 600;
    color: #16a34a !important;
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    animation: modernFeedbackSlide 0.25s ease-out forwards;
    display: flex;
    align-items: center;
}

html[data-theme="dark"] .modern-input-feedback {
    color: #4ade80 !important;
}

/* Modern Pill Submit Button matching screenshot */
.btn-login-submit {
    background: linear-gradient(135deg, #0b1828 0%, #1e3a8a 50%, #0b1828 100%);
    background-size: 200% 200%;
    color: #ffffff !important;
    border: none;
    border-radius: 50px !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(11, 24, 40, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 24, 40, 0.45);
    background-position: 100% 50%;
    color: #ffffff !important;
}

.btn-login-submit:active {
    transform: scale(0.98);
}

html[data-theme="dark"] .btn-login-submit {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

html[data-theme="dark"] .btn-login-submit:hover {
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.6);
}

/* Forgot Password link styling */
.modern-forgot-link {
    color: #0b1828;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modern-forgot-link:hover {
    color: #f59e0b !important;
}

html[data-theme="dark"] .modern-forgot-link {
    color: #cbd5e1;
}

html[data-theme="dark"] .modern-forgot-link:hover {
    color: #fbbf24 !important;
}

/* ==========================================================================
   ENTERPRISE ADMIN: POSTS & UPDATES AND VIDEO MANAGEMENT (MEDIA 1794029908269 / 1794029959054)
   ========================================================================== */
.bg-purple-subtle {
    background-color: #ede9fe !important;
    border: 1px solid #ddd6fe;
}

.text-purple {
    color: #6d28d9 !important;
}

html[data-theme="dark"] .bg-purple-subtle {
    background-color: rgba(147, 51, 234, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
}

html[data-theme="dark"] .text-purple {
    color: #c084fc !important;
}

.admin-posts-table th,
.admin-videos-table th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    padding-block: 0.9rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.admin-posts-table td,
.admin-videos-table td {
    padding-block: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

html[data-theme="dark"] .admin-posts-table th,
html[data-theme="dark"] .admin-videos-table th {
    background-color: #0b1727 !important;
    border-bottom-color: #1e3a5f !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-posts-table td,
html[data-theme="dark"] .admin-videos-table td {
    border-bottom-color: #162a45 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .admin-stat-card {
    background-color: #0f1d2e !important;
    border-color: #1e3a5f !important;
}

html[data-theme="dark"] .admin-posts-table,
html[data-theme="dark"] .admin-videos-table {
    color: #e2e8f0;
}

/* ========================================================================= */
/* PREMIUM HERO CAROUSEL INDICATORS (Sleek Glassmorphic Dots & Morphing Pill) */
/* ========================================================================= */
.ngo-hero-slider-section .carousel-indicators {
    bottom: 22px;
    margin-bottom: 0;
    gap: 8px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    width: fit-content;
    max-width: fit-content;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

.ngo-hero-slider-section .carousel-indicators [data-bs-target] {
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    background-clip: padding-box;
    opacity: 1;
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.35s ease,
                border-radius 0.35s ease,
                box-shadow 0.35s ease,
                transform 0.2s ease;
}

.ngo-hero-slider-section .carousel-indicators [data-bs-target]:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.ngo-hero-slider-section .carousel-indicators [data-bs-target].active {
    width: 26px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
    opacity: 1;
}

@media (max-width: 576px) {
    .ngo-hero-slider-section .carousel-indicators {
        bottom: 14px;
        padding: 5px 10px;
        gap: 6px;
    }
    .ngo-hero-slider-section .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
    }
    .ngo-hero-slider-section .carousel-indicators [data-bs-target].active {
        width: 20px;
        height: 6px;
    }
}

/* ==========================================================================
   GLOBAL PRINT UTILITIES
   ========================================================================== */
@media print {
    .no-print,
    .no-print * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   ENTERPRISE DUAL-ELEMENT CURSOR & HOVER ANIMATION
   - Designed to exactly match user visual reference:
     * Inner precision dot: Deep Pine Teal (#00715d), ~10px diameter
     * Outer inertia follower disc: Soft Pastel Seafoam (#a8cfc8 / rgba(168, 207, 200, 0.72)), ~36px diameter
   - Native OS mouse cursor pointer remains 100% visible and unobstructed
   - Zero-jitter trailing physics using pure GPU-accelerated LERP coordinates
   - Smooth magnetic expansion on interactive links, buttons, and cards
   - Tactile spring compression on mousedown and subtle shockwave ripple
   - Automatic fallback & complete exclusion on touch/mobile devices
   - All code accompanied by clear English comments for readability
   ========================================================================== */

/* 1. Inner Precision Dot (Solid Deep Pine Teal, 10px diameter) */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: #00715d; /* Exact deep pine teal sampled from reference */
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 999999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.3s ease;
    will-change: transform;
}

/* Dark mode adjustment for inner precision dot */
html[data-theme="dark"] .cursor-dot {
    background-color: #14b8a6; /* Luminous teal accent in dark mode */
}

/* 2. Outer Inertia Follower Disc (Soft Translucent Seafoam Teal, 36px diameter) */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(168, 207, 200, 0.72); /* Exact soft seafoam sampled from reference */
    border: none;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 999998;
    transform: translate(-50%, -50%);
    opacity: 0;
    backdrop-filter: blur(0.5px);
    transition: opacity 0.25s ease, background-color 0.3s ease;
    will-change: transform;
}

/* Dark mode adjustment for outer follower disc */
html[data-theme="dark"] .cursor-follower {
    background-color: rgba(45, 212, 191, 0.35); /* Gentle translucent teal aura in dark mode */
}

/* 3. Interactive Hover State on Clickable Elements (Expanded Aura) */
.cursor-follower.is-hovering {
    background-color: rgba(168, 207, 200, 0.88); /* Slightly richer seafoam on interactive focus */
}

.cursor-dot.is-hovering {
    background-color: #005646; /* Slightly deeper tone on hover focus */
}

/* 4. Active Mouse Press (Clicking State with Spring Compression) */
.cursor-follower.is-active {
    background-color: rgba(0, 113, 93, 0.45); /* Deeper teal compression tint on click */
}

/* 5. Click Shockwave Ripple Pulse */
.cursor-ripple {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 113, 93, 0.65);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 999997;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.cursor-ripple.animate-ripple {
    animation: cursorRippleWave 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cursorRippleWave {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.85;
        border-color: rgba(0, 113, 93, 0.75);
    }
    100% {
        transform: translate(-50%, -50%) scale(3.2);
        opacity: 0;
        border-color: rgba(168, 207, 200, 0);
    }
}

/* 6. Clean exclusion on touchscreens, mobile devices, and tablets */
@media (hover: none) or (pointer: coarse) {
    .cursor-dot,
    .cursor-follower,
    .cursor-ripple {
        display: none !important;
    }
}

/* ==========================================================================
   6A. FLOATING CIRCULAR SCROLL-TO-TOP BUTTON WITH SVG PROGRESS RING
   - Displays a dynamic circular scroll indicator tracking live page scroll depth
   - Smooth entrance (fade-in & slide-up) when scrolled beyond 250px
   - Signature brand colors: Emerald/Teal active stroke (#00715d), pastel track (#a8cfc8)
   - Interactive hover elevation, scale pop, and upward arrow float animation
   - Smooth GPU-accelerated transforms for 60/120fps fluid response
   - Full dark theme support and accessibility (prefers-reduced-motion) compliance
   - Accompanied by descriptive English comments for all rules
   ========================================================================== */

.scroll-progress-wrap {
    position: fixed;
    right: 32px;
    bottom: 32px;
    height: 48px;
    width: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 113, 93, 0.22), 0 2px 6px rgba(15, 23, 42, 0.08);
    z-index: 999;
    
    /* Initially hidden and translated downward */
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.85);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s ease,
                box-shadow 0.25s ease,
                background-color 0.25s ease;
    will-change: transform, opacity;
}

/* Active state triggered when page scrolled down past threshold */
.scroll-progress-wrap.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover elevation lift & expanded glowing shadow */
.scroll-progress-wrap:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 113, 93, 0.32), 0 0 0 2px rgba(0, 113, 93, 0.15);
}

/* Click / tap pressed feedback */
.scroll-progress-wrap:active {
    transform: translateY(-1px) scale(0.94);
    box-shadow: 0 2px 8px rgba(0, 113, 93, 0.25);
}

/* SVG circle container rotated -90deg so progress starts at 12 o'clock */
.scroll-progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

/* Background static track circle (light pastel teal/sage) */
.scroll-progress-track {
    fill: none;
    stroke: #a8cfc8;
    stroke-width: 3.5;
    opacity: 0.75;
    transition: stroke 0.25s ease;
}

/* Active dynamic progress ring (deep emerald teal matching brand theme) */
.scroll-progress-bar {
    fill: none;
    stroke: #00715d;
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear, stroke 0.25s ease;
}

/* Center upward arrow container */
.scroll-progress-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00715d;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
    z-index: 2;
    pointer-events: none;
}

/* Arrow floats up playfully when hovering over the widget */
.scroll-progress-wrap:hover .scroll-progress-arrow {
    transform: translateY(-3px);
    color: #004d3f;
}

/* Dark Theme Overrides */
html[data-theme="dark"] .scroll-progress-wrap {
    background-color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .scroll-progress-track {
    stroke: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .scroll-progress-bar {
    stroke: #2dd4bf; /* Vibrant glowing teal in dark mode */
}

html[data-theme="dark"] .scroll-progress-arrow {
    color: #2dd4bf;
}

html[data-theme="dark"] .scroll-progress-wrap:hover {
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3), 0 0 0 2px rgba(45, 212, 191, 0.25);
}

html[data-theme="dark"] .scroll-progress-wrap:hover .scroll-progress-arrow {
    color: #5eead4;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 767.98px) {
    .scroll-progress-wrap {
        right: 18px;
        bottom: 18px;
        height: 44px;
        width: 44px;
    }
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress-wrap {
        transition: opacity 0.2s ease !important;
        transform: none !important;
    }
    .scroll-progress-wrap:hover .scroll-progress-arrow {
        transform: none !important;
    }
}

/* ==========================================================================
   6B. ANIMATED IMPACT STATISTICS COUNTER SECTION
   - Modern glassmorphic cards with subtle ambient glow and elevation
   - Distinct theme accent gradients: Sapphire Blue, Emerald, Amber, Crimson
   - Responsive 2x2 grid on mobile, 4-column inline flex on desktop
   - Smooth GPU-accelerated staggered entrance animations (easeOutExpo)
   - Tactile hover effects: elevation lift, themed ambient glow & icon bounce
   - Diagonal light reflection sweep (shimmer) on mouse hover
   - Interactive 3D perspective mouse tilt response on desktop
   - Dark mode compatible & accessibility (prefers-reduced-motion) compliant
   ========================================================================== */

/* 1. Main Impact Section Container */
.impact-metrics-section {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    overflow: hidden;
    z-index: 5;
}

html[data-theme="dark"] .impact-metrics-section {
    background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle background ambient glow flares */
.impact-ambient-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.12;
    z-index: 1;
}

.impact-glow-left {
    top: -40px;
    left: 5%;
    background: radial-gradient(circle, #0d6efd, transparent 70%);
}

.impact-glow-right {
    bottom: -40px;
    right: 5%;
    background: radial-gradient(circle, #10b981, transparent 70%);
}

/* 2. Impact Card Base Structure */
.impact-stat-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem; /* Modern 20px rounded corners */
    padding: 1.75rem 1.25rem 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05),
                0 2px 6px -1px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    text-align: center;
    cursor: default;
    transform-style: preserve-3d;
    perspective: 1000px;
    
    /* Initial state before scroll reveal */
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                background 0.35s ease;
    will-change: transform, opacity;
}

html[data-theme="dark"] .impact-stat-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

/* When revealed into viewport via IntersectionObserver */
.impact-stat-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered entrance cascade delays */
.impact-stat-card[data-index="0"].is-visible { transition-delay: 0.06s; }
.impact-stat-card[data-index="1"].is-visible { transition-delay: 0.18s; }
.impact-stat-card[data-index="2"].is-visible { transition-delay: 0.30s; }
.impact-stat-card[data-index="3"].is-visible { transition-delay: 0.42s; }

/* Hover lift and elevation glow */
.impact-stat-card.is-visible:hover {
    transform: translateY(-8px) scale(1.02);
}

/* 3. Top Decorative Gradient Accent Bar */
.impact-card-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    width: 100%;
    transition: height 0.3s ease;
}

.impact-stat-card:hover .impact-card-top-bar {
    height: 5px;
}

/* 4. Light Shimmer / Gloss Sweep Effect */
.impact-card-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

html[data-theme="dark"] .impact-card-shine {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    );
}

.impact-stat-card:hover .impact-card-shine {
    left: 200%;
}

/* 5. Icon Badge & Pulse Indicator */
.impact-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.impact-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.impact-stat-card:hover .impact-icon-bubble {
    transform: scale(1.15) rotate(6deg);
}

/* Live Activity Pulse Dot */
.impact-live-indicator {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.impact-pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    transform: translate(-50%, -50%);
    animation: impactPulseWave 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* 6. Metric Number Counter */
.impact-number-wrap {
    margin-bottom: 0.35rem;
}

.impact-counter-val {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    transition: transform 0.25s ease;
}

.impact-stat-card:hover .impact-counter-val {
    transform: scale(1.04);
}

/* Finish pop animation when counting is completed */
.impact-counter-val.counter-finished {
    animation: counterPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 7. Metric Label & Subtitle Badge */
.impact-title-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    transition: color 0.25s ease;
}

html[data-theme="dark"] .impact-title-label {
    color: #f1f5f9;
}

.impact-tag-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    transition: background 0.25s ease, color 0.25s ease;
}

html[data-theme="dark"] .impact-tag-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* 8. Individual Theme Color Schemes & Luminous Hover Glows */

/* Theme 1: Sapphire Blue (Students Educated) */
.impact-theme-blue .impact-card-top-bar {
    background: linear-gradient(90deg, #0d6efd, #38bdf8);
}
.impact-theme-blue .impact-icon-bubble {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.impact-theme-blue .impact-pulse-dot {
    background-color: #0d6efd;
}
.impact-theme-blue .impact-counter-val {
    color: #0d6efd;
}
.impact-theme-blue.is-visible:hover {
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 18px 36px -6px rgba(13, 110, 253, 0.2),
                0 0 0 1px rgba(13, 110, 253, 0.15);
}
.impact-theme-blue:hover .impact-tag-badge {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Theme 2: Emerald Green (Youth Skilled & Employed) */
.impact-theme-green .impact-card-top-bar {
    background: linear-gradient(90deg, #059669, #34d399);
}
.impact-theme-green .impact-icon-bubble {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}
.impact-theme-green .impact-pulse-dot {
    background-color: #059669;
}
.impact-theme-green .impact-counter-val {
    color: #059669;
}
.impact-theme-green.is-visible:hover {
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 18px 36px -6px rgba(5, 150, 105, 0.2),
                0 0 0 1px rgba(5, 150, 105, 0.15);
}
.impact-theme-green:hover .impact-tag-badge {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

/* Theme 3: Warm Golden Amber (Families Sheltered) */
.impact-theme-amber .impact-card-top-bar {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}
.impact-theme-amber .impact-icon-bubble {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}
.impact-theme-amber .impact-pulse-dot {
    background-color: #d97706;
}
.impact-theme-amber .impact-counter-val {
    color: #d97706;
}
.impact-theme-amber.is-visible:hover {
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 18px 36px -6px rgba(217, 119, 6, 0.2),
                0 0 0 1px rgba(217, 119, 6, 0.15);
}
.impact-theme-amber:hover .impact-tag-badge {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

/* Theme 4: Ruby Crimson Red (Medical Aid Provided) */
.impact-theme-red .impact-card-top-bar {
    background: linear-gradient(90deg, #dc2626, #f87171);
}
.impact-theme-red .impact-icon-bubble {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.impact-theme-red .impact-pulse-dot {
    background-color: #dc2626;
}
.impact-theme-red .impact-counter-val {
    color: #dc2626;
}
.impact-theme-red.is-visible:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 18px 36px -6px rgba(220, 38, 38, 0.2),
                0 0 0 1px rgba(220, 38, 38, 0.15);
}
.impact-theme-red:hover .impact-tag-badge {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* 9. Responsive Mobile & Tablet Optimizations */
@media (max-width: 991.98px) {
    .impact-metrics-section {
        padding: 2.25rem 0;
    }
    .impact-stat-card {
        padding: 1.35rem 0.85rem 1.15rem;
    }
    .impact-counter-val {
        font-size: 1.75rem;
    }
    .impact-title-label {
        font-size: 0.85rem;
    }
    .impact-icon-bubble {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .impact-counter-val {
        font-size: 1.55rem;
    }
    .impact-tag-badge {
        font-size: 0.68rem;
        padding: 1px 7px;
    }
}

/* 10. Accessibility: Respect User's Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .impact-stat-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .impact-card-shine,
    .impact-pulse-dot::before {
        display: none !important;
    }
}

/* ==========================================================================
   7. 3D CURVED PANORAMA SHOWCASE CAROUSEL (CYLINDRICAL COVERFLOW)
   - Inspired by cinematic IMAX / cylindrical curved display aesthetics
   - Center active card with signature deep teal circular explore button (↗)
   - Left and right cards angled inward with realistic 3D perspective & depth
   - Morphing under-card caption board displaying mission title, category & CTA
   - Smooth GPU-accelerated transforms (preserve-3d, translate3d, rotateY)
   - Responsive scaling for mobile, tablet, and ultra-wide screens
   - Full dark-theme support and accessibility compliance
   - Accompanied by descriptive English comments for all rules
   ========================================================================== */

/* 1. Main Section Container */
.curved-panorama-section {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background: radial-gradient(circle at 50% 25%, #f8fafc 0%, #edf2f7 60%, #e2e8f0 100%);
    overflow: hidden;
}

html[data-theme="dark"] .curved-panorama-section {
    background: radial-gradient(circle at 50% 25%, #1a2436 0%, #0f172a 70%, #080d1a 100%);
}

/* Subtle top & bottom ambient light glow accents */
.curved-panorama-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 93, 0.35), transparent);
}

/* 2. Section Heading Styling */
.panorama-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 113, 93, 0.1);
    color: #00715d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 113, 93, 0.2);
    margin-bottom: 12px;
}

html[data-theme="dark"] .panorama-badge {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.3);
}

/* 3. 3D Viewport Stage */
.panorama-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 0;
}

.panorama-viewport {
    position: relative;
    width: 100%;
    height: 380px;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.panorama-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Panoramic 3D Image Cards */
.panorama-card {
    position: absolute;
    width: 440px;
    max-width: 84vw;
    height: 310px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
    background: #0b1329;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease;
    will-change: transform, opacity, filter;
}

/* Card image filling background */
.panorama-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.panorama-card:hover img {
    transform: scale(1.04);
}

/* Cinematic Vignette Overlay */
.panorama-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Active status badge in top-corner */
.panorama-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
}

/* 5. Center Signature Circular Emerald Action Button (↗) */
.card-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #00715d; /* Exact deep pine teal matching user reference */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 113, 93, 0.5);
    opacity: 0;
    z-index: 5;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
}

/* Visible and pulsing on active center slide */
.panorama-card.is-active .card-center-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: beaconPulse 2.8s infinite ease-in-out;
}

.card-center-badge:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background-color: #005646;
    color: #ffffff;
    box-shadow: 0 0 32px rgba(0, 113, 93, 0.75);
}

.card-center-badge:hover .badge-arrow-icon {
    transform: translate(3px, -3px);
}

.badge-arrow-icon {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
}

@keyframes beaconPulse {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(0, 113, 93, 0.5), 0 0 0 0 rgba(0, 113, 93, 0.55);
    }
    50% {
        box-shadow: 0 12px 34px rgba(0, 113, 93, 0.65), 0 0 0 14px rgba(0, 113, 93, 0);
    }
}

/* 6. Dynamic 3D Curved Cylindrical Positions */

/* Center (Active) Card - Front and Center with Depth */
.panorama-card.is-active {
    transform: translate3d(0, 0, 40px) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    filter: none;
    box-shadow: 0 28px 65px rgba(0, 113, 93, 0.25), 0 12px 30px rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(0, 113, 93, 0.35);
}

/* Left Card (1 step backward, angled inward) */
.panorama-card.is-prev {
    transform: translate3d(-340px, 0, -60px) rotateY(26deg) scale(0.88);
    opacity: 0.85;
    z-index: 8;
    filter: brightness(0.85) contrast(0.95);
}

/* Right Card (1 step backward, angled inward) */
.panorama-card.is-next {
    transform: translate3d(340px, 0, -60px) rotateY(-26deg) scale(0.88);
    opacity: 0.85;
    z-index: 8;
    filter: brightness(0.85) contrast(0.95);
}

/* Far-Left Card (2 steps backward, deeper curve) */
.panorama-card.is-far-prev {
    transform: translate3d(-600px, 0, -160px) rotateY(40deg) scale(0.74);
    opacity: 0.45;
    z-index: 5;
    filter: brightness(0.7) blur(0.5px);
}

/* Far-Right Card (2 steps backward, deeper curve) */
.panorama-card.is-far-next {
    transform: translate3d(600px, 0, -160px) rotateY(-40deg) scale(0.74);
    opacity: 0.45;
    z-index: 5;
    filter: brightness(0.7) blur(0.5px);
}

/* Any remaining cards hidden behind */
.panorama-card.is-hidden {
    transform: translate3d(0, 0, -250px) scale(0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* 7. Under-Card Dynamic Caption Board */
.panorama-caption-board {
    position: relative;
    max-width: 820px;
    margin: 24px auto 0;
    padding: 10px 20px;
    text-align: center;
}

.caption-category {
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00715d;
    margin-bottom: 6px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

html[data-theme="dark"] .caption-category {
    color: #2dd4bf;
}

.caption-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

html[data-theme="dark"] .caption-title {
    color: #f1f5f9;
}

.caption-description {
    font-size: 0.98rem;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 18px;
    line-height: 1.55;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

html[data-theme="dark"] .caption-description {
    color: #94a3b8;
}

/* Transition utility classes for smooth morphing typography */
.caption-animating {
    opacity: 0 !important;
    transform: translateY(8px) !important;
}

/* 8. Sleek Glassmorphic Prev/Next Controls */
.panorama-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #00715d;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 15;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .panorama-arrow-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #2dd4bf;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.panorama-arrow-btn:hover {
    background: #00715d;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 113, 93, 0.4);
}

html[data-theme="dark"] .panorama-arrow-btn:hover {
    background: #14b8a6;
    color: #0f172a;
}

.panorama-prev {
    left: 20px;
}

.panorama-next {
    right: 20px;
}

/* 9. Bottom Pill Indicators */
.panorama-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.panorama-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 113, 93, 0.25);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                border-radius 0.3s ease;
}

html[data-theme="dark"] .panorama-dot {
    background-color: rgba(255, 255, 255, 0.25);
}

.panorama-dot.is-active {
    width: 26px;
    border-radius: 999px;
    background-color: #00715d;
}

html[data-theme="dark"] .panorama-dot.is-active {
    background-color: #2dd4bf;
}

/* Custom Teal Buttons for Showcase CTA */
.btn-teal {
    background-color: #00715d;
    color: #ffffff;
    border: none;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-teal:hover {
    background-color: #005646;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 113, 93, 0.35);
}

.btn-outline-teal {
    border: 1.5px solid #00715d;
    color: #00715d;
    background: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-outline-teal:hover {
    background-color: #00715d;
    color: #ffffff;
    transform: translateY(-2px);
}

html[data-theme="dark"] .btn-outline-teal {
    border-color: #2dd4bf;
    color: #2dd4bf;
}

html[data-theme="dark"] .btn-outline-teal:hover {
    background-color: #14b8a6;
    color: #0f172a;
}

/* 10. Responsive Adjustments for Tablets and Mobile Screens */
@media (max-width: 992px) {
    .panorama-viewport {
        height: 330px;
    }
    .panorama-card {
        width: 360px;
        height: 260px;
    }
    .panorama-card.is-prev {
        transform: translate3d(-240px, 0, -50px) rotateY(22deg) scale(0.85);
    }
    .panorama-card.is-next {
        transform: translate3d(240px, 0, -50px) rotateY(-22deg) scale(0.85);
    }
    .panorama-card.is-far-prev {
        transform: translate3d(-420px, 0, -120px) rotateY(32deg) scale(0.7);
        opacity: 0.3;
    }
    .panorama-card.is-far-next {
        transform: translate3d(420px, 0, -120px) rotateY(-32deg) scale(0.7);
        opacity: 0.3;
    }
    .panorama-arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .curved-panorama-section {
        padding: 3.5rem 0 3rem;
    }
    .panorama-viewport {
        height: 260px;
        perspective: 900px;
    }
    .panorama-card {
        width: 280px;
        height: 200px;
        border-radius: 16px;
    }
    .card-center-badge {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    .panorama-card.is-prev {
        transform: translate3d(-150px, 0, -40px) rotateY(18deg) scale(0.82);
        opacity: 0.7;
    }
    .panorama-card.is-next {
        transform: translate3d(150px, 0, -40px) rotateY(-18deg) scale(0.82);
        opacity: 0.7;
    }
    .panorama-card.is-far-prev,
    .panorama-card.is-far-next {
        opacity: 0;
        pointer-events: none;
    }
    .panorama-arrow-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .panorama-prev {
        left: 8px;
    }
    .panorama-next {
        right: 8px;
    }
    .caption-title {
        font-size: 1.45rem;
    }
}

/* ==========================================================================
   8. ACTIVE CAUSES & LIVE DONATION APPEALS MULTI-CARD CAROUSEL
   - Matches and elevates the modern NGO donation carousel aesthetic
   - Clean rounded white cards with soft elevation and hover transform
   - Category tags (Healthcare, Food, Shelter, Education, Livelihood, Zakat)
   - Dynamic real-time funding progress bars with animated gradient shimmer
   - Dual-toned circular navigation buttons (Dark Slate Left, Warm Gold Right)
   - Smooth horizontal scroll-snap track with touch swipe and drag support
   - Synchronized bottom pagination indicators
   - Full dark-theme compatibility and clear English comments
   ========================================================================== */

/* 1. Main Section Container with subtle ambient backdrop */
.active-causes-section {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background-color: #fafbfc;
    overflow: hidden;
}

html[data-theme="dark"] .active-causes-section {
    background-color: #0b1222;
}

/* Decorative soft heart watermark in the background (as in user reference) */
.active-causes-watermark {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 280px;
    height: 280px;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    color: #00715d;
}

html[data-theme="dark"] .active-causes-watermark {
    opacity: 0.02;
    color: #2dd4bf;
}

/* 2. Eyebrow Badge & Section Title */
.causes-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 113, 93, 0.08);
    color: #00715d;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 113, 93, 0.18);
    margin-bottom: 12px;
}

html[data-theme="dark"] .causes-eyebrow-badge {
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.25);
}

.causes-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

html[data-theme="dark"] .causes-main-title {
    color: #f8fafc;
}

.highlight-amber {
    color: #f59e0b;
}

/* 3. Dual-Toned Circular Navigation Arrow Buttons */
.causes-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.causes-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

/* Left Arrow: Dark Navy / Deep Slate with crisp white icon */
.causes-nav-prev {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

html[data-theme="dark"] .causes-nav-prev {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.causes-nav-prev:hover {
    background-color: #00715d;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 113, 93, 0.35);
}

/* Right Arrow: Warm Amber Gold with dark slate icon (exact reference match) */
.causes-nav-next {
    background-color: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.causes-nav-next:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* 4. Multi-Card Horizontal Scroll Track */
.causes-slider-container {
    position: relative;
    width: 100%;
}

.causes-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 14px 6px 26px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide standard scrollbar for clean UI */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.causes-slider-track:active {
    cursor: grabbing;
}

.causes-slider-track::-webkit-scrollbar {
    display: none;
}

/* 5. Individual Cause Card */
.cause-card {
    flex: 0 0 calc(25% - 18px);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
    user-select: none;
}

html[data-theme="dark"] .cause-card {
    background: #151f33;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cause-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(0, 113, 93, 0.12);
    border-color: rgba(0, 113, 93, 0.25);
}

html[data-theme="dark"] .cause-card:hover {
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
    border-color: rgba(45, 212, 191, 0.35);
}

/* 6. Card Thumbnail Image Container */
.cause-card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin: 12px 12px 0 12px;
    border-radius: 16px;
    background: #0f172a;
}

.cause-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.cause-card:hover .cause-card-thumb img {
    transform: scale(1.06);
}

/* Floating Category Pill Badge */
.cause-pill-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.badge-amber {
    background-color: #f59e0b;
    color: #0f172a;
}

.badge-teal {
    background-color: #00715d;
    color: #ffffff;
}

.badge-dark {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

.badge-coral {
    background-color: #ef4444;
    color: #ffffff;
}

.badge-blue {
    background-color: #2563eb;
    color: #ffffff;
}

.badge-purple {
    background-color: #7c3aed;
    color: #ffffff;
}

/* 7. Card Body */
.cause-card-body {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cause-card-title {
    font-size: 1.14rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    transition: color 0.25s ease;
}

html[data-theme="dark"] .cause-card-title {
    color: #f8fafc;
}

.cause-card:hover .cause-card-title {
    color: #00715d;
}

html[data-theme="dark"] .cause-card:hover .cause-card-title {
    color: #2dd4bf;
}

.cause-card-desc {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="dark"] .cause-card-desc {
    color: #94a3b8;
}

/* 8. Funding Progress Bar & Stats */
.cause-progress-wrapper {
    background: rgba(241, 245, 249, 0.7);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    margin-top: auto;
}

html[data-theme="dark"] .cause-progress-wrapper {
    background: rgba(30, 41, 59, 0.7);
}

.cause-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.cause-progress-label {
    font-weight: 600;
    color: #64748b;
}

html[data-theme="dark"] .cause-progress-label {
    color: #94a3b8;
}

.cause-progress-percent {
    font-weight: 800;
    color: #0f172a;
}

html[data-theme="dark"] .cause-progress-percent {
    color: #f8fafc;
}

.cause-progress-track {
    width: 100%;
    height: 7px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

html[data-theme="dark"] .cause-progress-track {
    background-color: #334155;
}

.cause-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 1s ease;
    position: relative;
}

.cause-progress-fill.fill-teal {
    background: linear-gradient(90deg, #00715d, #14b8a6);
}

.cause-progress-fill.fill-coral {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.cause-progress-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.cause-raised-val {
    color: #475569;
}

html[data-theme="dark"] .cause-raised-val {
    color: #94a3b8;
}

.cause-raised-val strong {
    color: #00715d;
    font-weight: 700;
}

html[data-theme="dark"] .cause-raised-val strong {
    color: #2dd4bf;
}

.cause-goal-val {
    color: #475569;
}

html[data-theme="dark"] .cause-goal-val {
    color: #94a3b8;
}

.cause-goal-val strong {
    color: #0f172a;
    font-weight: 700;
}

html[data-theme="dark"] .cause-goal-val strong {
    color: #f8fafc;
}

/* 9. Card Action Buttons */
.cause-btn-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

/* Solid version (matching Card 1 in reference) */
.cause-btn-solid {
    background-color: #0f172a;
    color: #ffffff;
    border: 1.5px solid #0f172a;
}

html[data-theme="dark"] .cause-btn-solid {
    background-color: #00715d;
    border-color: #00715d;
    color: #ffffff;
}

.cause-btn-solid:hover {
    background-color: #00715d;
    border-color: #00715d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 113, 93, 0.35);
}

/* Outline version (matching Card 3/4 in reference) */
.cause-btn-outline {
    background-color: transparent;
    color: #0f172a;
    border: 1.5px solid #0f172a;
}

html[data-theme="dark"] .cause-btn-outline {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
}

.cause-btn-outline:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* 10. Bottom Dots Pagination Indicators */
.causes-dots-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.causes-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 113, 93, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                border-radius 0.3s ease;
}

html[data-theme="dark"] .causes-dot {
    background-color: rgba(255, 255, 255, 0.2);
}

.causes-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background-color: #00715d;
}

html[data-theme="dark"] .causes-dot.is-active {
    background-color: #2dd4bf;
}

/* 11. Responsive Breakpoints */
@media (max-width: 1200px) {
    .cause-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 992px) {
    .cause-card {
        flex: 0 0 calc(50% - 12px);
    }
    .causes-main-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 600px) {
    .active-causes-section {
        padding: 3.5rem 0 3rem;
    }
    .cause-card {
        flex: 0 0 calc(85% - 8px);
    }
    .causes-slider-track {
        gap: 16px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .causes-main-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   12. VOLUNTEER TEAM MEMBERS SHOWCASE
   Inspired by the Charifund NGO template's interactive volunteer profile cards.
   Features:
   - Dedicated portrait cards with subtle zoom and emerald ambient gradient
   - Interactive circular '+' toggle button that animates into an '×' close
   - Vertical pop-up stack of social channels (LinkedIn, Twitter, IG, Email)
   - Verified ground-worker badges and state/district localization
   - Warm golden amber 'View All' & Pine Teal 'Become A Volunteer' CTAs
   - Seamless dark theme adaptation and mobile responsive layouts
   All code accompanied by clear English comments for clean maintainability.
   ========================================================================== */

/* Volunteer Team Section Container */
.volunteer-team-section {
    padding: 5rem 0 5.5rem;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .volunteer-team-section {
    background-color: #0b1120;
    border-color: #1e293b !important;
}

/* Decorative Background Watermark (Heart / Caring Hand) */
.volunteer-watermark {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    width: 150px;
    height: 150px;
    color: #00715d;
    opacity: 0.10;
    pointer-events: none;
    transform: rotate(12deg);
    z-index: 1;
    transition: opacity 0.3s ease;
}

html[data-theme="dark"] .volunteer-watermark {
    color: #2dd4bf;
    opacity: 0.08;
}

/* Eyebrow Badge Pill */
.volunteer-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(0, 113, 93, 0.08);
    color: #00715d;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme="dark"] .volunteer-eyebrow-badge {
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
}

/* Main Header Title */
.volunteer-main-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

html[data-theme="dark"] .volunteer-main-title {
    color: #f8fafc;
}

.volunteer-main-title .highlight-amber {
    color: #f59e0b;
}

/* Volunteer Profile Card */
.volunteer-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.volunteer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 113, 93, 0.2);
}

html[data-theme="dark"] .volunteer-card {
    background: #131d2e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .volunteer-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(45, 212, 191, 0.3);
}

/* Volunteer Portrait Image Container */
.volunteer-photo-wrapper {
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.volunteer-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.volunteer-card:hover .volunteer-photo-img {
    transform: scale(1.05);
}

/* Emerald Ambient Gradient Overlay (Triggered on hover or active popup) */
.volunteer-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 113, 93, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.volunteer-card:hover .volunteer-photo-overlay,
.volunteer-card.is-social-open .volunteer-photo-overlay {
    opacity: 1;
}

/* Circular Interactive Stash Toggle Button (+ to ×) */
.volunteer-share-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
    transition: background-color 0.3s ease,
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
    font-size: 1.15rem;
}

.volunteer-share-btn .share-icon-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button Active / Hover state turns into golden amber */
.volunteer-card:hover .volunteer-share-btn,
.volunteer-card.is-social-open .volunteer-share-btn {
    background-color: #f59e0b;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
    transform: scale(1.06);
}

/* In open state, rotate the plus 45 degrees into an '×' close icon */
.volunteer-card.is-social-open .volunteer-share-btn .share-icon-plus {
    transform: rotate(45deg);
}

/* Vertical Pop-up Social Stack (reveals upwards smoothly) */
.volunteer-social-stack {
    position: absolute;
    bottom: 66px;
    right: 14px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.volunteer-card:hover .volunteer-social-stack,
.volunteer-card.is-social-open .volunteer-social-stack {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Individual Social Icon Buttons */
.volunteer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.volunteer-social-btn:hover {
    transform: scale(1.15);
}

/* Brand specific social color accents on hover */
.volunteer-social-btn.btn-linkedin:hover {
    background-color: #0a66c2 !important;
    color: #ffffff !important;
}

.volunteer-social-btn.btn-twitter:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.volunteer-social-btn.btn-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
    color: #ffffff !important;
}

.volunteer-social-btn.btn-email:hover {
    background-color: #00715d !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .volunteer-social-btn {
    background-color: rgba(30, 41, 59, 0.92);
    color: #f8fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Volunteer Card Body (Information Area) */
.volunteer-card-body {
    padding: 1.25rem 1.4rem;
    background-color: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

html[data-theme="dark"] .volunteer-card-body {
    background-color: #131d2e;
}

.volunteer-role-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00715d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

html[data-theme="dark"] .volunteer-role-pill {
    color: #2dd4bf;
}

.volunteer-verified-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #00715d;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

html[data-theme="dark"] .volunteer-verified-badge {
    color: #2dd4bf;
}

.volunteer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.35rem 0 0.25rem;
    transition: color 0.2s ease;
}

.volunteer-card:hover .volunteer-name {
    color: #00715d;
}

html[data-theme="dark"] .volunteer-name {
    color: #f8fafc;
}

html[data-theme="dark"] .volunteer-card:hover .volunteer-name {
    color: #2dd4bf;
}

.volunteer-location {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
}

html[data-theme="dark"] .volunteer-location {
    color: #94a3b8;
}

/* Bottom Call-To-Action (CTA) Buttons */
.btn-volunteer-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 38px;
    border-radius: 9999px;
    background-color: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.btn-volunteer-view-all:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.4);
}

.btn-volunteer-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 34px;
    border-radius: 9999px;
    background: transparent;
    border: 2px solid #00715d;
    color: #00715d;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-volunteer-join:hover {
    background-color: #00715d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 93, 0.25);
}

html[data-theme="dark"] .btn-volunteer-join {
    border-color: #2dd4bf;
    color: #2dd4bf;
}

html[data-theme="dark"] .btn-volunteer-join:hover {
    background-color: #2dd4bf;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.25);
}

/* Responsive Breakpoints for Volunteer Section */
@media (max-width: 768px) {
    .volunteer-team-section {
        padding: 3.5rem 0 4rem;
    }
    .volunteer-main-title {
        font-size: 1.85rem;
    }
    .volunteer-photo-wrapper {
        height: 280px;
    }
}

/* ==========================================================================
   13. FIELD UPDATES & VIDEO HIGHLIGHTS SHOWCASE
   Features:
   - Cinematic widescreen media cards with 3D hover physics and glowing borders
   - Animated concentric pulse rings on video play button
   - High-contrast dual gradient overlays ensuring crisp readability
   - Frosted glassmorphic format badges ('Video Reel' & 'Field Photo')
   - Distinctive brand-aligned primary action buttons and gallery shortcuts
   - Full dark mode adaptation with rich deep navy surfaces
   All code accompanied by clear English comments for clean maintainability.
   ========================================================================== */

/* Section Container */
.field-updates-section {
    padding: 5rem 0 5.5rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .field-updates-section {
    background-color: #080e1a;
    border-color: #1e293b !important;
}

/* Background Film Watermark */
.field-updates-watermark {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    width: 140px;
    height: 140px;
    color: #00715d;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(8deg);
    z-index: 1;
    transition: opacity 0.3s ease;
}

html[data-theme="dark"] .field-updates-watermark {
    color: #2dd4bf;
    opacity: 0.06;
}

/* Eyebrow Pill Badge */
.field-updates-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme="dark"] .field-updates-eyebrow {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Section Header Title */
.field-updates-main-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

html[data-theme="dark"] .field-updates-main-title {
    color: #f8fafc;
}

.field-updates-main-title .highlight-amber {
    color: #f59e0b;
}

/* Section Header Subtitle */
.field-updates-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 680px;
}

html[data-theme="dark"] .field-updates-subtitle {
    color: #94a3b8;
}

/* Top-Right Gallery Link Button */
.field-updates-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    background-color: rgba(0, 113, 93, 0.08);
    color: #00715d;
    border: 1.5px solid rgba(0, 113, 93, 0.25);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-updates-gallery-btn:hover {
    background-color: #00715d;
    color: #ffffff;
    border-color: #00715d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 113, 93, 0.25);
}

html[data-theme="dark"] .field-updates-gallery-btn {
    background-color: rgba(45, 212, 191, 0.1);
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.3);
}

html[data-theme="dark"] .field-updates-gallery-btn:hover {
    background-color: #2dd4bf;
    color: #0f172a;
    border-color: #2dd4bf;
    box-shadow: 0 6px 18px rgba(45, 212, 191, 0.25);
}

/* Media Card Container */
.field-media-card {
    background-color: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.field-media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 113, 93, 0.25);
}

html[data-theme="dark"] .field-media-card {
    background-color: #131d2e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .field-media-card:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
    border-color: rgba(45, 212, 191, 0.3);
}

/* Media Preview Thumbnail Box */
.field-media-thumb {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #0f172a;
    cursor: pointer;
}

.field-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-media-card:hover .field-media-img {
    transform: scale(1.06);
}

/* Dual Vignette Gradient Overlays */
.field-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.02) 40%, rgba(15, 23, 42, 0.75) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.field-media-card:hover .field-thumb-overlay {
    opacity: 0.9;
}

/* Top-Left Media Format Badge */
.media-badge-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
}

.media-badge-pill.badge-video {
    background-color: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.media-badge-pill.badge-photo {
    background-color: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Top-Right Pillar Category Tag */
.media-category-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background-color: rgba(0, 113, 93, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Center Video Play Button Container */
.field-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.field-media-card:hover .play-icon-box {
    transform: scale(1.15);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.75);
}

/* Animated Concentric Pulse Ring */
.play-pulse-ring {
    position: absolute;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.65);
    animation: mediaPulseRing 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}

@keyframes mediaPulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Center Expand Lens Icon for Photos */
.field-expand-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #00715d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.field-media-card:hover .field-expand-circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Media Card Body */
.field-media-body {
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Mission & Verification Meta Tag Row */
.media-meta-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00715d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
}

html[data-theme="dark"] .media-meta-tag {
    color: #2dd4bf;
}

.media-format-indicator {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
}

html[data-theme="dark"] .media-format-indicator {
    color: #94a3b8;
}

/* Card Title */
.field-media-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.field-media-card:hover .field-media-title {
    color: #00715d;
}

html[data-theme="dark"] .field-media-title {
    color: #f8fafc;
}

html[data-theme="dark"] .field-media-card:hover .field-media-title {
    color: #2dd4bf;
}

/* Card Summary / Caption */
.field-media-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="dark"] .field-media-desc {
    color: #94a3b8;
}

/* Card Footer Action Row */
.field-media-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    margin-top: auto;
}

html[data-theme="dark"] .field-media-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Primary Action Button (Watch Video / View Photo) */
.btn-media-action {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-action-video {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.btn-action-video:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.btn-action-photo {
    background-color: rgba(0, 113, 93, 0.08);
    color: #00715d;
    border: 1.5px solid rgba(0, 113, 93, 0.28);
}

.btn-action-photo:hover {
    background-color: #00715d;
    color: #ffffff;
    border-color: #00715d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 93, 0.25);
}

html[data-theme="dark"] .btn-action-photo {
    background-color: rgba(45, 212, 191, 0.1);
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.3);
}

html[data-theme="dark"] .btn-action-photo:hover {
    background-color: #2dd4bf;
    color: #0f172a;
    border-color: #2dd4bf;
    box-shadow: 0 6px 16px rgba(45, 212, 191, 0.25);
}

/* Secondary Action Button (Gallery Shortcut) */
.btn-media-gallery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 16px;
    border-radius: 9999px;
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-media-gallery:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

html[data-theme="dark"] .btn-media-gallery {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

html[data-theme="dark"] .btn-media-gallery:hover {
    background-color: #334155;
    color: #ffffff;
}

/* Responsive Adjustments for Field Updates */
@media (max-width: 768px) {
    .field-updates-section {
        padding: 3.5rem 0 4rem;
    }
    .field-updates-main-title {
        font-size: 1.85rem;
    }
    .field-media-thumb {
        height: 200px;
    }
}

/* ==========================================================================
   14. COMMUNITY & DONOR TESTIMONIAL FEEDBACK CAROUSEL
   Inspired by Charifund NGO template's multi-card feedback slider.
   Features:
   - Fluid horizontal track with card peek and drag-to-scroll physics
   - 5-star rating presentation & large decorative quote icon marks
   - Distinctive active card glowing golden amber halo border and elevation
   - Verified supporter badge pills and circular author portraits
   - Dual-toned circular navigation buttons (Dark Slate Left, Amber Right)
   - Synchronized central pagination dots and auto-scroll timer
   - Full dark mode adaptation with rich deep navy surfaces
   All code accompanied by clear English comments for clean maintainability.
   ========================================================================== */

/* Testimonial Section Container */
.testimonial-feedback-section {
    padding: 5rem 0 5.5rem;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .testimonial-feedback-section {
    background-color: #0b1120;
    border-color: #1e293b !important;
}

/* Background Quote Watermark */
.testimonial-watermark {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    width: 140px;
    height: 140px;
    color: #00715d;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(8deg);
    z-index: 1;
    transition: opacity 0.3s ease;
}

html[data-theme="dark"] .testimonial-watermark {
    color: #2dd4bf;
    opacity: 0.06;
}

/* Eyebrow Pill Badge */
.testimonial-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(0, 113, 93, 0.08);
    color: #00715d;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme="dark"] .testimonial-eyebrow-badge {
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
}

/* Main Section Title */
.testimonial-main-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

html[data-theme="dark"] .testimonial-main-title {
    color: #f8fafc;
}

.testimonial-main-title .highlight-amber {
    color: #f59e0b;
}

/* Header Subtitle */
.testimonial-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

html[data-theme="dark"] .testimonial-subtitle {
    color: #94a3b8;
}

/* Multi-Card Slider Container */
.testimonial-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 14px 4px 22px;
}

/* Horizontal Track (Drag-to-Scroll + Smooth Snap) */
.testimonial-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 14px 6px 26px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.testimonial-slider-track:active {
    cursor: grabbing;
}

.testimonial-slider-track::-webkit-scrollbar {
    display: none;
}

/* Individual Testimonial Card */
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 310px;
    min-height: 380px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 2.2rem 2rem 2rem;
    border: 2px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
    border-color: rgba(245, 158, 11, 0.45);
}

/* Active Highlight Card (Matching Reference Screenshot 2 with Golden Border) */
.testimonial-card.is-active {
    border-color: #f59e0b;
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.22);
    transform: translateY(-5px);
}

html[data-theme="dark"] .testimonial-card {
    background-color: #131d2e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .testimonial-card.is-active {
    border-color: #f59e0b;
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.3);
}

/* Card Top: Stars and Large Quote Outline */
.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 1.05rem;
}

.testimonial-quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: rgba(15, 23, 42, 0.1);
    transition: color 0.3s ease, transform 0.3s ease;
}

.testimonial-card.is-active .testimonial-quote-mark,
.testimonial-card:hover .testimonial-quote-mark {
    color: rgba(245, 158, 11, 0.28);
    transform: scale(1.08);
}

html[data-theme="dark"] .testimonial-quote-mark {
    color: rgba(255, 255, 255, 0.08);
}

/* Heartfelt Feedback Quote Text */
.testimonial-quote-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

html[data-theme="dark"] .testimonial-quote-text {
    color: #cbd5e1;
}

/* Author Box Container */
.testimonial-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: auto;
}

html[data-theme="dark"] .testimonial-author-box {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Circular Author Portrait */
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #f59e0b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* Author Metadata */
.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

html[data-theme="dark"] .testimonial-author-name {
    color: #f8fafc;
}

.testimonial-author-role {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 3px;
}

html[data-theme="dark"] .testimonial-author-role {
    color: #94a3b8;
}

.testimonial-badge-verified {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00715d;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

html[data-theme="dark"] .testimonial-badge-verified {
    color: #2dd4bf;
}

/* Navigation Row (Dual-Toned Arrows & Center Dots) */
.testimonial-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 2.2rem;
    position: relative;
    z-index: 5;
}

.testimonial-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    border: none;
    z-index: 5;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

/* Left Arrow: Dark Slate Circle */
.testimonial-nav-prev {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.testimonial-nav-prev:hover {
    background-color: #1e293b;
    transform: scale(1.08);
}

/* Right Arrow: Warm Amber Circle */
.testimonial-nav-next {
    background-color: #f59e0b;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.testimonial-nav-next:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
}

/* Center Pagination Dots */
.testimonial-dots-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
    z-index: 5;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] .testimonial-dot {
    background-color: rgba(255, 255, 255, 0.25);
}

.testimonial-dot.is-active {
    width: 28px;
    border-radius: 9999px;
    background-color: #00715d;
}

html[data-theme="dark"] .testimonial-dot.is-active {
    background-color: #2dd4bf;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
    .testimonial-main-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 600px) {
    .testimonial-feedback-section {
        padding: 3.5rem 0 4rem;
    }
    .testimonial-card {
        flex: 0 0 calc(88% - 8px);
    }
    .testimonial-slider-track {
        gap: 16px;
    }
    .testimonial-main-title {
        font-size: 1.5rem;
    }
}











/* ==========================================================================
   Admin Topbar Messages & Notifications Dropdown Styling
   Enterprise UI styling with light and dark mode adaptations
   ========================================================================== */
.admin-panel-dropdown {
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    animation: adminDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adminDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-panel-dropdown .admin-message-item,
.admin-panel-dropdown .admin-notif-item {
    transition: background-color 0.18s ease, transform 0.15s ease;
    cursor: pointer;
    background-color: transparent;
}

.admin-panel-dropdown .admin-message-item:hover,
.admin-panel-dropdown .admin-notif-item:hover {
    background-color: #f8fafc !important;
}

.admin-panel-dropdown .admin-message-item.unread-msg {
    background-color: rgba(13, 110, 253, 0.04) !important;
}

.admin-panel-dropdown .admin-notif-item.unread-notif {
    background-color: rgba(245, 158, 11, 0.04) !important;
}

/* Dark mode theme adaptations */
html[data-theme="dark"] .admin-panel-dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .admin-panel-dropdown .bg-body-tertiary,
html[data-theme="dark"] .admin-panel-dropdown .bg-light-subtle {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .admin-panel-dropdown .admin-message-item,
html[data-theme="dark"] .admin-panel-dropdown .admin-notif-item {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .admin-panel-dropdown .admin-message-item:hover,
html[data-theme="dark"] .admin-panel-dropdown .admin-notif-item:hover {
    background-color: #334155 !important;
}

html[data-theme="dark"] .admin-panel-dropdown .admin-message-item.unread-msg {
    background-color: rgba(59, 130, 246, 0.12) !important;
}

html[data-theme="dark"] .admin-panel-dropdown .admin-notif-item.unread-notif {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

html[data-theme="dark"] .admin-panel-dropdown .text-dark {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .admin-panel-dropdown .text-secondary {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-panel-dropdown .text-muted {
    color: #64748b !important;
}


/* ==========================================================================
   OFFICIAL BIRTHDAY CELEBRATION HERO BANNER (LIGHT & DARK THEME ADAPTIVE)
   ========================================================================== */
.admin-birthday-celebration-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%) !important;
    border: 1px solid #fcd34d !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.75rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25) !important;
    transition: all 0.3s ease;
}

.admin-birthday-celebration-banner .bday-icon-circle {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
    flex-shrink: 0;
}

.admin-birthday-celebration-banner .bday-title,
.admin-birthday-celebration-banner h4 {
    color: #78350f !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.admin-birthday-celebration-banner .bday-text,
.admin-birthday-celebration-banner p {
    color: #92400e !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.admin-birthday-celebration-banner .bday-badge {
    background: #d97706 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50rem !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3) !important;
    white-space: nowrap;
}

/* DARK MODE OVERRIDES: LUXURIOUS GOLDEN AMBER GLASSMORPHISM */
html[data-theme="dark"] .admin-birthday-celebration-banner,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner {
    background: linear-gradient(135deg, #111c38 0%, #1e2640 45%, #2a2016 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(245, 158, 11, 0.12) !important;
}

html[data-theme="dark"] .admin-birthday-celebration-banner .bday-icon-circle,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner .bday-icon-circle {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fde047 !important;
    border: 2px solid rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .admin-birthday-celebration-banner .bday-title,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner .bday-title,
html[data-theme="dark"] .admin-birthday-celebration-banner h4,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner h4 {
    color: #fde047 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 12px rgba(253, 224, 71, 0.35) !important;
}

html[data-theme="dark"] .admin-birthday-celebration-banner .bday-text,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner .bday-text,
html[data-theme="dark"] .admin-birthday-celebration-banner p,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner p {
    color: #f1f5f9 !important;
    opacity: 0.95 !important;
}

html[data-theme="dark"] .admin-birthday-celebration-banner .bday-badge,
html[data-bs-theme="dark"] .admin-birthday-celebration-banner .bday-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4) !important;
}

/* ==========================================================================
   FLOATING QUICK CONNECT WIDGET (WhatsApp & Direct Calling)
   Elevated, rounded pills with authentic brand gradients, crisp icons,
   pulse animation, and generous bottom clearance so it never clips.
   ========================================================================== */

.floating-contact-container {
    position: fixed;
    bottom: 26px;
    left: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.floating-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px 0 8px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.floating-contact-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

/* WhatsApp Brand Pill */
.floating-contact-btn.btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    animation: wa-pulse 3s infinite;
}

.floating-contact-btn.btn-wa:hover {
    background: linear-gradient(135deg, #22bf5b 0%, #0e7367 100%);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* Direct Phone Call Brand Pill */
.floating-contact-btn.btn-call {
    background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.38);
}

.floating-contact-btn.btn-call:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e293b 100%);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.55);
}

.floating-contact-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-contact-icon-wrapper svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.floating-contact-label {
    letter-spacing: 0.02em;
    font-weight: 600;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .floating-contact-container {
        bottom: 18px;
        left: 16px;
        gap: 8px;
    }
    .floating-contact-btn {
        height: 40px;
        padding: 0 12px 0 6px;
        font-size: 0.8rem;
    }
    .floating-contact-icon-wrapper {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   CROSS-DEVICE ADAPTIVE & RESPONSIVE UI SUITE
   Provides fluid, optimized layouts tailored specifically for:
   1. Mobile Phones (320px - 575px)
   2. Tablet Devices (576px - 991px)
   3. Desktop & Laptops (992px and above)
   All code contains proper English comments for clarity and maintenance.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MOBILE PHONES (Portrait & Landscape: max-width 575.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    /* Fluid typography and container padding reset */
    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Prevent mobile browser zoom on form input focus */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="tel"],
    select.form-select,
    textarea.form-control {
        font-size: 16px !important;
    }

    /* Admin Viewport & Card Content Scaling on Phones */
    .admin-portal-viewport {
        padding: 0.75rem 0.5rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .admin-content-card {
        padding: 1rem 0.85rem !important;
        border-radius: 12px !important;
    }

    /* Page headers & Action toolbars stack vertically */
    .admin-portal-viewport .d-flex.justify-content-between.align-items-center {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .admin-portal-viewport .d-flex.justify-content-between.align-items-center > div {
        width: 100% !important;
    }

    /* Action button groups wrap or expand on phones */
    .admin-portal-viewport .d-flex.gap-2 {
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .admin-portal-viewport .d-flex.gap-2 .btn {
        flex: 1 1 auto !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Real-Time Metric & KPI Cards: Full width single column on mobile */
    .row-cols-1.row-cols-sm-2.row-cols-xl-4 .col {
        width: 100% !important;
        margin-bottom: 0.65rem !important;
    }

    /* Responsive Filter Tabs: Smooth horizontal swipe on mobile */
    .btn-group[role="group"] {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        white-space: nowrap !important;
        padding-bottom: 4px !important;
    }

    .btn-group[role="group"]::-webkit-scrollbar {
        height: 3px !important;
    }

    .btn-group[role="group"] .btn {
        flex: 0 0 auto !important;
        padding: 0.35rem 0.75rem !important;
        font-size: 0.78rem !important;
    }

    /* Table Responsiveness: Smooth touch scrolling container */
    .table-responsive {
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 1rem !important;
    }

    .table-responsive table {
        min-width: 650px !important; /* Preserves tabular integrity while allowing clean finger swipe */
    }

    /* Modal adaptation for mobile screens */
    .modal-dialog {
        margin: 0.5rem auto !important;
        max-width: calc(100% - 1rem) !important;
    }

    .modal-content {
        border-radius: 14px !important;
    }

    /* Donation checkout pills and inputs */
    .online-amount-btn {
        flex: 1 1 28% !important;
        min-width: 70px !important;
        text-align: center !important;
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
    }

    /* Mobile Floating Action & Sticky Bars */
    .sticky-mobile-pay-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        padding: 10px 14px !important;
        z-index: 1040 !important;
    }
}

/* --------------------------------------------------------------------------
   2. TABLET DEVICES (iPad / Portrait / Tablets: 576px to 991.98px)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) and (max-width: 991.98px) {
    /* Tablet viewport & padding adjustments */
    .admin-portal-viewport {
        padding: 1.25rem 1rem !important;
    }

    .admin-content-card {
        padding: 1.25rem !important;
    }

    /* KPI Cards: Balanced 2-column grid on tablets */
    .row-cols-1.row-cols-sm-2.row-cols-xl-4 .col {
        width: 50% !important;
        margin-bottom: 0.85rem !important;
    }

    /* Gateway Configuration Panels on Tablets: Clean stacked view */
    .col-lg-5, .col-lg-7 {
        width: 100% !important;
        margin-bottom: 1.25rem !important;
    }

    /* Tablet table container with touch scroll support */
    .table-responsive {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* --------------------------------------------------------------------------
   3. DESKTOP & LAPTOPS (PC, Workstations & Large Displays: 992px and above)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    /* Spacious enterprise desktop viewport */
    .admin-portal-viewport {
        padding: 1.75rem 2rem !important;
    }

    .admin-content-card {
        padding: 1.5rem !important;
    }

    /* Desktop KPI cards display in single balanced 4-column row */
    .row-cols-1.row-cols-sm-2.row-cols-xl-4 .col {
        width: 25% !important;
    }

    /* Full width side-by-side gateway management */
    .col-lg-5 {
        width: 41.666667% !important;
    }

    .col-lg-7 {
        width: 58.333333% !important;
    }
}


