/* ================================================
   ALHAJ JASHIMUDDIN FOUNDATION - Main Stylesheet
   ================================================ */

@import url('https://fonts.maateen.me/solaiman-lipi/font.css');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Nunito:wght@300;400;600;700&family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

/* ---- Light / Dark Theme Variables ---- */
:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #8B6914;
    --gold-glow: rgba(201, 168, 76, 0.35);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.25);
    --radius: 4px;
}

/* DARK MODE (default) */
body {
    --bg: #0A0A0A;
    --bg2: #111111;
    --bg3: #1A1A1A;
    --bg4: #222222;
    --text: #F5F0E8;
    --text1: rgb(255, 255, 255)8;
    --text-muted: #999;
    --text-muted1: rgb(255, 255, 255)9;
    --border: rgba(201, 168, 76, 0.18);
    --card-bg: rgba(201, 168, 76, 0.04);
    --header-bg: rgba(10, 10, 10, 0.97);
    --overlay-start: rgba(0, 0, 0, 0.88);
    --overlay-end: rgba(0, 0, 0, 0.30);
}

/* LIGHT MODE */
body.light-mode {
    --bg: #F8F5EE;
    --bg2: #FFFFFF;
    --bg3: #F0EBE0;
    --bg4: #E8E0CF;
    --text: #1A1200;
    --text-muted: #666;
    --text-muted1: #000;
    --border: rgba(139, 105, 20, 0.25);
    --card-bg: rgba(201, 168, 76, 0.06);
    --header-bg: rgba(248, 245, 238, 0.97);
    --overlay-start: rgba(0, 0, 0, 0.72);
    --overlay-end: rgba(0, 0, 0, 0.15);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Shurjo, "Siyam Rupali", 'Nunito', Roboto, Arial, Helvetica, Monospace;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 6px 18px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-title span {
    color: var(--gold);
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
    margin-bottom: 48px;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 16px 0 24px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transition: var(--transition);
}

.btn-gold:hover::before {
    left: 0;
}

.btn-gold span {
    position: relative;
    z-index: 1;
}

.btn-gold i {
    position: relative;
    z-index: 1;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 13px 30px;
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 8px 25px var(--gold-glow);
}

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
    font-size: 0.76rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 18px;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted1);
}

.top-bar-left span i {
    color: var(--gold);
    font-size: 0.68rem;
}

.top-bar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---- Theme & Language Switchers ---- */
.switchers {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 8px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    font-size: 0.68rem;
}

.lang-btn {
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    background: transparent;
    font-family: Shurjo, "Siyam Rupali", 'Nunito', Roboto, Arial, Helvetica, Monospace;
}

.lang-btn.active {
    background: var(--gold);
    color: #000;
}

.lang-btn:hover:not(.active) {
    color: var(--gold);
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: var(--bg4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    border-radius: 50%;
}

.theme-toggle:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.social-link {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: var(--transition);
    border-radius: 2px;
}

.social-link:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* ================================================
   HEADER / NAV
   ================================================ */
#header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.navbar {
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 220px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.logo-text {
    line-height: 1.2;
}

.logo-text .name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    letter-spacing: 1px;
}

.logo-text .sub {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    /* letter-spacing: 1.5px; */
    text-transform: uppercase;
    color: var(--text-muted1);
    padding: 8px 12px;
    transition: var(--transition);
    position: relative;
    font-weight: 900;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.dropdown a i {
    color: var(--gold);
    font-size: 0.7rem;
    width: 14px;
}

.dropdown a:hover {
    color: var(--gold);
    background: var(--card-bg);
    border-left-color: var(--gold);
}

/* ================================================
   HAMBURGER BUTTON
   ================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger:hover {
    border-color: var(--gold);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   PREMIUM MOBILE NAVIGATION OVERLAY
   ================================================ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
    pointer-events: all;
}

.mobile-nav-overlay.open::before {
    opacity: 1;
}

.mobile-nav-inner {
    position: relative;
    width: min(380px, 85vw);
    height: 100%;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.mobile-nav-overlay.open .mobile-nav-inner {
    transform: translateX(0);
}

/* Scrollbar styling for mobile nav */
.mobile-nav-inner::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-inner::-webkit-scrollbar-track {
    background: var(--bg3);
}

.mobile-nav-inner::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

/* Mobile nav header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
    flex-shrink: 0;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg4);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* Mobile nav links */
.mobile-nav-links {
    flex: 1;
    padding: 16px 0;
}

.mobile-nav-links>ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 16px;
}

.mobile-nav-links li {
    border-radius: 6px;
    overflow: hidden;
}

.mob-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 6px;
    width: 100%;
}

.mob-link i {
    color: var(--gold);
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.mob-link:hover,
.mob-link.active {
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold);
    padding-left: 24px;
}

/* Row for expandable items */
.mob-link-row {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}

.mob-link-row .mob-link {
    flex: 1;
}

.mob-sub-toggle {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.mob-sub-toggle:hover,
.mob-sub-toggle.open {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.mob-sub-toggle.open i {
    transform: rotate(180deg);
}

.mob-sub-toggle i {
    transition: transform 0.3s ease;
}

/* Submenu */
.mob-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 6px 6px;
    padding: 0;
}

.mob-submenu.open {
    max-height: 600px;
    padding: 8px 0;
}

.mob-submenu li {
    border-radius: 0;
}

.mob-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 46px;
    font-size: 0.76rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.mob-submenu a:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
    padding-left: 52px;
}

.mob-submenu a i {
    color: var(--gold);
    width: 14px;
    font-size: 0.75rem;
}

.mob-cat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 4px 46px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.mob-service-link {
    display: block;
    padding: 8px 18px 8px 60px;
    font-size: 0.76rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.mob-service-link:hover {
    color: var(--gold);
    padding-left: 66px;
}

/* Mobile nav footer */
.mobile-nav-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg3);
    flex-shrink: 0;
}

.mob-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mob-contact-row i {
    color: var(--gold);
    width: 16px;
}

.mob-social-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.mob-social-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 10px 0;
    flex-shrink: 0;
}

.mob-social {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.mob-social:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* Gold decorative line at top of mobile nav */
.mobile-nav-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark), var(--gold));
}

/* ================================================
   MEGA MENU — MOBILE
   ================================================ */
@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 20px;
        box-shadow: none;
        border: none;
        background: var(--card-bg);
    }

    .nav-item.has-mega.open .mega-menu {
        display: block;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-col h4 {
        font-size: 0.85rem;
    }
}

/* ================================================
   COMPREHENSIVE RESPONSIVE CSS
   ================================================ */

/* ---- 1200px — Large devices ---- */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero-inner {
        max-width: 600px;
    }

    .karze-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- 991px — Tablets + Mobile ---- */
