/* ============================================================
   DigiNGO — PREMIUM UI/UX REDESIGN
   Override layer loaded AFTER style.css
   Design: International NGO Standard (UNICEF/WaterAid inspired)
   ============================================================ */

/* ================================================================
   § 1  DESIGN TOKENS
   ================================================================ */
:root {
    /* ── Primary: Deep Teal — trust, stability, professionalism ── */
    --primary: #0c6e5f;
    --primary-light: #14a085;
    --primary-lighter: #48c9a9;
    --primary-dark: #094d43;
    --primary-bg: rgba(12,110,95,0.06);

    /* ── Accent: Warm Coral — urgency for CTAs ── */
    --accent: #e8523f;
    --accent-light: #ff7b6b;
    --accent-warm: #f5a623;
    --accent-bg: rgba(232,82,63,0.08);

    /* ── Neutrals ── */
    --bg-body: #f7f8fa;
    --bg-white: #ffffff;
    --bg-section: #f0f2f5;
    --bg-section-alt: #fafbfc;
    --text-dark: #1a1d23;
    --text-body: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;

    /* ── Shadows — layered, realistic ── */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.04);

    /* ── Radii ── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --border-radius: 14px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;

    /* ── Typography ── */
    --font-heading: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Transitions ── */
    --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
    --transition-fast: all 0.15s ease;
    --transition-spring: all 0.4s cubic-bezier(0.34,1.56,0.64,1);

    /* ── Theme color (meta) ── */
    --theme-color: #0c6e5f;
}

/* ================================================================
   § 2  BASE & TYPOGRAPHY
   ================================================================ */
body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    border-radius: 3px;
}

.section-eyebrow {
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(12,110,95,0.12);
}

/* Page section backgrounds */
.section-highlight {
    background: var(--bg-section);
}
.section-white {
    background: var(--bg-white);
}

/* ================================================================
   § 3  PAGE LOADER
   ================================================================ */
#page-loader {
    background: var(--bg-white);
}
.loader-leaf {
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    width: 44px;
    height: 44px;
}

/* ================================================================
   § 4  TOP BAR
   ================================================================ */
.top-bar {
    background: linear-gradient(90deg, #0a3d35 0%, #0c5248 50%, #0a3d35 100%);
    border-bottom: 1px solid rgba(72,201,169,0.12);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}
.top-bar::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.03) 40%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 60%,
        transparent 100%);
}
.top-bar a { color: rgba(200,230,220,0.9); }
.top-bar a:hover { color: #fff; text-shadow: 0 0 8px rgba(72,201,169,0.5); }
.top-bar .divider { color: rgba(72,201,169,0.35); }
.top-bar-item i { color: var(--primary-lighter); }

/* Mobile top-bar */
.top-bar-mobile {
    background: linear-gradient(90deg, #0a3d35 0%, #0c5248 100%);
}
.top-bar-mobile-link { color: rgba(200,230,220,0.9) !important; }
.top-bar-mobile-link i { color: var(--primary-lighter); }
.top-bar-mobile-meta { border-top-color: rgba(72,201,169,0.2); }

/* ================================================================
   § 5  NAVBAR — Premium White/Transparent
   ================================================================ */
.navbar-ngo {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.03);
    animation: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.navbar-ngo.scrolled {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.04);
    animation: none;
}

/* Brand */
.navbar-brand .brand-logo {
    background: linear-gradient(145deg, var(--primary-light), var(--primary));
    box-shadow: 0 2px 10px rgba(12,110,95,0.25);
    animation: none;
}
.navbar-brand .brand-logo::before {
    border-color: rgba(12,110,95,0.2);
}
.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(12,110,95,0.35);
}
.navbar-brand .brand-text .name {
    color: var(--text-dark);
    text-shadow: none;
    font-weight: 800;
}
.navbar-brand .brand-text .tagline {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Nav Links — dark text on white bg */
.navbar-ngo .nav-link {
    color: var(--text-body) !important;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}
.navbar-ngo .nav-link:hover {
    color: var(--primary) !important;
}
.navbar-ngo .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}
/* Underline accent */
.navbar-ngo .nav-link::after {
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    bottom: 8px;
    height: 2.5px;
    border-radius: 2px;
}

