/* =====================================================================
   Sufi Meditation — public stylesheet
   Palette: deep forest · warm white · soft cream · muted gold · charcoal
   ===================================================================== */
:root {
    --forest: #1E3A2B;
    --forest-deep: #132619;
    --forest-soft: #2E5240;
    --sage: #8FA693;
    --cream: #F6F1E7;
    --cream-deep: #EDE4D2;
    --warm: #FFFCF6;
    --gold: #B8955A;
    --gold-deep: #9A7A43;
    --gold-soft: #DCC69E;
    --charcoal: #2A2A28;
    --muted: #66655E;
    --line: #E6DCC8;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px -12px rgba(19, 38, 25, .18);
    --shadow-lg: 0 24px 60px -20px rgba(19, 38, 25, .30);
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    /* Subtle 8-point star (khatam) tessellation */
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23B8955A' stroke-width='1'%3E%3Cpath d='M40 10 L48.3 31.7 L70 40 L48.3 48.3 L40 70 L31.7 48.3 L10 40 L31.7 31.7 Z'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Cpath d='M0 0 L10 10 M80 0 L70 10 M0 80 L10 70 M80 80 L70 70'/%3E%3C/g%3E%3C/svg%3E");
}

html.lang-bn {
    --font-body: "Noto Sans Bengali", "Inter", system-ui, sans-serif;
    --font-head: "Noto Serif Bengali", "Cormorant Garamond", Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--warm);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html.lang-bn body { font-size: 1.03rem; line-height: 1.85; }