@media (max-width: 991px) {

    /* Top bar */
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .top-bar-right {
        justify-content: center;
    }

    /* Header */
    .navbar {
        padding: 12px 0;
    }

    .logo-img {
        width: 150px;
        height: 40px;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 70vh;
    }

    .slide-content {
        padding-bottom: 80px;
    }

    .slide-inner {
        max-width: 100%;
    }

    .slide-verse {
        font-size: 1.3rem;
    }

    .slide-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .slide-text {
        font-size: 0.82rem;
    }

    .hero-controls {
        bottom: 20px;
    }

    /* Sections general */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image-frame {
        height: 350px;
    }

    .about-team-premium {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .team-person-premium {
        flex: 1;
        min-width: 200px;
    }

    /* Services */
    .services-grid-premium {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }


    .service-card-premium {
        height: 260px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Karze Hasna */
    .karze-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .karze-image {
        height: 300px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ---- 768px — Tablets ---- */
@media (max-width: 768px) {

    /* Top bar — hide address on small screens */
    .top-bar-left span:last-child {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
    }

    .slide-verse {
        font-size: 1.1rem;
    }

    .slide-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* About */
    .about-text {
        font-size: 0.82rem;
    }

    .about-quote {
        font-size: 0.88rem;
    }

    .about-badge {
        width: 90px;
        height: 90px;
        bottom: 12px;
        right: 12px;
    }

    .about-badge .num {
        font-size: 1.4rem;
    }

    .about-badge .text {
        font-size: 0.55rem;
    }

    /* Services */
    .services-grid-premium {
        grid-template-columns: 1fr 1fr;
    }

    .service-card-premium {
        height: 220px;
        padding: 18px;
    }

    .service-title-premium {
        font-size: 0.82rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-num {
        font-size: 2rem;
    }

    /* Quran section */
    .quran-toggle-bar {
        flex-wrap: wrap;
    }

    .qr-tab {
        font-size: 0.72rem;
        padding: 10px 14px;
    }

    /* Prayer times */
    .prayer-grid {
        grid-template-columns: 1fr;
    }

    /* Blog/News carousels */
    .blog-carousel-wrap,
    .news-carousel-wrap {
        overflow: hidden;
    }

    /* Activities */
    .act-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .act-filter-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Lightbox */
    .lightbox-inner {
        width: 96vw;
    }

    .lb-nav {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ---- 600px — Mobile ---- */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hub-card-content {
        min-height: auto;
    }

    /* Top bar — hide entirely */
    .top-bar {
        display: none;
    }

    /* Hamburger */
    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 55vh;
    }

    .slide-inner {
        text-align: center;
    }

    .slide-cta {
        justify-content: center;
    }

    .slide-verse {
        font-size: 1rem;
    }

    .slide-tag {
        font-size: 0.62rem;
        letter-spacing: 2px;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slider-controls {
        flex-direction: column;
        gap: 8px;
    }

    .slide-counter {
        display: none;
    }

    /* Section */
    section {
        padding: 50px 0;
    }

    .section-tag {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    /* Services */
    .services-grid-premium {
        grid-template-columns: 1fr;
    }

    .service-card-premium {
        height: 280px;
    }

    .service-desc-premium {
        max-height: none;
        opacity: 1;
        margin-top: 8px;
    }

    /* About */
    .about-image-frame {
        height: 300px;
    }

    .about-team-premium {
        flex-direction: column;
    }

    /* Karze */
    .karze-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Activities */
    .act-grid {
        grid-template-columns: 1fr;
    }

    /* Blog carousel */
    .blog-card {
        min-width: 100%;
    }

    .news-card {
        min-width: 100%;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-col-title {
        font-size: 0.78rem;
    }

    /* Prayer grid */
    .si-grid {
        grid-template-columns: 1fr;
    }

    /* Sections with decorative lines */
    .gold-line {
        width: 40px;
    }

    /* WhatsApp & Messenger widgets */
    .whatsapp-widget,
    .messenger-widget {
        bottom: 20px;
    }

    .whatsapp-widget {
        right: 20px;
    }

    .messenger-widget {
        left: 20px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
    }

    /* Quran grid */
    .para-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .surah-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 480px — Small phones ---- */
@media (max-width: 480px) {
    .logo-text .name {
        font-size: 0.85rem;
    }

    .logo-text .sub {
        font-size: 0.5rem;
    }

    .mobile-nav-inner {
        width: 90vw;
    }

    .service-card-premium {
        height: 250px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-badge {
        width: 75px;
        height: 75px;
    }

    .about-badge .num {
        font-size: 1.2rem;
    }

    /* Karze */
    .karze-stats {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    /* Para grid */
    .para-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-links li a {
        font-size: 0.78rem;
    }

    /* Btn */
    .btn-gold,
    .btn-outline {
        padding: 12px 22px;
        font-size: 0.72rem;
    }
}

/* ---- 360px — Extra small ---- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        padding: 10px 0;
    }

    .logo-img {
        width: 120px;
        height: 34px;
    }

    .mobile-nav-inner {
        width: 95vw;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .services-grid-premium {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-item.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--bg3);
    border-bottom: 2px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1000;
    padding: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-col h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.mega-col h4 i {
    font-size: 0.85rem;
}

.mega-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-col ul li a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.mega-col ul li a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide,
.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide,
.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide {
    width: 100% !important;
}

.blog-card {
    width: 100% !important;
}

.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide,
.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide,
.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide {
    min-width: 100% !important;
}

/* Mobile Mega Menu Adjustments */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 20px;
        box-shadow: none;
        border: none;
        background: var(--card-bg);
    }

    .nav-item.has-mega.open .mega-menu {
        display: block;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-col h4 {
        font-size: 0.85rem;
    }
}

/* ================================================
   HERO SLIDER  — full viewport, no overlap issue
   ================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.4s ease;
    transform: scale(1.04);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--overlay-start) 0%, var(--overlay-end) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-bottom: 120px;
}

.slide-content .container {
    width: 100%;
}

.slide-inner {
    max-width: 680px;
}

.slide-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    border-left: 3px solid var(--gold);
    padding-left: 14px;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s ease forwards;
}

.slide-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #F5F0E8;
    /* always white on slides */
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s ease forwards;
}

.slide-title span {
    color: var(--gold);
}

.slide-verse {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--gold-light);
    direction: rtl;
    text-align: right;
    line-height: 2;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s ease forwards;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.slide-verse-trans {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s ease forwards;
}

.slide-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: rgba(245, 240, 232, 0.82);
    margin-bottom: 32px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s ease forwards;
}

.slide-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s ease forwards;
}

/* Slide counter */
.slide-counter {
    position: absolute;
    bottom: 105px;
    right: 36px;
    z-index: 10;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 3px;
}

/* Dots */
.slide-dots {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.4);
    border: 1px solid var(--gold-dark);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 3px;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gold);
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.slider-prev {
    left: 28px;
}

.slider-next {
    right: 28px;
}

/* Stats bar */
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    backdrop-filter: blur(10px);
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 18px 20px;
    border-right: 1px solid rgba(201, 168, 76, 0.12);
    text-align: center;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-top: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
    padding: 100px 0;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image-frame {
    position: relative;
    padding: 16px 16px 0 0;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    z-index: 0;
}

.about-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 550px;
    z-index: 1;
}

.leader-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: content;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.leader-banner.active {
    opacity: 1;
    z-index: 2;
}

.about-team-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.team-person-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.team-person-premium:hover,
.team-person-premium.active {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

.team-avatar-premium {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 0.9rem;
}

.team-name-premium {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.team-role-premium {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.d-flex {

    display: flex;
}

.about-badge {
    position: absolute;
    bottom: -28px;
    right: -16px;
    z-index: 10;
    background: var(--gold);
    color: #000;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 30px var(--gold-glow);
}

.about-badge .num {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.about-badge .text {
    font-size: 0.58rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 4px;
}

.about-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.6;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
    margin-bottom: 24px;
}

.about-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-team {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.team-person:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.35);
}

.team-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.team-info .team-name {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.team-info .team-role {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
    padding: 100px 0;
    background: var(--bg);
}

.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
  .services-grid-premium a{
        background-position: center;
        background-size: contain;
    }

.service-card-premium {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.service-overlay-premium {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    transition: var(--transition);
    z-index: 1;
}

.service-card-premium:hover .service-overlay-premium {
    background: rgba(0, 0, 0, 0.85);
}

.service-content-main {
    position: relative;
    z-index: 2;
    width: 100%;
    transition: var(--transition);
}

.service-icon-premium {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-title-premium {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: var(--transition);
}

.service-desc-premium {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
}

.service-card-premium:hover .service-content-main {
    transform: translateY(-10px);
}

.service-card-premium:hover .service-desc-premium {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

.service-card-premium:hover .service-icon-premium {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

@media (max-width: 1100px) {
    .services-grid-premium {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .services-grid-premium {
        grid-template-columns: 1fr;
    }
}

.services-intro {
    text-align: center;
    margin-bottom: 54px;
}

.services-intro .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--bg2);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg3);
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 6rem;
    color: rgba(201, 168, 76, 0.03);
    transition: var(--transition);
    transform: rotate(-15deg);
}

.service-card:hover .service-bg-icon {
    color: rgba(201, 168, 76, 0.07);
    transform: rotate(0) scale(1.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 18px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: rotateY(360deg);
}

.service-name {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.service-desc {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ================================================
   KARZE HASNA
   ================================================ */
.karze-section {
    padding: 100px 0;
    background: var(--bg3);
    position: relative;
    overflow: hidden;
}

.karze-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.karze-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
    position: relative;
}

.karze-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.karze-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: var(--transition);
}

.karze-item:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.08);
    transform: translateX(6px);
}

.karze-item i {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.karze-item strong {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.karze-item p {
    font-size: 0.77rem;
    color: var(--text-muted);
}

.karze-visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.karze-stat-card {
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.karze-stat-card:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

.karze-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
}

.karze-stat-num {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.karze-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ================================================
   ACTIVITIES
   ================================================ */
.activities-section {
    padding: 100px 0;
    background: var(--bg);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 54px;
}

.activity-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg3);
    border: 1px solid var(--border);
}

.activity-card.featured {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.activity-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.activity-card.featured .activity-emoji {
    font-size: 6rem;
}

.activity-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.activity-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ================================================
   MISSION & VISION
   ================================================ */
.mission-section {
    padding: 100px 0;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: 'VISION';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: 14rem;
    font-weight: 900;
    color: rgba(201, 168, 76, 0.02);
    white-space: nowrap;
    pointer-events: none;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.mission-card {
    padding: 38px 28px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.mission-card:hover {
    background: rgba(201, 168, 76, 0.07);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.mission-icon {
    font-size: 2.3rem;
    margin-bottom: 18px;
    display: block;
}

.mission-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.mission-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.goals-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.goal-card {
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition);
}

.goal-card:hover {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.08);
}

.goal-card .gc-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.goal-card .gc-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 6px;
    font-weight: 700;
}

.goal-card .gc-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}






.amount-btn:hover,
.amount-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}







/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--bg3);
    border-top: 1px solid var(--border);
}

.footer-top {
    padding: 60px 0 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 44px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted1);
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-col-title {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.footer-links a::before {
    content: '›';
    color: var(--gold);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--gold);
    margin-top: 3px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 700;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.footer-copy span {
    color: var(--gold);
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

/* Floating Widgets */
.whatsapp-floating-wrap {
    position: fixed;
    bottom: 150px;
    right: 24px;
    z-index: 998;
}

.wa-main-btn {
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wa-main-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-popup {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 300px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wa-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-header {
    background: #075E54;
    color: #fff;
    padding: 18px;
}

.wa-header h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.wa-header p {
    font-size: 0.7rem;
    opacity: 0.8;
}

.wa-list {
    padding: 8px 0;
}

.wa-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: 0.2s;
}

.wa-contact-item:hover {
    background: var(--card-bg);
}

.wa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.wa-info .wa-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.wa-info .wa-role {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Messenger Adjustments */
.fb_dialog {
    bottom: 25px !important;
    right: 85px !important;
}

@media (max-width: 600px) {
    .whatsapp-floating-wrap {
        right: 15px;
        bottom: 85px;
    }

    a.messenger-floating-btn {
        right: 15px !important;
        bottom: 30px !important;
    }

    .wa-popup {
        width: 260px;
        right: -5px;
    }
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {

    .about-grid,
    .karze-inner,
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        padding: 16px 20px;
        border-top: 1px solid var(--border);
        gap: 0;
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 11px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .dropdown {
        position: static;
        border: none;
        background: var(--card-bg);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .nav-item.open .dropdown {
        max-height: 400px;
        padding: 4px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        height: 92vh;
    }

    .slider-arrow {
        display: none;
    }

    .activities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .activity-card.featured {
        grid-column: span 2;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand,
    .footer-grid>div {
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-desc {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card.featured {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .stats-bar .container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Bangla font support ---- */
body.lang-bn {
    font-family: Shurjo, "Siyam Rupali", 'Noto Sans Bengali', 'Nunito', Roboto, Arial, Helvetica, Monospace;
}

/* ================================================
   NEW SECTIONS STYLES
   ================================================ */

/* --- Service Slides (Slides 4-26) --- */
.service-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 100%);
    z-index: 1;
}

.service-slide .slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* First 3 slides - image only, no text */
.slide:nth-child(1):not(.service-slide) .slide-overlay,
.slide:nth-child(1):not(.service-slide) .slide-content,
.slide:nth-child(2):not(.service-slide) .slide-overlay,
.slide:nth-child(2):not(.service-slide) .slide-content,
.slide:nth-child(3):not(.service-slide) .slide-overlay,
.slide:nth-child(3):not(.service-slide) .slide-content {
    display: none !important;
}

/* --- 30 Para Quran Section --- */
.quran-para-section {
    padding: 90px 0;
    background: var(--bg2);
}

.quran-para-section .section-subtitle {
    margin: 0 auto 40px;
    text-align: center;
    display: block;
}

.quran-para-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.para-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.para-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    background: rgba(201, 168, 76, 0.06);
}

.para-num {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.para-name {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.para-surah {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.para-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: none;
}

.para-card:hover .para-btn {
    background: var(--gold-light);
}

/* Para Modal */
.para-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.para-modal.open {
    display: flex;
}

.para-modal-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
}

.para-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg4);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.para-modal-close:hover {
    background: var(--gold);
    color: #000;
}

/* --- Read Quran Online --- */
.quran-online-section {
    padding: 90px 0;
    background: var(--bg);
}

.quran-reader-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg2);
}

.quran-reader-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
}

.qr-tab {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: Shurjo, "Siyam Rupali", 'Nunito', Roboto, Arial, Helvetica, Monospace;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-tab:hover,
.qr-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(201, 168, 76, 0.04);
}

.qr-panel {
    display: none;
}

.qr-panel.active {
    display: block;
}

.quran-iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.surah-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 20px;
    max-height: 650px;
    overflow-y: auto;
}

.surah-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 10px;
    align-items: center;
}

.surah-item:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.07);
}

.surah-num {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 26px;
}

.surah-name-en {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
}

.surah-name-ar {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Blog Carousel --- */
.blog-section {
    padding: 90px 0;
    background: var(--bg2);
}

.carousel-wrap {
    position: relative;
    padding: 0 52px;
    overflow: hidden;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    border: none;
    color: #000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--gold-light);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.blog-carousel,
.news-carousel {
    display: flex;
    gap: 24px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.blog-card,
.news-card {
    min-width: calc(33.333% - 16px);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.blog-card:hover,
.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.blog-img,
.news-img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
}

.blog-body{
    height:263.2px;
    max-height:263.2px;
}
.blog-body,
.news-body {
    padding: 20px;
}

.blog-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

.news-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    background: rgba(100, 160, 240, 0.12);
    color: #6aaff5;
    border: 1px solid rgba(100, 160, 240, 0.3);
}

.event-tag {
    background: rgba(50, 200, 100, 0.12) !important;
    color: #6fcc8f !important;
    border: 1px solid rgba(80, 200, 100, 0.3) !important;
}

.blog-title,
.news-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.45;
}

.blog-excerpt,
.news-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    gap: 14px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-read-more {
    font-size: 0.76rem;
    color: var(--gold);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--gold-light);
    gap: 10px;
}

/* --- News & Events --- */
.news-section {
    padding: 90px 0;
    background: var(--bg);
}

.news-card {
    position: relative;
}

.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #000;
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
    font-weight: 700;
    z-index: 2;
    line-height: 1.2;
}

.nd-day {
    display: block;
    font-size: 1.1rem;
}

.nd-mon {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
}

/* --- Prayer Times & Qibla --- */
.prayer-section {
    padding: 90px 0;
    background: var(--bg2);
}

.prayer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.prayer-times-box,
.qibla-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.prayer-box-header h3,
.qibla-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prayer-location-input {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.prayer-location-input input {
    flex: 1;
    background: var(--bg4);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 6px;
    font-family: Shurjo, "Siyam Rupali", 'Nunito', Roboto, Arial, Helvetica, Monospace;
    font-size: 0.83rem;
}

.prayer-location-input input:focus {
    outline: none;
    border-color: var(--gold);
}

.prayer-location-input button {
    background: var(--gold);
    border: none;
    color: #000;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.prayer-location-input button:hover {
    background: var(--gold-light);
}

.prayer-times-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prayer-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: var(--transition);
}

.prayer-time-row.active-prayer {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

.prayer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prayer-name i {
    color: var(--gold);
    width: 16px;
}

.prayer-time {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--gold);
    font-weight: 700;
}

.sahri-iftar-box {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.si-card {
    background: rgba(201, 168, 76, 0.07);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.si-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.si-time {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
}

.prayer-date-display {
    text-align: center;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.loading-prayer {
    text-align: center;
    padding: 40px;
    color: var(--gold);
    font-size: 0.9rem;
}

/* Qibla Compass */
.qibla-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    margin-top: -8px;
}

.qibla-compass-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
}

.qibla-compass {
    position: relative;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: radial-gradient(circle, var(--bg4) 0%, var(--bg3) 100%);
    margin: 16px auto;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.12), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.compass-rose {
    position: absolute;
    inset: 0;
}

.compass-dir {
    position: absolute;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
}

.compass-dir.n {
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-dir.s {
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-dir.e {
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-dir.w {
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.qibla-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 88px;
    transform-origin: bottom center;
    transform: translateX(-50%) translateY(-100%) rotate(293deg);
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.needle-kaaba {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.1rem;
}

.needle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 80px;
    background: linear-gradient(to bottom, var(--gold), rgba(201, 168, 76, 0.2));
    border-radius: 2px;
}

.qibla-degree {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.qibla-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 230px;
    line-height: 1.5;
}

/* Responsive */
@media(max-width:900px) {
    .prayer-grid {
        grid-template-columns: 1fr;
    }

    .blog-card,
    .news-card {
        min-width: calc(50% - 12px);
    }

    .quran-para-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media(max-width:600px) {

    .blog-card,
    .news-card {
        min-width: 85%;
    }

    .carousel-wrap {
        padding: 0 38px;
    }

    .quran-para-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .surah-list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================================
   SERVICE SLIDE — Islamic Dark Gradient Backgrounds
   ================================================ */
.service-slide {
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.service-slide .slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Decorative Arabic calligraphy pattern overlay */
.service-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.service-slide .slide-overlay {
    z-index: 2;
}

.service-slide .slide-content {
    z-index: 3;
}

/* Verse font size boost for service slides */
.service-slide .slide-verse {
    font-size: clamp(1.15rem, 2.8vw, 1.6rem);
    color: var(--gold-light);
    line-height: 2.2;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.service-slide .slide-verse-trans {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 18px;
    font-style: italic;
    max-width: 600px;
    line-height: 1.7;
}

.service-slide .slide-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 20px;
}

/* Gold decorative border on verse */
.service-slide .slide-verse {
    border-right: 3px solid var(--gold);
    padding-right: 16px;
    margin-bottom: 10px;
}


/* ================================================
   SERVICE SLIDE — Islamic Dark Gradient Backgrounds
   ================================================ */
.service-slide {
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.service-slide .slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Decorative radial glow overlay */
.service-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.service-slide .slide-overlay {
    z-index: 2;
}

.service-slide .slide-content {
    z-index: 3;
}

/* Verse styling for service slides */
.service-slide .slide-verse {
    font-size: clamp(1.1rem, 2.6vw, 1.55rem);
    color: var(--gold-light);
    line-height: 2.2;
    border-right: 3px solid var(--gold);
    padding-right: 16px;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.service-slide .slide-verse-trans {
    font-size: 0.84rem;
    color: rgba(245, 240, 232, 0.76);
    margin-bottom: 18px;
    font-style: italic;
    max-width: 600px;
    line-height: 1.75;
}

.service-slide .slide-title {
    font-size: clamp(1.7rem, 3.8vw, 2.9rem);
    margin-bottom: 20px;
}

/* ================================================
   ACTIVITIES MASONRY GALLERY + VIDEO + FILTER TABS
   ================================================ */

/* Filter Tabs */
.act-filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 9px 20px;
    border-radius: 24px;
    font-family: Shurjo, "Siyam Rupali", 'Nunito', Roboto, Arial, Helvetica, Monospace;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.act-filter-btn:hover,
.act-filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* Masonry Grid */
.activities-masonry {
    columns: 3;
    column-gap: 16px;
    margin-top: 8px;
}

@media(max-width: 900px) {
    .activities-masonry {
        columns: 2;
    }
}

@media(max-width: 560px) {
    .activities-masonry {
        columns: 1;
    }
}

.act-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    display: block;
}

.act-item.act-tall img {
    height: 380px;
}

.act-item.act-wide {
    column-span: all;
}

.act-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.act-item:hover img {
    transform: scale(1.05);
}

.act-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.act-item:hover .act-overlay {
    opacity: 1;
}

.act-cat-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.act-title {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.act-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin: 0;
}

/* Hide/show filter */
.act-item.hidden {
    display: none;
}

/* Video section */
.act-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.act-video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.act-video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #000;
}

.act-video-label {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.act-video-label i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox.open {
    display: flex;
}

.lb-img-wrap {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.lb-img-wrap img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lb-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 12px;
}

.lb-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: var(--gold);
    border: none;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lb-nav:hover {
    background: var(--gold);
    color: #000;
}

.lb-prev {
    left: -56px;
}

.lb-next {
    right: -56px;
}

.lb-prev {
    left: 4px;
}

.lb-next {
    right: 4px;
}

/* ================================================
   PAGE HEADER BANNER
   ================================================ */
.page-header {
    position: relative;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* object-fit: cover; */
    object-position: center;
    transition: transform 8s ease;
}

.page-header:hover .page-header-bg {
    transform: scale(1.04);
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.40) 100%);
    z-index: 1;
}

.page-header-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark), var(--gold));
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.page-header-content .section-title {
    font-size: clamp(2rem, 5vw, 2.2rem);
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-header-content .gold-line {
    margin: 20px auto;
    width: 80px;
    height: 3px;
}

.page-header-content .section-tag {
    color: var(--gold);
    border-color: var(--gold-dark);
    margin-bottom: 16px;
}

/* ================================================
   FOUNDER / LEADER PAGE DESIGNS
   ================================================ */

/* --- Split layout (separate photo + message cards) --- */
.person-split {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: stretch;
    margin: 40px 0;
}

.person-split.is-reverse {
    grid-template-columns: 1fr 420px;
}

.person-split.is-reverse .person-photo-card {
    order: 2;
}

.person-split.is-reverse .person-message-card {
    order: 1;
}

.person-photo-card,
.person-message-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
    transition: var(--transition);
}

.person-photo-card:hover,
.person-message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.34);
}

.person-photo {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
    /* min-height: 520px; */
}

.detail-main {
    min-width: 0;
    width: 100%;
}

.leader-split .person-photo {
    /* min-height: 440px; */
}

.filter-group {
    margin-top: 20px;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.person-photo-card:hover .person-photo img {
    transform: scale(1.05);
}

.person-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.00) 45%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0.55;
    pointer-events: none;
}

.person-meta {
    padding: 18px 22px 22px;
}

.person-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 6px;
}

.person-designation {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.person-message-card {
    position: relative;
    padding: 44px 44px 36px;
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(201, 168, 76, 0.10), transparent 65%),
        var(--bg2);
}

.person-message-card::before {
    content: '\201C';
    position: absolute;
    top: 18px;
    left: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 7rem;
    color: var(--gold);
    opacity: 0.12;
    line-height: 1;
}

.person-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--text-muted);
}

.person-message p {
    margin-bottom: 18px;
}

.person-message p:last-child {
    margin-bottom: 0;
}

/* --- Founder Card (single, left image) --- */
.founder-card-modern {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 40px 0;
    transition: var(--transition);
}

.founder-card-modern:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.founder-img-side {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
    min-height: 500px;
}

.founder-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.founder-card-modern:hover .founder-img-side img {
    transform: scale(1.05);
}

.founder-img-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, var(--bg2));
}

.founder-content-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 48px 40px;
    position: relative;
}

.founder-content-side::before {
    content: '\201C';
    position: absolute;
    top: 24px;
    left: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.12;
    line-height: 1;
}

.founder-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 40px;
}

.founder-details {
    align-self: flex-end;
    text-align: right;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    width: 100%;
}

.founder-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.founder-designation {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Leaders Grid (alternating) --- */
.leaders-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.leader-card-modern {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.leader-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.leader-card-modern.leader-reverse {
    grid-template-columns: 1fr 380px;
}

.leader-card-modern.leader-reverse .leader-img-side {
    order: 2;
}

.leader-card-modern.leader-reverse .leader-content-side {
    order: 1;
}

.leader-img-side {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
    min-height: 420px;
}

.leader-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.leader-card-modern:hover .leader-img-side img {
    transform: scale(1.05);
}

.leader-content-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 40px 32px;
}

.leader-content-side::before {
    content: '\201C';
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.2;
    line-height: 0.7;
    margin-bottom: 16px;
}

.leader-bio {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 32px;
}

.leader-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.leader-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.leader-designation {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 980px) {
    .person-split {
        grid-template-columns: 340px 1fr;
        gap: 22px;
    }

    .person-split.is-reverse {
        grid-template-columns: 1fr 340px;
    }

    .person-message-card {
        padding: 34px 30px 28px;
    }
}

@media (max-width: 820px) {

    .person-split,
    .person-split.is-reverse {
        grid-template-columns: 1fr;
    }

    .person-split.is-reverse .person-photo-card {
        order: 1;
    }

    .person-split.is-reverse .person-message-card {
        order: 2;
    }

    .person-photo {
        min-height: 320px;
    }

    .leader-split .person-photo {
        min-height: 300px;
    }
}

/* ================================================
   DETAIL PAGE — GALLERY (slider + lightbox hooks)
   ================================================ */
.detail-gallery-section {
    margin-top: 44px;
}

.detail-gallery-shell {
    position: relative;
}

.detail-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 44px;
}

.detail-gallery-track::-webkit-scrollbar {
    height: 8px;
}

.detail-gallery-track::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.25);
    border-radius: 8px;
}

