/* ============================================================
   DigiNGO - Main Stylesheet
   Theme: Light Green NGO / Government-Trust Style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --primary-lighter: #81c784;
    --primary-dark: #1b5e20;
    --accent: #ff8f00;
    --accent-light: #ffca28;
    --bg-body: #eaf5e4;
    --bg-white: #ffffff;
    --bg-section: #f4faf1;
    --text-dark: #1a2e1b;
    --text-muted: #5a6e5b;
    --text-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(46,125,50,0.10);
    --shadow-md: 0 6px 24px rgba(46,125,50,0.15);
    --shadow-lg: 0 12px 40px rgba(46,125,50,0.20);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.3; }

/* ================================================================
   LOADING SPINNER
   ================================================================ */
#page-loader {
    position: fixed; top:0; left:0; right:0; bottom:0;
    background: var(--bg-white);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}
#page-loader.hide { opacity:0; pointer-events:none; }
.loader-leaf {
    width: 50px; height: 50px;
    border: 4px solid #c8e6c9;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   TOP BAR  — premium redesign
   ================================================================ */
.top-bar {
    background: linear-gradient(90deg, #0d3b12 0%, #1b5e20 50%, #0d3b12 100%);
    color: rgba(200,230,201,0.92);
    font-size: 0.73rem;
    padding: 0;
    line-height: 1.35;
    border-bottom: 1px solid rgba(76,175,80,0.18);
    position: relative;
    overflow: hidden;
}
/* subtle shimmer line across top-bar */
.top-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 40%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.04) 60%,
        transparent 100%);
    pointer-events: none;
}
.top-bar a { color: rgba(200,230,201,0.9); transition: var(--transition); }
.top-bar a:hover { color: #fff; text-shadow: 0 0 8px rgba(129,199,132,0.6); }
.top-bar .divider {
    margin: 0 10px;
    color: rgba(76,175,80,0.5);
    flex-shrink: 0;
    font-size: 0.6rem;
}
.top-bar-inner { max-width: 100%; }
.top-bar-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    height: 34px;
}
.top-bar-contact,
.top-bar-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    height: 100%;
}
.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 4px;
    height: 100%;
    transition: var(--transition);
}
.top-bar-item i {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--primary-light);
    opacity: 1;
}
.top-bar-address { max-width: 100%; }
.top-bar-address-text {
    display: inline-block;
    max-width: min(420px, 28vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.top-bar-reg { white-space: nowrap; opacity: 0.8; }

/* Mobile top-bar */
.top-bar-mobile {
    font-size: 0.71rem;
    padding: 0 !important;
    background: linear-gradient(90deg, #0d3b12 0%, #1b5e20 100%);
}
.top-bar-mobile .top-bar-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 8px 0 4px;
}
.top-bar-mobile-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(200,230,201,0.9) !important;
    min-width: 0;
    transition: var(--transition);
}
.top-bar-mobile-link:hover { color: #fff !important; }
.top-bar-mobile-link i { flex-shrink: 0; font-size: 0.7rem; color: var(--primary-light); }
.top-bar-mobile-meta {
    margin-top: 6px;
    padding: 6px 0 8px;
    border-top: 1px solid rgba(76,175,80,0.25);
    color: rgba(200,230,201,0.8);
}

/* ================================================================
   NAVBAR  — premium redesign
   ================================================================ */
@keyframes navGlow {
    0%,100% { box-shadow: 0 3px 18px rgba(46,125,50,0.32), inset 0 -1px 0 rgba(129,199,132,0.18); }
    50%      { box-shadow: 0 3px 28px rgba(46,125,50,0.5),  inset 0 -1px 0 rgba(129,199,132,0.3); }
}
@keyframes logoPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,143,0,0); }
    50%      { box-shadow: 0 0 0 6px rgba(255,143,0,0.15); }
}

.navbar-ngo {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%) !important;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 3px 18px rgba(0,0,0,0.22), inset 0 -1px 0 rgba(129,199,132,0.2);
    transition: var(--transition);
    --nav-link-pad-x: 11px;
    --nav-link-pad-y: 16px;
    animation: navGlow 4s ease-in-out infinite;
}
.navbar-ngo.scrolled {
    background: linear-gradient(135deg, rgba(13,59,18,0.97) 0%, rgba(27,94,32,0.97) 100%) !important;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3), inset 0 -1px 0 rgba(129,199,132,0.25);
    animation: none;
}

.header-nav-container {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
@media (min-width: 992px) {
    .header-nav-container { flex-wrap: nowrap; }
}

/* ---- Brand / Logo ---- */
.navbar-ngo .navbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 0;
    max-width: min(100%, 270px);
    min-width: 0;
    text-decoration: none;
}
@media (min-width: 992px) {
    .navbar-ngo .navbar-brand { max-width: min(100%, 310px); }
}

.navbar-brand .brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #ffca28, #ff8f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--primary-dark);
    transition: var(--transition);
    box-shadow: 0 0 0 3px rgba(255,202,40,0.25), 0 4px 14px rgba(255,143,0,0.35);
    animation: logoPulse 3s ease-in-out infinite;
    position: relative;
}
.navbar-brand .brand-logo::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255,202,40,0.5);
    pointer-events: none;
}
@media (min-width: 1200px) {
    .navbar-brand .brand-logo { width: 56px; height: 56px; font-size: 1.6rem; }
}
.brand-logo .brand-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
@media (min-width: 1200px) {
    .brand-logo .brand-logo-img { width: 56px; height: 56px; }
}
.navbar-brand:hover .brand-logo {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 0 0 5px rgba(255,202,40,0.35), 0 6px 20px rgba(255,143,0,0.5);
}

.navbar-brand .brand-text {
    line-height: 1.2;
    min-width: 0;
}
.navbar-brand .brand-text .name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.navbar-brand .brand-text .tagline {
    font-size: clamp(0.6rem, 1.8vw, 0.68rem);
    color: rgba(200,230,201,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- Collapse layout ---- */
@media (min-width: 992px) {
    .navbar-expand-lg.navbar-ngo .navbar-collapse-ngo {
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-end;
    }
    .navbar-nav-wrap {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: stretch;
    }
    .navbar-nav-main {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
    }
}
.navbar-actions { flex-shrink: 0; }

/* ---- Nav Links ---- */
.navbar-ngo .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--nav-link-pad-y) var(--nav-link-pad-x) !important;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.navbar-ngo .nav-link .nav-caret {
    font-size: 0.52rem;
    opacity: 0.7;
    vertical-align: 0.08em;
    transition: transform 0.25s ease;
}
.navbar-ngo .nav-item.dropdown:hover .nav-caret,
.navbar-ngo .nav-link[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

/* animated underline */
.navbar-ngo .nav-link::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: var(--nav-link-pad-x);
    right: var(--nav-link-pad-x);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    border-radius: 2px;
}
.navbar-ngo .nav-link:hover { color: #fff !important; }
.navbar-ngo .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}
.navbar-ngo .nav-link:hover::after,
.navbar-ngo .nav-link.active::after { transform: scaleX(1); }

/* ---- Dropdown Menu ---- */
.dropdown-menu-ngo {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(46,125,50,0.1);
    padding: 8px;
    margin-top: 4px !important;
    min-width: 195px;
    background: #fff;
    animation: dropFadeIn 0.2s ease forwards;
}
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-menu-ngo .dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.18s ease, color 0.18s ease;
    display: flex;
    align-items: center;
}
.dropdown-menu-ngo .dropdown-item:hover,
.dropdown-menu-ngo .dropdown-item.active {
    background: #f0faf0;
    color: var(--primary-dark);
}

