/* Saidpur Somity — component styles (ported 1:1 from the Next.js prototype's inline styles) */

/* Language toggle (server renders both languages; CSS shows the active one) */
html[data-lang="en"] .lang-bn { display: none; }
html[data-lang="bn"] .lang-en { display: none; }
html[data-lang="bn"] .bn { font-family: 'Noto Sans Bengali', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { padding-top: 72px; min-height: 60vh; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar { position: fixed;  left: 0; right: 0; z-index: 1000; padding: 0 24px; transition: all .4s ease; }
.navbar.scrolled { top: 0; background: rgba(15,26,44,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(244,162,97,0.15); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1200px; margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-title { font-family: var(--font-playfair, 'Playfair Display', serif); font-size: 1rem; font-weight: 700; color: var(--amber-glow); letter-spacing: .5px; }
.nav-logo-sub { font-size: .72rem; color: rgba(255,255,255,.55); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 4px; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; display: block; }
.nav-links a:hover, .nav-links a.active { color: var(--amber-glow); }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
.lang-switch button { padding: 6px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; border: none; background: transparent; color: rgba(255,255,255,.6); transition: all .2s; }
.lang-switch button.active { background: var(--amber-glow); color: var(--indigo-deep); }
.icon-btn { width: 36px; height: 36px; border-radius: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.mobile-toggle { display: none; background: transparent; border: none; color: rgba(255,255,255,.8); cursor: pointer; padding: 6px; font-size: 22px; }
.mobile-overlay { position: fixed; inset: 0; top: 64px; background: rgba(10,14,23,0.97); backdrop-filter: blur(20px); z-index: 999; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mobile-overlay.open { display: flex; }
.mobile-overlay a { font-size: 1.2rem; font-weight: 500; color: rgba(255,255,255,.8); text-decoration: none; padding: 12px 24px; width: 100%; text-align: center; }
.mobile-overlay a.active { color: var(--amber-glow); }

/* ── Homepage Highlights section ──────────────────────────── */
.highlight-card { padding: 0; overflow: hidden; display: block; }
.highlight-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.highlight-body { padding: 20px; }
.nav-links li[data-nav-item] { position: relative; list-style: none; }
.nav-links li.has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.dropdown-caret { font-size: .65rem; transition: transform .2s ease; display: inline-block; }
.nav-links li.has-dropdown:hover .dropdown-caret,
.nav-links li.has-dropdown.open .dropdown-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; margin: 8px 0 0; padding: 8px;
  list-style: none; background: rgba(15,26,44,0.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(244,162,97,.15); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 1100;
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { padding: 9px 14px; border-radius: 6px; font-size: .85rem; color: rgba(255,255,255,.8); }
.nav-dropdown a:hover, .nav-dropdown a.active { background: rgba(244,162,97,.1); color: var(--amber-glow); }
/* Light navbar (pre-scroll) needs its own dropdown text colors */
.navbar .nav-dropdown a { color: rgba(255,255,255,.85); }

/* ── Dropdown submenu (mobile) ────────────────────────────── */
.mobile-nav-group { width: 100%; text-align: center; }
.mobile-nav-parent {
  background: transparent; border: none; cursor: pointer; width: 100%;
  font-size: 1.2rem; font-weight: 500; color: rgba(255,255,255,.8); padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-nav-parent.active { color: var(--amber-glow); }
.mobile-nav-parent .dropdown-caret { transition: transform .2s ease; }
.mobile-nav-group.open .mobile-nav-parent .dropdown-caret { transform: rotate(180deg); }
.mobile-nav-children { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.mobile-nav-group.open .mobile-nav-children { max-height: 400px; }
.mobile-nav-children a { display: block; font-size: 1rem; padding: 10px 24px; color: rgba(255,255,255,.6); text-decoration: none; }
.mobile-nav-children a.active { color: var(--amber-glow); }

@media (max-width: 768px) {
  .nav-links, .nav-controls-desktop { display: none !important; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-inner { height: 64px; padding: 0 12px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,23,.55) 0%, rgba(10,14,23,.75) 60%, rgba(10,14,23,.95) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; color: #fff; }
.hero-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: 2px; color: var(--amber-glow); text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin-bottom: 18px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); margin-bottom: 8px; }
.hero-tagline { font-size: .95rem; color: var(--amber-glow); font-style: italic; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 4px; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: linear-gradient(135deg, var(--amber-glow), var(--amber-dark)); color: var(--indigo-deep); box-shadow: 0 0 20px rgba(244,162,97,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(244,162,97,.45); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--amber-glow); color: var(--amber-glow); }

/* ── Ticker ───────────────────────────────────────────────── */
.ticker-bar { background: var(--indigo-deep); border-bottom: 1px solid rgba(244,162,97,.15); overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker-track { display: inline-flex; gap: 60px; }
.ticker-track span { color: rgba(255,255,255,.75); font-size: .85rem; }

/* ── Section / typography ────────────────────────────────── */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: 2px; color: var(--amber-dark); text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.section-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; color: var(--text-primary); }
.section-sub { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; }

/* ── Grids & cards ────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 28px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow-color); }
.card-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.card-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.card-desc { font-size: .92rem; color: var(--text-secondary); line-height: 1.65; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { text-align: center; }
.stat-value { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--amber-glow); }
.stat-label { font-size: .82rem; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .68rem; font-weight: 700; letter-spacing: .5px; }

/* ── Notices / list rows ─────────────────────────────────── */
.notice-row { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border-color); }
.notice-date { flex-shrink: 0; width: 68px; text-align: center; }
.notice-date .day { font-size: 1.5rem; font-weight: 800; color: var(--amber-dark); font-family: 'Playfair Display', serif; }
.notice-date .month { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 14px 12px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); color: #fff; font-size: .8rem; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.filter-pill { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-card); font-size: .82rem; cursor: pointer; color: var(--text-secondary); }
.filter-pill.active, .filter-pill:hover { background: var(--amber-glow); color: var(--indigo-deep); border-color: var(--amber-glow); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Committee ────────────────────────────────────────────── */
.leader-card { text-align: center; padding: 32px 22px; }
.leader-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 3px solid var(--amber-glow); }
.leader-role { font-size: .74rem; letter-spacing: 1px; font-weight: 700; margin-bottom: 6px; }
.leader-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

/* ── Timeline ─────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border-color); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber-glow); }
.timeline-year { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--amber-dark); font-size: 1.05rem; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.form-control { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); font-size: .92rem; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--amber-glow); }
textarea.form-control { min-height: 130px; resize: vertical; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--night-sky); border-top: 1px solid rgba(244,162,97,.15); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-wrap img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; }
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 24px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn { width: 38px; height: 38px; border-radius: 4px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none; }
.footer-col-h4 { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--amber-glow); display: inline-block; }
.footer-link { font-size: .875rem; color: rgba(255,255,255,.5); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-link:hover { color: var(--amber-glow); }
.footer-contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; font-size: .82rem; color: rgba(255,255,255,.35); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ── Floating buttons ─────────────────────────────────────── */
.floating-btns { position: fixed; right: 20px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 900; }
.floating-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.35); font-size: 22px; }
.floating-btn.whatsapp { background: #25D366; }
.floating-btn.top { background: var(--amber-glow); color: var(--indigo-deep); }

/* ── Admin banner strip on public pages (only visible when signed in) ── */
.admin-strip { background: var(--amber-glow); color: var(--indigo-deep); font-size: .8rem; padding: 6px 24px; text-align: center; }
.admin-strip a { color: var(--indigo-deep); font-weight: 700; text-decoration: underline; }



/* Default navbar (before scroll, light mode) */
.navbar {
    background: #fff; /* white background */
    transition: background 0.4s ease, color 0.4s ease;
}

    .navbar .nav-logo-title,
    .navbar .nav-logo-sub,
    .navbar .nav-links a,
    .navbar .lang-switch button,
    .navbar .icon-btn {
        color: #000; /* black text/icons */
        transition: color 0.4s ease;
    }

        .navbar .nav-links a:hover,
        .navbar .nav-links a.active {
            color: var(--amber-dark); /* highlight */
        }

    /* Navbar after scroll */
    .navbar.scrolled {
        background: rgba(15,26,44,0.95); /* dark background */
    }

        .navbar.scrolled .nav-logo-title,
        .navbar.scrolled .nav-logo-sub,
        .navbar.scrolled .nav-links a,
        .navbar.scrolled .lang-switch button,
        .navbar.scrolled .icon-btn {
            color: #fff; /* white text/icons */
        }

            .navbar.scrolled .nav-links a:hover,
            .navbar.scrolled .nav-links a.active {
                color: var(--amber-glow); /* highlight */
            }

/* ── General mobile/tablet polish ─────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .hero { height: 80vh; min-height: 460px; }
  .container { padding: 0 18px; }
}

@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { height: 72vh; min-height: 400px; }
  .hero-content { padding: 0 16px; }
  .card, .admin-card { padding: 18px; }
  .notice-row { gap: 14px; padding: 16px 0; }
  .notice-date { width: 54px; }
  .leader-photo { width: 92px; height: 92px; }
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -30px; }
  .floating-btns { right: 12px; bottom: 16px; }
  .floating-btn { width: 46px; height: 46px; font-size: 18px; }
}