/* Dropdown */
.dropdown-menu-ngo {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}
.dropdown-menu-ngo .dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 10px 14px;
}
.dropdown-menu-ngo .dropdown-item:hover,
.dropdown-menu-ngo .dropdown-item.active {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.dropdown-menu-ngo .dropdown-item i {
    width: 18px;
    text-align: center;
}

/* Navbar Buttons */
.navbar-ngo .btn-outline-light {
    border-color: var(--border-color) !important;
    color: var(--text-body) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    background: transparent;
    backdrop-filter: none;
}
.navbar-ngo .btn-outline-light:hover {
    background: var(--primary-bg) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
/* Donate button — coral accent */
.navbar-ngo .btn-warning.fw-bold {
    background: linear-gradient(135deg, var(--accent), #d4432f) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 2px 10px rgba(232,82,63,0.3);
    font-size: 0.78rem;
    padding: 8px 18px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.navbar-ngo .btn-warning.fw-bold:hover {
    background: linear-gradient(135deg, #d4432f, #c0362a) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,82,63,0.4);
}
/* Admin / logout buttons */
.navbar-ngo .btn-danger {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    border-radius: var(--radius-sm) !important;
}

/* Hamburger — dark on white */
.navbar-toggler {
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
}
.navbar-toggler:hover {
    background: var(--bg-section);
    border-color: var(--text-muted);
}
.navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 29, 35, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Caret color */
.navbar-ngo .nav-link .nav-caret { color: var(--text-muted); }

/* ================================================================
   § 6  HERO SLIDER
   ================================================================ */
.site-hero.hero-slider {
    height: 620px;
}
.hero-slide__scrim {
    background: linear-gradient(
        105deg,
        rgba(9, 30, 25, 0.92) 0%,
        rgba(9, 30, 25, 0.6) 40%,
        rgba(9, 30, 25, 0.3) 100%
    );
}
.hero-slide__scrim--strong {
    background: linear-gradient(
        160deg,
        rgba(9, 30, 25, 0.95) 0%,
        rgba(12, 80, 65, 0.8) 50%,
        rgba(20, 100, 80, 0.6) 100%
    );
}
.site-hero--static .hero-slide__media {
    background: linear-gradient(135deg, #094d43 0%, #0c6e5f 42%, #14a085 100%);
}
.hero-slide__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-slide__lead {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero-slide__inner {
    align-items: center;
    padding: 0;
}
.hero-slide__content {
    max-width: 42rem;
    padding-bottom: 3rem;
}

/* Carousel controls */
.site-hero .site-hero__control {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}
.site-hero .site-hero__control:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.site-hero .site-hero__indicators [data-bs-target] {
    border-color: rgba(255,255,255,0.5) !important;
    border-top-color: rgba(255,255,255,0.5) !important;
    border-bottom-color: rgba(255,255,255,0.5) !important;
}
.site-hero .site-hero__indicators [data-bs-target].active {
    background: #fff;
    border-color: #fff !important;
}

/* ================================================================
   § 7  QUICK ACTIONS
   ================================================================ */
.quick-actions {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.quick-action-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
}
.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-lighter);
    color: var(--primary);
}
.quick-action-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    font-size: 1.35rem;
    transition: var(--transition);
}
.quick-action-card:hover .icon-wrap {
    transform: scale(1.1) rotate(-3deg);
}
.quick-action-card h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 4px;
}

/* ================================================================
   § 8  STATS SECTION
   ================================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.stat-item {
    padding: 20px 15px;
    position: relative;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ================================================================
   § 9  ACTIVITY FEED
   ================================================================ */
.feed-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}
.feed-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.feed-card .feed-header {
    border-bottom-color: var(--border-light);
    padding: 16px 20px;
}
.feed-card .feed-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.feed-card .feed-user-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
}
.feed-card .feed-time { color: var(--text-muted); font-size: 0.76rem; }
.feed-card .feed-body { padding: 16px 20px; }
.feed-card .feed-body p { color: var(--text-body); font-size: 0.93rem; line-height: 1.7; }
.feed-card .feed-img { height: 220px; border-radius: 0; }
.feed-card .feed-actions {
    background: var(--bg-section-alt);
    border-top-color: var(--border-light);
    padding: 10px 20px;
}
.feed-action-btn {
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.feed-action-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}
.comment-box input {
    border-color: var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-section-alt);
    font-size: 0.85rem;
}
.comment-box input:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12,110,95,0.1);
}
.comment-box button {
    background: var(--primary);
    border-radius: var(--radius-full);
}
.comment-box button:hover { background: var(--primary-dark); }

/* ================================================================
   § 10  SIDEBAR
   ================================================================ */
