/* ==========================================================================
   College website — shared stylesheet (loads after Bootstrap 5.3)
   1. Tokens   2. Base   3. Header   4. Hero & page banner   5. Sections
   6. Components   7. Forms   8. Footer   9. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #0f2a4a;
  --navy-900: #0a1e36;
  --navy-700: #1c3f6b;
  --navy-050: #eef3f9;
  --saffron: #d9822b;
  --saffron-ink: #9a5410;   /* saffron dark enough for text on white */
  --saffron-soft: #f2b25c;
  --green: #2f7a5a;
  --ink: #1d2733;
  --muted: #5b6777;
  --line: #e2e7ee;
  --bg-soft: #f4f6f9;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, .06), 0 2px 8px rgba(15, 42, 74, .05);
  --shadow-md: 0 6px 24px rgba(15, 42, 74, .10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3, .h3 { font-size: 1.2rem; }
h4, .h4 { font-size: 1.05rem; }

p { color: #36424f; }
.lead { font-size: 1.1rem; font-weight: 400; color: #36424f; }
.text-muted-2 { color: var(--muted) !important; }

a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--saffron-ink); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 2000;
  background: #fff; color: var(--navy); padding: .6rem 1rem;
  border-radius: 6px; box-shadow: var(--shadow-md); font-weight: 600;
}

/* 3. Header ---------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #d6dfeb;
  font-size: .84rem;
  padding: .45rem 0;
}
.topbar .bi { color: var(--saffron-soft); margin-right: .4rem; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header .navbar { padding-top: .6rem; padding-bottom: .6rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; flex: 0 0 auto; }
.brand-name {
  display: block; font-family: var(--font-head); font-weight: 600;
  color: var(--navy); font-size: 1.12rem; line-height: 1.2;
}
.brand-sub {
  display: block; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
@media (max-width: 575.98px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .66rem; letter-spacing: .05em; }
}

.navbar-nav .nav-link {
  color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: .55rem .85rem !important; border-radius: 6px; position: relative;
}
.navbar-nav .nav-link:hover { color: var(--navy); background: var(--navy-050); }
.navbar-nav .nav-link.active { color: var(--navy); font-weight: 600; }
@media (min-width: 1200px) {
  .navbar-nav .nav-link.active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px;
    height: 2px; background: var(--saffron); border-radius: 2px;
  }
}
@media (max-width: 1199.98px) {
  .navbar-collapse { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; }
  .navbar-nav .nav-link.active { background: var(--navy-050); }
}
.navbar-nav .nav-link, .navbar-nav .btn { white-space: nowrap; }
@media (min-width: 1200px) { .site-header .brand { max-width: 330px; } }
.navbar-toggler { border: 1px solid var(--line); padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Buttons */
.btn { font-weight: 600; border-radius: 8px; padding: .62rem 1.15rem; font-size: .96rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-accent { background: var(--saffron-soft); border-color: var(--saffron-soft); color: var(--navy-900); }
.btn-accent:hover, .btn-accent:focus-visible { background: #f7c27c; border-color: #f7c27c; color: var(--navy-900); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover, .btn-outline-navy:focus-visible { background: var(--navy); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow .bi { transition: transform .15s ease; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* 4. Hero & page banner ---------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--navy-900); isolation: isolate; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 30, 54, .93) 0%, rgba(10, 30, 54, .82) 42%, rgba(10, 30, 54, .35) 100%);
}
.hero-inner { padding: clamp(3.5rem, 9vw, 7rem) 0; max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 600; margin-bottom: .9rem; }
.hero .tagline { font-family: var(--font-head); font-size: 1.15rem; color: var(--saffron-soft); font-weight: 500; margin-bottom: 1rem; }
.hero p { color: #e3eaf3; font-size: 1.05rem; }
@media (max-width: 767.98px) {
  .hero::after { background: rgba(10, 30, 54, .86); }
}

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--saffron-ink); margin-bottom: .6rem;
}
.hero .eyebrow, .page-banner .eyebrow, .cta-band .eyebrow { color: var(--saffron-soft); }

.page-banner { background: var(--navy); color: #fff; padding: 2.75rem 0 2.5rem; border-bottom: 4px solid var(--saffron); }
.page-banner h1 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); margin-bottom: .5rem; }
.page-banner p { color: #d6dfeb; max-width: 720px; margin: 0; }
.page-banner .breadcrumb { font-size: .86rem; margin-bottom: 1rem; }
.page-banner .breadcrumb a { color: #d6dfeb; }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: var(--saffron-soft); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #8fa3bd; }

/* In-page section navigation (Courses, Admissions) */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: .5rem 0; overflow-x: auto; white-space: nowrap; }
.subnav a {
  display: block; padding: .4rem .8rem; border-radius: 6px; font-size: .9rem;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
.subnav a:hover { background: var(--navy-050); color: var(--navy); }

/* 5. Sections -------------------------------------------------------------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head p { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sub-head { margin-top: 2.5rem; margin-bottom: 1rem; }

.rule { width: 48px; height: 3px; background: var(--saffron); border-radius: 2px; margin: .9rem 0 1.1rem; }
.center .rule { margin-left: auto; margin-right: auto; }

/* 6. Components ------------------------------------------------------------ */
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--bg-soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
figcaption { font-size: .84rem; color: var(--muted); margin-top: .5rem; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; height: 100%; box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: .6rem; }
.panel > :last-child { margin-bottom: 0; }
.panel-accent { border-top: 3px solid var(--navy); }
.panel-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy-050); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem;
}