.detail-gallery-item {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
}

.detail-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.8s ease;
}

.detail-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.detail-gallery-item:hover img {
    transform: scale(1.06);
}

.detail-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(17, 17, 17, 0.75);
    color: var(--gold);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.detail-gallery-nav:hover {
    background: rgba(201, 168, 76, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.detail-gallery-nav.prev {
    left: 0;
}

.detail-gallery-nav.next {
    right: 0;
}

@media (max-width: 820px) {
    .detail-gallery-track {
        padding: 6px 36px;
        grid-auto-columns: minmax(180px, 1fr);
    }

    .detail-gallery-item img {
        height: 190px;
    }

    .detail-gallery-nav {
        width: 36px;
        height: 36px;
    }
}

/* ================================================
   TEAM PAGE — MODERN MEMBER CARDS
   ================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.staff-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    position: relative;
    padding-bottom: 28px;
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(201, 168, 76, 0.15);
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.staff-card:hover::before {
    transform: scaleX(1);
}

.staff-img-box {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 32px 24px 20px;
}

.staff-img-box img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.staff-card:hover .staff-img-box img {
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.15);
}

.staff-info {
    padding: 0 20px;
}

.staff-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.staff-designation {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.staff-bio {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.staff-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-social-link {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.staff-social-link:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* ================================================
   ACT / PROJECT CARD — Unified Design
   ================================================ */
.activities-masonry,
.projects-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.act-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.act-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--gold);
}