.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}
.sidebar-card .sidebar-header {
    background: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 20px;
}
.sidebar-card .sidebar-body { padding: 16px; }

/* Member preview */
.member-preview-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.member-preview-card .member-avatar {
    border: 3px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}
.member-preview-card h6 { font-family: var(--font-heading); }

/* Management mini cards */
.mgmt-mini-card { border-bottom-color: var(--border-light); }
.mgmt-mini-avatar {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-sm);
}
.mgmt-mini-info .name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}
.mgmt-mini-info .role { color: var(--text-muted); }

/* Donate widget */
.donate-widget-ngo .donate-widget-head {
    background: linear-gradient(135deg, var(--accent), #d4432f) !important;
}

/* ================================================================
   § 11  ABOUT SECTION (Homepage)
   ================================================================ */
.about-logo-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
}
.mission-vision-icon {
    border-radius: var(--radius-md);
}
.mission-vision-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================================
   § 12  OBJECTIVES
   ================================================================ */
.objective-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}
.objective-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-lighter);
}
.objective-card .obj-icon {
    border-radius: var(--radius-md);
}
.objective-card h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}
.objective-card p { color: var(--text-muted); }

/* ================================================================
   § 13  GALLERY
   ================================================================ */
.gallery-item {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item .gallery-overlay {
    background: rgba(12,110,95,0.7);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
}

/* ================================================================
   § 14  TESTIMONIALS
   ================================================================ */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    padding: 32px;
}
.testimonial-card::before {
    color: rgba(12,110,95,0.12);
    font-size: 4.5rem;
}
.testimonial-card .stars { color: var(--accent-warm); }
.testimonial-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.75;
}
.testimonial-author {
    border-top-color: var(--border-light);
}
.testimonial-author .t-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.testimonial-author .t-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}
.testimonial-author .t-role { color: var(--text-muted); }

/* ================================================================
   § 15  FOOTER
   ================================================================ */