/* Department / facility cards with photo */
.photo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.photo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.photo-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.photo-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.photo-card h3 { margin-bottom: .4rem; }
.photo-card p { font-size: .95rem; margin-bottom: .8rem; }
.photo-card .link-arrow { margin-top: auto; font-size: .93rem; }

.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { position: relative; padding-left: 1.5rem; margin-bottom: .45rem; color: #36424f; }
.plain-list li::before {
  content: ""; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--saffron);
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; color: #36424f; }
.check-list li::before {
  font-family: "bootstrap-icons"; content: "\F26E"; position: absolute; left: 0; top: 0;
  color: var(--green); font-size: 1.05rem;
}

/* Notice board */
.notice-board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.notice-board-head {
  background: var(--navy); color: #fff; padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600;
}
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: .95rem 1.25rem; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .5rem; border-radius: 4px; background: var(--navy-050); color: var(--navy); margin-bottom: .3rem;
}
.notice-tag.admission { background: #e8f3ee; color: #1f5a41; }
.notice-list p { margin: 0; font-size: .95rem; }
.notice-list .meta { font-size: .82rem; color: var(--muted); }

/* Placeholder marker — search the HTML for class="tbc" to find every
   detail that still needs to be supplied by the college. */
.tbc {
  background: #fff6e5; border: 1px dashed #d9a441; color: #6b4a0c;
  border-radius: 4px; padding: 0 .35em; font-size: .92em; font-weight: 500;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.on-dark .tbc { background: rgba(242, 178, 92, .1); border-color: rgba(242, 178, 92, .55); color: #f6d9a8; }

.note {
  border-left: 3px solid var(--saffron); background: #fffaf1; padding: .9rem 1.1rem;
  border-radius: 0 8px 8px 0; font-size: .94rem; color: #4a3b1f;
}
.note > :last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.table-wrap .table { margin: 0; font-size: .95rem; }
.table-wrap .table thead th {
  background: var(--navy); color: #fff; font-weight: 600; font-size: .86rem;
  letter-spacing: .02em; border: 0; padding: .8rem 1rem; white-space: nowrap;
}
.table-wrap .table td, .table-wrap .table tbody th { padding: .8rem 1rem; vertical-align: top; border-color: var(--line); }
.table-wrap .table tbody th { font-weight: 600; color: var(--navy); }
.table-wrap .table tbody tr:last-child > * { border-bottom: 0; }
.table-wrap .table tbody tr:nth-child(even) > * { background: #fafbfd; }
caption { caption-side: top; padding: 0 0 .6rem; color: var(--muted); font-size: .88rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 1.5rem 3.5rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem;
  border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head);
  font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.steps li::after {
  content: ""; position: absolute; left: 1.12rem; top: 2.5rem; bottom: .2rem; width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; margin-bottom: .25rem; padding-top: .3rem; }
.steps p { margin: 0; font-size: .96rem; }

/* Principal's message */
.message { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.message blockquote { margin: 0; }
.message .bi-quote { font-size: 2.2rem; color: var(--saffron); line-height: 1; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--navy-050); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex: 0 0 auto;
}

/* Structure list (About) */
.structure { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.structure li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.structure li:last-child { padding-bottom: 0; }
.structure li::before {
  content: ""; position: absolute; left: -7px; top: .4rem; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--navy);
}
.structure strong { display: block; color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.structure span { font-size: .94rem; color: #36424f; }

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-soft);
  border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .55rem; text-align: left;
  color: #fff; font-size: .84rem; font-weight: 500;
  background: linear-gradient(180deg, rgba(10, 30, 54, 0) 0%, rgba(10, 30, 54, .82) 100%);
}
.lightbox .modal-content { background: var(--navy-900); border: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox .cap { color: #e3eaf3; font-size: .92rem; padding: .8rem 1rem; }

/* Accordion (FAQ) */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: var(--navy-050); --bs-accordion-active-color: var(--navy); }
.accordion-item { border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .6rem; border: 1px solid var(--line) !important; }
.accordion-button { font-weight: 600; color: var(--navy); font-size: .98rem; padding: 1rem 1.15rem; }
.accordion-button:focus-visible { outline: 3px solid var(--saffron); outline-offset: -3px; }
.accordion-body { font-size: .96rem; color: #36424f; }
.accordion-body > :last-child { margin-bottom: 0; }

/* Contact blocks */
.contact-line { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .bi {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; background: var(--navy-050); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-line strong { display: block; color: var(--navy); font-size: .92rem; }
.contact-line span { font-size: .95rem; color: #36424f; }

.map-placeholder {
  border: 2px dashed #c5cfdc; border-radius: var(--radius); background: var(--bg-soft);
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; color: var(--muted);
}
.map-placeholder .bi { font-size: 2.2rem; color: #8fa3bd; margin-bottom: .6rem; }
.map-embed { border: 0; width: 100%; min-height: 360px; border-radius: var(--radius); display: block; }

/* Call-to-action band */
.cta-band { background: var(--navy); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #d6dfeb; margin: 0; }

/* 7. Forms ----------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .35rem; }
.form-label .req { color: #b42318; }
.form-control, .form-select { border-color: #c9d2de; padding: .65rem .85rem; border-radius: 8px; font-size: .98rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(28, 63, 107, .18); }
.form-text { font-size: .84rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status .alert { margin: 0 0 1.25rem; font-size: .95rem; }
.form-status .alert:focus { outline: none; }

/* 8. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #c9d4e2; font-size: .94rem; }
.site-footer .footer-main { padding: 3.5rem 0 2.5rem; }
.site-footer h2 {
  color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem;
}
.site-footer p { color: #c9d4e2; }
.site-footer a { color: #c9d4e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #9fb1c8; }
.footer-contact li { display: flex; gap: .65rem; }
.footer-contact .bi { color: var(--saffron-soft); flex: 0 0 auto; margin-top: .1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0; font-size: .86rem; }
.footer-bottom .btn-link { color: #c9d4e2; font-size: .86rem; padding: 0; font-weight: 400; text-decoration: underline; }
.footer-bottom .btn-link:hover { color: #fff; }

.credits-list { font-size: .88rem; padding-left: 1.1rem; }
.credits-list li { margin-bottom: .55rem; }

/* 9. Utilities ------------------------------------------------------------- */
.mw-prose { max-width: 70ch; }
@media print {
  .topbar, .site-header, .subnav, .site-footer, .cta-band, .btn { display: none !important; }
  .section { padding: 1rem 0; }
}
.req { color: #b42318; }
.text-navy { color: var(--navy); }
@media (max-width: 1199.98px) {
  .site-header .brand { flex: 1 1 0; }   /* keeps the menu button on the same row as the name */
}
.photo-card.no-photo { border-top: 3px solid var(--navy); }
.hero-media { filter: saturate(.9); }
.brand img { border-radius: 50%; object-fit: cover; }
.social-icons { display: flex; gap: .6rem; }
.social-icons span {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.05rem;
}
