/* ==========================================================================
   Chhatrapati Sambhaji Maharaj College of Engineering & Polytechnic
   Design system — single stylesheet, no per-page overrides.
   ========================================================================== */

:root {
  --navy: #0f2a4f;
  --navy-2: #163a68;
  --navy-3: #1e4a80;
  --gold: #c89b3c;
  --gold-dark: #a87c26;
  --gold-soft: #f3e6c8;
  --ink: #16243a;
  --muted: #5f7086;
  --soft: #f4f7fa;
  --soft-2: #eaf0f6;
  --line: #dde5ee;
  --paper: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(15, 42, 79, 0.1);
  --shadow-sm: 0 6px 20px rgba(15, 42, 79, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 42, 79, 0.16);

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 125px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 140px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 17px; }

p { margin: 0 0 18px; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Band 1 — utility strip
   ========================================================================== */

.top-strip {
  background: var(--navy);
  color: #c9daeb;
  font-size: 13px;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 40px;
  padding: 4px 0;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-item .icon { width: 15px; height: 15px; fill: var(--gold); flex: none; }

.top-item a:hover,
.top-strip-links a:hover { color: #fff; }

.top-strip-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-strip-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.top-strip-links .icon { width: 14px; height: 14px; fill: currentColor; }

.dte-code {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--gold);
}

/* ==========================================================================
   Band 2 — brand row
   ========================================================================== */

.site-header {
  background: var(--paper);
  position: relative;
  z-index: 60;
}

.brand-row {
  display: grid;
  grid-template-columns: 132px 1fr 300px;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.brand-identity { min-width: 0; }

.brand-trust {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.brand-affil {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0;
}

.brand-affil::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: none;
  background: var(--gold);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-contact-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-contact-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink);
}

.header-contact-list .icon { width: 16px; height: 16px; fill: var(--navy-3); flex: none; }
.header-contact-list a:hover { color: var(--navy-3); }

.social-row { display: flex; gap: 9px; }

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-row a:hover {
  background: var(--navy);
  color: var(--gold);
  transform: translateY(-2px);
}

.social-row .icon { width: 17px; height: 17px; fill: currentColor; }

/* Sticky shrink state */
.site-header.is-stuck {
  position: fixed;
  inset: 0 0 auto 0;
  box-shadow: 0 10px 34px rgba(15, 42, 79, 0.16);
}

.site-header.is-stuck .top-strip { display: none; }
.site-header.is-stuck .brand-row { min-height: 78px; }
.site-header.is-stuck .brand-logo img { width: 62px; height: 62px; }
.site-header.is-stuck .brand-trust { display: none; }
.site-header.is-stuck .brand-name { font-size: 17px; }
.site-header.is-stuck .brand-affil { font-size: 11px; }
.site-header.is-stuck .header-contact-list { display: none; }

.header-spacer { height: 0; transition: height 0.3s var(--ease); }
.header-spacer.is-stuck { height: 78px; }

/* ==========================================================================
   Band 3 — navigation
   ========================================================================== */

.main-nav {
  background: var(--navy-2);
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle .icon { width: 20px; height: 20px; fill: currentColor; }

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 17px;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link { background: rgba(255, 255, 255, 0.11); }

.nav-link .chev { width: 10px; height: 10px; fill: currentColor; transition: transform 0.25s var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-item:hover > .nav-link::after,
.nav-item.is-open > .nav-link::after { transform: scaleX(1); }

/* Active page — a direct link in the bar */
.nav-link[aria-current="page"] {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.11);
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Active page — inside a dropdown, so mark the section button instead.
   The child link carries aria-current but lives in a closed panel, so the
   section itself has to carry the visible indicator. */
.nav-item.is-section > .nav-link {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.11);
}

.nav-item.is-section > .nav-link::after { transform: scaleX(1); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 70;
}

.dropdown-wide { min-width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }

.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.dropdown a:hover,
.dropdown a[aria-current="page"] {
  background: var(--soft);
  color: var(--navy);
  font-weight: 600;
}

.nav-external::after {
  content: "↗";
  font-size: 11px;
  opacity: 0.6;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  padding: 0 24px;
  margin-left: auto;
  align-self: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}

.nav-cta:hover { background: var(--gold-dark); color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gold); }

.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy-3);
}

.text-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(5px); }

/* ==========================================================================
   Sections & typography helpers
   ========================================================================== */

