:root {
  --primary: #0F3D91;
  --primary-dark: #082B6F;
  --primary-light: #EAF2FF;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --background: #F6F8FC;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --text-main: #111827;
  --text-muted: #64748B;
  --text-light: #FFFFFF;
  --border: #E2E8F0;
  --shadow: rgba(15, 61, 145, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--background);
}

.sinhala-text {
  font-family: "Noto Sans Sinhala", "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}

body.preloading {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(140deg, #061737 0%, #082B6F 40%, #0F3D91 72%, #1244AA 100%);
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background decoration */
.preloader-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.preloader-orb-1 {
  width: clamp(280px, 42vw, 560px);
  height: clamp(280px, 42vw, 560px);
  top: -14%;
  right: -10%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 68%);
  animation: orbFloat 9s ease-in-out infinite;
}

.preloader-orb-2 {
  width: clamp(220px, 32vw, 440px);
  height: clamp(220px, 32vw, 440px);
  bottom: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(66, 126, 255, 0.26) 0%, transparent 68%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}

.preloader-orb-3 {
  width: clamp(130px, 20vw, 280px);
  height: clamp(130px, 20vw, 280px);
  top: 55%;
  left: 12%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.09) 0%, transparent 68%);
  animation: orbFloat 13s ease-in-out infinite 2s;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 74%);
  pointer-events: none;
}

/* Inner layout */
.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo mark */
.preloader-logo {
  display: grid;
  place-items: center;
  width: clamp(52px, 7vw, 72px);
  height: clamp(52px, 7vw, 72px);
  margin-bottom: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: logoReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

/* Name */
.preloader-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  width: min(92vw, 900px);
  color: #FFFFFF;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.preloader-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation-duration: 2.2s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-word-main {
  animation-name: nameRevealMain;
  animation-delay: 0.52s;
}

.preloader-word-soft {
  color: rgba(255, 255, 255, 0.62);
  animation-name: nameRevealSoft;
  animation-delay: 0.78s;
}