.act-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.act-item:hover img {
    transform: scale(1.06);
}

.act-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.act-item:hover .act-overlay {
    opacity: 1;
}

.act-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: #000;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.act-title {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.act-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Filter bar */
.act-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.act-filter-btn {
    padding: 9px 22px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.act-filter-btn:hover,
.act-filter-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* ================================================
   SERVICE DETAIL PAGE
   ================================================ */
.service-detail-wrapper {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.service-main-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-main-image img {
    width: 100%;
    display: block;
}

.rich-content {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.rich-content h2,
.rich-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--text);
    margin: 28px 0 12px;
}

.rich-content p {
    margin-bottom: 16px;
}

.rich-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.rich-content ul li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.rich-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 120px;
}

.service-sidebar-list {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.service-sidebar-list h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
}

.sidebar-cat-name {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 24px 6px;
    opacity: 0.7;
}

.service-sidebar-list ul {
    padding: 0 16px 12px;
}

.service-sidebar-list ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.service-sidebar-list ul li a:hover,
.service-sidebar-list ul li a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
    border-left-color: var(--gold);
    padding-left: 16px;
}

.service-sidebar-list ul li a i {
    font-size: 0.65rem;
    opacity: 0.6;
}

.service-cta-card {
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
}

.service-cta-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 12px;
}

