/* ===================================
   Custom Styles - Mahashemya Tunnesa Foundation
   Overrides Bootstrap defaults for compact, unique design
   =================================== */

/* === ROOT VARIABLES === */
:root {
    /* --primary-blue: #1F4E8C; */
    --primary-blue: #009B4A;
    --secondary-blue: #E8F0FF;
    --accent-gold: #F5B301;
    --bg-white: #FFFFFF;
    --bg-light: #F6F8FB;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border-color: #D9E2EF;
    --spacing-unit: 8px;
    --primary: #2563EB;

}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
    /* Word spacing thik rakhar jonno */
}

.badge-blue {
    background: #3b82f6;
    color: #fff;
}

.badge-green {
    background: #22c55e;
    color: #fff;
}

.badge-purple {
    background: #a855f7;
    color: #fff;
}

.badge-orange {
    background: #f97316;
    color: #fff;
}

.badge-red {
    background: #ef4444;
    color: #fff;
}

.badge-teal {
    background: #14b8a6;
    color: #fff;
}

/* === GLOBAL OVERRIDES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}




body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    padding-top: 110px;
    color: var(--text-primary);
    background: var(--bg-white);
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
li {
    font-family: 'Poppins', sans-serif !important;
}

.container-fluid {
    max-width: 1200px;
}

.navbar-wrapper.scrolled-top+.main-content-wrapper {
    padding-top: 80px;
}

/* Override Bootstrap spacing */
.mb-2 {
    margin-bottom: calc(var(--spacing-unit) * 2) !important;
}

.mb-3 {
    margin-bottom: calc(var(--spacing-unit) * 3) !important;
}

.mb-4 {
    margin-bottom: calc(var(--spacing-unit) * 4) !important;
}

.mt-3 {
    margin-top: calc(var(--spacing-unit) * 3) !important;
}

.mt-4 {
    margin-top: calc(var(--spacing-unit) * 4) !important;
}

/* === UTILITY BAR === */
.utility-bar {
    background: var(--primary-blue);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 36px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.utility-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.utility-bar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.utility-social {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 14px;
    /* border-right: 1px solid rgba(255, 255, 255, 0.25); */
}

.utility-social a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.utility-social a:hover {
    color: var(--accent-gold);
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 14px;
}

.utility-links a {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.utility-links a:hover {
    color: var(--accent-gold);
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switch a {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.2s;
}

.lang-switch .lang-active {
    color: #fff;
}

.lang-switch .lang-inactive {
    color: rgba(255, 255, 255, 0.45);
}

.lang-switch .lang-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

.lang-switch a:hover {
    color: var(--accent-gold) !important;
}

.utility-phone {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.utility-phone:hover {
    color: var(--accent-gold);
}

.utility-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.btn-donate-top {
    background: var(--accent-gold);
    color: var(--text-primary) !important;
    padding: 3px 14px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-donate-top:hover {
    background: #fff;
    color: var(--primary-blue) !important;
}

/* Hide utility-left on mobile */
@media (max-width: 991px) {
    .utility-left {
        display: none;
    }

    body {
        padding-top: 56px;
    }

    .utility-bar {
        display: none !important;
    }

    .navbar-wrapper {
        top: 0 !important;
    }
}

    .goog-te-banner-frame,
    .skiptranslate {
        display: none !important;
    }

/* ═══════════════════════════════════════
   NAVBAR WRAPPER
    ═══════════════════════════════════════ */

.navbar-wrapper {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 24px rgba(26, 35, 126, 0.08);
}

.navbar-wrapper.scrolled-top {
    top: 0 !important;
    background: var(--accent-gold);
    box-shadow: 0 4px 32px rgba(26, 35, 126, 0.13);
}

.navbar {
    padding: 0.8rem 0;
    transition: 0.3s;
}

/* Logo */
.navbar-brand img {
    height: 100px;
    transition: height 0.3s;
}

.navbar-wrapper.scrolled-top .navbar-brand img {
    height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a237e;
    white-space: nowrap;
}

.brand-short {
    font-size: 11px;
    font-weight: 400;
    color: #5c6bc0;
    letter-spacing: 0.03em;
}

/* ── Hamburger ── */
.navbar-toggler[aria-expanded="true"] #bar1 { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] #bar2 { opacity: 0; transform: scaleX(0); }
.navbar-toggler[aria-expanded="true"] #bar3 { transform: translateY(-7px) rotate(-45deg); }

.toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:hover { background: var(--border-color); }

/* ── Nav Links ── */
.navbar-nav .nav-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary) !important;
    padding: 0 10px !important;
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    transition: color 0.25s;
    /* letter-spacing: 0.06em; */
    text-transform: uppercase;
}

.navbar-nav .nav-link::after { display: none !important; }

.navbar-nav .nav-link .nav-arrow {
    font-size: 9px;
    margin-left: 5px;
    opacity: 0.45;
    transition: transform 0.35s cubic-bezier(0.34, 1.6, 0.64, 1), opacity 0.25s;
}

.navbar-nav .nav-item:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dramatic fill underline */
.navbar-nav .nav-link .nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.navbar-nav .nav-item:hover .nav-underline {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* ═══════════════════════════════════════
   DRAMATIC DROPDOWN
   ═══════════════════════════════════════ */

/* Clip-path reveal from top */
.dropdown-menu {
    border: none;
    border-radius: 0 0 10px 10px;
    padding: 0;
    min-width: 248px;
    display: block !important;
    visibility: hidden;
    pointer-events: none;

    background: #ffffff;
    box-shadow:
        0 24px 64px rgba(26, 35, 126, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.08);

    /* Dramatic clip-path curtain reveal */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0.45s;
    margin-top: 0 !important;
    border-top: 3px solid var(--primary-blue);
    overflow: hidden;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    clip-path: inset(0 0 0% 0);
    visibility: visible;
    pointer-events: auto;
}

/* Thick left bar decoration */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue) 0%, #5c6bc0 100%);
    z-index: 1;
}

/* ── Dropdown Items ── */
.dropdown-item {
    font-size: 13px;
    font-weight: 500;
    color: #2c3556;
    padding: 12px 18px 12px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(26, 35, 126, 0.05);
    transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.dropdown-item:last-child { border-bottom: none; }

/* Dramatic fill background on hover */
.dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 35, 126, 0.08) 0%, rgba(26, 35, 126, 0.03) 100%);
    transform: translateX(-101%);
    transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 0;
}