.preloader-cursor {
  width: 5px;
  height: clamp(82px, 9vw, 126px);
  background: linear-gradient(180deg, #FCD34D, var(--accent));
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.7), 0 0 36px rgba(245, 158, 11, 0.28);
  animation: cursorPulse 0.76s ease-in-out infinite alternate, cursorSlide 2s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

/* Tagline */
.preloader-tagline {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: clamp(0.74rem, 1.3vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: taglineReveal 0.8s ease 1.5s both;
}

/* Progress bar */
.preloader-progress-wrap {
  width: clamp(160px, 28vw, 280px);
  height: 2px;
  margin-top: clamp(28px, 4.5vw, 42px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  animation: fadeReveal 0.5s ease 1.8s both;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.6), #FCD34D, var(--accent));
  border-radius: 99px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
}

/* Skip button */
.preloader-cancel {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  animation: fadeReveal 0.5s ease 2.2s both;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.preloader-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes nameRevealMain {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }

  30%,
  72% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0.88;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes nameRevealSoft {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }

  28%,
  74% {
    opacity: 0.62;
    transform: translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0.45;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cursorPulse {
  from {
    opacity: 0.5;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.9), 0 0 44px rgba(245, 158, 11, 0.3);
  }
}

@keyframes cursorSlide {
  0% {
    transform: translateX(-72px) scaleY(0.85);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  46%,
  100% {
    transform: translateX(0) scaleY(1);
  }
}

@keyframes taglineReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(18px, -14px) scale(1.04);
  }

  66% {
    transform: translate(-10px, 18px) scale(0.97);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(246, 248, 252, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(246, 248, 252, 0.97);
  box-shadow: 0 4px 28px rgba(15, 61, 145, 0.09);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  font-weight: 900;
  box-shadow: 0 12px 24px var(--shadow);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links .nav-cta {
  color: var(--text-light);
  background: var(--primary);
}

.nav-links .nav-cta:hover {
  color: var(--text-light);
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  max-width: 1180px;
  min-height: calc(84vh - 75px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 66px) clamp(16px, 4vw, 48px) 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 8vw, 5.7rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
}

.btn-primary {
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 30px var(--shadow);
}

.btn-secondary {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  padding: 9px 12px;
  border: 1px solid #D6E6FF;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  overflow: visible;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% -8% 8% -18%;
  z-index: -2;
  opacity: 0.72;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(15, 61, 145, 0.08) 13.2% 13.9%, transparent 14.1% 24%, rgba(15, 61, 145, 0.07) 24.2% 24.9%, transparent 25.1%),
    linear-gradient(90deg, rgba(15, 61, 145, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 61, 145, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 55% 48%, #000 0 48%, transparent 76%);
  mask-image: radial-gradient(circle at 55% 48%, #000 0 48%, transparent 76%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 4%;
  z-index: -1;
  width: 62%;
  height: 18%;
  border-radius: 50%;
  background: rgba(15, 61, 145, 0.16);
  filter: blur(28px);
}

.hero-visual img {
  width: min(116%, 650px);
  max-width: none;
  max-height: 650px;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(15, 23, 42, 0.16));
  transform: translateX(22px);
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: min(260px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  color: var(--primary);
}

.hero-note span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 18px 50px var(--shadow);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px;
  color: var(--text-light);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 7px;
  font-size: 1.22rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) clamp(16px, 4vw, 48px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.about-grid,
.location-grid,
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-grid article,
.location-card,
.schedule-grid article,
.portal-preview,
details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 61, 145, 0.08);
}

.about-grid article,
.location-card,
.schedule-grid article {
  padding: 26px;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 900;
}

.about-grid p,
.location-card p,
.schedule-grid p,
.lms-copy p,
details p,
.contact-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.lms-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 34px;
  max-width: none;
  background: var(--surface-soft);
}

.lms-section>* {
  max-width: 560px;
}

.lms-copy {
  justify-self: end;
  padding-left: clamp(16px, 4vw, 48px);
}

.portal-preview {
  justify-self: start;
  width: min(100%, 460px);
  padding: 24px;
}

.portal-top {
  padding: 24px;
  border-radius: 8px;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.portal-top span,
.portal-top strong {
  display: block;
}

.portal-top span {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 800;
}

.portal-top strong {
  font-size: 1.65rem;
}

.countdown-label {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 16px;
}

.countdown-grid div {
  min-height: 92px;
  padding: 16px 10px;
  border: 1px solid #D6E6FF;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--primary-light));
}

.countdown-grid strong,
.countdown-grid span {
  display: block;
}

.countdown-grid strong {
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.countdown-grid span {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-list {
  display: grid;
  gap: 10px;
}

.portal-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--background);
  font-weight: 700;
}

.portal-list b {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.location-grid {
  grid-template-columns: repeat(4, 1fr);
}

.location-card span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-card.featured {
  color: var(--text-light);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.location-card.featured p,
.location-card.featured span {
  color: rgba(255, 255, 255, 0.76);
}

.timetable-section {
  padding-top: 40px;
}

.schedule-grid article {
  border-top: 4px solid var(--primary);
}

.schedule-grid span {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 900;
}

.timetable-grid {
  grid-template-columns: repeat(4, 1fr);
}

.timetable-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  line-height: 1.6;
}

.timetable-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.timetable-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.timetable-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.faq-section {
  padding-top: 40px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 0 22px;
}

summary {
  min-height: 68px;
  padding: 20px 0;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-bottom: 22px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto clamp(40px, 7vw, 72px);
  padding: clamp(32px, 6vw, 52px);
  border-radius: 8px;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 18px 50px var(--shadow);
}

.contact-section .eyebrow {
  color: var(--accent);
}

.contact-section h2 {
  margin-bottom: 10px;
}

.contact-section p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .btn-secondary {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

footer {
  padding: 28px 16px 36px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ─── PAGE ENHANCEMENTS ─────────────────────────────────────── */

/* Eyebrow accent dot */
.eyebrow::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: currentColor;
}

/* Section heading gold accent bar */
.section-heading::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
}

/* Hero note gentle float (desktop only) */
@media (min-width: 721px) {
  .hero-note {
    animation: floatNote 4s ease-in-out infinite;
  }
}

@keyframes floatNote {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Brand mark hover */
.brand-mark {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 18px 38px rgba(15, 61, 145, 0.24);
}

/* Card hover lift */
.about-grid article,
.location-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.about-grid article:hover,
.location-card:not(.featured):hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(15, 61, 145, 0.14);
}

.location-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(15, 61, 145, 0.32);
}

/* Schedule card: lift + top bar turns gold */
.schedule-grid article {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-top-color 0.25s ease;
}

.schedule-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(15, 61, 145, 0.14);
  border-top-color: var(--accent);
}

/* Icon box spin on card hover */
.icon-box {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-grid article:hover .icon-box {
  transform: scale(1.12) rotate(-4deg);
}

/* Button transitions */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 61, 145, 0.28);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--primary);
  background: var(--primary-light);
  border-color: #D6E6FF;
}

/* Trust strip item hover tint */
.trust-strip div {
  transition: background 0.22s;
}

.trust-strip div:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* Portal status dot ripple */
.portal-list b {
  position: relative;
}

.portal-list b::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotRipple 2.2s ease-out infinite;
}

@keyframes dotRipple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* FAQ custom +/× marker */
summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  display: none;
}

summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

details[open]>summary::after {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--text-light);
}

details {
  transition: box-shadow 0.22s ease;
}

details[open] {
  box-shadow: 0 18px 44px rgba(15, 61, 145, 0.1);
}

@media (max-width: 940px) {

  .hero,
  .lms-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-visual img {
    max-height: 500px;
  }

  .trust-strip,
  .about-grid,
  .location-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lms-copy,
  .portal-preview {
    justify-self: center;
    max-width: 720px;
    padding-left: 0;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 14px;
  }

  .preloader-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .preloader-name {
    flex-direction: column;
    gap: 4px;
    font-size: clamp(2.3rem, 13vw, 4rem);
    letter-spacing: 0;
  }

  .preloader-cursor {
    width: min(180px, 48vw);
    height: 4px;
    background: linear-gradient(90deg, #FCD34D, var(--accent));
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.65);
  }

  .preloader-progress-wrap {
    width: min(240px, 72vw);
  }

  .preloader-cancel {
    right: 18px;
    left: 18px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 20px 48px var(--shadow);
  }

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

  .nav-links a {
    min-height: 46px;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 4.7rem);
  }

  .hero {
    padding-top: 38px;
  }

  .trust-strip,
  .about-grid,
  .location-grid,
  .schedule-grid,
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual img {
    width: min(100%, 430px);
    max-height: 430px;
    transform: none;
  }

  .hero-note {
    right: 50%;
    bottom: 8px;
    transform: translateX(50%);
  }

  .trust-strip {
    margin-inline: 14px;
  }

  .trust-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .portal-preview {
    padding: 16px;
  }

  .contact-section {
    margin-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .preloader {
    display: none;
  }

  body.preloading {
    overflow: auto;
  }
}