/* ---- Action Buttons ---- */
/* Enquiry pill */
.navbar-ngo .btn-enquiry {
    background: linear-gradient(135deg, #ff8f00, #ffca28);
    color: #1b2e0a !important;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 6px 14px !important;
    border-radius: 20px;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255,143,0,0.28);
    letter-spacing: 0.02em;
}
.navbar-ngo .btn-enquiry:hover {
    background: linear-gradient(135deg, #ffca28, #ff8f00);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,143,0,0.45);
}
.navbar-ngo .btn-enquiry::after { display: none !important; }

/* Donate Now button */
.navbar-ngo .btn-warning.fw-bold {
    background: linear-gradient(135deg, #ff8f00, #f57c00) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 22px !important;
    box-shadow: 0 3px 12px rgba(245,124,0,0.35);
    font-size: 0.74rem;
    padding: 7px 16px !important;
    letter-spacing: 0.02em;
    transition: var(--transition);
}
.navbar-ngo .btn-warning.fw-bold:hover {
    background: linear-gradient(135deg, #f57c00, #e65100) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,124,0,0.5);
}

/* Login / outline button */
.navbar-ngo .btn-outline-light {
    border-color: rgba(255,255,255,0.4) !important;
    color: rgba(255,255,255,0.9) !important;
    border-radius: 20px !important;
    font-size: 0.74rem;
    padding: 6px 14px !important;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.navbar-ngo .btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.7) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Dark-mode toggle */
.dark-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}
.dark-toggle:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    transform: rotate(20deg) scale(1.05);
    color: #fff;
}

/* Hamburger */
.navbar-toggler {
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 5px 9px;
    transition: var(--transition);
}
.navbar-toggler:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}
.navbar-toggler-icon { filter: invert(1); }

/* Tighter nav on medium desktops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-ngo { --nav-link-pad-x: 8px; --nav-link-pad-y: 15px; }
    .navbar-ngo .nav-link { font-size: 0.775rem; }
}

/* ================================================================
   SITE HERO — layered slides (media / scrim / copy)
   ================================================================ */
.site-hero.hero-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .site-hero.hero-slider {
        height: 400px;
    }
}

.site-hero .carousel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.site-hero .carousel-inner {
    flex: 1 1 auto;
    height: 100%;
}
@media (max-width: 768px) {
    .site-hero .carousel-inner {
        height: 100%;
    }
}

.site-hero .carousel-item {
    height: 100%;
}
@media (max-width: 768px) {
    .site-hero .carousel-item {
        height: 100%;
    }
}

.hero-slide {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    background-color: #0f2918;
    background-image:
        linear-gradient(135deg, rgba(8, 40, 18, 0.65) 0%, rgba(10, 35, 18, 0.45) 45%, rgba(10, 35, 18, 0.3) 100%),
        var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1b5e20 0%, #0d2812 60%);
}

.hero-slide__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(10, 35, 18, 0.88) 0%,
        rgba(10, 35, 18, 0.5) 42%,
        rgba(10, 35, 18, 0.28) 100%
    );
}
.hero-slide__scrim--strong {
    background: linear-gradient(
        160deg,
        rgba(8, 40, 18, 0.92) 0%,
        rgba(15, 80, 35, 0.75) 50%,
        rgba(20, 100, 45, 0.55) 100%
    );
}

.site-hero--static .hero-slide__media {
    background: linear-gradient(135deg, #143d1a 0%, #2e7d32 42%, #43a047 100%);
}

.hero-slide__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 5.5rem 0 2.75rem;
}
@media (max-width: 768px) {
    .hero-slide__inner {
        padding: 4.25rem 0 2rem;
    }
}

.hero-slide__content {
    max-width: 38rem;
    padding-bottom: 0.25rem;
}

.hero-slide__title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.65rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-slide__lead {
    font-size: clamp(0.95rem, 2.1vw, 1.15rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.15rem;
    max-width: 36rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.site-hero--static .hero-slide {
    height: 100%;
}
@media (max-width: 768px) {
    .site-hero--static .hero-slide {
        height: 100%;
    }
}

.hero-slide--static .hero-slide__inner {
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.hero-slide--static .hero-slide__content {
    max-width: 44rem;
}

/* Hero carousel controls (scoped — does not affect other carousels) */
.site-hero .site-hero__control {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0 12px;
    opacity: 1;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.site-hero .site-hero__control:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.site-hero .site-hero__control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 1rem;
}

.site-hero .site-hero__indicators {
    margin-bottom: 0.65rem;
    gap: 0.35rem;
}
.site-hero .site-hero__indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    opacity: 1;
    transition: var(--transition);
}
.site-hero .site-hero__indicators [data-bs-target].active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

/* ================================================================
   QUICK ACTION BUTTONS
   ================================================================ */
.quick-actions { margin-top: -30px; position: relative; z-index: 10; }
.quick-action-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 22px 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
}
.quick-action-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}
.quick-action-card .icon-wrap {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
}
.quick-action-card h6 { font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; margin:0; }

/* ================================================================
   SECTION GENERAL
   ================================================================ */
.section-title { font-size: 1.9rem; font-weight: 700; color: var(--primary-dark); }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }
.section-divider {
    width: 55px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    border-radius: 4px;
    margin: 10px auto 0;
}
.section-divider.left { margin-left: 0; }

.section-highlight { background: var(--bg-section); }
.section-white { background: var(--bg-white); }

/* ================================================================
   ACTIVITY FEED
   ================================================================ */
.feed-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e8f5e9;
}
.feed-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feed-card .feed-header {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid #f1f8f1;
}
.feed-card .feed-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.feed-card .feed-user-name { font-weight: 600; font-size: 0.93rem; }
.feed-card .feed-time { font-size: 0.77rem; color: var(--text-muted); }
.feed-card .feed-body { padding: 15px 18px; }
.feed-card .feed-body p { font-size: 0.92rem; color: var(--text-dark); margin-bottom: 12px; }
.feed-card .feed-img { width:100%; height:200px; object-fit:cover; }
.feed-card .feed-actions {
    padding: 10px 18px;
    background: #f9fbf9;
    display: flex; gap: 15px; align-items: center;
    border-top: 1px solid #eef7ee;
}
.feed-action-btn {
    background: none; border: none;
    color: var(--text-muted); font-size: 0.85rem;
    display:flex; align-items:center; gap:5px;
    cursor: pointer; transition: var(--transition);
    padding: 4px 8px; border-radius: 6px;
}
.feed-action-btn:hover { background: #e8f5e9; color: var(--primary); }
.comment-box {
    padding: 10px 18px 15px;
    display: flex; gap: 10px;
}
.comment-box input {
    flex:1; padding: 8px 14px;
    border: 1px solid #dcedc8; border-radius: 20px;
    font-size: 0.85rem; outline: none;
    background: #f9fbf9;
    transition: var(--transition);
}
.comment-box input:focus { border-color: var(--primary-light); background: #fff; }
.comment-box button {
    background: var(--primary); color: #fff;
    border: none; border-radius: 20px;
    padding: 8px 16px; font-size: 0.82rem; cursor: pointer;
    transition: var(--transition);
}
.comment-box button:hover { background: var(--primary-dark); }

/* ================================================================
   ACTIVITIES PAGE — GRID CARDS + DETAIL MODAL  [PREMIUM REDESIGN]
   ================================================================ */

/* --- Page header area --- */
.activities-page-header {
    background: linear-gradient(135deg, #f0faf1 0%, #e8f5e9 60%, #f9fdf5 100%);
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(200, 230, 201, 0.7);
    box-shadow: 0 4px 24px rgba(46,125,50,0.07);
}

/* --- Card grid item --- */
.activity-grid-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(46, 125, 50, 0.06),
        0 8px 24px rgba(46, 125, 50, 0.09),
        0 24px 48px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(200, 230, 201, 0.6);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* Shine sweep on hover */
.activity-grid-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255,255,255,0) 35%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 65%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.55s ease;
    pointer-events: none;
    z-index: 10;
}
.activity-grid-card:hover::before {
    transform: translateX(100%);
}
.activity-grid-card:hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow:
        0 2px 6px rgba(46, 125, 50, 0.07),
        0 16px 40px rgba(46, 125, 50, 0.15),
        0 32px 64px rgba(0, 0, 0, 0.06);
    border-color: #a5d6a7;
}