[lang="bn"] { font-family: "Noto Sans Bengali", "Inter", sans-serif; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-family: var(--font-head);
    color: var(--forest);
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.2;
}
html.lang-bn h1, html.lang-bn h2, html.lang-bn h3, html.lang-bn .h3, html.lang-bn .h4 { line-height: 1.4; letter-spacing: 0; }
a { color: var(--forest); text-decoration-color: rgba(30, 58, 43, .35); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold-soft); color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.req { color: #b0413e; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; padding: .6rem 1.4rem; transition: all .25s var(--ease); }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .4rem 1rem; font-size: .88rem; }
.btn-forest { background: var(--forest); color: #fff; border: 1px solid var(--forest); }
.btn-forest:hover, .btn-forest:focus { background: var(--forest-deep); color: #fff; border-color: var(--forest-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(154, 122, 67, .6); }
.btn-outline-forest { color: var(--forest); border: 1px solid rgba(30, 58, 43, .35); background: transparent; }
.btn-outline-forest:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { color: var(--forest); }
.btn-link { color: var(--forest); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--forest); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--warm); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
/* backdrop-filter would trap the fixed offcanvas menu inside the header, so only use it on wide screens */
@media (min-width: 1400px) { .site-header { background: rgba(255, 252, 246, .92); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); } }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.navbar { padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { flex: none; }
.brand-logo { height: 56px; width: auto; max-width: 62vw; object-fit: contain; display: block; }
@media (max-width: 575.98px) { .brand-logo { height: 44px; } }
.footer-logo { height: 72px; width: auto; max-width: 100%; }
.offcanvas-logo { height: 42px; width: auto; }
.navbar-brand { padding-block: 0; margin-right: 1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--forest); }
html.lang-bn .brand-name { font-size: 1.3rem; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-light .brand-name { color: var(--cream); }

.main-menu .nav-link { color: var(--charcoal); font-weight: 500; font-size: .93rem; padding: .5rem .7rem !important; position: relative; border-radius: 8px; }
.main-menu .nav-link:hover { color: var(--forest); }
.main-menu .nav-link.active { color: var(--forest); font-weight: 600; }
@media (min-width: 1400px) {
    .main-menu .nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
    .main-menu .nav-link:hover::after, .main-menu .nav-link.active::after { transform: scaleX(1); }
    .offcanvas-xxl, #mainNav { visibility: visible; }
}
.navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .35rem .6rem; font-size: 1.5rem; color: var(--forest); }
.navbar-toggler:focus { box-shadow: none; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px; padding: .32rem .85rem; font-size: .85rem; font-weight: 500; color: var(--forest); text-decoration: none; background: var(--warm); transition: all .2s; }
.lang-switch:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.lang-switch[lang="bn"] { font-family: "Noto Sans Bengali", sans-serif; }
.lang-switch-light { background: transparent; color: var(--cream); border-color: rgba(246, 241, 231, .3); }

/* Offcanvas navigation below xxl */
@media (max-width: 1399.98px) {
    #mainNav { background: var(--warm); max-width: 340px; }
    #mainNav .offcanvas-body { display: flex; flex-direction: column; }
    #mainNav .nav-link { font-size: 1.05rem; padding: .7rem .4rem !important; border-bottom: 1px solid var(--line); border-radius: 0; }
    #mainNav .nav-link.active { color: var(--gold-deep); }
}
@media (min-width: 1400px) {
    #mainNav { position: static; transform: none; background: transparent; border: 0; flex-grow: 1; visibility: visible !important; width: auto; }
    #mainNav .offcanvas-header { display: none; }
    #mainNav .offcanvas-body { display: flex; align-items: center; padding: 0; overflow: visible; }
    .main-menu { flex-direction: row; }
}

.flash-stack { position: relative; z-index: 1020; margin-top: 1rem; }
.flash-stack .alert { border-radius: var(--radius-sm); }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
html.lang-bn .eyebrow { letter-spacing: .04em; font-size: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-light { color: var(--gold-soft); }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: 1rem; }
html.lang-bn .section-title { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
.section-subtitle { margin: 2rem 0 1rem; }
.section-lead { color: var(--muted); max-width: 620px; margin-bottom: 0; }
.text-cream { color: var(--cream) !important; }
.text-cream-muted { color: rgba(246, 241, 231, .75); }

.prose { color: #3b3a36; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { font-size: 1.75rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
html.lang-bn .prose h2 { font-size: 1.45rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--gold); }
.prose blockquote { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; font-family: var(--font-head); font-size: 1.25rem; color: var(--forest); margin: 1.5rem 0; }
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; }
.prose a { color: var(--gold-deep); }
.prose-lg { font-size: 1.06rem; }
.prose-light, .prose-light p, .prose-light li { color: rgba(246, 241, 231, .88); }
.prose-light ul li::marker { color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.section-head-center { max-width: 680px; margin-bottom: 2.8rem; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; background: var(--forest-deep) var(--hero-img) center/cover no-repeat; overflow: hidden; isolation: isolate; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 24, 15, .86) 0%, rgba(14, 32, 21, .62) 45%, rgba(14, 32, 21, .15) 100%); z-index: -1; }
.hero-pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .07; z-index: -1; mask-image: linear-gradient(90deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); }
.hero-content { padding-top: 5rem; padding-bottom: 6rem; }
.hero-text { max-width: 720px; animation: heroIn 1.1s var(--ease) both; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 600; line-height: 1.08; margin-bottom: 1.4rem; }
html.lang-bn .hero-title { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.35; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .86); max-width: 600px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 1.4rem; animation: float 2.6s ease-in-out infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--forest); color: var(--cream); padding: clamp(3.2rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4.2rem); overflow: hidden; isolation: isolate; }
.page-hero.has-image { background: var(--forest-deep) var(--hero-img) center/cover; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 28, 18, .9), rgba(13, 28, 18, .55)); z-index: -1; }
.page-hero-pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .09; z-index: -1; mask-image: linear-gradient(270deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); }
.page-hero-title { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: .6rem; max-width: 900px; }
html.lang-bn .page-hero-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.page-hero-sub { color: rgba(246, 241, 231, .82); max-width: 720px; font-size: 1.08rem; margin: 0; }
.page-hero .breadcrumb { margin-bottom: 1.4rem; font-size: .86rem; }
.page-hero .breadcrumb a { color: var(--gold-soft); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: rgba(246, 241, 231, .7); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(246, 241, 231, .4); }

