/* ===========================================================
   আন-নাজাহ পাবলিক ওয়েবসাইট
   =========================================================== */
:root {
  --g-900: #00240D;
  --g-800: #003414;
  --g-700: #004416;
  --g-600: #0A5524;
  --g-100: #E4EFE6;
  --g-050: #F1F7F2;
  --o-600: #D9610E;
  --o-500: #F57E20;
  --o-100: #FDEADB;
  --ink: #12211A;
  --ink-2: #3A4C43;
  --muted: #6C7F75;
  --line: #E5DECE;
  --sand: #F4EFE3;
  --paper: #FAF7EF;
  --serif: 'Noto Serif Bengali', serif;
  --sans: 'Anek Bangla', sans-serif;
  --arabic: 'Amiri', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.75; }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0; line-height: 1.3; letter-spacing: -.2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- হেডার ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, .92);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-nav { display: flex; align-items: center; gap: 26px; height: 78px; }
.site-brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.site-brand img { width: 46px; height: 46px; object-fit: contain; }
.site-brand .nm { display: block; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.32; color: var(--g-800); }
.site-brand .sb { display: block; font-size: 10px; letter-spacing: 1.3px; color: var(--muted); text-transform: uppercase; }

.site-links { display: flex; gap: 4px; }
.site-links a { padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.site-links a:hover { background: var(--sand); color: var(--g-700); }

.site-cta { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; height: 44px; border-radius: 11px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap; }
.btn-primary { background: linear-gradient(180deg, var(--g-600), var(--g-700)); color: #fff; box-shadow: 0 12px 24px -14px rgba(0, 68, 22, .9); }
.btn-primary:hover { background: linear-gradient(180deg, #0C6330, var(--g-600)); }
.btn-accent { background: linear-gradient(180deg, var(--o-500), var(--o-600)); color: #fff; box-shadow: 0 12px 24px -14px rgba(217, 97, 14, .9); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--g-600); color: var(--g-700); }
.btn-sm { height: 38px; font-size: 13px; padding: 0 14px; }

.menu-btn { display: none; background: none; border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 10px; }

/* ---------- হিরো ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 84px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23004416' stroke-opacity='.05'%3E%3Cpath d='M60 6 76 28 102 34 84 56 90 86 62 78 60 108 58 78 30 86 36 56 18 34 44 28Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .9;
  mask-image: radial-gradient(80% 60% at 60% 30%, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--o-100); color: var(--o-600);
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 13px; border-radius: 30px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.22; color: var(--g-900); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--o-600); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: rgba(245, 126, 32, .18); z-index: -1; border-radius: 6px; }
.hero .ar { display: block; font-family: var(--arabic); font-size: 24px; color: var(--o-600); direction: rtl; text-align: left; margin-bottom: 10px; }
.hero p { color: var(--muted); font-size: 16.5px; max-width: 520px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-note div { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-note b { color: var(--g-800); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--o-500); display: inline-block; }

.arch-stage { position: relative; display: flex; justify-content: center; }
.arch {
  width: min(400px, 92%);
  aspect-ratio: 3 / 3.9;
  border-radius: 999px 999px 26px 26px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(245, 126, 32, .22), transparent 60%),
    linear-gradient(170deg, var(--g-700), var(--g-900));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 36, 13, .7);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px 999px 18px 18px;
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.08'%3E%3Cpath d='M45 4 57 21 77 26 63 42 67 65 45 59 45 82 43 59 21 65 25 42 11 26 31 21Z'/%3E%3C/g%3E%3C/svg%3E");
}
.arch img { width: 58%; position: relative; z-index: 1; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .4)); }
.arch .plaque {
  position: relative;
  z-index: 1;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #FFFDF8, #F1E9D8);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.arch .plaque::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 68, 22, .22);
}
.arch .plaque img { width: 78%; filter: none; }
.arch .ayah { position: absolute; bottom: 26px; font-family: var(--arabic); color: rgba(255, 255, 255, .8); font-size: 20px; z-index: 1; direction: rtl; }
.arch-badge {
  position: absolute;
  left: -14px;
  bottom: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 24px 48px -28px rgba(0, 36, 13, .5);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2;
}
.arch-badge .k { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--g-800); line-height: 1; }
.arch-badge .l { font-size: 11px; color: var(--muted); }

/* ---------- স্ট্যাটস ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .v { font-family: var(--serif); font-size: 34px; font-weight: 800; color: var(--g-800); line-height: 1.15; }
.stat-cell .l { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- সেকশন ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 62px 0; }
.section.sand { background: var(--sand); }
.section.dark { background: linear-gradient(165deg, var(--g-800), var(--g-900)); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin: 0 auto 42px; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--o-600); margin-bottom: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--o-500); display: inline-block; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--g-900); }
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section.dark .section-head p { color: rgba(255, 255, 255, .65); }

/* ---------- ডিভিশন কার্ড ---------- */
.div-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.div-card {
  border-radius: 22px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .22s, box-shadow .22s;
}
.div-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(0, 36, 13, .5); }
.div-card .num { font-family: var(--serif); font-size: 15px; color: var(--o-600); font-weight: 700; letter-spacing: 1px; }
.div-card h3 { font-size: 23px; margin: 8px 0 8px; color: var(--g-800); }
.div-card p { color: var(--muted); font-size: 14.5px; }
.div-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.div-card li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.div-card li::before { content: "✦"; color: var(--o-500); font-size: 11px; margin-top: 5px; }
.div-card .watermark { position: absolute; right: -6px; bottom: -26px; font-family: var(--arabic); font-size: 120px; color: rgba(0, 68, 22, .05); line-height: 1; }
.div-card.hifz { background: linear-gradient(160deg, #fff, #FDF4E9); }

/* ---------- ফিচার ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 24px;
}
.feat .ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(245, 126, 32, .16); color: var(--o-500); display: grid; place-items: center; margin-bottom: 14px; }
.feat h4 { font-size: 17px; color: #fff; margin-bottom: 6px; }
.feat p { font-size: 13.5px; color: rgba(255, 255, 255, .62); line-height: 1.75; }

/* ---------- ক্লাস ---------- */
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.class-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.class-chip .nm { font-weight: 600; font-size: 14px; }
.class-chip .ct { font-size: 11.5px; color: var(--muted); }
.class-chip.hifz { border-color: #F2D9BF; background: #FFF9F2; }

/* ---------- নোটিশ ---------- */
.notice-list { display: grid; gap: 12px; }
.notice-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.notice-row .date { flex: 0 0 66px; text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.notice-row .date b { font-family: var(--serif); font-size: 26px; color: var(--g-800); display: block; line-height: 1; }
.notice-row .date span { font-size: 11px; color: var(--muted); }
.notice-row h4 { font-size: 16.5px; margin-bottom: 4px; }
.notice-row p { font-size: 13.5px; color: var(--muted); }

/* ---------- ভর্তি CTA ---------- */
.admission-band {
  background: linear-gradient(150deg, var(--g-700), var(--g-900));
  border-radius: 26px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.admission-band::before {
  content: "";
  position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .04), 0 0 0 100px rgba(255, 255, 255, .02);
}
.admission-band h2 { font-size: clamp(24px, 3vw, 34px); }
.admission-band p { color: rgba(255, 255, 255, .7); margin-top: 8px; font-size: 14.5px; }
.admission-band .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- ফুটার ---------- */
.site-footer { background: #001B09; color: rgba(255, 255, 255, .68); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; }
.site-footer h5 { font-family: var(--serif); font-size: 14px; color: #fff; margin: 0 0 12px; letter-spacing: .3px; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .62); font-size: 13.5px; display: block; padding: 3px 0; }
.site-footer a:not(.btn):hover { color: var(--o-500); }
.site-footer .btn { display: inline-flex; width: auto; padding: 0 18px; margin-top: 10px; font-size: 13.5px; color: #fff; }
.site-footer p { font-size: 13.5px; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .4); flex-wrap: wrap; gap: 8px; }

/* ---------- ফর্ম / ভর্তি পেজ ---------- */
.page-hero { background: linear-gradient(160deg, var(--g-700), var(--g-900)); color: #fff; padding: 58px 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.06'%3E%3Cpath d='M50 5 63 24 85 29 70 47 74 72 50 65 50 92 48 65 24 72 28 47 13 29 35 24Z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); position: relative; }
.page-hero p { color: rgba(255, 255, 255, .7); margin-top: 8px; position: relative; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -50px rgba(0, 36, 13, .5); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: flex; flex-direction: column; gap: 5px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.f-field label em { color: #B3261E; font-style: normal; }
.f-field input, .f-field select, .f-field textarea {
  height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  font-family: inherit; font-size: 14px; background: #FEFDF9; outline: none; color: var(--ink);
}
.f-field textarea { height: auto; padding: 10px 12px; min-height: 84px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--g-600); box-shadow: 0 0 0 3px rgba(10, 85, 36, .12); }
.help { font-size: 11.5px; color: var(--muted); }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.info-card h4 { font-size: 16px; color: var(--g-800); margin-bottom: 10px; }
.info-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.info-row:last-child { border-bottom: 0; }
.info-row b { color: var(--ink); font-weight: 600; min-width: 90px; }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.alert.ok { background: #E8F4EC; color: #1E5B38; border: 1px solid #C7E3D2; }
.alert.err { background: #FBEAE8; color: #8C1D17; border: 1px solid #F2CDC9; }

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 980px) {
  .site-links { display: none; }
  .site-nav { height: auto; min-height: 68px; padding: 8px 0; gap: 10px; }
  .site-brand { min-width: 0; gap: 9px; }
  .site-brand img { width: 40px; height: 40px; }
  .site-brand .nm { font-size: 13.5px; line-height: 1.35; }
  .site-brand .sb { display: none; }
  .site-cta { gap: 6px; }
  .site-cta .btn-ghost { display: none; }
  .site-cta .btn-accent { height: 38px; padding: 0 13px; font-size: 12.5px; }
  .menu-btn { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .arch-stage { order: -1; }
  .arch { width: min(300px, 80%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .div-grid, .feat-grid, .admission-band { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admission-band .acts { justify-content: flex-start; }
  .section { padding: 56px 0; }
}
@media (max-width: 620px) {
  .f-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 48px; }
  .arch-stage { flex-direction: column; align-items: center; }
  .arch { width: min(250px, 74%); }
  .arch-badge { position: static; left: auto; bottom: auto; margin: 14px auto 0; }
  .hero .ar { font-size: 20px; }
  .form-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