.dropdown-item:hover::before {
    transform: translateX(0);
}

.dropdown-item:hover {
    color: var(--primary-blue);
    padding-left: 28px;
    background: transparent;
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(26, 35, 126, 0.09) !important;
    color: var(--primary-blue) !important;
    font-weight: 600;
}

/* Icon box */
.dd-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(26, 35, 126, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary-blue);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.25s, transform 0.4s cubic-bezier(0.34, 1.6, 0.64, 1);
}

.dropdown-item:hover .dd-icon {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.15) rotate(-6deg);
}

/* Label */
.dd-label {
    flex: 1;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.dd-label small {
    display: block;
    font-size: 10.5px;
    color: #8892a4;
    font-weight: 400;
    margin-top: 1px;
    transition: color 0.2s;
}

.dropdown-item:hover .dd-label small {
    color: #5c6bc0;
}

/* Arrow */
.dd-arrow {
    font-size: 11px;
    opacity: 0;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.6, 0.64, 1);
}

.dropdown-item:hover .dd-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered item reveal — each item slides in from left */
.nav-item.dropdown:hover .dropdown-item {
    animation: itemReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.nav-item.dropdown:hover .dropdown-item:nth-child(1)  { animation-delay: 0.05s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(2)  { animation-delay: 0.10s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(3)  { animation-delay: 0.15s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(4)  { animation-delay: 0.20s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(5)  { animation-delay: 0.25s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(6)  { animation-delay: 0.30s; }

@keyframes itemReveal {
    from {
        opacity: 0;
        transform: translateX(-20px);
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0% 0 0);
    }
}

/* ── "More" dots dropdown ── */
.btn-more { padding: 0 10px; }

#moreDropdown + .dropdown-menu {
    min-width: 185px;
    transform-origin: top right;
}

.dropdown-divider {
    border-color: rgba(26, 35, 126, 0.08);
    margin: 4px 8px;
}

/* ═══════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════ */
@media (max-width: 991px) {
    .navbar { min-height: 56px; }
    .navbar-brand img { height: 80px; }

    .navbar-collapse {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        padding: 0;
    }

    .mobile-utility-strip {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: var(--primary-blue);
        padding: 10px 20px;
    }

    .mobile-utility-strip .mu-left { display: flex; gap: 14px; }

    .mobile-utility-strip .mu-left a {
        color: rgba(255,255,255,0.85);
        font-size: 13px;
        text-decoration: none;
    }

    .mobile-utility-strip .mu-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-utility-strip .mu-right a {
        font-size: 10.5px;
        font-weight: 700;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .mobile-utility-strip .mu-right a:hover { color: var(--accent-gold); }

    .mobile-utility-strip .mu-donate {
        background: var(--accent-gold);
        color: var(--text-primary) !important;
        padding: 3px 12px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 2px;
    }

    .navbar-nav { padding: 8px 0 16px; }

    .navbar-nav .nav-link {
        height: auto;
        padding: 13px 20px !important;
        font-size: 14px;
        border-bottom: 1px solid var(--border-color);
        text-transform: none;
        letter-spacing: 0;
    }

    .navbar-nav .nav-link .nav-underline { display: none; }
    .navbar-nav .nav-link .nav-arrow { margin-left: auto; }

    /* Mobile dropdown — reset dramatic effects */
    .dropdown-menu {
        position: static !important;
        border: none;
        border-top: none;
        border-radius: 0;
        box-shadow: none;
        background: #f8fafb;
        clip-path: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: none;
        padding: 0;
        display: none !important;
        overflow: visible;
    }

    .dropdown-menu::before { display: none; }

    .dropdown-menu.show { display: block !important; }

    .dropdown-item {
        padding: 11px 20px 11px 20px;
        font-size: 13px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        transition: background 0.2s;
    }

    .dropdown-item::before { display: none; }

    .dropdown-item:hover {
        padding-left: 24px;
        background: #e8f0fe;
    }

    .dd-label small { display: none; }
    .dd-arrow { display: none; }

    /* Cancel stagger on mobile */
    .nav-item.dropdown:hover .dropdown-item,
    .nav-item.dropdown.show .dropdown-item {
        animation: none !important;
        opacity: 1;
        transform: none;
        clip-path: none;
    }

    .nav-item.dropdown.show .nav-arrow {
        transform: rotate(180deg);
        opacity: 1;
    }

    .mobile-contact-strip {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: #f4f6fa;
        border-top: 1px solid var(--border-color);
    }

    .mobile-contact-strip a {
        font-size: 11px;
        font-weight: 600;
        color: var(--primary-blue);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .mobile-contact-strip .sep {
        width: 1px;
        height: 14px;
        background: var(--border-color);
    }
}

@media (min-width: 992px) {
    .mobile-utility-strip,
    .mobile-contact-strip { display: none !important; }
}


/* === HERO SLIDER === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    margin-top: 0;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.hero.loaded {
    opacity: 1;
    visibility: visible;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    transform: scale(1.06);
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1.0);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-left: 5vw;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s 0.5s ease, transform 0.9s 0.5s ease;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.slide-content h1 .accent {
    color: var(--gold);
}

.slide-content p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 1.1rem;
    max-width: 440px;
    line-height: 1.75;
}

.slide-cta {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary-cta {
    background: var(--primary);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.87rem;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary-cta:hover {
    background: #0f3460;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary-cta {
    background: transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.87rem;
    padding: 0.7rem 1.8rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
}

.slider-arrow.prev {
    left: 1.5rem;
}

.slider-arrow.next {
    right: 1.5rem;
}

/* Dots */
.slider-nav {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.55rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.4);
}

/* === SECTIONS === */
section {
    padding: calc(var(--spacing-unit) * 5) 0;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
}

/* === MESSAGES SECTION === */
/* .messages-section {
    background: var(--bg-light);
}

.message-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
    justify-content: center;
}

.message-tabs .nav-link {
    border: none;
    color: var(--text-secondary) !important;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    border-bottom: 3px solid transparent;
}

.message-tabs .nav-link.active {
    color: var(--primary-blue) !important;
    border-bottom-color: var(--primary-blue);
    background: transparent;
}

.message-content h2 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.message-content p {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.message-photo {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.message-photo img {
    border-radius: 8px;
    transition: transform 0.25s;
}

.message-photo:hover img {
    transform: scale(1.03);
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 78, 140, 0.9);
    color: white;
    padding: calc(var(--spacing-unit) * 2);
    font-weight: 500;
} */

/* === INSTITUTE SECTION === */
.institute-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
}

.institute-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.institute-img {
    overflow: hidden;
}

.institute-img img {
    transition: transform 0.25s;
}

.institute-card:hover .institute-img img {
    transform: scale(1.03);
}

.institute-info {
    padding: calc(var(--spacing-unit) * 2);
}

.institute-info h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

/* === ACHIEVEMENTS SECTION === */
.achievements-section {
    background: var(--secondary-blue);
}

.achievement-item {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-item i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.achievement-item h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

/* === PROJECTS SECTION === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.project-filters {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.project-card:hover .project-img img {
    transform: scale(1.03);
}

.project-badge {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    background: var(--accent-gold);
    color: var(--text-primary);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.project-content {
    padding: calc(var(--spacing-unit) * 2);
}

.project-content h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.project-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === WORKING AREA SECTION === */
.working-area-section {
    background: var(--bg-light);
}

.working-area-content h2 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.working-area-content p {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* === PUBLICATIONS SECTION === */
.publication-filters {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.publication-item {
    text-align: center;
    transition: transform 0.2s;
}

.publication-item:hover {
    transform: translateY(-4px);
}

.publication-item img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: calc(var(--spacing-unit) * 2);
    transition: transform 0.25s;
}

.publication-item:hover img {
    transform: scale(1.03);
}

.publication-item h5 {
    font-size: 15px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.btn-download {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
}

/* === EVENTS SECTION === */
.events-section {
    background: var(--bg-light);
}

.calendar-widget {
    background: white;
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.calendar-header h4 {
    font-size: 18px;
    margin: 0;
}

.btn-prev,
.btn-next {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-prev:hover,
.btn-next:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.calendar-body {
    width: 100%;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.calendar-day-name {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: calc(var(--spacing-unit) * 1);
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: calc(var(--spacing-unit) * 1);
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-date:hover {
    background: var(--secondary-blue);
}

.calendar-date.other-month {
    color: var(--text-secondary);
    opacity: 0.4;
}

.calendar-date.today {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.calendar-date.event-day::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.upcoming-events {
    background: white;
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
}

.upcoming-events h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.event-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2);
    border-left: 3px solid var(--primary-blue);
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.event-date {
    text-align: center;
    min-width: 50px;
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.event-date .month {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.event-info h5 {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.event-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* === DRONE SECTION === */
.drone-content h2 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
}

.stat-item {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
    background: var(--secondary-blue);
    border-radius: 8px;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.stat-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.drone-video video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* === ANTHEM SECTION === */
.anthem-section {
    background: var(--bg-light);
}

.anthem-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.anthem-info {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.anthem-info i {
    font-size: 32px;
    color: var(--primary-blue);
}

.anthem-info h4 {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.anthem-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

audio {
    max-width: 400px;
}

/* === GALLERY SECTION === */

/* ── Gallery Section ── */
.gallery-section {
    background: var(--bg-light);
}

/* ── Filter Buttons ── */
.gallery-filter-btn {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 7px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gallery-filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.gallery-filter-btn:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.gallery-filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.gallery-filter-btn.active::after {
    transform: scaleX(1);
}

/* ── Masonry Grid ── */
.masonry-grid {
    columns: 4;
    column-gap: 10px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    cursor: pointer;
}

/* ── Gallery Item ── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    filter: brightness(0.97);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-inner {
    color: #fff;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay-inner {
    transform: translateY(0);
}

.gallery-overlay-inner i {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.gallery-overlay-inner p {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ── View All Button ── */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 10px 28px;
    border: 1px solid var(--primary-blue);
    transition: all 0.22s ease;
}

.btn-view-all:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* ── Lightbox ── */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-box {
    position: relative;
    max-width: 900px;
    width: 100%;
    transform: scale(0.93);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-backdrop.active .lightbox-box {
    transform: scale(1);
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── Alpine transition ── */
.transition-enter {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.transition-enter-start {
    opacity: 0;
    transform: scale(0.96);
}

.transition-enter-end {
    opacity: 1;
    transform: scale(1);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 2;
        column-gap: 6px;
    }

    .masonry-item {
        margin-bottom: 6px;
    }
}

/* === FAQ SECTION === */
.faq-section {
    background: var(--bg-light);
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    overflow: hidden;
}

.accordion-button {
    font-size: 15px;
    font-weight: 500;
    padding: calc(var(--spacing-unit) * 2);
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--secondary-blue);
    color: var(--primary-blue);
}

.accordion-body {
    padding: calc(var(--spacing-unit) * 2);
    font-size: 14px;
    color: var(--text-secondary);
}

.ask-question-form {
    background: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.ask-question-form h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 1.5);
    font-size: 14px;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.1);
}

/* === VISITOR COUNT === */
.visitor-count {
    background: var(--primary-blue);
    color: white;
    padding: calc(var(--spacing-unit) * 4) 0;
}

.count-item i {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.count-item h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.count-item p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--bg-light);
}

.contact-section h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-blue);
    margin-top: 2px;
}

.contact-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.useful-links {
    list-style: none;
    padding: 0;
}

.useful-links li {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.useful-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.useful-links a:hover {
    color: var(--primary-blue);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* === FOOTER (LIGHT THEME UPDATE) === */
.site-footer {
    background: #ffffff;
    /* White background for light theme */
    color: #334155;
    /* Dark slate text for readability */
    padding: calc(var(--spacing-unit) * 8) 0 0;
    /* Increased top padding */
    border-top: 1px solid #e2e8f0;
}

.footer-logo {
    height: 70px;
    /* Slightly larger for visibility */
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-mission {
    font-size: 14px;
    color: #64748b;
    /* Muted slate gray */
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.site-footer h5,
.site-footer h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: calc(var(--spacing-unit) * 4);
    position: relative;
}

/* Newsletter Update */
.newsletter-form {
    display: flex;
    gap: 0;
    /* Connected look */
}

.newsletter-form input {
    flex: 1;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 50px 0 0 50px;
    /* Modern rounded style */
    font-size: 14px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #198754;
    /* Success green focus */
}

.newsletter-form button {
    width: 50px;
    height: auto;
    background: #198754;
    /* Success green background */
    border: none;
    border-radius: 0 50px 50px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #157347;
}

/* Links & Contact Update */
.footer-links li,
.footer-contact li {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #198754;
    transform: translateX(5px);
    /* Soft slide effect on hover */
}

.footer-contact li {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    font-size: 14px;
    color: #475569;
}

.footer-contact i {
    color: #198754;
    /* Green icons */
    font-size: 1.1rem;
}

/* Social Buttons Update */
.footer-social {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    /* Soft gray background */
    border-radius: 50%;
    /* Circle icons */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.footer-social a:hover {
    background: #198754;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* Footer Bottom Update */
.footer-bottom {
    margin-top: calc(var(--spacing-unit) * 6);
    padding: calc(var(--spacing-unit) * 3) 0;
    background: #f8fafc;
    /* Slightly different shade for the bottom bar */
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.footer-bottom a {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .carousel-caption h1 {
        font-size: 30px;
    }

    .section-title {
        font-size: 20px;
    }

    .hero-cta {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .section-header {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .carousel-caption h1 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .utility-bar {
        font-size: 12px;
        text-align: center;
    }

    .utility-bar .row {
        justify-content: center;
    }

    .utility-bar .col-md-6 {
        text-align: center !important;
    }

    .social-links {
        justify-content: center;
        margin-bottom: calc(var(--spacing-unit) * 1);
    }

    .utility-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-unit) * 1);
    }

    .utility-info a {
        display: block;
        margin: 0;
    }

    /* section {
            padding: calc(var(--spacing-unit) * 4) 0;
        } */

    .anthem-player {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 3);
    }

    audio {
        width: 100%;
    }
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5fa8 100%);
    color: white;
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 6);
    margin-top: 60px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* === ABOUT PAGE === */
.mission-vision-section {
    background: var(--bg-light);
}

.content-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    height: 100%;
    border: 1px solid var(--border-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.icon-box i {
    font-size: 28px;
    color: var(--primary-blue);
}

.content-card h2 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: calc(var(--spacing-unit) * 1.5) 0;
    padding-left: calc(var(--spacing-unit) * 4);
    position: relative;
    color: var(--text-secondary);
}

.mission-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.stats-row {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.stat-box {
    text-align: center;
    flex: 1;
}

.stat-box h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.stat-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* === GOVERNING BODY === */

.members-grid-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.member-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: var(--bg-white);
    position: relative;
    transition: background 0.2s ease;
    opacity: 0;
    animation: rowIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.member-card:nth-child(1) {
    animation-delay: 0.05s;
}

.member-card:nth-child(2) {
    animation-delay: 0.12s;
}

.member-card:nth-child(3) {
    animation-delay: 0.19s;
}

.member-card:nth-child(4) {
    animation-delay: 0.26s;
}

.member-card:nth-child(5) {
    animation-delay: 0.33s;
}

.member-card:nth-child(6) {
    animation-delay: 0.40s;
}

@keyframes rowIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* left accent bar */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-blue);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.member-card:hover::before {
    transform: scaleY(1);
}

.member-card:hover {
    background: var(--bg-light);
}

/* Photo */
.member-photo {
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 100%;
    min-height: 160px;
    background: var(--secondary-blue);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: grayscale(15%) brightness(0.97);
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.member-serial {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(15, 23, 42, 0.6);
    padding: 2px 7px;
    backdrop-filter: blur(3px);
}

/* Info */
.member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    border-left: 1px solid var(--border-color);
}

.member-designation {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.member-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 8px;
}

.member-divider {
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    margin-bottom: 8px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.member-card:hover .member-divider {
    width: 48px;
}

.member-bio {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Contact */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 11px;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.22s ease;
}

.contact-link i {
    font-size: 11px;
}

.contact-link:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* Header */
.exec-header-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-blue);
}

.exec-header-rule {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Responsive */
/* Responsive */
@media (max-width: 992px) {
    .members-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-card {
        grid-template-columns: 150px 1fr;
    }

    .member-photo {
        width: 150px;
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .members-grid-wrap {
        grid-template-columns: 1fr;
    }

    .member-card {
        grid-template-columns: 130px 1fr;
    }

    .member-photo {
        width: 130px;
        min-height: 160px;
    }

    .member-info {
        padding: 12px 14px;
    }

    .member-info h4 {
        font-size: 14px;
    }

    .member-bio {
        -webkit-line-clamp: 2;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .member-card {
        grid-template-columns: 1fr;
        /* photo উপরে, info নিচে */
    }

    .member-photo {
        width: 100%;
        /* height: 200px; */
        min-height: unset;
    }

    .member-info {
        border-left: none !important;
        border-top: 1px solid var(--border-color);
        padding: 16px;
        align-items: center;
        text-align: center;
    }

    .member-divider {
        margin: 0 auto 8px;
    }

    .member-bio {
        text-align: left;
    }

    .modal-dialog-custom {
        /* margin-top: 200px; */
    }
}

/* === PROJECTS PAGE === */
.project-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 13px;
    color: var(--text-secondary);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
}

/* === GALLERY PAGE === */
.gallery-page-section {
    padding: calc(var(--spacing-unit) * 6) 0;
}

.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 78, 140, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(31, 78, 140, 0.7);
    opacity: 1;
}

.gallery-overlay i {
    font-size: 48px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.25s;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* === CONTACT PAGE === */
.contact-info-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    transition: all 0.25s;
}

.contact-info-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.contact-info-card .icon-box {
    margin: 0 auto calc(var(--spacing-unit) * 3);
}

.contact-info-card h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.contact-info-card p {
    color: var(--text-secondary);
    margin: 0;
}

.form-card {
    background: white;
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-card h2 {
    font-size: 24px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--text-primary);
}

/* === RESOURCES PAGE === */
.resource-filters {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 5);
    flex-wrap: wrap;
}

.resource-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
    height: 100%;
}

.resource-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.resource-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.resource-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.resource-card:hover .resource-img img {
    transform: scale(1.03);
}

.resource-badge {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.resource-badge.news {
    background: #ef4444;
    color: white;
}

.resource-badge.magazine {
    background: #8b5cf6;
    color: white;
}

.resource-badge.books {
    background: #10b981;
    color: white;
}

.resource-badge.notice {
    background: var(--accent-gold);
    color: var(--text-primary);
}

.resource-content {
    padding: calc(var(--spacing-unit) * 3);
}

.resource-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.resource-content h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* === INSTITUTES PAGE === */
.institute-card-large {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.25s;
}

.institute-card-large:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.institute-card-large .institute-img {
    height: 240px;
}

.institute-content {
    padding: calc(var(--spacing-unit) * 4);
}

.institute-content h3 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.institute-features {
    list-style: none;
    padding: 0;
    margin: calc(var(--spacing-unit) * 3) 0;
}

.institute-features li {
    padding: calc(var(--spacing-unit) * 1.5) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.institute-features i {
    color: var(--primary-blue);
    font-size: 18px;
}

.info-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.info-card h4 {
    font-size: 20px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.process-list {
    padding-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.process-list li {
    padding: calc(var(--spacing-unit) * 1) 0;
    color: var(--text-secondary);
}

.document-list {
    list-style: none;
    padding: 0;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.document-list li {
    padding: calc(var(--spacing-unit) * 1.5) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.document-list i {
    color: var(--primary-blue);
    font-size: 20px;
}

/* === DONATION PAGE === */
.donation-impact-section {
    background: var(--bg-light);
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.impact-stat {
    background: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.impact-stat h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.impact-stat p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.donation-card {
    background: white;
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.donation-card h3 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.amount-btn {
    padding: calc(var(--spacing-unit) * 2);
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover,
.amount-btn.active {
    border-color: var(--primary-blue);
    background: var(--secondary-blue);
    color: var(--primary-blue);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}

.payment-option {
    padding: calc(var(--spacing-unit) * 2);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary-blue);
    background: var(--secondary-blue);
}

.payment-option input[type="radio"] {
    margin: 0;
}

.bank-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.bank-card h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 2);
    border-bottom: 2px solid var(--border-color);
}

.bank-info p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--text-secondary);
}

.bank-info strong {
    color: var(--text-primary);
}

/* === CAREER PAGE === */
.career-intro-section {
    background: var(--bg-light);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
}

.benefit-item i {
    color: var(--primary-blue);
    font-size: 20px;
}
.job-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Side accent bar */
.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-blue);
    opacity: 0;
    transition: 0.3s;
}

.job-card:hover {
    box-shadow: 0 12px 24px rgba(0, 86, 179, 0.08);
    transform: translateY(-5px);
    border-color: transparent;
}

.job-card:hover::before {
    opacity: 1;
}

.job-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.job-type {
    background: var(--secondary-blue);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 50px; /* Capsule shape */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-details {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two column layout for info */
    gap: 10px;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f9fa;
}

.job-details p {
    font-size: 13px;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.job-details i {
    color: var(--primary-blue);
    font-size: 15px;
}

.job-description {
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1; /* Pushes buttons to bottom */
}

.job-actions .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary-blue);
    border: none;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.step-item h5 {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.step-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 767px) {
    .page-header h1 {
        font-size: 24px;
    }

    .stats-row {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .impact-stats-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }
}

/* === VALUES SECTION === */
.values-section {
    background: var(--bg-light);
}

.value-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    transition: all 0.25s;
}

.value-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.value-card i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.value-card h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.value-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* === DEPARTMENT PAGES === */
.service-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    transition: all 0.25s;
}

.service-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.report-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
}

.report-card i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.report-card h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.report-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-it-section {
    background: var(--bg-light);
}

.contact-options {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    justify-content: center;
    margin-top: calc(var(--spacing-unit) * 4);
}

/* === INSTITUTE DETAIL PAGES === */
.institute-detail-section {
    background: var(--bg-light);
}

.quick-stats {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 4);
}

.quick-stats .stat-item {
    text-align: center;
}

.quick-stats .stat-item h4 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.quick-stats .stat-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.program-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.program-card i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.program-card h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.program-card p {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.program-card ul {
    list-style: none;
    padding: 0;
}

.program-card ul li {
    padding: calc(var(--spacing-unit) * 1) 0;
    padding-left: calc(var(--spacing-unit) * 3);
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
}

.program-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.facility-card {
    background: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.25s;
}

.facility-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.facility-card i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.facility-card h5 {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.facility-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.activity-card {
    background: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.25s;
}

.activity-card:hover {
    background: var(--secondary-blue);
}

.activity-card i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.activity-card h5 {
    font-size: 16px;
    margin: 0;
}

.admission-cta-section {
    background: var(--primary-blue);
    color: white;
    padding: calc(var(--spacing-unit) * 8) 0;
}

.cta-box {
    text-align: center;
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.cta-box p {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    opacity: 0.9;
}

/* === VIDEO GALLERY === */
.video-filters {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 5);
    flex-wrap: wrap;
}

.video-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
    height: 100%;
}

.video-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: white;
    opacity: 0.9;
    transition: all 0.25s;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 1);
    right: calc(var(--spacing-unit) * 1);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1);
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: calc(var(--spacing-unit) * 3);
}

.video-info h4 {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.video-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.video-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    font-size: 12px;
    color: var(--text-secondary);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
}

/* === MEMBER BIO === */
.member-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 767px) {
    .quick-stats {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }

    .contact-options {
        flex-direction: column;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .cta-box p {
        font-size: 16px;
    }
}

/* === NEWS DETAIL PAGE === */
.news-detail-section {
    padding: calc(var(--spacing-unit) * 6) 0;
}

.news-article {
    background: white;
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-category {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
}

.article-featured-image {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-content {
    font-size: 16px;
    line-height: 1.7;
}

.article-content .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.article-content h3 {
    font-size: 22px;
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-content ul,
.article-content ol {
    margin: calc(var(--spacing-unit) * 3) 0;
    padding-left: calc(var(--spacing-unit) * 4);
}

.article-content li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.article-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: calc(var(--spacing-unit) * 3);
    margin: calc(var(--spacing-unit) * 4) 0;
    font-size: 18px;
    font-style: italic;
}

.article-quote cite {
    display: block;
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 14px;
    font-style: normal;
    color: var(--text-secondary);
}

.article-footer {
    margin-top: calc(var(--spacing-unit) * 5);
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 3);
}

.article-tags a {
    display: inline-block;
    background: var(--secondary-blue);
    color: var(--primary-blue);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    margin-right: calc(var(--spacing-unit) * 1);
    margin-top: calc(var(--spacing-unit) * 1);
}

.article-share {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.share-btn {
    width: 36px;
    height: 36px;
    background: var(--secondary-blue);
    color: var(--primary-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.news-card-small {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
}

.news-card-small:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card-small img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-card-small .news-content {
    padding: calc(var(--spacing-unit) * 2);
}

.news-card-small .news-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.news-card-small h5 {
    font-size: 16px;
    margin: calc(var(--spacing-unit) * 1) 0;
}

.news-card-small a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
}

/* === SIDEBAR WIDGETS === */
.sidebar-widget {
    background: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.sidebar-widget h4 {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 2);
    border-bottom: 2px solid var(--border-color);
}

.news-item-small {
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item-small:last-child {
    border-bottom: none;
}

.news-item-small .news-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.news-item-small h6 {
    font-size: 14px;
    margin-top: calc(var(--spacing-unit) * 1);
}

.news-item-small a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.news-item-small a:hover {
    color: var(--primary-blue);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.category-list a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--primary-blue);
}

.category-list span {
    color: var(--text-secondary);
}

.newsletter-widget {
    background: var(--primary-blue);
    color: white;
}

.newsletter-widget h4 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form-sidebar input {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.newsletter-form-sidebar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* === PROJECT DETAIL PAGE === */
.project-hero-section {
    padding: calc(var(--spacing-unit) * 6) 0;
}

.project-meta-bar {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 14px;
}

.project-category {
    background: var(--accent-gold);
    color: var(--text-primary);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-weight: 600;
}

.project-sidebar {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: calc(var(--spacing-unit) * 10);
}

.sidebar-info {
    margin: calc(var(--spacing-unit) * 3) 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.content-block {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.content-block h2 {
    font-size: 24px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    padding: calc(var(--spacing-unit) * 1.5) 0;
    padding-left: calc(var(--spacing-unit) * 4);
    position: relative;
}

.objectives-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 18px;
}

.criteria-box {
    background: var(--bg-light);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    margin-top: calc(var(--spacing-unit) * 2);
}

.criteria-box h5 {
    font-size: 16px;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.impact-card {
    background: var(--secondary-blue);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    text-align: center;
}

.impact-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.impact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.testimonial-card {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    background: var(--bg-light);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.testimonial-content strong {
    font-size: 14px;
    color: var(--text-secondary);
}

.application-steps {
    padding-left: calc(var(--spacing-unit) * 3);
}

.application-steps li {
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 16px;
}

.related-project {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.related-project img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.related-project h5 {
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.share-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.share-buttons .share-btn {
    flex: 1;
}

/* === EVENT DETAIL PAGE === */
.event-info-card {
    background: white;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: calc(var(--spacing-unit) * 10);
}

.event-info-card h3 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.event-details {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.detail-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    font-size: 24px;
    color: var(--primary-blue);
}

.detail-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.detail-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.event-status {
    text-align: center;
    margin: calc(var(--spacing-unit) * 3) 0;
}

.event-actions {
    margin-top: calc(var(--spacing-unit) * 3);
}

.winners-section {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    justify-content: center;
    flex-wrap: wrap;
}

.winner-card {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.medal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    font-size: 36px;
}

.medal.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.medal.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: white;
}

.medal.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.sponsors-logos {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: calc(var(--spacing-unit) * 3);
}

.sponsors-logos img {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sponsors-logos img:hover {
    opacity: 1;
}

.upcoming-event-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-event-item:last-child {
    border-bottom: none;
}

.event-date-badge {
    background: var(--primary-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-badge strong {
    font-size: 24px;
    line-height: 1;
}

.event-date-badge span {
    font-size: 12px;
}

.upcoming-event-item .event-info h6 {
    font-size: 15px;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.upcoming-event-item .event-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* === MAGAZINE DETAIL PAGE === */
.magazine-cover {
    position: sticky;
    top: calc(var(--spacing-unit) * 10);
}

.magazine-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.magazine-actions {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.magazine-info {
    background: white;
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.magazine-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--text-primary);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.magazine-info h1 {
    font-size: 32px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.magazine-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.magazine-description,
.magazine-contents {
    margin-top: calc(var(--spacing-unit) * 4);
}

.magazine-description h3,
.magazine-contents h3 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.contents-list {
    background: var(--bg-light);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--border-color);
}

.content-item:last-child {
    border-bottom: none;
}

.page-number {
    background: var(--primary-blue);
    color: white;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.content-item h5 {
    font-size: 16px;
    margin: 0;
}

.highlight-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.highlight-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.highlight-card h5 {
    font-size: 16px;
    padding: calc(var(--spacing-unit) * 2);
    margin: 0;
}

.highlight-card p {
    padding: 0 calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.magazine-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: all 0.25s;
}

.magazine-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.magazine-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.magazine-card h5 {
    font-size: 16px;
    padding: calc(var(--spacing-unit) * 2);
    margin: 0;
}

.magazine-card .btn {
    margin: 0 calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .article-header h1 {
        font-size: 24px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-img {
        margin: 0 auto;
    }

    .winners-section {
        flex-direction: column;
    }

    .magazine-info h1 {
        font-size: 24px;
    }
}

/* === GALLERY MODAL === */
#imageModal .modal-content {
    background: transparent;
    border: none;
}

#imageModal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    border: none;
    padding: calc(var(--spacing-unit) * 2);
}

#imageModal .btn-close {
    background: white;
    opacity: 1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#imageModal .btn-close:hover {
    background: var(--primary-blue);
    filter: brightness(0) invert(1);
}

#imageModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#imageModal .modal-body img {
    max-height: 85vh;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

#imageModal .modal-dialog {
    max-width: 90vw;
}

#imageModal.modal {
    background: rgba(0, 0, 0, 0.9);
}



/* project section  */

.skew-card {
    border-radius: 15px;
    min-height: 220px;
}

.skew-img-box {
    width: 40%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    overflow: hidden;
}

.skew-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skew-body {
    width: 60%;
    margin-left: -20px;
}

/* Resource section */

.unique-split-card {
    transition: transform 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #009B4A;
}

.unique-split-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #009B4A;
}

.split-card-img {
    filter: brightness(0.9);
    border-radius: 0px 5px 5px 0px;
}


.split-card-date {
    position: absolute;
    bottom: -1px;
    right: 0px;
    background-color: white;
    padding: 5px 15px;
    border-radius: 15px 0 0 0;
    box-shadow: -5px -5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    z-index: 2;
}

.category-badge:hover {
    color: white !important;
}

.category-badge:hover i {
    color: white !important;
}
