:root {
  --navy: #1c2b80;
  --navy-dark: #121c58;
  --navy-deep: #0c1340;
  --gold: #e2b23a;
  --gold-light: #f3d27a;
  --red: #d7262b;
  --ink: #1d2233;
  --muted: #5d6478;
  --line: #e4e6ee;
  --bg-alt: #f5f6fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 28, 88, 0.08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bangla: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

[lang="bn"] { font-family: var(--bangla); }

[hidden] { display: none !important; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.container.narrow { width: min(820px, 100% - 2.5rem); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

.muted { color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 6px 18px rgba(226, 178, 58, 0.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.text-link:hover { color: var(--red); }

/* Top bar & header */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}
.topbar a { color: rgba(255, 255, 255, 0.85); text-decoration: none; margin-right: 1.25rem; }
.topbar a:hover { color: var(--gold); }
.topbar-bn { color: var(--gold-light); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(12, 19, 64, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #fff; }
.brand-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) {
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
}
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.12); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { margin-left: 0.75rem; padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(226, 178, 58, 0.18), transparent 45%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5.5rem 0 6rem;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.hero-bn { font-size: 1.6rem; color: var(--gold-light); margin: 0 0 0.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: min(400px, 100%);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Quick links strip */
.quick-links { margin-top: -2.75rem; position: relative; z-index: 2; }
.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(18, 28, 88, 0.16);
  overflow: hidden;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  border-left: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}
.quick-item:first-child { border-left: 0; }
.quick-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.quick-icon svg { width: 24px; height: 24px; fill: var(--gold); }
.quick-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.quick-text strong { font-family: var(--serif); font-size: 1.15rem; color: var(--navy-dark); transition: color 0.2s ease; }
.quick-text small { font-size: 0.85rem; color: var(--muted); transition: color 0.2s ease; }
.quick-arrow { color: var(--red); font-weight: 700; transition: transform 0.2s ease, color 0.2s ease; }
.quick-item:hover { background: var(--navy); }
.quick-item:hover .quick-icon { background: var(--gold); }
.quick-item:hover .quick-icon svg { fill: var(--navy); }
.quick-item:hover .quick-text strong { color: #fff; }
.quick-item:hover .quick-text small { color: rgba(255, 255, 255, 0.75); }
.quick-item:hover .quick-arrow { color: var(--gold); transform: translateX(4px); }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }

.welcome-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.bn-title { font-size: 1.3rem; color: var(--navy); }
.welcome-text p { margin-top: 0; }
.welcome-text .btn { margin-top: 0.5rem; }

.empty { color: var(--muted); font-style: italic; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-list { display: grid; gap: 1.25rem; }
.event-card { display: flex; gap: 1.5rem; padding: 1.5rem; }
.event-date {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  align-self: flex-start;
  line-height: 1.1;
}
.event-date .month { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold-light); font-weight: 700; }
.event-date .day { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; }
.event-date .year { font-size: 0.75rem; opacity: 0.75; }
.event-body h3 { margin-bottom: 0.25rem; }
.event-body h3 a { text-decoration: none; color: inherit; }
.event-body h3 a:hover { color: var(--red); }
.event-body p { margin: 0 0 0.75rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--muted); font-size: 0.92rem; }
.event-list.past .event-date { background: #8a90a8; }

.list-title { font-size: 1.5rem; margin: 0 0 1.25rem; }
.past-events { margin-top: 3.5rem; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-image img.placeholder { object-fit: contain; padding: 1.5rem; opacity: 0.9; }
.news-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-body h3 a { text-decoration: none; color: inherit; }
.news-body h3 a:hover { color: var(--red); }
.news-body p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.news-body .text-link { margin-top: auto; }
.news-date { font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--red) !important; margin-bottom: 0.5rem !important; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.person-card { text-align: center; padding: 2rem 1.25rem 1.5rem; }
.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 60%; height: 60%; fill: #b8bdd3; margin-top: 15%; }
.person-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.person-card .role { color: var(--red); font-weight: 600; font-size: 0.9rem; margin: 0 0 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.person-details { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.9rem; }
.person-card .bio { font-size: 0.9rem; color: var(--muted); margin: 0.75rem 0 0; }

.directory-tools { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.directory-tools input {
  flex: 1;
  min-width: 260px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
}

/* Gallery */
.album + .album { margin-top: 3.5rem; }
.album-head { margin-bottom: 1.25rem; }
.album-head h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.album-head p { margin: 0; }
.album-date { color: var(--red); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 0.8rem 0.6rem;
  background: linear-gradient(transparent, rgba(12, 19, 64, 0.85));
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 12, 40, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4.5rem;
}
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); margin-top: 0.9rem; min-height: 1.5em; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 4rem 0 3.5rem;
  border-bottom: 5px solid var(--gold);
}
.page-header h1 { color: #fff; margin-bottom: 0.25rem; }
.page-header .eyebrow { color: var(--gold); }
.page-header .lead { color: rgba(255, 255, 255, 0.8); margin: 0.5rem 0 0; max-width: 46rem; }

/* Article / prose */
.prose { font-size: 1.05rem; }
.prose img.cover { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.prose h2 { margin-top: 2rem; }
.back-link { margin-top: 2.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--navy); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--bg-alt); }

.event-meta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.event-meta-box .label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.event-meta-box .btn { margin-left: auto; }

/* Membership */
.membership-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.membership-info h2 { font-size: 1.6rem; }
.membership-info h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px #fff;
  border: 2px solid var(--gold);
}
.form-card { padding: 2rem; }
.form-card h2 { font-size: 1.6rem; }
.notice {
  background: #fff7e1;
  border: 1px solid var(--gold-light);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.enroll-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.enroll-form legend { font-weight: 700; color: var(--navy-dark); margin-bottom: 0.75rem; font-size: 1rem; }
.enroll-form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
.enroll-form input:not([type=checkbox]), .enroll-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cfd3e0;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}
.enroll-form input:focus, .enroll-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.enroll-form label.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.enroll-form label.checkbox input { margin-top: 0.3rem; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status.success { color: #18794e; }
.form-status.error { color: var(--red); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 4.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: #fff; margin: 0; max-width: 40rem; }
.cta .eyebrow { color: var(--gold); }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-about img { border-radius: 50%; margin-bottom: 1rem; }
.footer-about p { margin: 0 0 0.35rem; }
.footer-about strong { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, 0.6); }
.site-footer h4 { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.25rem 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* Responsive */
@media (max-width: 980px) {
  .quick-strip { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(3) { border-left: 0; }
  .quick-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .membership-grid, .welcome-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 12px 24px rgba(12, 19, 64, 0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a.active { box-shadow: inset 3px 0 0 var(--gold); }
  .nav-cta { margin: 0.5rem 0 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar-bn { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0 5rem; gap: 2rem; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 210px; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .section { padding: 3.5rem 0; }
  .news-grid, .field-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .event-card { flex-direction: column; gap: 1rem; }
  .event-date { flex-direction: row; gap: 0.5rem; padding: 0.5rem 1rem; }
  .event-date .day { font-size: 1.3rem; }
  .event-meta-box .btn { margin-left: 0; }
  .brand-sub { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .lightbox { padding: 3.5rem 0.75rem; }
  .lightbox-nav { top: auto; bottom: 1rem; transform: none; }
}

@media (max-width: 520px) {
  .quick-strip { grid-template-columns: 1fr; }
  .quick-item { border-left: 0; }
  .quick-item + .quick-item { border-top: 1px solid var(--line); }
}