/* --- Image / media area --- */
.activity-grid-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #c8e6c9 0%, #dcedc8 60%, #f0f4c3 100%);
    overflow: hidden;
    flex-shrink: 0;
}
.activity-grid-card__media-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.activity-grid-card__media-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.activity-grid-card:hover .activity-grid-card__media-inner img {
    transform: scale(1.06);
}
/* Gradient scrim over image bottom */
.activity-grid-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 40, 15, 0.52) 0%,
        rgba(10, 40, 15, 0.18) 35%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 1;
}
/* Bottom accent line */
.activity-grid-card__media-accent {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1b5e20, #4caf50, #8bc34a, #4caf50);
    background-size: 200% 100%;
    animation: accentShift 3s linear infinite;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}
.activity-grid-card:hover .activity-grid-card__media-accent {
    opacity: 1;
}
@keyframes accentShift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
/* Activity badge floating on image */
.activity-grid-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200,230,201,0.7);
    color: #2e7d32;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.activity-grid-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(46, 125, 50, 0.4);
    font-size: 3rem;
    background: linear-gradient(145deg, #e8f5e9 0%, #f1f8f1 100%);
}

/* --- Card body --- */
.activity-grid-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 2;
}
.activity-grid-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.activity-grid-card__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
    border: 2.5px solid rgba(255,255,255,0.9);
    outline: 1.5px solid rgba(165,214,167,0.5);
}
.activity-grid-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.activity-grid-card__who-wrap {
    min-width: 0;
    flex: 1;
}
.activity-grid-card__who {
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.25;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-grid-card__role {
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2e7d32;
    background: linear-gradient(90deg, #e8f5e9, #f1f8e9);
    border: 1px solid rgba(165,214,167,0.6);
    padding: 2px 8px;
    border-radius: 999px;
}
.activity-grid-card__title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b5e20;
    margin: 0 0 10px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.activity-grid-card:hover .activity-grid-card__title {
    color: #2e7d32;
}
.activity-grid-card__excerpt {
    font-size: 0.875rem;
    color: #5a7060;
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card footer --- */
.activity-grid-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(200, 230, 201, 0.5);
}
.activity-grid-card__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    font-weight: 600;
    color: #558b2f;
    line-height: 1;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f0faf1;
    border: 1px solid rgba(165,214,167,0.45);
}
.activity-view-more-btn {
    flex-shrink: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 8px 18px;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    border: none;
    box-shadow: 0 2px 10px rgba(46,125,50,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.activity-view-more-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(46,125,50,0.35);
    color: #fff;
}

/* —— Activity modal —— */
.activity-modal-dialog {
    max-width: min(640px, 100vw - 1.5rem);
}
@media (min-width: 992px) {
    .activity-modal-dialog {
        max-width: 720px;
    }
}
.activity-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(27, 94, 32, 0.18), 0 8px 16px rgba(0, 0, 0, 0.06);
}
.activity-modal-header {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.15rem 1rem 1.35rem;
    border-bottom: 1px solid rgba(200, 230, 201, 0.65);
    background: linear-gradient(180deg, #f9fdf9 0%, #f4faf4 100%);
}
.activity-modal-header__text {
    min-width: 0;
    flex: 1;
    padding-right: 0.25rem;
}
.activity-modal-header__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #558b2f;
    margin-bottom: 4px;
}
.activity-modal-header__title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activity-modal-close {
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.75;
}
.activity-modal-body {
    background: var(--bg-white);
}
.activity-modal-detail {
    display: flex;
    flex-direction: column;
}
.activity-modal__hero {
    margin: 0;
    padding: 0;
    background: linear-gradient(145deg, #e8f5e9, #eceff1);
    height: min(42vh, 360px);
    min-height: 200px;
    max-height: min(42vh, 360px);
    overflow: hidden;
    position: relative;
}
.activity-modal__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.activity-modal__hero--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: min(42vh, 360px);
    min-height: 200px;
    max-height: min(42vh, 360px);
    color: #90a4ae;
    font-size: 0.88rem;
    font-weight: 500;
}
.activity-modal__hero--empty i {
    font-size: 2rem;
    opacity: 0.55;
}
.activity-modal__sheet {
    padding: 1.35rem 1.5rem 1.5rem;
    background: var(--bg-white);
}
.activity-modal__author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(200, 230, 201, 0.55);
}
.activity-modal__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
    border: 3px solid #fff;
    outline: 1px solid rgba(200, 230, 201, 0.9);
}
.activity-modal__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.activity-modal__avatar-letter {
    line-height: 1;
}
.activity-modal__author-meta {
    min-width: 0;
    flex: 1;
}
.activity-modal__author-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 4px;
}
.activity-modal__author-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
}
.activity-modal__date {
    display: inline-flex;
    align-items: center;
}
.activity-modal__role-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #2e7d32;
}
.activity-modal__prose {
    font-size: 1.02rem;
    line-height: 1.72;
    color: #37474f;
    margin: 0 0 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.activity-modal__actions.feed-actions {
    margin: 0 -1.5rem -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 0;
    border-top: 1px solid rgba(200, 230, 201, 0.55);
}
.activity-modal__comment.comment-box {
    margin: 0 -1.5rem -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.35rem;
    border-top: none;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8f5e9;
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-card .sidebar-header {
    background: var(--primary);
    color: #fff;
    padding: 13px 18px;
    font-weight: 600; font-size: 0.92rem;
    display:flex; align-items:center; gap:8px;
}
.sidebar-card .sidebar-body { padding: 15px; }

/* Member preview in sidebar */
.member-preview-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 24px;
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.member-preview-card::before {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.member-preview-card .member-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
}
.member-preview-card h6 { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.member-preview-card small { opacity: 0.8; font-size: 0.8rem; }

/* Management mini card */
.mgmt-mini-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f8f1;
}
.mgmt-mini-card:last-child { border-bottom: none; padding-bottom: 0; }
.mgmt-mini-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:0.9rem; font-weight:700;
    flex-shrink: 0;
}
.mgmt-mini-info .name { font-weight: 600; font-size: 0.87rem; }
.mgmt-mini-info .role { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================================
   ABOUT PAGE — HERO BANNER
   ================================================================ */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #43a047 100%);
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-hero__content {
    padding: 4rem 0 3rem;
    color: #fff;
}
.about-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}
.about-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.2);
    line-height: 1.15;
}
.about-hero__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.88);
    margin: 0 auto 1.5rem;
    max-width: 520px;
    line-height: 1.6;
}
.about-hero .breadcrumb { font-size: 0.83rem; }
.about-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }
.about-hero__wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
}
.about-hero__wave svg { width: 100%; height: 56px; display: block; }