.service-cta-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-cta-card .btn-gold {
    width: 100%;
    justify-content: center;
}

/* ================================================
   CONTACT PAGE REDESIGN
   ================================================ */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-section {
    position: relative;
}

.contact-info-section .section-subtitle {
    font-size: 0.95rem;
    font-style: italic;
    margin: 16px 0 40px;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--gold);
    transform: translateX(6px);
}

.contact-icon-box {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 220px;
}

.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Contact Form */
.contact-form-container {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px;
}

.contact-form-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 18px;
    font-size: 0.88rem;
    border-radius: 8px;
    font-family: Shurjo, "Siyam Rupali", 'Nunito', Roboto, Arial, Helvetica, Monospace;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
    background: var(--bg4);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-success {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--gold-dark);
    color: var(--gold);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================================================
   RESPONSIVE — NEW PAGE COMPONENTS
   ================================================ */
@media (max-width: 1100px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .activities-masonry,
    .projects-masonry {
        grid-template-columns: repeat(3, 1fr);
    }

    .founder-card-modern {
        grid-template-columns: 320px 1fr;
    }

    .leader-card-modern {
        grid-template-columns: 300px 1fr;
    }

    .leader-card-modern.leader-reverse {
        grid-template-columns: 1fr 300px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .page-header {
        height: 280px;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activities-masonry,
    .projects-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .founder-card-modern {
        grid-template-columns: 1fr;
    }

    .founder-img-side {
        min-height: 300px;
    }

    .founder-img-side::after {
        background: linear-gradient(to bottom, transparent 70%, var(--bg2));
    }

    .founder-content-side {
        padding: 32px 28px;
    }

    .leader-card-modern {
        grid-template-columns: 1fr;
    }

    .leader-card-modern.leader-reverse {
        grid-template-columns: 1fr;
    }

    .leader-card-modern.leader-reverse .leader-img-side {
        order: 1;
    }

    .leader-card-modern.leader-reverse .leader-content-side {
        order: 2;
    }

    .leader-img-side {
        min-height: 280px;
    }

    .leader-content-side {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .page-header {
        height: 230px;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .activities-masonry,
    .projects-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contact-form-container {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .activities-masonry,
    .projects-masonry {
        grid-template-columns: 1fr;
    }

    .founder-content-side {
        padding: 24px 20px;
    }

    .page-header-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding-top: 120px;
        /* Increased to prevent overlap with logo/menu */
    }

    @media (max-width: 480px) {
        .page-header-content {
            padding-top: 80px;
        }

        .staff-grid {
            grid-template-columns: 1fr;
        }
    }

    /* ================================================
   BLOG & SERVICE GRIDS
   ================================================ */
    .service-detail-grid,
    .blog-detail-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 60px;
    }

    @media (max-width: 1100px) {

        .service-detail-grid,
        .blog-detail-grid {
            grid-template-columns: 1fr 300px;
            gap: 32px;
        }
    }

    @media (max-width: 900px) {

        .service-detail-grid,
        .blog-detail-grid {
            grid-template-columns: 1fr;
        }
    }

    /* ================================================
   PAGINATION — PREMIUM DESIGN
   ================================================ */
    .pagination-container {
        margin-top: 60px;
        display: flex;
        justify-content: center;
    }

    .pagination-btn,
    .pagination-page {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text);
        font-size: 0.88rem;
        font-weight: 600;
        transition: var(--transition);
        cursor: pointer;
    }

    .pagination-btn:hover,
    .pagination-page:hover:not(.active) {
        border-color: var(--gold);
        color: var(--gold);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(201, 168, 76, 0.15);
    }

    .pagination-page.active {
        background: var(--gold);
        border-color: var(--gold);
        color: #000;
        box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
    }

    .pagination-btn.disabled {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }

    .pagination-dots {
        color: var(--text-muted);
        font-size: 0.9rem;
        padding: 0 4px;
    }

    .pagination-info {
        display: flex;
        align-items: center;
        font-size: 0.88rem;
        color: var(--text-muted);
        font-family: 'Cinzel', serif;
        letter-spacing: 1px;
    }

    /* ================================================
   BLOG DETAILS — PREMIUM REFINEMENT
   ================================================ */
    .blog-detail-wrapper {
        background: var(--bg1);
    }

    .blog-meta-bar span {
        font-family: 'Cinzel', serif;
        font-size: 0.8rem;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .blog-main-image {
        position: relative;
    }

    .blog-main-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
        pointer-events: none;
    }

    .share-box-modern {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 24px 30px;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .author-card-modern {
        display: flex;
        gap: 24px;
        padding: 32px;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 16px;
        margin-top: 60px;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--gold);
        flex-shrink: 0;
        background: var(--bg3);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .author-avatar i {
        font-size: 2rem;
        color: var(--gold);
        opacity: 0.5;
    }

    .author-content h5 {
        font-family: 'Cinzel', serif;
        color: var(--gold);
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .author-content p {
        font-size: 0.88rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

    /* ================================================
   SERVICE DETAILS — SIDEBAR & CONTENT
   ================================================ */
    .service-sidebar-list h3 {
        color: var(--text);
        font-weight: 700;
        letter-spacing: 1px;
    }

    .sidebar-cat-name {
        color: var(--gold);
        border-left: 2px solid var(--gold);
        padding-left: 10px;
    }

    .service-sidebar-list a {
        display: flex !important;
        width: 100%;
    }

    .service-cta-card {
        background: linear-gradient(145deg, var(--bg2), var(--bg3));
        border: 1px solid var(--border);
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }

    .service-cta-card h4 {
        font-family: 'Cinzel', serif;
        color: #fff;
        font-weight: 700;
    }

    .service-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .italic-quotes blockquote {
        font-style: italic;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.4rem;
        color: var(--gold);
        border-left: 4px solid var(--gold);
        padding-left: 30px;
        margin: 40px 0;
    }

    /* Pagination Overrides to prevent clustering */
    .pagination-container nav {
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
        gap: 10px;
    }

    .pagination-container .flex.items-center.gap-3 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

/* ================================================
   DETAIL PAGES + BLOG PAGINATION REFRESH
   ================================================ */
.detail-hero {
    min-height: 430px;
}

.detail-hero .page-header-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.36)),
        radial-gradient(circle at 72% 22%, rgba(201, 168, 76, 0.2), transparent 34%);
}

.detail-hero .page-header-content {
    max-width: 920px;
    margin: 0 auto;
}

.detail-hero .section-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.detail-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.detail-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(201, 168, 76, 0.32);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.42);
    color: #f5f0e8;
    font-size: 0.82rem;
}

.detail-hero-meta i {
    color: var(--gold);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: rgba(245, 240, 232, 0.74);
    font-size: 0.82rem;
}

.breadcrumb-link {
    color: #fff;
    transition: var(--transition);
}

.breadcrumb-link:hover,
.breadcrumb-current {
    color: var(--gold);
}

.navbar .container {
    max-width: 1280px;
}

.detail-shell {
    padding: 86px 0;
    background:
        linear-gradient(180deg, var(--bg), var(--bg2) 58%, var(--bg));
}

.detail-layout {
    /* display: grid;
  grid-template-columns: minmax(0, 1fr) 340px; */
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-article {
    border-top: 1px solid var(--border);
    padding-top: 26px;
}

.detail-featured-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 34px;
    background: var(--bg3);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -90px 120px rgba(0, 0, 0, 0.24);
    pointer-events: none;
}

.detail-featured-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    /* object-fit: cover; */
}