.footer-main {
    background: linear-gradient(180deg, #141c24 0%, #0d1117 100%);
    color: #94a3b8;
    padding: 64px 0 32px;
    position: relative;
}
.footer-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter), var(--accent-warm), var(--accent));
}
.footer-brand .f-logo {
    background: var(--primary);
    border-radius: var(--radius-md);
}
.footer-brand p { color: #94a3b8; }
.footer-title {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}
.footer-links li a {
    color: #94a3b8;
    font-size: 0.85rem;
}
.footer-links li a:hover { color: #fff; padding-left: 4px; }
.footer-links li a i { color: var(--primary-lighter); }
.footer-contact-item { color: #94a3b8; }
.footer-contact-item .fc-icon {
    background: rgba(12,110,95,0.15);
    color: var(--primary-lighter);
}
.footer-contact-item a { color: var(--primary-lighter) !important; }

/* Social icons */
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    transition: var(--transition-spring);
}
.social-icon:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.social-icon.fb:hover { background: #1877f2; border-color: #1877f2; }
.social-icon.tw:hover { background: #1da1f2; border-color: #1da1f2; }
.social-icon.ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.social-icon.yt:hover { background: #ff0000; border-color: #ff0000; }
.social-icon.wa:hover { background: #25d366; border-color: #25d366; }

/* Footer bottom */
.footer-bottom {
    background: #0a0f14;
    padding: 16px 0;
    color: #4a5568;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom a { color: var(--primary-lighter); }

/* ================================================================
   § 16  BUTTONS
   ================================================================ */
.btn-primary-ngo {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 26px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(12,110,95,0.25);
    transition: var(--transition);
}
.btn-primary-ngo:hover {
    background: linear-gradient(135deg, var(--primary-dark), #073d35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12,110,95,0.35);
    color: #fff;
}
.btn-outline-ngo {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 9px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
}
.btn-outline-ngo:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12,110,95,0.25);
}

/* ================================================================
   § 17  CARDS
   ================================================================ */
.card-ngo {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}
.card-ngo:hover { box-shadow: var(--shadow-card-hover); }

/* ================================================================
   § 18  ABOUT PAGE
   ================================================================ */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}
.about-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
}
.about-hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.about-hero__wave svg path { fill: var(--bg-body); }

/* About image */
.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-img__accent {
    border-color: var(--primary-lighter);
    border-radius: var(--radius-lg);
}
.about-img__badge {
    background: var(--primary);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
}
.about-body-text {
    color: var(--text-body);
    line-height: 1.9;
}
.about-reg-badge {
    background: var(--primary-bg);
    border-color: rgba(12,110,95,0.15);
    color: var(--text-body);
}

/* MVV Cards */
.mvv-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.mvv-mission::before { background: var(--primary); }
.mvv-vision::before  { background: var(--accent-warm); }
.mvv-values::before  { background: var(--accent); }
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-mission .mvv-icon-wrap { background: var(--primary-bg); color: var(--primary); }
.mvv-vision  .mvv-icon-wrap { background: rgba(245,166,35,0.1); color: var(--accent-warm); }
.mvv-values  .mvv-icon-wrap { background: var(--accent-bg); color: var(--accent); }
.mvv-title {
    font-family: var(--font-heading);
    color: var(--text-dark);
}
.mvv-text { color: var(--text-muted); }

/* About Stats Strip */
.about-stats-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.about-stat-item { border-right-color: rgba(255,255,255,0.1); }
.about-stat-item:hover { background: rgba(255,255,255,0.05); }
.about-stat-icon { color: rgba(255,255,255,0.6); }
.about-stat-num {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}
.about-stat-num span { color: var(--accent-warm); }
.about-stat-label { color: rgba(255,255,255,0.72); }

/* About CTA */
.about-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
}
.about-cta__icon-wrap {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
}
.about-cta__title { font-family: var(--font-heading); font-weight: 800; }
.about-cta__btn-outline {
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
}
.about-cta__btn-solid {
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
}
.about-cta__btn-solid:hover {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
}

/* ================================================================
   § 19  ACTIVITIES PAGE
   ================================================================ */
.activities-page-header {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(12,110,95,0.04) 60%, #fafbfc 100%);
    border-color: rgba(12,110,95,0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.activity-grid-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}
.activity-grid-card:hover {
    transform: translateY(-6px) scale(1.005);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-lighter);
}
.activity-grid-card__badge {
    background: rgba(255,255,255,0.95);
    border-color: var(--border-light);
    color: var(--primary);
}
.activity-grid-card__body { padding: 20px 22px; }
.activity-grid-card__avatar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    box-shadow: 0 2px 8px rgba(12,110,95,0.25);
    outline-color: rgba(72,201,169,0.3);
}
.activity-grid-card__role {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: rgba(12,110,95,0.15);
}
.activity-grid-card__title {
    font-family: var(--font-heading);
    color: var(--primary-dark);
}
.activity-grid-card:hover .activity-grid-card__title { color: var(--primary); }
.activity-grid-card__excerpt { color: var(--text-muted); }
.activity-grid-card__footer { border-top-color: var(--border-light); }
.activity-grid-card__date {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: rgba(12,110,95,0.12);
}
.activity-view-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(12,110,95,0.25);
}
.activity-view-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 14px rgba(12,110,95,0.35);
    color: #fff;
}
.activity-grid-card__media-accent {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-lighter), var(--primary));
}

/* Activity modal */
.activity-modal-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.activity-modal-header {
    border-bottom-color: var(--border-light);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.activity-modal-header__eyebrow { color: var(--primary); }
.activity-modal-header__title { color: var(--primary-dark); font-family: var(--font-heading); }
.activity-modal__avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 3px 12px rgba(12,110,95,0.25);
    outline-color: var(--border-light);
}
.activity-modal__role-chip { background: var(--primary-bg); color: var(--primary); }
.activity-modal__prose { color: var(--text-body); }

/* ================================================================
   § 20  SECRETARY / PRESIDENT MESSAGE
   ================================================================ */
.secretary-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.secretary-photo {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.secretary-photo .sec-avatar {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}
.secretary-content blockquote {
    border-left-color: var(--primary-light);
    color: var(--text-body);
}

/* ================================================================
   § 21  VIDEO GALLERY
   ================================================================ */
.video-gallery-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
}
.video-gallery-hero .section-title { color: #fff; }
.video-gallery-hero .section-badge {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.video-gallery-hero .section-divider { background: rgba(255,255,255,0.3); }
.media-pill {
    border-color: rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
}
.media-pill.active {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}
.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-color: var(--border-light);
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-lighter);
}
.video-search-input {
    border-color: var(--border-color);
    border-radius: var(--radius-full);
}
.video-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(12,110,95,0.1);
}
.cat-pill {
    border-color: var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}