/* ================================================================
   ABOUT SECTION — IMAGE + TEXT
   ================================================================ */
.about-img-wrap {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: visible;
}
.about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    position: relative;
    z-index: 1;
}
.about-img__accent {
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-lighter);
    border-radius: var(--border-radius-lg);
    z-index: 0;
    pointer-events: none;
}
.about-img__badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    letter-spacing: 0.02em;
}

/* ================================================================
   ABOUT SECTION — LEGACY WRAP (keep for backward compat)
   ================================================================ */
.about-logo-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    color: #fff;
}
.about-logo-wrap i { font-size: 5rem; opacity: 0.85; }

/* ================================================================
   ABOUT SECTION — EYEBROW + BODY TEXT
   ================================================================ */
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: #e8f5e9;
    padding: 4px 14px;
    border-radius: 20px;
}
.about-body-text {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1rem;
}
.about-reg-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #f4faf1;
    border: 1px solid #dcedc8;
    border-radius: 8px;
    padding: 8px 14px;
}

/* ================================================================
   MISSION / VISION / VALUES CARDS
   ================================================================ */
.mvv-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 18px 14px 16px;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8f5e9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.mvv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}
.mvv-mission::before { background: var(--primary); }
.mvv-vision::before  { background: var(--accent); }
.mvv-values::before  { background: #c62828; }
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-icon-wrap {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 10px;
}
.mvv-mission .mvv-icon-wrap { background: #e8f5e9; color: var(--primary); }
.mvv-vision  .mvv-icon-wrap { background: #fff3e0; color: var(--accent); }
.mvv-values  .mvv-icon-wrap { background: #fce4ec; color: #c62828; }
.mvv-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.mvv-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ================================================================
   ABOUT STATS STRIP
   ================================================================ */
.about-stats-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    margin: 1.5rem 0 0;
}
.about-stat-item {
    padding: 2.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    transition: var(--transition);
}
.about-stat-item:last-child { border-right: none; }
.about-stat-item:hover { background: rgba(255,255,255,0.06); }
.about-stat-icon {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
}
.about-stat-num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.about-stat-num span {
    font-size: 1.5rem;
    color: var(--accent-light);
}
.about-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .about-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
    .about-stat-item:last-child, .about-stat-item:nth-child(even) { border-right: none; }
    .about-stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
}

/* ================================================================
   ABOUT PAGE — BOTTOM CTA
   ================================================================ */
.about-cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1b5e20 50%, #2e7d32 100%);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    overflow: hidden;
    margin-top: 1rem;
}
.about-cta__glow {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -80px; right: -80px;
    pointer-events: none;
}
.about-cta__body { position: relative; z-index: 1; }
.about-cta__icon-wrap {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1.25rem;
}
.about-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.about-cta__text {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.82);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}
.about-cta__btn-outline {
    border: 2px solid rgba(255,255,255,0.75);
    color: #fff;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}
.about-cta__btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.about-cta__btn-solid {
    background: #fff;
    color: var(--primary-dark);
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 2px solid #fff;
    transition: var(--transition);
}
.about-cta__btn-solid:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }

/* dark mode */
body.dark-mode .mvv-card { background: #1a2e1b; border-color: #2e5030; }
body.dark-mode .about-reg-badge { background: #162318; border-color: #2e5030; }
body.dark-mode .section-eyebrow { background: #1a3a1c; }

/* ================================================================
   OBJECTIVES SECTION — CSS GRID
   ================================================================ */

/* ── Grid: explicit columns per breakpoint — full-width cards on phones, balanced rows on tablet/desktop ── */
.objectives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 2.5vw, 22px);
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 576px) {
    .objectives-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .objectives-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .objectives-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ── Card ── */
.objective-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e8f5e9;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}
.objective-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

/* ── Image wrapper ── */
.obj-img-wrap {
    overflow: hidden;
    height: 160px;
    flex-shrink: 0;
    position: relative;
}
.objective-card .obj-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.objective-card:hover .obj-img { transform: scale(1.07); }

/* ── Card body ── */
.objective-card .obj-body {
    padding: 14px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}
.objective-card .obj-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.obj-text { min-width: 0; flex: 1; }
.objective-card h6 {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--text-dark);
}
.objective-card p {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Tablet adjustments ── */
@media (max-width: 991px) {
    .obj-img-wrap { height: 145px; }
    .objective-card .obj-body { padding: 12px 11px; gap: 9px; }
    .objective-card .obj-icon { width: 36px; height: 36px; font-size: 1rem; }
}

/* ── Mobile (≤575px is 1-col grid; 576+ is 2-col — smaller card type) ── */
@media (max-width: 767px) {
    .obj-img-wrap { height: 120px; }
    .objective-card .obj-body { padding: 10px 10px; gap: 8px; }
    .objective-card .obj-icon { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .objective-card h6 { font-size: 0.82rem; }
    .objective-card p  { font-size: 0.72rem; }
    /* Disable hover lift on touch devices */
    .objective-card:hover { transform: none; box-shadow: var(--shadow-sm); }
}

@media (max-width: 480px) {
    .obj-img-wrap { height: 100px; }
    .objective-card .obj-body { padding: 9px 8px; gap: 7px; }
    .objective-card .obj-icon { width: 28px; height: 28px; font-size: 0.82rem; border-radius: 7px; }
    .objective-card h6 { font-size: 0.78rem; }
    .objective-card p  { font-size: 0.68rem; line-height: 1.45; }
}

/* ── Single-col on tiny screens ── */
@media (max-width: 360px) {
    .obj-img-wrap { height: 130px; }
    .objective-card .obj-body { padding: 12px 10px; gap: 10px; }
    .objective-card .obj-icon { width: 36px; height: 36px; font-size: 1rem; }
    .objective-card h6 { font-size: 0.88rem; }
    .objective-card p  { font-size: 0.76rem; }
}


/* ================================================================
   GALLERY SECTION
   ================================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media(max-width:768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
    position: absolute; inset:0;
    background: rgba(27,94,32,0.65);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
    color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8f5e9;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary-lighter);
    position: absolute;
    top: 10px; left: 20px;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-card .stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 10px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.7; padding-top: 20px; }
.testimonial-author {
    display: flex; align-items: center; gap: 12px; margin-top: 18px;
    padding-top: 15px; border-top: 1px solid #f1f8f1;
}
.testimonial-author .t-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:700;
    overflow: hidden;
    flex-shrink: 0;
}
.testimonial-author .t-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.testimonial-author .t-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-author .t-role { font-size: 0.78rem; color: var(--text-muted); }

/* ================================================================
   SECRETARY MESSAGE
   ================================================================ */
.secretary-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
}
@media(max-width:768px) { .secretary-card { flex-direction:column; } }
.secretary-photo {
    min-width: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 30px 20px; color: #fff; text-align: center;
}
.secretary-photo .sec-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 4px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin-bottom: 15px;
    overflow: hidden;
}
.secretary-photo .sec-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Sidebar donation widget — aligned with green / amber brand */
.donate-widget-ngo .donate-widget-head {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
}
.donate-widget-ngo .donate-widget-cta {
    justify-content: center;
    border: none;
}
.secretary-content { padding: 35px; flex:1; }
.secretary-content blockquote {
    font-size: 1rem; line-height: 1.8;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-light);
    padding-left: 20px;
    margin-bottom: 20px;
    font-style: italic;
}