/* ---------- Cards ---------- */
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-soft:hover .card-media img { transform: scale(1.05); }
.badge-format { position: absolute; left: 12px; top: 12px; background: rgba(255, 252, 246, .94); color: var(--forest); font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.card-body-soft { padding: 1.3rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .45rem; }
html.lang-bn .card-kicker { letter-spacing: 0; font-size: .85rem; }
.card-title-soft { font-size: 1.32rem; margin-bottom: .5rem; }
html.lang-bn .card-title-soft { font-size: 1.15rem; }
.card-title-soft a { text-decoration: none; color: var(--forest); }
.card-title-soft a:hover { color: var(--gold-deep); }
.card-text-soft { color: var(--muted); font-size: .94rem; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--muted); }
.card-meta i { color: var(--gold); margin-right: .2rem; }
.card-actions { display: flex; gap: .5rem; margin-top: auto; flex-wrap: wrap; }

/* Intro & mission */
.intro-visual { position: relative; padding-bottom: 3rem; }
.intro-visual > img { border-radius: var(--radius); width: 88%; aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow-lg); }
.mvv-stack { position: absolute; right: 0; bottom: 0; width: 58%; display: grid; gap: .8rem; }
.mvv-card { background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.mvv-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.mvv-card-lg { padding: 1.6rem; height: 100%; box-shadow: none; }
.mvv-card-lg p { font-size: 1rem; }
.mvv-label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--forest); font-size: 1.1rem; margin-bottom: .25rem; }
.mvv-label i { color: var(--gold); }
.values-strip { margin-top: 3rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--forest); font-size: 1.05rem; }
.values-strip .mvv-label { margin: 0; color: var(--gold-deep); }
@media (max-width: 767.98px) {
    .intro-visual > img { width: 100%; }
    .mvv-stack { position: static; width: 100%; margin-top: 1rem; }
    .intro-visual { padding-bottom: 0; }
}

/* Philosophy split */
.split-card { background: var(--forest); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-card::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 90px; opacity: .06; pointer-events: none; mask-image: linear-gradient(270deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%); }
.split-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split-body { padding: clamp(2rem, 5vw, 4rem); position: relative; z-index: 1; }

/* Events */
.event-list { display: grid; gap: 1rem; }
.event-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; transition: box-shadow .3s, transform .3s var(--ease); }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-date { width: 84px; height: 88px; border-radius: 14px; background: var(--forest); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.event-date::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 40px; opacity: .12; }
.event-day { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); margin-top: .25rem; }
.event-title { font-size: 1.35rem; margin-bottom: .4rem; }
html.lang-bn .event-title { font-size: 1.18rem; }
.event-title a { text-decoration: none; }
.event-body .card-meta { margin-bottom: 0; }
.event-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767.98px) {
    .event-card { grid-template-columns: auto 1fr; }
    .event-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .event-date { width: 68px; height: 72px; }
}

/* Features */
.feature { background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; height: 100%; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--forest); color: var(--gold-soft); font-size: 1.6rem; margin-bottom: 1.1rem; box-shadow: 0 0 0 6px var(--cream-deep); }
.feature-title { font-size: 1.25rem; margin-bottom: .5rem; }
html.lang-bn .feature-title { font-size: 1.1rem; }
.feature-text { color: var(--muted); font-size: .93rem; margin: 0; }

/* Testimonials */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem 1.6rem; margin: 0; height: 100%; display: flex; flex-direction: column; }
.testimonial-mark { font-size: 2.4rem; color: var(--gold); line-height: 1; }
.testimonial blockquote { font-family: var(--font-head); font-size: 1.2rem; color: var(--forest); flex-grow: 1; }
.testimonial figcaption { display: flex; gap: .8rem; align-items: center; }
.testimonial figcaption img { border-radius: 50%; object-fit: cover; }
.testimonial figcaption small { display: block; color: var(--muted); }