.detail-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.detail-kicker span:first-child {
    color: var(--gold);
}

.detail-rich-content {
    /* max-width: 780px;
   */
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.95;
}

.detail-rich-content p {
    margin-bottom: 22px;
}

.detail-rich-content h2,
.detail-rich-content h3,
.detail-rich-content h4 {
    margin-top: 38px;
    margin-bottom: 16px;
    color: var(--text);
}

.detail-rich-content a {
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}

.detail-rich-content blockquote {
    margin: 34px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.07);
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.6;
}

.detail-share-panel,
.detail-author-card,
.service-action-panel,
.service-impact-strip {
    margin-top: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(201, 168, 76, 0.065), rgba(255, 255, 255, 0.015));
}

.detail-share-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
}

.detail-share-panel h4,
.detail-author-card h4,
.detail-widget h3,
.service-action-panel h3,
.detail-section-heading h3 {
    font-family: 'Cinzel', serif;
    color: var(--text);
    line-height: 1.25;
}

.detail-share-panel h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.detail-share-panel p,
.detail-author-card p,
.detail-widget p,
.service-action-panel p,
.detail-related-card p {
    color: var(--text-muted);
}

.detail-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-author-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
}

.detail-author-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    background: var(--bg3);
    flex: 0 0 auto;
}