/* ================================================================
   STATS COUNTER
   ================================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 0;
}
.stat-item { text-align: center; padding: 15px; }
.stat-number {
    font-size: 2.8rem; font-weight: 800;
    color: #fff; font-family: var(--font-heading);
    display: block;
}
.stat-label { color: #c8e6c9; font-size: 0.9rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer-main {
    background: linear-gradient(180deg, #1a3a1c, #0d1f0e);
    color: #c8e6c9;
    padding: 60px 0 30px;
}
.footer-brand .f-logo {
    width: 55px; height: 55px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; margin-bottom: 15px;
}
.footer-brand p { font-size: 0.88rem; color: #9ccc65; line-height: 1.7; }
.footer-title {
    color: #fff; font-weight: 700; font-size: 1rem;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-links li { list-style: none; margin-bottom: 8px; }
.footer-links li a {
    color: #9ccc65; font-size: 0.87rem;
    transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.footer-links li a:hover { color: #fff; padding-left: 5px; }
.footer-links li a i { font-size: 0.7rem; color: var(--primary-light); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px; font-size: 0.87rem; color: #9ccc65;
}
.footer-contact-item .fc-icon {
    width: 30px; height: 30px;
    background: rgba(76,175,80,0.2);
    border-radius: 50%; display:flex; align-items:center; justify-content:center;
    color: var(--primary-light); flex-shrink:0; font-size:0.8rem;
}
.social-icons { display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    font-size: 0.95rem; transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
    color: #c8e6c9;
}
.social-icon:hover { transform: translateY(-4px) scale(1.1); 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 {
    background: #0a150b;
    padding: 15px 0;
    color: #5a7a5b;
    font-size: 0.82rem;
}
.footer-bottom a { color: var(--primary-light); }

/* ================================================================
   DARK MODE
   ================================================================ */