.section { padding: 88px 0; }
.section-sm { padding: 62px 0; }
.section-muted { background: var(--soft); }
.section-dark { background: var(--navy); color: #d6e3f1; }
.section-dark h2,
.section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.section-dark .eyebrow { color: var(--gold); }

.lead { font-size: 18px; color: var(--muted); }
.section-dark .lead { color: #c3d4e6; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-heading h2 { margin: 0; }
.section-heading p { margin: 10px 0 0; color: var(--muted); max-width: 640px; }
.section-dark .section-heading p { color: #b9cde2; }

/* ==========================================================================
   Admission notice popup
   ========================================================================== */

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
}

.notice-modal[hidden] { display: none; }

.notice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 40, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: notice-fade 0.3s var(--ease);
}

.notice-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow-lg);
  animation: notice-pop 0.35s var(--ease);
}

@keyframes notice-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes notice-pop {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.notice-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 42, 79, 0.82);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.notice-modal__close:hover {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(90deg);
}

.notice-modal__image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--soft-2);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.notice-modal__body { padding: clamp(22px, 3.4vw, 34px); }

.notice-modal__body h2 {
  font-size: clamp(23px, 3vw, 30px);
  margin-bottom: 10px;
}

.notice-modal__body p { color: var(--muted); font-size: 15.5px; }

.notice-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

body.notice-open { overflow: hidden; }

@media (max-width: 480px) {
  .notice-modal { padding: 14px; }
  .notice-modal__image { max-height: 260px; }
  .notice-modal__actions .btn { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: clamp(520px, 68vh, 660px);
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 42, 79, 0.92) 0%, rgba(15, 42, 79, 0.62) 55%, rgba(15, 42, 79, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 780px;
}

.hero-content .eyebrow { color: var(--gold); }

.hero-content h1 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(38px, 5.4vw, 64px);
  letter-spacing: -1.4px;
}

.hero-content h1 span { color: var(--gold); }

.hero-text {
  font-size: 18px;
  line-height: 1.75;
  color: #d3e0ee;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.hero-dot.is-active { background: var(--gold); width: 52px; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 84px 0 62px;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image, url("assets/ace-building.jpg")) center/cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(15, 42, 79, 0.95), rgba(15, 42, 79, 0.72));
}

.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero h1 span { color: var(--gold); }
.page-hero .eyebrow { color: var(--gold); }

.page-hero-sub {
  font-size: 18px;
  color: #cbdcec;
  max-width: 660px;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 13px;
  color: #a9c2dc;
}

.breadcrumbs a { color: #fff; font-weight: 600; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: 0.6; }

/* ==========================================================================
   Inner page layout (content + sticky sidebar)
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: start;
}

.article {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 52px);
  box-shadow: var(--shadow-sm);
}

.article > h2:first-child,
.article > h3:first-child { margin-top: 0; }

.article-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 30px;
}

.article h3 {
  margin: 34px 0 14px;
  padding-left: 15px;
  position: relative;
}

.article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 5px;
  height: calc(100% - 6px);
  border-radius: 4px;
  background: linear-gradient(var(--gold), var(--navy-3));
}

.article h4 { margin: 26px 0 10px; color: var(--navy-2); }
.article p,
.article li { color: var(--muted); }
.article strong { color: var(--navy); }
.article a { color: var(--navy-3); font-weight: 600; }
.article a:hover { color: var(--gold-dark); }

.article ul,
.article ol { margin: 0 0 20px; padding-left: 22px; }
.article li { margin-bottom: 9px; }

.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

.lead-line {
  font-size: 17px;
  color: var(--navy-2);
  font-weight: 500;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  margin: 0 0 26px;
}

/* ==========================================================================
   Check lists
   ========================================================================== */

.check-list { list-style: none; padding: 0; margin: 0 0 24px; }

.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 16px;
  margin-bottom: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.check-list li:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }

.check-list .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  margin-top: 2px;
}

.check-list .tick::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.check-list p { margin: 0; font-size: 15px; color: var(--ink); }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.data-table caption {
  text-align: left;
  padding: 16px 18px 0;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}

.data-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) { background: var(--soft); }
.data-table tbody tr:hover { background: var(--gold-soft); }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar { position: sticky; top: 24px; display: grid; gap: 26px; }