.cat-pill:hover { border-color: var(--primary-light); color: var(--primary); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.play-btn-circle { color: var(--primary-dark); }
.video-card-title { font-family: var(--font-heading); color: var(--text-dark); }
.video-meta-cat { color: var(--primary); }
.page-dot {
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
}
.page-dot.active { background: var(--primary); border-color: var(--primary); }
.btn-load-more {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(12,110,95,0.25);
}
.btn-load-more:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 8px 24px rgba(12,110,95,0.35);
}

/* ================================================================
   § 22  CAMPAIGN PAGES
   ================================================================ */
.card.border-0.shadow-sm { box-shadow: var(--shadow-card); border-radius: var(--radius-md) !important; }
.progress { border-radius: var(--radius-full); }
.progress-bar.bg-success { background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important; }

/* ================================================================
   § 23  DONATE PAGE
   ================================================================ */
.donation-hero,
.campaigns-hero,
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%) !important;
}

/* ================================================================
   § 24  PROJECT PAGES
   ================================================================ */
.project-filter-pill,
.project-status-pill {
    border-radius: var(--radius-full);
    font-weight: 600;
    border-color: var(--border-color);
    color: var(--text-muted);
}
.project-filter-pill:hover,
.project-status-pill:hover { border-color: var(--primary); color: var(--primary); }
.project-filter-pill.active,
.project-status-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.project-cat-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}
.project-cat-hero__title { font-family: var(--font-heading); letter-spacing: -0.02em; }
.project-cat-activity:hover { border-top-color: var(--primary); }
.project-cat-stat__value { font-family: var(--font-heading); }

/* ================================================================
   § 25  ACHIEVEMENTS
   ================================================================ */
.achievements-why__title { color: var(--primary); }
.achievements-why__icon {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ================================================================
   § 26  FORMS
   ================================================================ */
.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: var(--transition);
    color: var(--text-body);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12,110,95,0.1);
}
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

/* ================================================================
   § 27  TABLES
   ================================================================ */
.table { color: var(--text-body); }
.table thead th {
    background: var(--bg-section);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border-color);
}
.table tbody td {
    border-bottom-color: var(--border-light);
    vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bg-section-alt);
}

/* ================================================================
   § 28  BADGES & PILLS (inline)
   ================================================================ */