.detail-author-avatar img,
.detail-author-avatar div {
    width: 100%;
    height: 100%;
}

.detail-author-avatar img {
    object-fit: cover;
}

.detail-author-avatar div {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.7rem;
}

.detail-author-card span,
.detail-related-card span,
.compact-post span,
.program-nav-group>span {
    display: block;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.detail-author-card a,
.detail-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--gold);
    font-weight: 700;
}

.detail-sidebar {
    min-width: 0;
}

.detail-sidebar-inner {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.detail-widget {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.018);
}

.detail-widget h3 {
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.compact-post-list {
    display: grid;
    gap: 16px;
}

.compact-post {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
}

.compact-post img {
    grid-row: span 2;
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.compact-post strong {
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.35;
    transition: var(--transition);
}

.compact-post:hover strong {
    color: var(--gold);
}

.detail-cta-widget {
    text-align: center;
    background: linear-gradient(160deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.035));
}

.detail-cta-widget>i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.14);
    color: var(--gold);
    font-size: 1.35rem;
}

.detail-cta-widget .btn-gold {
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.detail-section-heading {
    margin-bottom: 24px;
}

.detail-section-heading h3 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.detail-related-section {
    margin-top: 74px;
    padding-top: 44px;
    border-top: 1px solid var(--border);
}

.detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.detail-related-card {
    display: block;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.018);
    transition: var(--transition);
}

.detail-related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.detail-related-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.detail-related-card span,
.detail-related-card h4,
.detail-related-card p {
    margin-left: 18px;
    margin-right: 18px;
}

.detail-related-card span {
    margin-top: 18px;
}

.detail-related-card h4 {
    margin-top: 8px;
    color: var(--text);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.35;
}

.detail-related-card p {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.65;
}

.service-impact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
    margin-bottom: 34px;
    overflow: hidden;
}