.side-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-panel h3 {
  margin: 0;
  padding: 16px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.side-panel ul { list-style: none; margin: 0; padding: 0; }

.side-panel li { border-bottom: 1px solid var(--line); }
.side-panel li:last-child { border-bottom: 0; }

.side-panel a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.side-panel a:hover,
.side-panel a[aria-current="page"] {
  background: var(--soft);
  color: var(--navy);
  padding-left: 26px;
}

.side-panel a[aria-current="page"] {
  box-shadow: inset 4px 0 0 var(--gold);
}

.side-thumbs { padding: 16px; display: grid; gap: 14px; }

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

.side-thumb img {
  width: 62px;
  height: 50px;
  object-fit: cover;
  border-radius: 7px;
  flex: none;
}

.side-thumb span { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.side-thumb:hover span { color: var(--navy-3); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.card-image { position: relative; overflow: hidden; }

.card-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-image img { transform: scale(1.06); }

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(15, 42, 79, 0.9);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 20px; }
.card-body p { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.card-body .text-link { font-size: 13.5px; }

/* Feature / highlight tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.tile {
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.tile .icon { width: 34px; height: 34px; fill: var(--gold-dark); margin-bottom: 14px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 15px; color: var(--muted); }

/* Two column intro */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); }

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame img { width: 100%; height: 420px; object-fit: cover; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.stat {
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat span { font-size: 13.5px; color: var(--muted); }

/* Numbered feature list */
.numbered-list { display: grid; gap: 22px; }

.numbered-item { display: flex; gap: 20px; align-items: flex-start; }

.numbered-item .num {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}

.numbered-item h3 { margin: 4px 0 6px; font-size: 19px; }
.numbered-item p { margin: 0; font-size: 15px; color: var(--muted); }

/* ==========================================================================
   Profile / message blocks
   ========================================================================== */

.profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  margin-top: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.profile img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}

.profile-figure { margin: 0; }

.profile h3 { margin: 0 0 4px; font-size: 21px; }
.profile-role { font-family: var(--font-display); font-weight: 600; color: var(--gold-dark); font-size: 15px; }
.profile-org { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

.profile-quote {
  margin-top: 30px;
  padding: 26px 30px;
  background: var(--navy);
  color: #d8e5f2;
  border-radius: var(--radius);
  font-size: 17px;
  line-height: 1.8;
  border-left: 5px solid var(--gold);
}

/* ==========================================================================
   Document / download list
   ========================================================================== */

.doc-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }

.doc-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.doc-list a:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateX(5px);
}

.doc-list .icon { width: 22px; height: 22px; fill: var(--gold-dark); flex: none; }

.doc-list .doc-meta {
  margin-left: auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   Syllabus grid
   ========================================================================== */

.syllabus-grid { display: grid; gap: 20px; }

.syllabus-branch {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.syllabus-branch h3 {
  margin: 0;
  padding: 15px 20px;
  background: var(--soft-2);
  font-size: 17px;
}

.syllabus-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; }

.syllabus-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--navy);
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.syllabus-links a:hover { background: var(--navy); color: #fff; }
.syllabus-links .icon { width: 15px; height: 15px; fill: var(--gold-dark); }
.syllabus-links a:hover .icon { fill: var(--gold); }
.syllabus-links a.is-missing { border-style: dashed; border-color: var(--line); color: var(--muted); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--soft-2);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 13px;
  background: linear-gradient(transparent, rgba(15, 42, 79, 0.9));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(9, 22, 40, 0.94);
  padding: 24px;
}

.lightbox.is-open { display: grid; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 84vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: var(--gold); color: var(--navy); }

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #d5e2f0;
  font-size: 14px;
  text-align: center;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: start;
}

.contact-list { display: grid; gap: 20px; margin-top: 28px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-item .icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.contact-item h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.contact-item p,
.contact-item a { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.65; }
.contact-item a:hover { color: var(--navy-3); }

.enquiry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow);
}

.enquiry-card > p { color: var(--muted); font-size: 15px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d3dde8;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(22, 58, 104, 0.12);
}

.field input.has-error,
.field textarea.has-error,
.field select.has-error { border-color: #c0392b; }

.field-error {
  display: none;
  font-size: 12.5px;
  color: #c0392b;
  font-weight: 600;
}

.field-error.is-visible { display: block; }

.form-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 0 20px;
  padding: 13px 16px;
  background: var(--gold-soft);
  border: 1px solid #e6d3a8;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--navy);
}

.form-note .icon { width: 19px; height: 19px; fill: var(--gold-dark); flex: none; }

.form-success {
  display: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #eaf7ef;
  border: 1px solid #b7e2c7;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #1c6b3c;
  font-weight: 600;
}

.form-success.is-visible { display: flex; }
.form-success .icon { width: 19px; height: 19px; fill: #1c6b3c; flex: none; }

.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft-2);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding: 66px 0;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/ace-building.jpg") center/cover no-repeat;
  opacity: 0.22;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}