/* Newsletter */
.newsletter-band { padding: 0 0 clamp(4rem, 7vw, 5.5rem); }
.section-cream + .newsletter-band { background: linear-gradient(var(--cream) 50%, var(--warm) 50%); }
.newsletter-inner { background: var(--warm); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 2.8rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; box-shadow: var(--shadow); }
.newsletter-copy { display: flex; gap: 1.2rem; align-items: center; }
.newsletter-icon { font-size: 2.6rem; color: var(--gold); }
.newsletter-form .form-control { border-radius: 999px 0 0 999px; border-color: var(--line); padding-left: 1.3rem; }
.newsletter-form .btn { border-radius: 0 999px 999px 0; }
@media (max-width: 991.98px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; background: var(--forest-deep); color: var(--cream); padding: clamp(4.5rem, 8vw, 6.5rem) 0; overflow: hidden; isolation: isolate; }
.cta-band-sm { padding: 3.5rem 0; }
.cta-pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 90px; opacity: .1; z-index: -1; }
.cta-band::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(184, 149, 90, .25), transparent 65%); z-index: -1; }
.cta-title { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); }
html.lang-bn .cta-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-text { color: rgba(246, 241, 231, .8); max-width: 580px; margin: .6rem auto 2rem; }

/* ---------- Filters, chips, pagination ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-block; padding: .42rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--charcoal); font-size: .88rem; text-decoration: none; transition: all .2s; cursor: pointer; }
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip-sm { padding: .25rem .75rem; font-size: .8rem; }
.format-filter .form-select { border-radius: 999px; min-width: 220px; }
.pagination-soft .page-link { border: 1px solid var(--line); color: var(--forest); margin: 0 .2rem; border-radius: 50% !important; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; }
.pagination-soft .page-item.active .page-link { background: var(--forest); border-color: var(--forest); color: #fff; }
.pagination-soft .page-item.disabled .page-link { opacity: .45; }

.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--warm); color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.empty-state p { margin: 0 auto; max-width: 480px; }

/* ---------- Detail pages ---------- */
.detail-media { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.info-card { background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; top: 100px; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.info-list li span { color: var(--muted); white-space: nowrap; }
.info-list li span i { color: var(--gold); margin-right: .25rem; }
.info-list li strong { text-align: right; color: var(--forest); font-weight: 600; }
.instructor-box { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: var(--cream); }
.instructor-box img { border-radius: 50%; object-fit: cover; }
.share-row { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.share-row a, .btn-copy { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--forest); background: #fff; text-decoration: none; transition: all .2s; padding: 0; }
.share-row a:hover, .btn-copy:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-copy.copied { background: var(--gold); color: #fff; border-color: var(--gold); }
.side-visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 7/8; }
.side-visual { top: 110px; }
.alert-fallback { background: var(--cream); border: 1px solid var(--gold-soft); color: var(--forest); border-radius: var(--radius-sm); font-size: .92rem; }
.alert-cream { background: var(--cream); border: 1px solid var(--line); color: var(--forest); border-radius: var(--radius-sm); font-size: .92rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.post-meta i { color: var(--gold); }
.post-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.2rem; }
.post-footer .share-row { margin-top: 0; }

/* Sidebar */
.sidebar-box { background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; }
.sidebar-box .form-control { border-radius: 999px 0 0 999px; }
.sidebar-box .input-group .btn { border-radius: 0 999px 999px 0; }
.sidebar-title { font-size: 1.2rem; margin-bottom: .8rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--charcoal); }
.sidebar-list a.active, .sidebar-list a:hover { color: var(--gold-deep); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form-label { font-weight: 500; font-size: .93rem; color: var(--forest); }
.form-control, .form-select { border-color: var(--line); border-radius: 10px; padding: .65rem .9rem; background-color: var(--warm); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184, 149, 90, .2); background: #fff; }
.form-check-input:checked { background-color: var(--forest); border-color: var(--forest); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(184, 149, 90, .25); border-color: var(--gold); }
.contact-panel { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 2.2rem; height: 100%; position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .07; pointer-events: none; }
.contact-panel h2 { color: #fff; }
.contact-line { display: flex; gap: 1rem; margin-bottom: 1.3rem; position: relative; z-index: 1; }
.contact-line > i { width: 42px; height: 42px; flex: none; border-radius: 50%; background: rgba(184, 149, 90, .2); color: var(--gold-soft); display: grid; place-items: center; }
.contact-line span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); }
.contact-line a { color: #fff; text-decoration: none; }
.contact-panel .social-links { position: relative; z-index: 1; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Confirmation / error */
.section-confirm { background: var(--cream); min-height: 60vh; display: flex; align-items: center; }
.confirm-card { max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(2rem, 5vw, 3.2rem); box-shadow: var(--shadow-lg); }
.confirm-icon { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--forest); color: var(--gold-soft); font-size: 2.4rem; margin-bottom: 1.2rem; box-shadow: 0 0 0 8px var(--cream); }
.confirm-icon.muted { background: var(--cream-deep); color: var(--forest); }
.ref-box { display: inline-flex; align-items: center; gap: .8rem; background: var(--cream); border: 1px dashed var(--gold); border-radius: 14px; padding: .8rem 1.2rem; margin: 1rem 0 1.4rem; flex-wrap: wrap; justify-content: center; }
.ref-box span { font-size: .85rem; color: var(--muted); }
.ref-box strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.35rem; letter-spacing: .06em; color: var(--forest); }
.error-code { font-family: var(--font-head); font-size: 5rem; color: var(--gold); line-height: 1; margin-bottom: .4rem; }
.error-mark { height: 96px; width: auto; }

/* Team */
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; max-width: 200px; background: var(--cream-deep); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--warm), 0 0 0 7px var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial { font-family: var(--font-head); font-size: 3rem; color: var(--forest); }
.team-initial.sm { width: 64px; height: 64px; border-radius: 50%; background: var(--cream-deep); display: grid; place-items: center; font-size: 1.6rem; }
.team-name { font-size: 1.25rem; margin-bottom: .2rem; }
.team-role { color: var(--gold-deep); font-size: .9rem; margin: 0; }
.team-bio { color: var(--muted); font-size: .92rem; text-align: center; margin-top: .8rem; }

/* Gallery */
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--cream-deep); }
.gallery-item img { width: 100%; display: block; transition: transform .7s var(--ease), filter .4s; }
.gallery-item:hover img { transform: scale(1.04); filter: brightness(.9); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .8rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .3s; }
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; }
.gallery-item.is-hidden { display: none; }
.lightbox-content { background: transparent; border: 0; position: relative; align-items: center; }
.lightbox-img { max-height: 82vh; width: auto; max-width: 100%; border-radius: var(--radius-sm); }
.lightbox-caption { color: #fff; text-align: center; margin-top: .8rem; }
.lightbox-close { position: absolute; top: -2.2rem; right: 0; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox-nav.prev { left: .5rem; }
.lightbox-nav.next { right: .5rem; }
.modal-backdrop.show { opacity: .88; }

/* FAQ */
.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm) !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.faq-accordion .accordion-button { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--forest); background: #fff; padding: 1.1rem 1.4rem; }
html.lang-bn .faq-accordion .accordion-button { font-size: 1.08rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--cream); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { color: var(--muted); padding: 1rem 1.4rem 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--forest-deep); color: rgba(246, 241, 231, .78); padding: 4.5rem 0 1.5rem; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .05; }
.footer-about { font-size: .95rem; max-width: 380px; }
.footer-title { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; font-family: var(--font-head); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a, .footer-contact a { color: rgba(246, 241, 231, .78); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--gold); }
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 241, 231, .08); color: var(--cream); text-decoration: none; transition: all .2s; }
.social-links a:hover { background: var(--gold); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(246, 241, 231, .12); margin-top: 3rem; padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .87rem; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .newsletter-band, .cta-band, .share-row { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Prevent large gutters from causing horizontal scroll on phones */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
html, body { overflow-x: clip; }

/* Keep menu labels on one line next to the wide logo */
.main-menu .nav-link { white-space: nowrap; }
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .main-menu .nav-link { padding: .5rem .42rem !important; font-size: .86rem; }
    .brand-logo { height: 48px; }
    .nav-cta { padding: .5rem 1rem; font-size: .88rem; }
}
.nav-cta { white-space: nowrap; }