body.dark-mode {
    --bg-body: #121f13;
    --bg-white: #1a2e1b;
    --bg-section: #162318;
    --text-dark: #e8f5e9;
    --text-muted: #81c784;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}
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 { background: #142218; border-color: #2a4a2b; }
body.dark-mode .activities-page-header { background: linear-gradient(135deg, #1a2e1b, #162318); border-color: #2e5030; }
body.dark-mode .activity-grid-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(46,125,50,0.18); border-color: #4caf50; }
body.dark-mode .activity-grid-card__media { background: linear-gradient(145deg, #0f1e10, #162318); }
body.dark-mode .activity-grid-card__footer { border-top-color: #2a4a2b; }
body.dark-mode .activity-modal-content { background: #1a2e1b; border-color: #2e5030; }
body.dark-mode .activity-modal-header { background: linear-gradient(180deg, #1e3220 0%, #1a2e1b 100%); border-bottom-color: #2e5030; }
body.dark-mode .activity-modal-header__eyebrow { color: #81c784; }
body.dark-mode .activity-modal-header__title { color: #e8f5e9; }
body.dark-mode .activity-modal__sheet { background: #1a2e1b; }
body.dark-mode .activity-modal__hero { background: #162318; }
body.dark-mode .activity-modal__hero--empty { color: #5a7a5b; }
body.dark-mode .activity-modal__author-name { color: #e8f5e9; }
body.dark-mode .activity-modal__author-sub { color: #81c784; }
body.dark-mode .activity-modal__prose { color: #c8e6c9; }
body.dark-mode .activity-modal__actions.feed-actions,
body.dark-mode .activity-modal__comment { background: #162318; border-color: #2e5030; }
body.dark-mode .activity-grid-card__title { color: #c8e6c9; }
body.dark-mode .activity-grid-card:hover .activity-grid-card__title { color: #a5d6a7; }
body.dark-mode .activity-grid-card__excerpt { color: #8aad8b; }
body.dark-mode .activity-grid-card__date { background: #162318; color: #81c784; border-color: #2e5030; }
body.dark-mode .activity-grid-card__role { background: rgba(46, 125, 50, 0.3); border-color: rgba(76,175,80,0.3); color: #a5d6a7; }
body.dark-mode .activity-grid-card__badge { background: rgba(20,34,20,0.92); color: #81c784; border-color: rgba(76,175,80,0.35); }
body.dark-mode .activity-view-more-btn {
    background: linear-gradient(135deg, #1e4d22, #2e7d32);
    color: #e8f5e9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
body.dark-mode .activity-view-more-btn:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 4px 16px rgba(46,125,50,0.4);
}
body.dark-mode .activity-modal__role-chip { background: rgba(46, 125, 50, 0.4); color: #c8e6c9; }
body.dark-mode .activity-modal-close { filter: invert(1); opacity: 0.85; }
body.dark-mode .comment-box input { background: #1a2e1b; color: #e8f5e9; border-color: #2e5030; }
body.dark-mode .feed-card .feed-actions { background: #162318; }

/* ================================================================
   DARK MODE TOGGLE
   ================================================================ */
.dark-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 35px; height: 35px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    font-size: 0.95rem;
}
.dark-toggle:hover { background: rgba(255,255,255,0.25); }

/* ================================================================
   AOS ANIMATIONS (fallback)
   ================================================================ */
[data-aos] { transition-property: transform, opacity; }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.btn-primary-ngo {
    background: var(--primary);
    color: #fff; border: none;
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-ngo:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color:#fff; }
.btn-outline-ngo {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    padding: 8px 22px;
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline-ngo:hover { background: var(--primary); color: #fff; }

.card-ngo {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8f5e9;
    transition: var(--transition);
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.card-ngo:hover { box-shadow: var(--shadow-md); }

.mission-vision-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.mission-vision-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Typing animation for hero subtitle */
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(30px); }
    to { opacity:1; transform: translateY(0); }
}
.hero-animate { animation: fadeInUp 0.9s ease forwards; }
.hero-animate-delay { animation: fadeInUp 0.9s ease 0.3s both; }

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-ngo { --nav-link-pad-x: 12px; --nav-link-pad-y: 10px; }
    .navbar-ngo .nav-link { font-size: 0.88rem; }
    .navbar-ngo .nav-link::after { bottom: 6px; }
    .navbar-collapse-ngo {
        background: rgba(27,94,32,0.98);
        padding: 12px 14px 16px;
        border-radius: 0 0 12px 12px;
        margin-top: 4px;
        flex-basis: 100%;
        width: 100%;
    }
    .navbar-nav-wrap { width: 100%; }
    .navbar-nav-main { width: 100%; }
    .navbar-actions {
        width: 100%;
        justify-content: flex-start;
        padding-top: 12px;
        margin-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.12);
        gap: 8px !important;
    }
    .navbar-actions .btn-enquiry { margin-left: 0 !important; }
}
@media (max-width: 576px) {
    .section-title { font-size: 1.4rem; }
    .quick-actions { margin-top: 10px; }
    .hero-slide__inner {
        padding-bottom: 1.65rem;
    }
    .hero-slide__title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }
    .hero-slide__lead {
        font-size: 0.88rem;
        margin-bottom: 0.85rem;
    }
    .site-hero .site-hero__control {
        width: 40px;
        height: 40px;
        margin: 0 6px;
    }
}

/* Suppress the slide-underline pseudo-element on dropdown toggles
   (Bootstrap uses ::after for the caret chevron already) */
.navbar-ngo .nav-item.dropdown .nav-link.dropdown-toggle::after {
    display: none !important;
}

/* ================================================================
   NAVBAR DROPDOWN – "Our Media"
   ================================================================ */
.dropdown-menu-ngo {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    padding: 8px;
    min-width: 200px;
    animation: dropIn 0.2s ease;
    background: #fff;
    z-index: 1050;
}
@keyframes dropIn {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}
.dropdown-menu-ngo .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.dropdown-menu-ngo .dropdown-item:hover,
.dropdown-menu-ngo .dropdown-item:focus {
    background: var(--bg-section);
    color: var(--primary);
}
.dropdown-menu-ngo .dropdown-item.active {
    background: #e8f5e9;
    color: var(--primary-dark);
    font-weight: 600;
}
/* Mobile: show dropdown items inline in collapsed nav */
@media (max-width: 991px) {
    .dropdown-menu-ngo {
        box-shadow: none;
        background: rgba(255,255,255,0.07);
        border-radius: 8px;
        padding: 4px 0 4px 12px;
    }
    .dropdown-menu-ngo .dropdown-item {
        color: #c8e6c9;
    }
    .dropdown-menu-ngo .dropdown-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .dropdown-menu-ngo .dropdown-item.active { background: rgba(255,255,255,0.15); color: #fff; }
}

/* ================================================================
   VIDEO GALLERY – Hero Section
   ================================================================ */
.video-gallery-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #388e3c 100%);
    color: #fff;
    padding: 56px 0 40px;
    position: relative;
    overflow: hidden;
}
.video-gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.video-gallery-hero .section-title {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.video-gallery-hero .section-subtitle { color: rgba(255,255,255,0.8); }
.video-gallery-hero .section-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
}
.video-gallery-hero .section-divider { background: rgba(255,255,255,0.4); }

/* ── Media Nav Pills ── */
.media-nav-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.media-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.media-pill:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}
.media-pill.active {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    font-weight: 700;
}

/* ================================================================
   VIDEO GALLERY – Filter Bar
   ================================================================ */
.video-filter-bar { background: var(--bg-section); border-bottom: 1px solid #dcedc8; }

/* Search Input */
.video-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.video-search-wrap > i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.88rem;
    pointer-events: none;
}
.video-search-input {
    width: 100%;
    padding: 10px 38px 10px 38px;
    border: 1.5px solid #c8e6c9;
    border-radius: 50px;
    font-size: 0.875rem;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}
.video-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}
.video-search-clear {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.video-search-clear:hover { color: var(--primary-dark); }

/* Category Pills */
.video-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid #c8e6c9;
    background: #fff;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.cat-pill:hover { background: var(--bg-section); border-color: var(--primary-light); color: var(--primary); }
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.btn-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    background: #fff5f5;
    text-decoration: none;
    transition: var(--transition);
}
.btn-clear-filter:hover { background: #fee2e2; color: #b91c1c; }

/* ================================================================
   VIDEO GALLERY – Video Grid & Cards
   ================================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1199px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .video-grid { grid-template-columns: 1fr; } }

/* Video Card */
.video-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8f5e9;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}
.video-card:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }

/* Thumbnail Wrapper */
.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f172a;
    overflow: hidden;
}
.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.video-card:hover .video-thumb-img { transform: scale(1.06); }

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

/* Play Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.video-card:hover .video-play-overlay { opacity: 1; }

.play-btn-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-dark);
    transform: scale(0.75);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    padding-left: 4px; /* optical center for play icon */
}
.video-card:hover .play-btn-circle { transform: scale(1); }

/* Type Badges */
.video-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
}
.yt-badge   { background: rgba(220,38,38,0.85); color: #fff; }
.file-badge { background: rgba(37,99,235,0.85); color: #fff; }

/* Card Body */
.video-card-body {
    padding: 14px 16px 16px;
}
.video-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.video-meta-cat,
.video-meta-date {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-meta-cat { color: var(--primary); font-weight: 600; }

/* ── Empty State ── */
.video-empty-state {
    padding: 60px 20px;
}
.empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.2rem;
    color: var(--primary);
}
.btn-vg-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.btn-vg-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* ── Pagination ── */
.video-pagination { padding: 10px 0 30px; }
.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(46,125,50,0.3);
    gap: 8px;
}
.btn-load-more:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46,125,50,0.4);
}
.btn-load-more:disabled { opacity: 0.65; cursor: not-allowed; }
.lm-count { font-size: 0.82rem; opacity: 0.85; font-weight: 500; }
.pagination-info { font-size: 0.82rem; color: var(--text-muted); }
.classic-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    border: 1.5px solid #c8e6c9;
    background: #fff;
    transition: var(--transition);
}
.page-dot:hover { background: var(--bg-section); color: var(--primary); }
.page-dot.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ================================================================
   VIDEO MODAL
   ================================================================ */
.video-modal-content {
    background: #0a0a0a;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #111;
    border-bottom: 1px solid #222;
}
.video-modal-title {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    padding-right: 16px;
}
.video-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.video-modal-close:hover { background: rgba(239,68,68,0.5); color: #fff; }
.video-modal-body { padding: 0; }
.video-player-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-player-wrap iframe,
.video-player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Modal backdrop tweak */
.modal-backdrop.show { opacity: 0.75; }

/* Dark mode support */
body.dark-mode .video-card { background: #1e293b; border-color: #334155; }
body.dark-mode .video-card-title { color: #e2e8f0; }
body.dark-mode .video-card-desc  { color: #94a3b8; }
body.dark-mode .video-filter-bar { background: #1e293b; border-color: #334155; }
body.dark-mode .video-search-input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .cat-pill { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-mode .cat-pill.active { background: var(--primary); color: #fff; }
body.dark-mode .page-dot { background: #1e293b; border-color: #334155; color: #94a3b8; }

/* ================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Breakpoints: ≤1199px | ≤991px | ≤767px | ≤575px | ≤480px | ≤360px
   ================================================================ */

/* ── Global body / overflow fix ── */
html, body { overflow-x: hidden; max-width: 100%; }
* { min-width: 0; }

/* ================================================================
   TOP BAR — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .top-bar-mobile .top-bar-mobile-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 6px 0 2px;
    }
    .top-bar-mobile-link span { font-size: 0.68rem; }
    .top-bar-mobile-meta { font-size: 0.68rem; padding: 4px 0 6px; }
}

/* ================================================================
   NAVBAR — MOBILE
   ================================================================ */
@media (max-width: 991.98px) {
    .navbar-ngo .navbar-brand .brand-text .name {
        font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    }
    .navbar-ngo .navbar-brand .brand-text .tagline {
        font-size: 0.58rem;
    }
    .brand-logo { width: 44px !important; height: 44px !important; font-size: 1.2rem !important; }
    .brand-logo .brand-logo-img { width: 44px !important; height: 44px !important; }
    .navbar-actions { flex-wrap: wrap !important; gap: 6px !important; }
}
@media (max-width: 575px) {
    .navbar-ngo .navbar-brand .brand-text .name { font-size: 0.8rem; }
    .brand-logo { width: 38px !important; height: 38px !important; font-size: 1rem !important; }
    .brand-logo .brand-logo-img { width: 38px !important; height: 38px !important; }
    .navbar-toggler { padding: 4px 7px; }
    .dark-toggle { width: 30px; height: 30px; font-size: 0.75rem; }
}

/* ================================================================
   HERO SLIDER — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .site-hero.hero-slider { height: 340px; }
    .hero-slide__title { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
    .hero-slide__lead { font-size: 0.84rem; margin-bottom: 0.75rem; }
    .hero-slide__inner { padding: 3.5rem 0 1.5rem; }
    .hero-slide__content { max-width: 100%; }
    .site-hero .site-hero__control { width: 36px; height: 36px; margin: 0 4px; }
}
@media (max-width: 480px) {
    .site-hero.hero-slider { height: 280px; }
    .hero-slide__title { font-size: clamp(1.05rem, 5vw, 1.35rem); }
    .hero-slide__lead { font-size: 0.8rem; }
    .hero-slide__inner { padding: 3rem 0 1.25rem; }
    .hero-slide__actions .btn { font-size: 0.8rem; padding: 8px 16px; }
    .site-hero .site-hero__control { display: none; }
}

/* ================================================================
   QUICK ACTIONS — MOBILE
   ================================================================ */
@media (max-width: 575px) {
    .quick-action-card { padding: 14px 10px; }
    .quick-action-card .icon-wrap { width: 46px; height: 46px; font-size: 1.2rem; margin-bottom: 8px; }
    .quick-action-card h6 { font-size: 0.8rem; }
    .quick-actions { margin-top: 8px; }
}
@media (max-width: 360px) {
    .quick-action-card { padding: 10px 6px; }
    .quick-action-card .icon-wrap { width: 38px; height: 38px; font-size: 1rem; }
    .quick-action-card h6 { font-size: 0.72rem; }
}

/* ================================================================
   SECTION GENERAL — MOBILE TYPOGRAPHY
   ================================================================ */
@media (max-width: 767px) {
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.92rem; }
    section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.3rem; }
    section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* ================================================================
   STATS SECTION — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .stats-section { padding: 30px 0; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.8rem; }
    .stat-item { padding: 12px 8px; }
}
@media (max-width: 480px) {
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.72rem; }
}

/* ================================================================
   ACTIVITY FEED + SIDEBAR — MOBILE LAYOUT
   ================================================================ */
@media (max-width: 991px) {
    /* Sidebar stacks below on tablet/mobile — ensure proper spacing */
    .col-lg-8, .col-lg-4 { width: 100%; }
}
@media (max-width: 767px) {
    .feed-card .feed-header { padding: 12px 14px; gap: 10px; }
    .feed-card .feed-avatar { width: 36px; height: 36px; font-size: 0.88rem; }
    .feed-card .feed-user-name { font-size: 0.87rem; }
    .feed-card .feed-time { font-size: 0.72rem; }
    .feed-card .feed-body { padding: 12px 14px; }
    .feed-card .feed-body p { font-size: 0.87rem; }
    .feed-card .feed-img { height: 160px; }
    .feed-card .feed-actions { padding: 8px 14px; gap: 10px; }
    .feed-action-btn { font-size: 0.8rem; }
    .comment-box { padding: 8px 14px 12px; gap: 8px; }
    .comment-box input { padding: 7px 12px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .feed-card .feed-img { height: 130px; }
    .feed-action-btn { font-size: 0.74rem; padding: 3px 6px; }
}

/* ================================================================
   ABOUT SECTION — MOBILE
   ================================================================ */
@media (max-width: 991px) {
    .about-img { height: 300px; }
}
@media (max-width: 767px) {
    .about-img { height: 240px; }
    .about-img__accent { display: none; }
    .about-hero__content { padding: 2.5rem 0 2.5rem; }
    .about-cta { padding: 2.5rem 1.25rem; border-radius: var(--border-radius); }
    .about-cta__title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
    .about-stats-strip { margin: 1rem 0 0; }
    .about-stat-num { font-size: 1.8rem; }
}
@media (max-width: 575px) {
    .about-img { height: 200px; }
    .about-logo-wrap { padding: 24px 16px; }
    .about-logo-wrap i { font-size: 3.5rem; }
    .about-cta__btn-outline,
    .about-cta__btn-solid { padding: 9px 20px; font-size: 0.85rem; }
    /* Stack CTA buttons */
    .about-cta__body .d-flex.gap-3 { flex-direction: column; align-items: center; }
}

/* ================================================================
   SECRETARY CARD — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .secretary-card { flex-direction: column; }
    .secretary-photo { min-width: unset; padding: 24px 16px 16px; }
    .secretary-photo .sec-avatar { width: 80px; height: 80px; font-size: 2rem; }
    .secretary-content { padding: 20px 18px; }
    .secretary-content blockquote { font-size: 0.9rem; padding-left: 14px; }
}

/* ================================================================
   OBJECTIVES CARDS — see dedicated rules in the Objectives Section above
   ================================================================ */

/* ================================================================
   GALLERY GRID — MOBILE
   ================================================================ */
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 360px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   TESTIMONIALS — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .testimonial-card { padding: 20px 16px; }
    .testimonial-card::before { font-size: 3.5rem; top: 6px; left: 14px; }
    .testimonial-card p { font-size: 0.88rem; padding-top: 16px; }
    /* Make each slide show one card on mobile */
    #testimonialCarousel .col-md-6 { width: 100%; }
}

/* ================================================================
   FOOTER — MOBILE
   ================================================================ */
@media (max-width: 991px) {
    .footer-main { padding: 40px 0 24px; }
}
@media (max-width: 767px) {
    .footer-main { padding: 32px 0 20px; }
    .footer-brand .f-logo { width: 44px; height: 44px; font-size: 1.3rem; }
    .footer-title { font-size: 0.92rem; margin-bottom: 12px; }
    .footer-links li { margin-bottom: 6px; }
    .footer-links li a { font-size: 0.82rem; }
    .footer-contact-item { font-size: 0.82rem; margin-bottom: 10px; }
    .social-icon { width: 34px; height: 34px; font-size: 0.85rem; }
    .footer-bottom { text-align: center; }
    .footer-bottom .d-flex { flex-direction: column; gap: 8px !important; text-align: center; }
}
@media (max-width: 575px) {
    /* 2-col footer grid on small phones */
    .footer-main .col-lg-3,
    .footer-main .col-md-6 { padding-bottom: 8px; }
}

/* ================================================================
   SIDEBAR CARDS — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .sidebar-card { margin-bottom: 16px; }
    .member-preview-card { padding: 18px 14px; }
    .member-preview-card .member-avatar { width: 58px; height: 58px; font-size: 1.5rem; }
    .member-preview-card h6 { font-size: 0.92rem; }
    .sidebar-card .sidebar-header { padding: 10px 14px; font-size: 0.87rem; }
    .sidebar-card .sidebar-body { padding: 12px; }
    .mgmt-mini-card { padding: 8px 0; gap: 10px; }
    .mgmt-mini-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
    .mgmt-mini-info .name { font-size: 0.82rem; }
    .mgmt-mini-info .role { font-size: 0.7rem; }
}

/* ================================================================
   DONATE PAGE — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .donation-hero { padding: 40px 0 60px; }
    .donation-hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .donation-hero .lead { font-size: 0.9rem; }
    .donation-wrapper { margin-top: -40px; margin-bottom: 40px; }
    .donation-wrapper .col-lg-7 { padding: 1.5rem !important; }
    .amount-btn { padding: 10px 6px; font-size: 0.88rem; }
    .mode-card { padding: 22px 14px; }
    .mode-card .mode-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .mode-card h5 { font-size: 1rem; }
    .mode-card p { font-size: 0.8rem; }
    .impact-icon { width: 40px; height: 40px; font-size: 1rem; }
    .impact-text h6 { font-size: 0.9rem; }
    .impact-text p { font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .donation-hero { padding: 30px 0 50px; }
    .donation-wrapper { margin-top: -30px; }
    .donation-wrapper .col-lg-7 { padding: 1.25rem !important; }
    /* Amount preset grid: 2 cols */
    .donation-wrapper .col-4 { width: 50%; }
    .donation-wrapper .col-6 { width: 50%; }
    .amount-btn { padding: 9px 4px; font-size: 0.82rem; }
    .secure-badge { font-size: 0.78rem; padding: 6px 12px; }
}

/* ================================================================
   CONTACT PAGE — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .contact-map-wrap iframe,
    .card-ngo iframe { height: 250px; }
}
@media (max-width: 480px) {
    .contact-map-wrap iframe,
    .card-ngo iframe { height: 200px; }
}

/* ================================================================
   CAMPAIGN PAGE — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .campaign-hero { padding: 2rem 0 2.5rem; }
    .campaign-img-main { height: 220px !important; }
    .progress { height: 10px !important; }
}
@media (max-width: 480px) {
    .campaign-img-main { height: 180px !important; }
    /* Sticky donate bar fix */
    .sticky-donate-bar { padding: 10px 14px; }
}

/* ================================================================
   VIDEO GALLERY — MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .video-gallery-hero { padding: 36px 0 28px; }
    .video-gallery-hero .section-title { font-size: clamp(1.3rem, 5vw, 1.9rem); }
    .video-filter-bar .row { gap: 10px; }
    .video-search-input { padding: 9px 34px 9px 34px; font-size: 0.82rem; }
    .cat-pill { padding: 6px 12px; font-size: 0.75rem; }
    .video-card-body { padding: 10px 12px 12px; }
    .video-card-title { font-size: 0.85rem; }
    .media-pill { padding: 8px 16px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; gap: 14px; }
    .play-btn-circle { width: 48px; height: 48px; font-size: 1rem; }
    .btn-load-more { padding: 12px 28px; font-size: 0.88rem; }
}

/* ================================================================
   ABOUT PAGE — BREADCRUMB / HERO WAVE
   ================================================================ */
@media (max-width: 767px) {
    .about-hero__wave svg { height: 36px; }
    .about-hero .breadcrumb { font-size: 0.76rem; }
    .about-badge { font-size: 0.76rem; padding: 5px 14px; }
    .mvv-card { padding: 14px 10px 12px; }
    .mvv-icon-wrap { width: 40px; height: 40px; font-size: 1rem; }
    .mvv-title { font-size: 0.86rem; }
    .mvv-text { font-size: 0.74rem; }
}

/* ================================================================
   GALLERY PAGE — LIGHTBOX & FILTERS
   ================================================================ */
@media (max-width: 767px) {
    .gallery-item { border-radius: 8px; }
    .gallery-item .gallery-overlay { font-size: 1.1rem; }
}

/* ================================================================
   LOGIN / REGISTER / FORGOT PASSWORD PAGES — MOBILE
   ================================================================ */
@media (max-width: 575px) {
    .auth-card,
    .register-card { padding: 1.5rem 1rem !important; border-radius: var(--border-radius) !important; }
    .form-floating > label { font-size: 0.85rem; }
    .form-floating > .form-control { font-size: 0.9rem; }
}

/* ================================================================
   PUBLIC VERIFY / COMPLIANCE / DONORS — TABLE RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
    .table-responsive { font-size: 0.82rem; }
    .table th, .table td { padding: 8px 10px; white-space: nowrap; }
    /* Allow horizontal scroll on data tables */
    .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* ================================================================
   EVENTS PAGE — MOBILE
   ================================================================ */
@media (max-width: 575px) {
    .event-date-badge { min-width: 46px !important; padding: 6px 8px !important; }
    .event-date-badge .day { font-size: 1.2rem !important; }
    .event-date-badge .mon { font-size: 0.65rem !important; }
}

/* ================================================================
   CAMPAIGNS LIST — MOBILE
   ================================================================ */
@media (max-width: 575px) {
    .campaigns-hero,
    .page-hero { padding: 2rem 0 2.5rem !important; }
}

/* ================================================================
   BUTTON UTILITY — MOBILE TOUCH TARGETS
   ================================================================ */
@media (max-width: 767px) {
    .btn-primary-ngo,
    .btn-outline-ngo { padding: 9px 20px; font-size: 0.87rem; }
    /* Ensure all CTA buttons are at least 44px tall */
    .btn { min-height: 38px; }
}

/* ================================================================
   CHATBOT WIDGET — MOBILE POSITION FIX
   ================================================================ */
@media (max-width: 575px) {
    #chatbot-container,
    .chatbot-widget { bottom: 70px !important; right: 10px !important; }
    #chatbot-toggle,
    .chatbot-toggle-btn { width: 44px !important; height: 44px !important; bottom: 70px !important; right: 10px !important; }
}

/* ================================================================
   UTILITIES — MOBILE SPACING & TYPOGRAPHY
   ================================================================ */
@media (max-width: 575px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .card-ngo { padding: 1rem !important; }
}
@media (max-width: 360px) {
    .container { padding-left: 10px; padding-right: 10px; }
    .section-title { font-size: 1.15rem; }
    .btn-primary-ngo, .btn-outline-ngo { padding: 8px 14px; font-size: 0.82rem; }
}

/* ================================================================
   HOME CAMPAIGNS CARD — MOBILE
   ================================================================ */
@media (max-width: 575px) {
    .home-campaigns-card img,
    .card img[style*="height:160px"] { height: 130px !important; object-fit: cover; }
}

/* ================================================================
   MANAGEMENT PAGE — MOBILE
   ================================================================ */
@media (max-width: 575px) {
    .mgmt-card,
    .team-card { margin-bottom: 16px; }
}

/* ================================================================
   DARK MODE — MOBILE OVERRIDES
   ================================================================ */
@media (max-width: 767px) {
    body.dark-mode .navbar-collapse-ngo { background: rgba(13,40,18,0.99); }
    body.dark-mode .dropdown-menu-ngo .dropdown-item { color: #c8e6c9; }
}

/* ================================================================
   PRINT SAFETY
   ================================================================ */
@media print {
    .top-bar, .navbar-ngo, footer, .chatbot-widget, #page-loader { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
}
