/* Admissions page layout */
:root {
  --brand: #0b66d1;
  --brand-dark: #054fb0;
  --ink: #0b2b4a;
  --muted: #5a6b7b;
  --bg: #ffffff;
  --card: #f6f9ff;
  --ring: rgba(11, 102, 209, 0.25);
  --shadow: 0 18px 50px rgba(15, 34, 55, 0.08);
}

.page {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.center {
  text-align: center;
}
.accent {
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 102, 209, 0.2);
}
.btn.ghost {
  color: var(--brand);
  border: 1px solid rgba(11, 102, 209, 0.18);
  background: #fff;
}

.eyebrow {
  display: inline-block;
  background: #eef5ff;
  color: var(--brand);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  padding: 46px 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1698993082050-19ca94c62fb8?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center 35%;
  opacity: 0.2;
  filter: brightness(0.75);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 10px 0 8px;
}
.hero .sub {
  color: var(--muted);
  max-width: 52ch;
}

/* Enquiry card (form) */
.enquiry-card {
  background: #0e67d6;
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.enquiry-card h3 {
  margin: 4px 0 12px;
  font-size: 18px;
}
.enquiry-card form label {
  display: block;
  font-size: 12px;
  opacity: 0.95;
  margin-bottom: 10px;
}
.enquiry-card input,
.enquiry-card select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}
.enquiry-card input::placeholder {
  color: #e9f2ff;
  opacity: 0.8;
}
.enquiry-card input:focus,
.enquiry-card select:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.enquiry-card .btn {
  width: 100%;
  margin-top: 6px;
  background: #ff9a1a;
  border: none;
  color: #092b4a;
}
.enquiry-card .privacy {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 8px;
}

/* Form CTAs */
.form-ctas {
  padding: 56px 0 40px;
}
.form-ctas h2 {
  margin-bottom: 8px;
}
.form-ctas .sub {
  color: var(--muted);
  margin-bottom: 18px;
}
.cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8eef7;
  box-shadow: 0 10px 26px rgba(15, 34, 55, 0.06);
  text-decoration: none;
  color: inherit;
}
.card-cta:hover {
  transform: translateY(-2px);
  transition: 0.18s ease;
}
.card-cta .icon {
  font-size: 28px;
  background: #eef5ff;
  color: var(--brand);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

/* Admission Open */
.admission-open {
  padding: 56px 0;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.two-col {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  gap: 28px;
  align-items: center;
}
.admission-open .image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.admission-open .content h2 {
  margin-top: 0;
}
.steps {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(15, 34, 55, 0.05);
}
.step .num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef5ff;
  color: var(--brand);
  font-weight: 800;
}
.step h4 {
  margin: 4px 0 4px;
}

/* Documents */
.documents {
  padding: 52px 0;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.doc-card,
.doc-image {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 34, 55, 0.05);
}
.doc-card .ico {
  font-size: 28px;
  background: #eef5ff;
  color: var(--brand);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.doc-card h5 {
  margin: 6px 0 4px;
}
.doc-card.wide {
  grid-column: span 2;
}
.doc-image {
  padding: 0;
  overflow: hidden;
}
.doc-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* FAQs */
.faqs {
  padding: 52px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.faq {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 34, 55, 0.05);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  outline: none;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq[open] summary {
  color: var(--brand);
}
.faq .answer {
  margin-top: 8px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding: 36px 0 56px;
}
.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(15, 34, 55, 0.06);
}
.cta-flex h3 {
  margin: 0;
}

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.18, 0.67, 0.22, 1);
  will-change: transform, opacity;
}
.reveal-left {
  transform: translateX(-16px);
}
.reveal-right {
  transform: translateX(16px);
}
.reveal-in {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .enquiry-card {
    order: 2;
  }
  .hero-text {
    order: 1;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-card.wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .cta-row {
    grid-template-columns: 1fr;
  }
  .cta-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Documents — reference 3x3 tile layout (append) */
.doc-grid.docs-reference {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 0;
  margin-top: 20px;
}

/* Tile base */
.doc-card,
.doc-image {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 10px 24px rgba(15, 34, 55, 0.05);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.28s;
}
.doc-card.white {
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding-left: 34px;
}
.doc-card.blue {
  background: var(--brand);
  color: #fff;
}

/* inner content */
.card-inner {
  max-width: 320px;
  text-align: center;
}
.doc-card.white .card-inner {
  text-align: left;
}
.doc-card .ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.doc-card.white .ico {
  background: #eef5ff;
  color: var(--brand);
}
.doc-card h5 {
  margin: 6px 0 6px;
  font-size: 20px;
  font-weight: 700;
}
.doc-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.95;
}

/* image tile */
.doc-image {
  padding: 0;
  overflow: hidden;
}
.doc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* grid areas (explicit) */
.a {
  grid-area: 1 / 1 / 2 / 2;
} /* TL */
.b {
  grid-area: 1 / 2 / 2 / 3;
}
.c {
  grid-area: 1 / 3 / 2 / 4;
} /* TR */

.d {
  grid-area: 2 / 1 / 3 / 2;
}
.e {
  grid-area: 2 / 2 / 3 / 3;
}
.f {
  grid-area: 2 / 3 / 3 / 4;
}

.g {
  grid-area: 3 / 1 / 4 / 2;
}
.h {
  grid-area: 3 / 2 / 4 / 3;
}
.i {
  grid-area: 3 / 3 / 4 / 4;
} /* BR image */

/* corner radii */
.a {
  border-top-left-radius: 14px;
}
.c {
  border-top-right-radius: 14px;
}
.g {
  border-bottom-left-radius: 14px;
}
.i {
  border-bottom-right-radius: 14px;
}

/* diamond notch between tiles */
.doc-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  top: 50%;
  margin-top: -9px;
  right: -9px;
  background: inherit;
  z-index: 2;
}
.doc-card.notch-left::after {
  left: -9px;
  right: auto;
}
.doc-card.white::after {
  background: #fff;
}