.cta-inner h2 { color: #fff; margin: 0 0 8px; }
.cta-inner p { margin: 0; color: #c6d8ea; max-width: 620px; }
.cta-inner .eyebrow { color: var(--gold); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy); color: #b9cde1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 66px 0 48px;
}

.footer-brand img { width: 92px; height: 92px; object-fit: contain; margin-bottom: 16px; }

.footer-brand h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.footer-brand p { font-size: 14px; margin: 0; }

.footer-col h4 {
  color: var(--gold);
  font-size: 13.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 14px; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; margin: 0 0 8px; line-height: 1.6; }
.footer-col .icon { width: 15px; height: 15px; fill: var(--gold); vertical-align: -2px; margin-right: 7px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}

.footer-bottom a:hover { color: var(--gold); }

.footer-bottom .social-row a { background: rgba(255, 255, 255, 0.12); color: #fff; }
.footer-bottom .social-row a:hover { background: var(--gold); color: var(--navy); }

/* ==========================================================================
   Floating action stack — scroll to top above WhatsApp
   ========================================================================== */

.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.whatsapp-fab,
.to-top-fab {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background 0.22s var(--ease), color 0.22s var(--ease);
}

.whatsapp-fab {
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: fab-pulse 2.4s ease-out infinite;
}

.whatsapp-fab .icon { width: 30px; height: 30px; fill: currentColor; }

.to-top-fab {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 42, 79, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.to-top-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top-fab:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.to-top-fab .icon { width: 24px; height: 24px; fill: currentColor; }

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive — nav collapses at 1024px
   ========================================================================== */

@media (max-width: 1100px) {
  .brand-row { grid-template-columns: 112px 1fr; }
  .header-contact {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
  }
}

@media (max-width: 1024px) {
  .brand-row { grid-template-columns: 96px 1fr; min-height: 104px; }
  .brand-logo img { width: 88px; height: 88px; }
  .brand-name { font-size: 18px; }
  .brand-affil { font-size: 11px; }

  .nav-toggle { display: flex; }

  .nav-inner {
    display: block;
    padding: 4px 0 14px;
  }

  .nav-inner[hidden] { display: none; }

  .nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 4px;
    font-size: 15px;
  }

  .nav-link::after { display: none; }

  .dropdown,
  .dropdown-wide {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-item.is-open .dropdown { display: block; }

  .dropdown a { padding: 11px 18px; color: #d3e0ee; font-size: 14px; }

  .nav-cta { margin: 16px 0 0; width: 100%; justify-content: center; height: 46px; }

  .page-layout { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { position: static; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .section { padding: 66px 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 96px; }

  .container { width: min(100% - 28px, 1180px); }

  .top-strip-inner { flex-wrap: wrap; gap: 8px 16px; padding: 9px 0; }
  .top-strip-links { margin-left: 0; width: 100%; gap: 14px; flex-wrap: wrap; }

  .brand-row { grid-template-columns: 74px 1fr; gap: 14px; min-height: 92px; }
  .brand-logo img { width: 68px; height: 68px; }
  .brand-name { font-size: 15px; margin-bottom: 4px; }
  .brand-trust { font-size: 11px; }
  .brand-affil { font-size: 9.5px; letter-spacing: 0.3px; gap: 7px; }
  .brand-affil::before { width: 20px; }

  .header-contact { padding-bottom: 12px; }
  .header-contact-list li { font-size: 12.5px; }
  .social-row a { width: 32px; height: 32px; }
  .social-row .icon { width: 15px; height: 15px; }

  .site-header.is-stuck .brand-row { min-height: 64px; }
  .site-header.is-stuck .brand-logo img { width: 46px; height: 46px; }
  .header-spacer.is-stuck { height: 64px; }

  .section { padding: 52px 0; }
  .section-sm { padding: 44px 0; }

  .hero { height: 520px; }
  .hero-text { font-size: 16px; }
  .hero-controls { bottom: 22px; }

  .page-hero { padding: 56px 0 44px; }
  .page-hero-sub { font-size: 16px; }

  .article { padding: 24px 20px; }
  .article-image { height: 230px; margin-bottom: 22px; }

  .notice-modal { padding: 14px; }
  .notice-modal__image { max-height: 300px; }
  .notice-modal__actions .btn { width: 100%; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; }

  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }

  .profile { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .profile img { width: 160px; height: 160px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .map-frame { height: 300px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner h2 { font-size: 28px; }

  .fab-stack { right: 16px; bottom: 16px; gap: 10px; }
  .whatsapp-fab,
  .to-top-fab { width: 50px; height: 50px; }
  .whatsapp-fab .icon { width: 26px; height: 26px; }
  .to-top-fab .icon { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn { width: 100%; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .gallery-item figcaption { font-size: 11.5px; padding: 20px 10px 9px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .whatsapp-fab::after { display: none; }
  .to-top-fab { transition: none; }
  .hero-slide { transition: opacity 0.001ms; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .top-strip,
  .main-nav,
  .site-header,
  .site-footer,
  .whatsapp-fab,
  .hero-controls,
  .notice-modal,
  .fab-stack,
  .sidebar { display: none !important; }

  body { color: #000; }
  .article { border: 0; box-shadow: none; padding: 0; }
}