/* Amolnama archive — mobile-first styles.
   All base styles target mobile; media queries scale up for larger screens. */

:root {
  --brand: #8B0000;      /* deep red header */
  --brand-fg: #FFFFFF;   /* white font */
  --ink: #1F1F1F;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --max-w: 1120px;
  --gap: 1rem;
}

/* ---------- Noto Sans Bengali (installed in assets/fonts/) ---------- */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url('../assets/fonts/notosansbengali-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url('../assets/fonts/notosansbengali-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url('../assets/fonts/notosansbengali-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---------- Header (deep red, white font) ---------- */
.site-header {
  background: var(--brand);
  color: var(--brand-fg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  font-family: "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  color: var(--brand-fg);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Hamburger (mobile default) */
.nav-toggle {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-fg);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main nav: hidden on mobile, inline on tablet+ */
.main-nav { display: none; }
.main-nav ul { display: none; margin: 0; padding: 0; list-style: none; }

@media (min-width: 640px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 1.5rem; }
}
.main-nav a {
  color: var(--brand-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
  white-space: nowrap;
}

/* Mobile dropdown */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--brand);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1rem 1rem;
  z-index: 9;
}
.main-nav.open ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 2rem; }
.kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--brand);
  font-weight: 700;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32ch;
}

/* ---------- Search ---------- */
.search-bar { position: relative; max-width: 26rem; width: 100%; }
#archive-search {
  width: 100%;
  padding: 0.72rem 2.8rem 0.72rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--ink);
}
#archive-search::placeholder { color: var(--muted); }
.search-clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0.55rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

/* ---------- Archive grid — single column (mobile-first) ---------- */
.archive { padding: 0 0 1.75rem; }
.archive h2 { font-size: 1.6rem; margin: 0 0 1rem; color: var(--ink); }
.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card.hidden-card { display: none; }
.card-date {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.card-title { margin: 0 0 0.4rem; font-size: 1.15rem; color: var(--ink); }
.card-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Responsive scale-up ---------- */
@media (min-width: 640px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .archive h2 { font-size: 1.8rem; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (min-width: 1200px) {
  .hero-sub { max-width: 40ch; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 0.98rem; }
  .archive h2 { font-size: 1.4rem; }
}

/* ---------- Sections ---------- */
.about, .contact { padding: 2.5rem 0 1.5rem; }
.about h2, .contact h2 { font-size: 1.6rem; margin: 0 0 1rem; color: var(--ink); }
.about p, .contact p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand { color: var(--brand); font-weight: 700; font-size: 1.2rem; }

/* ---------- Top Applicants ---------- */
.top-applicants { padding: 2.5rem 0 2rem; }
.section-title { font-size: 1.6rem; margin: 0 0 1.25rem; color: var(--ink); }
.applicants-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .applicants-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .applicants-grid { grid-template-columns: repeat(4, 1fr); } }
.applicant { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.applicant-num { font-size: 0.8rem; font-weight: 700; color: var(--brand); }
.applicant-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.applicant-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-top: 0.25rem; text-align: center; }

/* ---------- Submit info button ---------- */
.submit-info-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-fg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.submit-info-btn:hover { background: var(--primary-dark); }

/* ---------- Applicant card buttons ---------- */
.applicant-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.applicant-btn { display: inline-block; padding: 0.6rem 1.3rem; border-radius: 6px; background: var(--brand); color: var(--brand-fg); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.applicant-btn:hover { background: var(--primary-dark); }

/* ---------- Person pages ---------- */
.person-main { padding: 2.5rem 0 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.person-photo { width: 100%; max-width: 160px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); display: block; margin: 0 auto 1.25rem; }
.person-name { font-size: 2rem; margin: 0 0 0.5rem; text-align: center; }
.person-subtitle { color: var(--brand); font-weight: 600; text-align: center; margin: 0 0 1.25rem; }
.person-desc { color: var(--muted); text-align: center; max-width: 32ch; margin: 0 auto; }