.badge {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ================================================================
   § 29  DARK MODE
   ================================================================ */
body.dark-mode {
    --bg-body: #0d1117;
    --bg-white: #161b22;
    --bg-section: #1c2128;
    --bg-section-alt: #141920;
    --text-dark: #e6edf3;
    --text-body: #c9d1d9;
    --text-muted: #8b949e;
    --text-light: #6e7681;
    --border-color: #30363d;
    --border-light: #21262d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.15), 0 6px 16px rgba(0,0,0,0.2);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.35);
    --primary-bg: rgba(12,110,95,0.12);
    --accent-bg: rgba(232,82,63,0.12);
}

/* Dark navbar */
body.dark-mode .navbar-ngo {
    background: rgba(22,27,34,0.95) !important;
    border-bottom-color: var(--border-color);
}
body.dark-mode .navbar-ngo.scrolled {
    background: rgba(22,27,34,0.98) !important;
}
body.dark-mode .navbar-brand .brand-text .name { color: var(--text-dark); }
body.dark-mode .navbar-brand .brand-text .tagline { color: var(--text-muted); }
body.dark-mode .navbar-ngo .nav-link { color: var(--text-body) !important; }
body.dark-mode .navbar-ngo .nav-link:hover { color: var(--primary-lighter) !important; }
body.dark-mode .navbar-ngo .nav-link.active { color: var(--primary-lighter) !important; }
body.dark-mode .navbar-ngo .btn-outline-light {
    border-color: var(--border-color) !important;
    color: var(--text-body) !important;
}
body.dark-mode .navbar-toggler {
    border-color: var(--border-color);
}
body.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 209, 217, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark dropdown */
body.dark-mode .dropdown-menu-ngo {
    background: var(--bg-white);
    border-color: var(--border-color);
}
body.dark-mode .dropdown-menu-ngo .dropdown-item { color: var(--text-body); }
body.dark-mode .dropdown-menu-ngo .dropdown-item:hover { background: var(--primary-bg); color: var(--primary-lighter); }

/* Dark cards */
body.dark-mode .feed-card,
body.dark-mode .sidebar-card,
body.dark-mode .testimonial-card,
body.dark-mode .objective-card,
body.dark-mode .secretary-card,
body.dark-mode .activity-grid-card,
body.dark-mode .card-ngo,
body.dark-mode .video-card {
    background: var(--bg-white);
    border-color: var(--border-color);
}
body.dark-mode .feed-card .feed-actions { background: var(--bg-section); }
body.dark-mode .feed-card .feed-header { border-bottom-color: var(--border-color); }
body.dark-mode .comment-box input { background: var(--bg-section); color: var(--text-body); border-color: var(--border-color); }
body.dark-mode .activities-page-header { background: var(--bg-section); border-color: var(--border-color); }

/* Dark activity cards */
body.dark-mode .activity-grid-card__title { color: var(--text-dark); }
body.dark-mode .activity-grid-card:hover .activity-grid-card__title { color: var(--primary-lighter); }
body.dark-mode .activity-grid-card__excerpt { color: var(--text-muted); }
body.dark-mode .activity-grid-card__date { background: var(--bg-section); color: var(--primary-lighter); border-color: var(--border-color); }
body.dark-mode .activity-grid-card__role { background: var(--primary-bg); border-color: rgba(72,201,169,0.2); color: var(--primary-lighter); }
body.dark-mode .activity-grid-card__badge { background: rgba(22,27,34,0.92); color: var(--primary-lighter); border-color: var(--border-color); }
body.dark-mode .activity-grid-card__footer { border-top-color: var(--border-color); }
body.dark-mode .activity-view-more-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

/* Dark modal */
body.dark-mode .activity-modal-content { background: var(--bg-white); }
body.dark-mode .activity-modal-header { background: var(--bg-section); border-bottom-color: var(--border-color); }
body.dark-mode .activity-modal-header__eyebrow { color: var(--primary-lighter); }
body.dark-mode .activity-modal-header__title { color: var(--text-dark); }
body.dark-mode .activity-modal__sheet { background: var(--bg-white); }
body.dark-mode .activity-modal__prose { color: var(--text-body); }
body.dark-mode .activity-modal__role-chip { background: var(--primary-bg); color: var(--primary-lighter); }
body.dark-mode .activity-modal-close { filter: none; opacity: 0.8; color: var(--text-muted); }

/* Dark footer */
body.dark-mode .footer-main { background: linear-gradient(180deg, #0d1117, #010409); }
body.dark-mode .footer-bottom { background: #010409; }

/* Dark sidebar */
body.dark-mode .mgmt-mini-card { border-bottom-color: var(--border-color); }

/* Dark MVV */
body.dark-mode .mvv-card { background: var(--bg-white); border-color: var(--border-color); }
body.dark-mode .about-reg-badge { background: var(--bg-section); border-color: var(--border-color); }
body.dark-mode .section-eyebrow { background: var(--primary-bg); border-color: rgba(12,110,95,0.2); }

/* Dark video */
body.dark-mode .video-card { background: var(--bg-white); border-color: var(--border-color); }
body.dark-mode .video-card-title { color: var(--text-dark); }
body.dark-mode .video-filter-bar { background: var(--bg-section); border-color: var(--border-color); }
body.dark-mode .video-search-input { background: var(--bg-white); border-color: var(--border-color); color: var(--text-body); }
body.dark-mode .cat-pill { background: var(--bg-white); border-color: var(--border-color); color: var(--text-muted); }
body.dark-mode .cat-pill.active { background: var(--primary); color: #fff; }
body.dark-mode .page-dot { background: var(--bg-white); border-color: var(--border-color); color: var(--text-muted); }

/* Dark forms */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background: var(--bg-section);
    border-color: var(--border-color);
    color: var(--text-body);
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12,110,95,0.15);
}

/* Dark mobile navbar collapse */
body.dark-mode .navbar-collapse-ngo {
    background: rgba(22,27,34,0.98);
}

/* ================================================================
   § 30  MOBILE RESPONSIVE OVERRIDES
   ================================================================ */

/* -- Mobile navbar collapse -- */
@media (max-width: 991.98px) {
    .navbar-collapse-ngo {
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border: 1px solid var(--border-light);
        border-top: none;
        box-shadow: var(--shadow-lg);
    }
    .navbar-ngo .nav-link { color: var(--text-body) !important; font-size: 0.9rem; }
    .navbar-ngo .nav-link:hover { color: var(--primary) !important; }
    .navbar-ngo .nav-link.active { color: var(--primary) !important; }
    .navbar-actions {
        border-top-color: var(--border-light);
    }

    /* Mobile dropdown */
    .dropdown-menu-ngo {
        background: var(--bg-section);
        box-shadow: none;
        border: none;
        border-radius: var(--radius-sm);
    }
    .dropdown-menu-ngo .dropdown-item { color: var(--text-body); }
    .dropdown-menu-ngo .dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }
    .dropdown-menu-ngo .dropdown-item.active { background: var(--primary-bg); color: var(--primary-dark); }

    /* Dark mobile override */
    body.dark-mode .navbar-collapse-ngo {
        background: rgba(22,27,34,0.98);
        border-color: var(--border-color);
    }
    body.dark-mode .dropdown-menu-ngo {
        background: var(--bg-section);
    }
    body.dark-mode .dropdown-menu-ngo .dropdown-item { color: var(--text-body); }
    body.dark-mode .dropdown-menu-ngo .dropdown-item:hover { background: var(--primary-bg); color: var(--primary-lighter); }
}

/* -- Mobile hero -- */
@media (max-width: 767px) {
    .site-hero.hero-slider { height: 380px; }
    .hero-slide__title { font-size: clamp(1.3rem, 6vw, 1.8rem); }
    .hero-slide__lead { font-size: 0.88rem; }
    .hero-slide__content { padding-bottom: 2rem; }
}
@media (max-width: 480px) {
    .site-hero.hero-slider { height: 300px; }
    .hero-slide__title { font-size: clamp(1.1rem, 5.5vw, 1.5rem); }
}

/* -- Mobile quick actions -- */
@media (max-width: 575px) {
    .quick-actions { margin-top: -24px; }
    .quick-action-card { padding: 16px 10px; }
    .quick-action-card .icon-wrap { width: 46px; height: 46px; font-size: 1.2rem; border-radius: var(--radius-sm); }
    .quick-action-card h6 { font-size: 0.8rem; }
}

/* -- Mobile stats -- */
@media (max-width: 767px) {
    .stats-section { padding: 36px 0; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.78rem; }
}

/* -- Mobile typography -- */
@media (max-width: 767px) {
    .section-title { font-size: clamp(1.3rem, 4vw, 1.6rem); }
}
@media (max-width: 480px) {
    .section-title { font-size: clamp(1.15rem, 5vw, 1.35rem); }
}

/* -- Mobile footer -- */
@media (max-width: 767px) {
    .footer-main { padding: 40px 0 24px; }
    .footer-bottom .d-flex { flex-direction: column; text-align: center; }
}

/* ================================================================
   § 31  ANIMATIONS & MICRO-INTERACTIONS
   ================================================================ */
/* Smooth entrance for AOS replacements */
@keyframes redesignFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes redesignFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Button press effect */
.btn-primary-ngo:active,
.btn-outline-ngo:active {
    transform: translateY(0) scale(0.98);
}

/* Card focus states for accessibility */
.quick-action-card:focus-visible,
.objective-card:focus-visible,
.activity-grid-card:focus-visible,
.video-card:focus-visible,
.gallery-item:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   § 32  INLINE STYLE OVERRIDES (for PHP inline styles)
   ================================================================ */
/* Override green badges used inline in PHP */
[style*="background:#e8f5e9"][style*="color:#2e7d32"],
[style*="background: #e8f5e9"][style*="color: #2e7d32"] {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(12,110,95,0.12);
    font-family: var(--font-heading);
}

/* Override green accents used inline */
[style*="color:var(--primary)"],
[style*="color: var(--primary)"] {
    color: var(--primary) !important;
}
[style*="color:#2e7d32"] {
    color: var(--primary) !important;
}
[style*="color:#1b5e20"] {
    color: var(--primary-dark) !important;
}

/* Override green backgrounds used in CTA sections */
[style*="background:linear-gradient(135deg,#2e7d32"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

/* Event date badges */
[style*="background:var(--primary)"][style*="color:#fff"] {
    background: var(--primary) !important;
    border-radius: var(--radius-md) !important;
}

/* Footer inline link colors */
.footer-main a[style*="color:#9ccc65"] {
    color: var(--primary-lighter) !important;
}

/* Footer registration badge inline override */
.footer-brand [style*="background:rgba(76,175,80"] {
    background: rgba(12,110,95,0.15) !important;
    color: var(--primary-lighter) !important;
}

/* Newsletter input in footer */
.footer-main input[style*="background:rgba(255,255,255,0.1)"] {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    border-radius: var(--radius-sm) !important;
}

/* ================================================================
   § 33  SCROLLBAR STYLING
   ================================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-section); }
::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ================================================================
   § 34  SELECTION STYLING
   ================================================================ */
::selection {
    background: rgba(12,110,95,0.2);
    color: var(--primary-dark);
}

/* ================================================================
   § 35  THREE-COLUMN SOCIAL MEDIA FEED LAYOUT & RESPONSIVE RULES
   ================================================================ */
.ngo-3col-grid {
    display: grid;
    grid-template-columns: minmax(0, 22fr) minmax(0, 56fr) minmax(0, 22fr);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure grid items never blow out their column bounds */
.ngo-left-sidebar,
.ngo-center-feed,
.ngo-right-sidebar {
    min-width: 0;
    box-sizing: border-box;
}

/* Large Desktop (>=1400px) */
@media (min-width: 1400px) {
    .ngo-3col-grid {
        grid-template-columns: minmax(0, 22fr) minmax(0, 56fr) minmax(0, 22fr);
        gap: 1.5rem;
    }
}

/* Medium Desktop / Laptops (992px - 1399px) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .ngo-3col-grid {
        grid-template-columns: minmax(0, 24fr) minmax(0, 52fr) minmax(0, 24fr);
        gap: 1rem;
    }

    .sidebar-card .sidebar-body {
        padding: 12px;
    }

    .member-preview-card {
        padding: 20px 14px !important;
    }

    .member-preview-card .btn {
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
    }

    .donate-widget-ngo .btn-outline-ngo {
        padding: 4px 6px !important;
        font-size: 0.78rem !important;
        min-width: 54px !important;
    }
}

/* Left & Right Sidebar Containers */
.ngo-left-sidebar,
.ngo-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ngo-right-sidebar.sticky-sidebar {
    position: sticky;
    top: 85px;
    align-self: start;
    z-index: 20;
    max-width: 100%;
}


/* Center Feed Container */
.ngo-center-feed {
    display: flex;
    flex-direction: column;
}

.ngo-center-feed-scroll {
    max-height: calc(100vh - 110px);
    min-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scroll-behavior: smooth;
}

/* Custom Scrollbars */
.ngo-center-feed-scroll::-webkit-scrollbar,
.mgmt-scroll-viewport::-webkit-scrollbar {
    width: 6px;
}
.ngo-center-feed-scroll::-webkit-scrollbar-track,
.mgmt-scroll-viewport::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.ngo-center-feed-scroll::-webkit-scrollbar-thumb,
.mgmt-scroll-viewport::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}
.ngo-center-feed-scroll::-webkit-scrollbar-thumb:hover,
.mgmt-scroll-viewport::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Management Team Continuous Auto-Scroll Upward Loop */
.mgmt-scroll-viewport {
    height: 280px;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 16px 16px;
}
.mgmt-scroll-track {
    display: flex;
    flex-direction: column;
    animation: mgmtAutoScrollLoop 22s linear infinite;
}
.mgmt-scroll-viewport:hover .mgmt-scroll-track {
    animation-play-state: paused;
}

@keyframes mgmtAutoScrollLoop {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* PDF Attachment Card styling */
.feed-pdf-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}
.feed-pdf-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.feed-pdf-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Video Responsive Player */
.feed-video-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Photo Gallery Carousel styling */
.feed-gallery-carousel .carousel-item img {
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
}

/* Tablet Layout (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ngo-3col-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .ngo-center-feed {
        order: 1;
        width: 100%;
    }

    .ngo-center-feed-scroll {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    /* Sidebars side-by-side on tablet */
    .ngo-left-sidebar {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .ngo-right-sidebar {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .ngo-right-sidebar.sticky-sidebar {
        position: static;
    }
}

/* Mobile Layout (< 768px) */
@media (max-width: 767.98px) {
    .ngo-3col-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .ngo-left-sidebar,
    .ngo-right-sidebar {
        display: contents; /* Promotes child cards to flex items */
    }

    /* Mobile requested sequence:
       1. Recent Activities
       2. Become a Member
       3. Upcoming Events
       4. Management Team
       5. Make a Donation
    */
    .ngo-center-feed { order: 1; width: 100%; }
    .ngo-card-member { order: 2; width: 100%; }
    .ngo-card-events { order: 3; width: 100%; }
    .ngo-card-management { order: 4; width: 100%; }
    .ngo-card-donation { order: 5; width: 100%; }

    .ngo-center-feed-scroll {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .ngo-right-sidebar.sticky-sidebar {
        position: static;
    }

    .feed-gallery-carousel .carousel-item img {
        height: 240px;
    }

    .feed-pdf-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .feed-pdf-card .btn {
        width: 100%;
    }
}


