:root {
  --ink: #162033;
  --muted: #667085;
  --line: #d9e2ea;
  --navy: #0b3b64;
  --teal: #0f766e;
  --gold: #d69a2d;
  --paper: #f7fafc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(22, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
}

.topbar-inner,
.navbar,
.section,
.footer-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 0;
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-full {
  width: min(390px, 48vw);
  max-height: 72px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.72rem;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--white);
}

.brand-mark img[src="assets/logo.png"] {
  position: relative;
  z-index: 2;
}

.brand-mark img:not([src]),
.brand-mark img[src=""] {
  display: none;
}

.brand-mark span {
  position: absolute;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links ul,
.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  padding: 12px 13px;
  color: #344054;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links .nav-download {
  color: var(--ink);
  background: var(--gold);
  padding: 10px 14px;
}

.nav-links .nav-download:hover {
  color: var(--ink);
  background: #e4ad45;
}

.wp-editable-content {
  color: #475467;
  background: var(--white);
}

.wp-editable-content > * {
  width: min(1160px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 112px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 420ms ease;
}

.hero img.is-fading {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 34, 55, 0.82), rgba(8, 34, 55, 0.36) 52%, rgba(8, 34, 55, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 150px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  width: min(740px, 100%);
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: #e9f3f4;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.btn.primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-notice {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--white);
  color: var(--ink);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.hero-notice strong {
  color: var(--teal);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto 0;
  background: var(--navy);
  color: var(--white);
}

.quick-links a {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.quick-links a:hover {
  background: var(--teal);
}

.gallery-section {
  padding-bottom: 38px;
}

.gallery-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.gallery-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.gallery-feature div {
  padding: 34px 30px;
  align-self: center;
}

.gallery-feature h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.15;
}

.gallery-feature p:not(.eyebrow) {
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-card {
  position: relative;
  border: 0;
  padding: 0;
  min-height: 210px;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 32, 51, 0.08);
}

.photo-card:nth-child(7n + 1),
.photo-card:nth-child(9n + 4) {
  grid-column: span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 220ms ease;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(13, 23, 38, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.section {
  padding: 84px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
}

.section h2,
.footer h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.academic-heading .eyebrow {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.academic-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.about-copy {
  font-size: 1.05rem;
  color: #475467;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stats div,
.program-card,
.notice-list article,
.events,
.facility-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.stats div {
  min-height: 140px;
  padding: 24px;
}

.stats strong {
  display: block;
  color: var(--teal);
  font-size: 2.2rem;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.chairman-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 46px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.chairman-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--navy);
  outline: 4px solid rgba(214, 154, 45, 0.45);
  outline-offset: 5px;
  background: #eef4f7;
}

.chairman-text {
  color: #344054;
  font-family: "Noto Serif Bengali", "SolaimanLipi", "Bangla MN", Georgia, serif;
}

.chairman-text .eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
}

.chairman-text p {
  margin: 0 0 16px;
  font-size: 1.03rem;
  line-height: 1.82;
}

.chairman-text .arabic {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 800;
  text-align: center;
}

.chairman-text .quote-line {
  padding: 14px 18px;
  color: var(--navy);
  background: #f2f7f8;
  border-left: 4px solid var(--gold);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
}

.academics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.program-grid,
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.academic-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 24px 28px;
  background: var(--ink);
  color: var(--white);
}

.academic-intro .eyebrow {
  margin: 0;
}

.academic-intro h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.2;
  text-align: right;
}

.academic-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.academic-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.academic-table caption {
  padding: 24px 28px 14px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
}

.academic-table th,
.academic-table td {
  padding: 17px 28px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.academic-table th {
  color: var(--white);
  background: var(--teal);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.academic-table tbody tr:nth-child(even) {
  background: #f2f7f8;
}

.academic-table td:first-child {
  color: var(--navy);
  font-weight: 800;
}

.program-card,
.facility-grid article {
  min-height: 260px;
  padding: 28px;
}

.program-card span {
  color: var(--gold);
  font-weight: 800;
}

.program-card h3,
.notice-list h3,
.facility-grid h3,
.events h2 {
  margin: 14px 0 8px;
  line-height: 1.18;
}

.program-card p,
.notice-list p,
.facility-grid p,
.admission p {
  color: var(--muted);
}

.admission {
  padding-top: 0;
}

.admission-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  padding: 46px;
}

.admission-panel p {
  color: #d7dee8;
}

.admission-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.admission-steps div,
.admission-steps a {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.admission-steps a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.admission-steps strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  flex: 0 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.notice-list {
  display: grid;
  gap: 14px;
}

.notice-list article {
  padding: 24px;
}

time {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
}

.events {
  padding: 28px;
}

.event {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.event strong {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}

.fees-section {
  border-top: 1px solid var(--line);
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fee-page {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
  cursor: pointer;
}

.fee-page img {
  width: 100%;
  height: auto;
  display: block;
}

.fee-download {
  display: inline-block;
  margin-top: 18px;
}

.admission-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 34, 55, 0.88), rgba(8, 34, 55, 0.58)),
    url("assets/gallery/WhatsApp Image 2026-05-27 at 10.21.38 PM.jpeg") center / cover;
}

.admission-hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.admission-hero h1 {
  width: min(780px, 100%);
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.03;
}

.admission-hero p:not(.eyebrow) {
  width: min(660px, 100%);
  color: #e9f3f4;
  font-size: 1.12rem;
}

.admission-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.admission-page-grid h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article,
.admission-notice,
.requirement-grid article,
.faq-list article {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.process-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.process-list strong {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
}

.process-list span,
.admission-notice p,
.requirement-grid p,
.faq-list p,
.form-note {
  color: var(--muted);
}

.admission-notice {
  padding: 28px;
  border-top: 5px solid var(--teal);
}

.admission-notice h2 {
  font-size: 1.7rem;
}

.requirement-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.requirement-grid article,
.faq-list article {
  padding: 26px;
}

.requirement-grid h3,
.faq-list h3 {
  margin: 0 0 10px;
  line-height: 1.18;
}

.application-form-section {
  background: #edf5f6;
}

.admission-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.06);
}

.admission-form-large {
  grid-template-columns: 1fr;
}

.admission-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fbfdfe;
}

.admission-form legend {
  padding: 0 10px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}

.admission-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.admission-form input,
.admission-form select,
.admission-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.admission-form input[type="file"] {
  padding: 11px;
  background: var(--white);
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  border-color: var(--teal);
}

.form-wide {
  grid-column: 1 / -1;
}

.dob-group {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.dob-group div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 10px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.campus {
  padding-top: 20px;
}

.facility-grid article {
  min-height: 210px;
  border-top: 5px solid var(--teal);
}

.footer {
  background: #0d1726;
  color: var(--white);
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer h3 {
  margin: 0 0 12px;
}

.footer p {
  color: #c9d4e3;
  margin: 0;
}

@media (max-width: 900px) {
  .topbar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 10px 16px 18px;
    border-top: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links ul,
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 14px 0;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 60px;
  }

  .quick-links,
  .section-heading,
  .about-grid,
  .chairman-section,
  .gallery-feature,
  .fees-grid,
  .admission-panel,
  .admission-page-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .facility-grid,
  .requirement-grid,
  .faq-list,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .academic-intro {
    display: block;
  }

  .academic-intro h3 {
    margin-top: 8px;
    text-align: left;
  }

  .photo-card:nth-child(7n + 1),
  .photo-card:nth-child(9n + 4) {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .topbar {
    display: none;
  }

  .navbar {
    min-height: 68px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-logo-full {
    width: min(250px, 62vw);
    max-height: 58px;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 34, 55, 0.82), rgba(8, 34, 55, 0.6));
  }

  .hero-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .quick-links,
  .program-grid,
  .facility-grid,
  .requirement-grid,
  .faq-list,
  .photo-grid,
  .stats,
  .admission-steps,
  .admission-form,
  .admission-form fieldset,
  .dob-group div {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .gallery-feature img {
    min-height: 260px;
  }

  .photo-card {
    min-height: 230px;
  }

  .section {
    padding: 62px 0;
  }

  .admission {
    padding-top: 0;
  }

  .admission-panel {
    padding: 28px;
  }

  .chairman-section {
    padding: 24px;
  }
}