.service-impact-strip div {
    padding: 24px 18px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.service-impact-strip div:last-child {
    border-right: 0;
}

.service-impact-strip i {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.service-impact-strip span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.service-impact-strip strong {
    display: block;
    color: var(--gold);
    font-size: 1.55rem;
    margin-top: 4px;
}

.service-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
}

.service-action-panel .section-tag {
    margin-bottom: 12px;
}

.service-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

.program-nav-list,
.program-nav-group {
    display: grid;
    gap: 10px;
}

.program-nav-group {
    padding-top: 4px;
}

.program-nav-group+.program-nav-group {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.program-nav-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
    transition: var(--transition);
}

.program-nav-group a:hover,
.program-nav-group a.active {
    color: #000;
    background: var(--gold);
    border-color: var(--gold);
}

.program-nav-group a i {
    font-size: 0.72rem;
}

.service-overview-widget div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.service-overview-widget strong {
    color: var(--gold);
}

.blog-pagination {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.blog-pagination-progress {
    height: 3px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    overflow: hidden;
}

.blog-pagination-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.blog-pagination-inner,
.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-pagination-inner {
    gap: 10px;
}

.pagination-pages {
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-control,
.pagination-number,
.pagination-ellipsis {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    font-weight: 700;
    transition: var(--transition);
}

.pagination-number {
    font-size: 0.88rem;
}

.pagination-control:hover,
.pagination-number:hover,
.pagination-number.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.pagination-control.disabled {
    opacity: 0.42;
    pointer-events: none;
}

.pagination-ellipsis {
    width: 32px;
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
}

.blog-pagination-summary {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.blog-pagination-summary strong {
    color: var(--gold);
}

@media (max-width: 1040px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }

    .detail-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .detail-shell {
        padding: 62px 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar-inner {
        position: static;
    }

    .service-action-panel,
    .detail-share-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .detail-hero {
        min-height: 390px;
    }

    .detail-kicker,
    .detail-author-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-related-grid,
    .service-impact-strip {
        grid-template-columns: 1fr;
    }

    .service-impact-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .service-impact-strip div:last-child {
        border-bottom: 0;
    }

    .service-action-buttons,
    .service-action-buttons .btn-gold,
    .service-action-buttons .btn-outline-gold {
        width: 100%;
    }

    .blog-pagination {
        padding: 14px;
    }

    .pagination-pages {
        max-width: 210px;
    }

    .pagination-control,
    .pagination-number,
    .pagination-ellipsis {
        width: 38px;
        height: 38px;
    }
}


section.page-section {
    padding-block: 100px;
}

section.team-page-content {
    padding-block: 100px;
}

.blog-feed,
.gallery-page,
section.activities-listing,
section.projects-listing {
    padding-block: 100px;
}

/* ================================================
   CUSTOM RESPONSIVE & INFINITE SLIDER OVERRIDES
   ================================================ */
@media (max-width: 900px) {

    .about-grid,
    .karze-inner,
    .mission-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {

    /* Slider & Stats Bar Responsiveness */
    .stats-bar {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        background: var(--bg2) !important;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 30px 0 !important;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .hero {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
    }

    .hero-slider {
        height: 180px !important;
    }

    .slide-content {
        padding-bottom: 40px !important;
    }

    .slide-inner {
        padding-top: 20px !important;
    }

    /* About Foundation Hover Card Grid */
    .about-dynamic-contents {
        min-height: auto;
        margin-bottom: 20px;
    }

    .about-team-premium {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .team-person-premium {
        min-width: 0 !important;
        padding: 8px 12px !important;
    }

    .team-avatar-premium {
        width: 35px !important;
        height: 35px !important;
    }

    .team-name-premium {
        font-size: 0.85rem !important;
    }

    .team-role-premium {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 576px) {

    .activities-section,
    .news-section,
    .mission-section,
    .about-section {
        padding: 20px 0 !important;
    }

    .stats-bar .container {
        grid-template-columns: 1fr 1fr !important;
        text-align: center;
    }

    .about-team-premium {
        grid-template-columns: 1fr !important;
    }
}

/* Smooth Infinite Loop Slider Transition */
.slide.prev-active {
    opacity: 1 !important;
    z-index: 1 !important;
    transform: scale(1) !important;
    transition: none !important;
}

/* ==========================================================================
   SECTION SLIDERS OVERRIDES (Slick Carousel overrides for Blog, News, Videos)
   ========================================================================== */
.blog-carousel,
.news-carousel,
.video-carousel {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    transition: none !important;
    transform: none !important;
}

.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    flex-shrink: 1 !important;
}

.carousel-wrap {
    position: relative !important;
    overflow: visible !important;
    /* Allow cards to show shadows */
}

/* Add custom padding to slick slides to act as gap */
.blog-carousel .slick-slide,
.news-carousel .slick-slide {
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

.video-carousel .slick-slide {
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

/* Slick dots customizations */
.slider-dots .slick-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 24px 0 8px !important;
    padding: 0 !important;
    list-style: none !important;
}

.slider-dots .slick-dots li {
    margin: 0 !important;
    padding: 0 !important;
}

.slider-dots .slick-dots li button {
    font-size: 0 !important;
    /* Hide page numbers */
    line-height: 0 !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

.slider-dots .slick-dots li.slick-active button {
    background: var(--gold) !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 8px var(--gold) !important;
}

.light-mode .slider-dots .slick-dots li button {
    background: rgba(0, 0, 0, 0.2) !important;
}

.light-mode .slider-dots .slick-dots li.slick-active button {
    background: var(--gold) !important;
}

/* Video Slider styling adjustments */
.video-slide {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.video-slide .act-video,
.video-slide .act-video-embed {
    width: 100% !important;
    max-width: 800px !important;
    /* Cap video width for best presentation */
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.video-slide .act-video-embed {
    position: relative;
    padding-bottom: 56.25% !important;
    /* 16:9 Aspect Ratio */
    height: 0 !important;
}

.video-slide .act-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.video-slide .act-video-label {
    margin-top: 14px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   3-COLUMN RECENT HUB SECTION
   ================================================ */
.recent-hub {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding: 60px 0;
}

.recent-hub .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@media (min-width: 992px) {
    .recent-hub .grid {
        /* grid-template-columns: repeat(3, 1fr); */
    }
}

.hub-column {
    background: rgba(201, 168, 76, 0.02);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hub-column:hover {
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.05);
}

html[lang="bn"] .footer-col-title {
    letter-spacing: 0px;
    font-weight: 900;
    font-size: .9rem;
}

.hub-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-slider {
    flex: 1;
}

.hub-slide-item {
    outline: none;
}

.hub-card {
    background: var(--bg3);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.2);
}

.hub-card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg3);
}

.hub-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.hub-card:hover .hub-card-img img {
    transform: scale(1.08);
}

.hub-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--gold);
    transition: var(--transition);
}

.hub-play-btn:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.hub-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    min-height: 158.84px;
}

.hub-card-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.hub-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    transition: var(--transition);
}

.hub-card-title a:hover {
    color: var(--gold);
}

.hub-card-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.hub-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Slick Dots positioning within hub-column */
.hub-slider .slick-dots {
    position: relative;
    display: flex !important;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.hub-slider .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.hub-slider .slick-dots li.slick-active button {
    background: var(--gold);
    transform: scale(1.2);
}

/* ================================================
   HOMEPAGE WELCOME POP-UP LIGHTBOX MODAL
   ================================================ */
.welcome-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-popup-content {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.welcome-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.welcome-popup-close:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(90deg);
}

.welcome-popup-image-box {
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    background: #000;
}

.welcome-popup-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-popup-info {
    padding: 30px;
    text-align: center;
}

.welcome-popup-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.welcome-popup-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.welcome-popup-action .btn-gold {
    padding: 10px 28px;
    font-size: 0.72rem;
    border-radius: 30px;
}

/* ---- Bangla font support override for clean UI ---- */
html[lang="bn"] *:not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]):not([class*="slick-"]):not(.slick-arrow),
html[lang^="bn"] *:not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]):not([class*="slick-"]):not(.slick-arrow),
html.translated-bn *:not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]):not([class*="slick-"]):not(.slick-arrow) {
    font-family: 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', Shurjo, "Siyam Rupali", sans-serif !important;
}

.blog-carousel .blog-card,
.news-carousel .news-card,
.video-carousel .video-slide {
    width: 100% !important;
}

html[lang="bn"] .nav-link,
html.translated-bn .nav-link {
    font-size: 0.84rem;
    font-weight: 900;
}