/* hover lift */
.doc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 34, 55, 0.12);
}

/* small pulse dot on image bottom-left (decorative) */
.doc-image .pulse {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 rgba(11, 102, 209, 0.35);
  animation: doc-pulse 2.2s infinite ease-out;
}
@keyframes doc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 102, 209, 0.35);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(11, 102, 209, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 102, 209, 0);
  }
}

/* integrate with your existing reveal styles:
   use reveal-up -> add reveal-in (already present in your CSS as .reveal-in) */
.doc-card.reveal-up,
.doc-image.reveal-up {
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.52s ease,
    transform 0.52s cubic-bezier(0.18, 0.67, 0.22, 1);
}
.doc-card.reveal-up.reveal-in,
.doc-image.reveal-up.reveal-in {
  opacity: 1;
  transform: none;
}

/* responsive: 2-col for <=980px; single column for mobile */
@media (max-width: 980px) {
  .doc-grid.docs-reference {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
  }
  .a {
    grid-area: 1 / 1 / 2 / 2;
  }
  .b {
    grid-area: 1 / 2 / 2 / 3;
  }
  .c {
    grid-area: 2 / 1 / 3 / 2;
  }
  .d {
    grid-area: 2 / 2 / 3 / 3;
  }
  .e {
    grid-area: 3 / 1 / 4 / 2;
  }
  .f {
    grid-area: 3 / 2 / 4 / 3;
  }
  .g {
    grid-area: 4 / 1 / 5 / 2;
  }
  .h {
    grid-area: 4 / 2 / 5 / 3;
  }
  .i {
    grid-area: 5 / 1 / 6 / 3;
  } /* image spans both columns */
  .doc-card {
    padding: 18px;
  }
  .doc-card.white {
    padding-left: 20px;
    padding-right: 20px;
  }
  .doc-image img {
    height: 260px;
    object-position: center;
  }
}
@media (max-width: 560px) {
  .doc-grid.docs-reference {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .doc-card,
  .doc-image {
    padding: 14px;
    text-align: left;
  }
  .doc-image img {
    height: 220px;
    object-position: center;
    border-radius: 10px;
  }
}
