/* Siddartha ITI — logo palette + light header (reference layout) */
:root {
  --royal-blue: #174a96;
  --royal-blue-dark: #0f2f64;
  --royal-blue-light: #3f78c7;
  --nav-text: #2f4666;
  --header-blue: #456fae;
  --accent-red: #cf2f43;
  --accent-red-hover: #ad2032;
  --saffron: #f4b227;
  --saffron-soft: #ffd070;
  --white: #ffffff;
  --text: #243247;
  --text-muted: #5f6f86;
  --subtitle-grey: #7f8ea5;
  --surface: #f8f7fb;
  --header-surface: #fdf4e9;
  --pill-active: #f0f3fa;
  --icon-circle: #d9e4f7;
  --shadow: 0 12px 30px rgba(15, 47, 100, 0.12);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-body: 1rem;
  --font-size-small: 0.95rem;
  --font-size-label: 0.9rem;
  --banner-image: url("https://res.cloudinary.com/dmkufygnc/image/upload/v1776322903/Shivasai_College_vx9efl.png");
  --banner-heading-color: #f8fbff;
  --banner-heading-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 14px rgba(4, 20, 44, 0.58),
    0 0 2px rgba(8, 30, 66, 0.42);
  /* Contact pictograms — flat orange */
  --contact-icon-orange: #ff7a1a;
  --mask-contact-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.75 0 1.99-.65 1.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/%3E%3C/svg%3E");
  --mask-contact-email: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z'/%3E%3Cpath fill='black' d='M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 002.572 0L22.5 6.908z'/%3E%3C/svg%3E");
  --mask-contact-location: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M172.3 501.7C26.97 291 0 269.4 0 192C0 85.96 85.96 0 192 0s192 85.96 192 192c0 77.38-26.97 99-172.3 309.7c-9.535 13.77-29.93 13.77-39.44 0zM192 272c44.11 0 80-35.89 80-80s-35.89-80-80-80s-80 35.89-80 80s35.89 80 80 80z'/%3E%3C/svg%3E");
  /* Footer — cool slate band, navy headings, muted accent icons */
  --footer-bg-start: #fff7ef;
  --footer-bg-mid: #f8ebf4;
  --footer-bg-end: #e8f2ff;
  --footer-heading: #314c76;
  --footer-text: #495f80;
  --footer-caption: #607494;
  --footer-link: var(--royal-blue);
  --footer-link-hover: var(--royal-blue-light);
  --footer-border: rgba(69, 111, 174, 0.2);
  --footer-legal: #637a9b;
  --footer-contact-icon-color: #6386b8;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size-base);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--surface);
  background-image: url("../images/page-bg.svg");
  background-size: 480px 480px;
  /* fixed caused tiles/images to repaint only after scroll (all viewports) */
  background-attachment: scroll;
  overflow-x: clip;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  overflow-wrap: break-word;
}

p,
li,
dd,
input,
textarea,
select {
  font-size: var(--font-size-body);
}

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

a {
  color: var(--royal-blue-light);
  text-decoration: none;
  transition: color 0.24s ease, opacity 0.24s ease;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--header-blue);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header (light bar + icons) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-surface);
  color: var(--nav-text);
  border-bottom: 1px solid rgba(23, 74, 150, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--header-blue);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--header-blue);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--subtitle-grey);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.08);
  color: var(--nav-text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #25d366;
}

.header-phone-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: #148a45;
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.45);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 1px solid rgba(30, 64, 175, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-blue);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--contact-icon-orange);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 1px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.9;
  display: block;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(144, 238, 144, 0.28);
  color: var(--contact-icon-orange);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 -1px 2px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.nav-link.is-active {
  background: linear-gradient(120deg, rgba(144, 238, 144, 0.35), rgba(46, 204, 113, 0.22));
  color: var(--contact-icon-orange);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.nav-link.is-active svg {
  opacity: 1;
}

.nav-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.has-dropdown {
  position: relative;
}

.nav-link--trigger .chevron {
  width: 13px;
  height: 13px;
  margin-left: 0.1rem;
  transition: transform 0.2s ease;
  color: #7488a6;
}

.has-dropdown.is-open .nav-link--trigger .chevron {
  transform: rotate(180deg);
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: none;
  z-index: 300;
}

.has-dropdown.is-open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--nav-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.dropdown a:hover {
  background: rgba(242, 183, 100, 0.2);
  color: var(--accent-red-hover);
}

.dropdown a:focus-visible {
  outline: 2px solid var(--royal-blue-light);
  outline-offset: 2px;
}

.page-hero {
  background-color: var(--royal-blue);
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center 56%;
  color: var(--white);
  padding: clamp(2rem, 5vw, 3.1rem) clamp(1rem, 4vw, 1.25rem) clamp(2.25rem, 5vw, 3.35rem);
  min-height: clamp(220px, 40vw, 300px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(38, 24, 70, 0.8) 0%,
    rgba(66, 43, 116, 0.55) 44%,
    rgba(30, 22, 58, 0.36) 100%
  ),
  radial-gradient(circle at 80% 20%, rgba(198, 171, 255, 0.22) 0%, rgba(198, 171, 255, 0) 46%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--banner-heading-color);
  text-shadow: var(--banner-heading-shadow);
}

.page-hero p {
  margin: 0.5rem 0 0;
  opacity: 0.95;
  max-width: 48ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.page-hero--centered .page-hero-inner {
  text-align: center;
  width: 100%;
}

.page-hero--centered p {
  margin: 0.5rem auto 0;
}

.page-hero--courses {
  --banner-image: url("https://res.cloudinary.com/dmkufygnc/image/upload/v1776322903/Shivasai_College_vx9efl.png");
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d93e52 0%, var(--accent-red) 55%, #a92435 100%);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #cc3246 0%, var(--accent-red-hover) 55%, #8d1827 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(173, 32, 50, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 208, 112, 0.18);
  border-color: rgba(255, 208, 112, 0.92);
}

.btn-gold {
  background: var(--saffron);
  color: var(--royal-blue-dark);
}

.btn-gold:hover {
  background: var(--saffron-soft);
}

.btn-outline-dark {
  background: transparent;
  color: var(--header-blue);
  border: 2px solid rgba(42, 79, 143, 0.35);
}

.btn-outline-dark:hover {
  background: rgba(242, 183, 100, 0.16);
}

/* Campus banner (Cloudinary + home carousel) */
.hero {
  position: relative;
  color: var(--white);
  padding: clamp(2rem, 5vw, 3.1rem) clamp(1rem, 4vw, 1.25rem) clamp(2.25rem, 5vw, 3.35rem);
  min-height: clamp(220px, 40vw, 300px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--royal-blue);
  background-size: cover;
  background-position: center 44%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--royal-blue);
  background-size: cover;
  background-position: center 44%;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(0.9) contrast(0.94) blur(1px);
  transform: scale(1.06);
  transform-origin: center;
  transition: opacity 0.8s ease, transform 7s ease, filter 0.8s ease;
  pointer-events: none;
}

.hero-slide--shivasai-college {
  background-size: 100% auto;
  background-position: center 24%;
}

.hero-slide--full-image {
  background-size: contain;
  background-position: center center;
}

.hero-bg .hero-slide.hero-slide--full-image {
  background-size: 100% 100%;
  background-position: center center;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.03) contrast(1.04) blur(0);
}

.hero-slide.is-exiting {
  z-index: 0;
  opacity: 0;
  transform: scale(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      112deg,
      rgba(36, 23, 66, 0.8) 0%,
      rgba(72, 43, 120, 0.56) 40%,
      rgba(33, 21, 61, 0.4) 100%
    ),
    radial-gradient(circle at 82% 18%, rgba(198, 171, 255, 0.22) 0%, rgba(198, 171, 255, 0) 48%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--banner-heading-color);
  text-shadow: var(--banner-heading-shadow);
}

.hero-copy .tagline {
  font-size: 1.05rem;
  opacity: 0.98;
  max-width: 36ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(135, 209, 255, 0.2);
  border: 1px solid rgba(183, 231, 255, 0.82);
  color: #f3f9ff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #ff5f72 0%, #e63e54 55%, #bb2138 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(184, 29, 53, 0.34);
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #ff7282 0%, #ef495e 55%, #c42a3f 100%);
  box-shadow: 0 14px 28px rgba(184, 29, 53, 0.4);
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f9ff;
  border: 2px solid rgba(205, 233, 255, 0.78);
}

.hero .btn-outline:hover {
  background: rgba(135, 209, 255, 0.2);
  border-color: rgba(191, 236, 255, 0.96);
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.hero-logo-wrap figure {
  margin: 0;
  text-align: center;
}

.hero-logo-wrap img {
  width: min(280px, 85vw);
  margin: 0 auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.25));
}

.hero-logo-wrap figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.section {
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1rem, 4vw, 1.25rem);
}

.section.alt {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

/* WebKit/mobile: backdrop-filter on a section with many images can delay painting
   until scroll; use an opaque panel for the gallery instead. */
.section--gallery.section.alt {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.96);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

main [id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top));
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  color: var(--royal-blue);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 122, 0.08);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--royal-blue);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card li {
  color: var(--text-muted);
}

.vision-mission-section .vision-mission-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vision-mission-section .vision-mission-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-blue), var(--saffron));
  opacity: 0.85;
}

.vision-mission-section .vision-mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26, 58, 122, 0.12);
  border-color: rgba(31, 63, 122, 0.18);
}

.vision-mission-section .vision-mission-card h3 {
  margin-bottom: 0.75rem;
}

.vision-mission-section .vision-mission-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.vision-mission-section .vision-mission-card li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.65;
}

.vision-mission-section .vision-mission-card li + li {
  margin-top: 0.55rem;
}

.vision-mission-section .vision-mission-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--royal-blue-light);
}

.about-highlight-section {
  padding-top: 2.25rem;
}

.about-highlight-section--overview {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
}

.about-highlight-section--principal {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-top: 1px solid rgba(74, 111, 174, 0.22);
  border-bottom: 1px solid rgba(74, 111, 174, 0.18);
}

.about-highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 2.5rem;
}

.about-highlight-grid--media-left {
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 2.5rem clamp(2.25rem, 4vw, 3.75rem);
}

.about-highlight-section--principal .about-highlight-grid--media-left {
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
}

.about-highlight-copy {
  max-width: 540px;
}

.about-highlight-grid--media-left .about-highlight-copy {
  max-width: none;
  width: 100%;
  min-width: 0;
}

.about-highlight-copy h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  color: var(--royal-blue-dark);
  line-height: 1.15;
}

.about-highlight-copy h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--royal-blue-light);
}

.about-highlight-copy p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: var(--font-size-body);
  line-height: 1.65;
}

.about-highlight-copy p + p {
  margin-top: 0.95rem;
}

.about-highlight-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.about-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(200, 79, 98, 0.25);
  background: #fff1f4;
  color: var(--royal-blue);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.1;
}

.about-highlight-tag::before {
  content: "◈";
  font-size: 0.74rem;
  color: var(--royal-blue-light);
}

.about-highlight-media {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.about-highlight-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: scale(1);
  transition: transform 0.5s ease, box-shadow 0.4s ease, filter 0.4s ease;
  will-change: transform;
}

.about-highlight-section--principal .about-highlight-media img {
  height: 560px;
}

.about-highlight-media:hover img,
.about-highlight-media:focus-within img {
  transform: scale(1.04);
  filter: saturate(1.08);
  box-shadow: 0 20px 42px rgba(26, 58, 122, 0.2);
}

.about-highlight-copy p,
.about-highlight-copy .about-highlight-tags {
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.reveal-up {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(34px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.reveal-delay-5 {
  transition-delay: 0.4s;
}

.reveal-left-line {
  opacity: 0;
  transform: translateX(-34px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left-line.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.section--gallery.reveal-up,
.section--gallery.reveal-up:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}

.gallery-grid .reveal-up,
.gallery-grid .reveal-up:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}

.section--team.reveal-up,
.section--team.reveal-up:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}

.section--team .section-head.reveal-up,
.section--team .section-head.reveal-up:not(.is-visible),
.section-head--team.reveal-up,
.section-head--team.reveal-up:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}

/* No scroll-in fade; hover motion allowed below */
.team-grid .team-card.reveal-up:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.is-visible,
  .reveal-left-line,
  .reveal-left-line.is-visible,
  .about-highlight-copy p,
  .about-highlight-copy .about-highlight-tags,
  .about-highlight-media img,
  .vision-mission-section .vision-mission-card {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }

  .course-detail-card:hover,
  .course-detail-card:focus-within,
  .course-preview-card:hover,
  .course-preview-card:focus-within {
    transform: none !important;
  }

  .gallery-item,
  .gallery-item:hover,
  .gallery-item:focus-within,
  .gallery-item--photo img,
  .gallery-item--photo:hover img,
  .gallery-item--photo:focus-within img {
    transition: none !important;
    transform: none !important;
  }
}

.icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2d9, #fce5bd);
  color: var(--header-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(49, 94, 168, 0.2);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--royal-blue);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26, 58, 122, 0.1);
  display: flex;
  gap: 0.5rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list dt {
  font-weight: 700;
  color: var(--royal-blue);
  min-width: 5rem;
}

.contact-list dd {
  margin: 0;
  color: var(--text-muted);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(26, 58, 122, 0.15);
  min-height: 280px;
  background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-panel {
  padding: 1.6rem;
  background: #f8fafc;
}

.contact-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-info h2 {
  margin: 0;
  color: var(--royal-blue-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.contact-intro {
  margin: 0.65rem 0 1rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.reach-card {
  background: transparent;
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  padding: 1.15rem 1.1rem;
  box-shadow: none;
}

.reach-card h3 {
  margin: 0 0 0.85rem;
  color: var(--footer-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.reach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  color: var(--footer-text);
  font-size: var(--font-size-small);
}

.reach-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.reach-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-top: 0.1rem;
  background-color: var(--contact-icon-orange);
  filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(1px 1px 0 rgba(102, 55, 12, 0.55));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.reach-icon--location {
  -webkit-mask-image: var(--mask-contact-location);
  mask-image: var(--mask-contact-location);
}

.reach-icon--phone {
  -webkit-mask-image: var(--mask-contact-phone);
  mask-image: var(--mask-contact-phone);
}

.reach-icon--email {
  -webkit-mask-image: var(--mask-contact-email);
  mask-image: var(--mask-contact-email);
}

.reach-item-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.reach-item-body strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-text);
}

.reach-item-body a {
  color: var(--footer-text);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.reach-item-body a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-benefits {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-benefits li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

.contact-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.03rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: #16a34a;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(15, 35, 77, 0.08);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  color: #1e293b;
  font-size: var(--font-size-label);
  font-weight: 600;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.required-mark {
  color: #b42318;
  font-weight: 700;
}

.required-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d6deea;
  border-radius: 8px;
  background: #ffffff;
}

.phone-prefix {
  padding: 0.65rem 0.2rem 0.65rem 0.75rem;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 600;
  user-select: none;
}

.phone-input-wrap input {
  border: 0;
  box-shadow: none;
  padding-left: 0.35rem;
}

.phone-input-wrap:focus-within {
  border-color: #5b8de3;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.field-error {
  min-height: 1rem;
  margin-top: 0.05rem;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.phone-input-wrap input.is-invalid {
  box-shadow: none;
}

.phone-input-wrap:has(input.is-invalid) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.form-status {
  min-height: 1.15rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #087443;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #5b8de3;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-submit {
  background: linear-gradient(
    180deg,
    #f94a51 0%,
    #ed1c24 42%,
    #c41219 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom-color: rgba(0, 0, 0, 0.22);
  border-radius: 9px;
  min-width: 170px;
  justify-self: start;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 3px 6px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.contact-submit:hover {
  background: linear-gradient(
    180deg,
    #e83840 0%,
    #cf1018 45%,
    #a50e14 100%
  );
  border-bottom-color: rgba(0, 0, 0, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-submit:active {
  background: linear-gradient(180deg, #b81016 0%, #cf1018 55%, #d01a22 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(1px);
}

.contact-map-wrap {
  margin-top: 1.25rem;
  padding: 0 0.25rem;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-map-wrap h2 {
  margin: 0;
  color: var(--royal-blue-dark);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.2;
}

.contact-map-wrap h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: #2d5aa8;
}

.contact-map-wrap p {
  margin: 0.6rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.map-embed--live {
  padding: 0;
  min-height: clamp(280px, 46vw, 460px);
  aspect-ratio: 1024 / 465;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 35, 77, 0.08);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.map-embed--live iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  border: 0;
  display: block;
}

/* Red place name beside the pin (matches Google Maps on-map label style) */
.map-place-label {
  position: absolute;
  left: calc(50% + 16px);
  top: 50%;
  transform: translateY(calc(-50% - 22px));
  margin: 0;
  padding: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  color: #c5221f;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .map-place-label {
    font-size: 0.75rem;
    left: calc(50% + 12px);
    transform: translateY(calc(-50% - 18px));
  }

  .map-embed--live {
    min-height: 290px;
    aspect-ratio: 16 / 10;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  /* start: avoids WebKit grid + aspect-ratio + stretched rows not sizing until scroll */
  align-items: start;
}

.gallery-category + .gallery-category {
  margin-top: 2rem;
}

.gallery-category h2 {
  margin: 0 0 0.9rem;
  font-size: 1.4rem;
  color: var(--royal-blue-dark);
}

.gallery-item {
  margin: 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #dbeafe, #e0e7ff);
  border: 1px solid rgba(26, 58, 122, 0.1);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--royal-blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 35, 77, 0.12);
  border-color: rgba(31, 63, 122, 0.18);
}

.gallery-item--photo {
  position: relative;
  padding: 0;
  display: block;
  border: 1px solid rgba(26, 58, 122, 0.12);
  overflow: hidden;
  min-height: 0;
  /* Fallback: padding box for 4:3. Prefer aspect-ratio below — WebKit often skips painting
     absolute imgs in zero-height boxes until scroll without it. */
  aspect-ratio: auto;
  height: 0;
  padding-bottom: 75%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@supports (aspect-ratio: 1) {
  .gallery-item--photo {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 4 / 3;
  }
}

.gallery-item--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.gallery-item--photo:hover img,
.gallery-item--photo:focus-within img {
  transform: scale(1.02);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(15, 35, 77, 0), rgba(15, 35, 77, 0.85));
  display: block;
  opacity: 0.86;
  transition: opacity 0.24s ease;
}

.gallery-item--photo:hover .gallery-caption,
.gallery-item--photo:focus-within .gallery-caption {
  opacity: 1;
}

.gallery-item--placeholder {
  position: relative;
  background: linear-gradient(145deg, #f7faff, #eaf1ff);
  color: var(--royal-blue-dark);
  font-weight: 700;
}

.gallery-item--placeholder::before {
  content: "Campus";
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 63, 122, 0.55);
}

.course-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.section--featured-trade {
  padding-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-bottom: clamp(2.6rem, 5vw, 3.8rem);
}

.section--featured-trade .section-inner {
  max-width: min(1440px, calc(100vw - 2.5rem));
}

.section--featured-trade .course-detail-card {
  border-radius: 18px;
  border: 1px solid #c5d8f0;
  background:
    linear-gradient(160deg, #ffffff 0%, #f4f8ff 52%, #eef7ff 100%);
  box-shadow:
    0 14px 30px rgba(15, 41, 85, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  padding: 1.3rem;
  grid-template-columns: minmax(420px, 46%) minmax(0, 1fr);
  gap: 1.25rem;
}

.section--featured-trade .course-detail-card:hover,
.section--featured-trade .course-detail-card:focus-within {
  transform: translateY(-7px) scale(1.002);
  border-color: #8db5de;
  background-image:
    linear-gradient(160deg, #ffffff 0%, #eff5ff 100%),
    linear-gradient(120deg, #1f4e88, #2f79b7, #56a9d7);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 20px 40px rgba(24, 67, 126, 0.2),
    0 0 0 1px rgba(86, 145, 206, 0.14),
    0 0 60px rgba(86, 169, 215, 0.18);
}

.section--featured-trade .course-detail-image {
  height: 330px;
  border-radius: 14px;
  border: 1px solid #b9d2ee;
  box-shadow:
    0 14px 28px rgba(13, 45, 92, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.section--featured-trade .course-detail-body h3 {
  color: #0f325f;
}

.section--featured-trade .course-detail-badge {
  background: linear-gradient(135deg, #1f4f8a, #2f79b7, #54acd9);
  box-shadow: 0 6px 14px rgba(34, 95, 164, 0.28);
}

.section--featured-trade .course-detail-actions .btn-primary {
  background: linear-gradient(135deg, #1f4f8a, #2d71ac, #3f95c3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 22px rgba(27, 80, 144, 0.28);
}

.section--featured-trade .course-detail-actions .btn-primary:hover {
  background: linear-gradient(135deg, #1a4272, #265f95, #347fa9);
  box-shadow: 0 14px 28px rgba(23, 64, 118, 0.34);
}

.course-preview-grid--single {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.section-head--trades h2 {
  font-size: 2rem;
  line-height: 1.15;
  color: #0f2e57;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.section-head--trades p {
  font-size: 1rem;
  color: #4d6684;
  max-width: 52ch;
}

.section-head--trades h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, #1e4f88, #2f7bb9, #57abd7);
}

.course-preview-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d5e0ef;
  padding: 0;
  background: #ffffff;
  box-shadow:
    0 2px 10px rgba(15, 35, 77, 0.06),
    0 18px 34px rgba(15, 35, 77, 0.09);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  isolation: isolate;
}

.course-preview-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.28s ease;
  transform: scaleX(0.2);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    #1f3f7a 0%,
    #335a9a 45%,
    #6f95d3 100%
  );
}

.course-preview-card:hover::before,
.course-preview-card:focus-within::before {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .course-preview-card:hover::before,
  .course-preview-card:focus-within::before {
    transform: none;
  }
}

.course-preview-link {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.95rem 0.95rem 1rem;
}

.course-preview-grid--single .course-preview-link {
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.1rem;
}

.course-preview-link:hover,
.course-preview-link:focus-visible {
  text-decoration: none;
}

.course-preview-card:hover,
.course-preview-card:focus-within {
  transform: translateY(-7px);
  border-color: #bcd0e8;
  box-shadow:
    0 8px 22px rgba(24, 50, 93, 0.1),
    0 24px 46px rgba(24, 50, 93, 0.16);
}

.course-preview-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid #dde7f5;
}

.course-preview-grid--single .course-preview-image {
  height: 100%;
  min-height: 320px;
  max-height: 460px;
}

.course-preview-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.95rem;
  padding: 1rem 0.2rem 0.15rem;
  flex: 1;
}

.course-preview-grid--single .course-preview-body {
  justify-content: center;
  padding: 0.75rem 0.25rem 0.75rem;
  gap: 1.15rem;
}

.course-preview-meta {
  min-width: 0;
  flex: 1;
}

.course-preview-meta h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #102748;
  line-height: 1.25;
}

.course-preview-grid--single .course-preview-meta h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
}

.course-preview-description {
  margin: 0 0 0.85rem;
  color: #4d5f79;
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 56ch;
}

.course-preview-meta p {
  margin: 0.4rem 0 0;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: #f5f8fd;
  border: 1px solid #d4e0f0;
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
}

.course-preview-grid--single .course-preview-meta p {
  max-width: 340px;
  font-size: 0.98rem;
  padding: 0.55rem 0.8rem;
}

.course-preview-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  padding: 0;
}

.course-preview-highlights li {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #244673;
  background: #edf4ff;
  border: 1px solid #cdddf3;
  line-height: 1.2;
}

.course-preview-meta p strong {
  color: #31558d;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.course-preview-meta p span {
  color: #0f172a;
  font-weight: 700;
}

.course-preview-arrow {
  color: #1b3e74;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  align-self: flex-start;
  text-transform: uppercase;
  background: #eaf2ff;
  border: 1px solid #c6d9f2;
  border-radius: 7px;
  padding: 0.4rem 0.65rem;
}

.course-preview-grid--single .course-preview-arrow {
  font-size: 0.86rem;
  padding: 0.6rem 1rem;
}

.course-preview-cta {
  text-align: center;
  margin-top: 1.2rem;
}

.course-preview-cta .btn-outline-dark {
  border: 2px solid rgba(42, 79, 143, 0.36);
  background: #fff8ec;
  color: #274a86;
  font-weight: 700;
  padding: 0.5rem 1.35rem;
  box-shadow: 0 2px 0 rgba(45, 90, 168, 0.12);
}

.course-preview-cta .btn-outline-dark:hover {
  background: #fff0d6;
  border-color: rgba(183, 66, 85, 0.52);
  transform: translateY(-1px);
}

.course-detail-list {
  display: grid;
  gap: 1.25rem;
  overflow-x: hidden;
}

.course-detail-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid #d8e3f2;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 22px rgba(22, 39, 75, 0.08);
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, min(300px, 100%)) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  transition:
    transform 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.course-detail-card:hover,
.course-detail-card:focus-within {
  transform: translateY(-6px);
  border-color: #a7bddc;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow:
    0 16px 30px rgba(15, 47, 100, 0.14),
    0 0 0 1px rgba(80, 120, 186, 0.14);
}

.course-detail-card.is-hidden {
  display: none;
}

@keyframes course-card-enter-from-left {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes course-card-enter-from-right {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

/* Reveal on scroll: hidden until .is-in-view (Intersection Observer) */
.course-detail-card--scroll-reveal.course-detail-card--enter-left:not(.is-in-view) {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(22px) scale(0.98);
}

.course-detail-card--scroll-reveal.course-detail-card--enter-right:not(.is-in-view) {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(22px) scale(0.98);
}

.course-detail-card--scroll-reveal.is-in-view.course-detail-card--enter-left {
  animation: course-card-enter-from-left 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.course-detail-card--scroll-reveal.is-in-view.course-detail-card--enter-right {
  animation: course-card-enter-from-right 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .course-detail-card--scroll-reveal.course-detail-card--enter-left:not(.is-in-view),
  .course-detail-card--scroll-reveal.course-detail-card--enter-right:not(.is-in-view) {
    opacity: 1;
    transform: none;
  }

  .course-detail-card--scroll-reveal.is-in-view.course-detail-card--enter-left,
  .course-detail-card--scroll-reveal.is-in-view.course-detail-card--enter-right {
    animation: none;
  }
}

.course-detail-image {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5ecf6;
}

.course-detail-body h3 {
  margin: 0.5rem 0 0.35rem;
  color: var(--royal-blue-dark);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.2;
}

.course-detail-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

.course-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-red);
  color: #ffffff;
  min-width: 34px;
  padding: 0.12rem 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.course-detail-meta {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid #e5ecf6;
  display: grid;
  gap: 0.35rem;
}

.course-detail-meta li {
  color: #475569;
  font-size: 0.94rem;
}

.course-detail-meta li strong {
  color: #1e293b;
  margin-right: 0.3rem;
}

.course-detail-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.placements-section {
  background: linear-gradient(180deg, #f5f8fc 0%, #fafbfd 45%, #f6f8fb 100%);
  border-top: 1px solid #e4ebf5;
  border-bottom: 1px solid #e8eef4;
}

.section-head--placements h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--royal-blue-dark);
  margin-bottom: 0.35rem;
}

.section-head--placements h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  margin: 0.45rem auto 0;
  background: var(--accent-red);
}

.section-head--placements p {
  font-size: 1rem;
  color: var(--text-muted);
}

.placements-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.placement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 200px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d9e5f4;
  box-shadow:
    0 1px 2px rgba(15, 35, 77, 0.04),
    0 8px 24px rgba(15, 35, 77, 0.06);
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.placement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(130deg, rgba(57, 96, 158, 0.6), rgba(120, 160, 222, 0.45), rgba(57, 96, 158, 0.35))
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.placement-card:hover {
  transform: translateY(-6px);
  border-color: #b9cde7;
  box-shadow:
    0 10px 20px rgba(15, 35, 77, 0.08),
    0 18px 42px rgba(15, 35, 77, 0.12);
}

.placement-card:hover::before {
  opacity: 0.95;
}

.placement-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 1rem 1rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
  border: 1px solid #e8edf4;
  transition: border-color 0.28s ease, background 0.28s ease;
}

.placement-card:hover .placement-logo-wrap {
  border-color: #c9d8ec;
  background: #ffffff;
}

.placement-logo {
  width: 100%;
  max-height: 100px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: grayscale(0.14) saturate(1.02);
  transition: filter 0.28s ease, transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.placement-card:hover .placement-logo {
  filter: grayscale(0) saturate(1.06);
  transform: scale(1.04);
}

.placement-card h3 {
  margin: 0;
  padding: 0.75rem 0.85rem 0.95rem;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--royal-blue-dark);
  background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
}

@media (prefers-reduced-motion: reduce) {
  .placement-card:hover {
    transform: none;
  }

  .placement-card:hover .placement-logo {
    transform: none;
  }
}

.section-head--team h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--royal-blue-dark);
  margin-bottom: 0.35rem;
}

.section-head--team h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  margin: 0.45rem auto 0;
  background: var(--accent-red);
}

.section-head--team p {
  font-size: 1rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.team-grid > .team-card {
  min-width: 0;
}

.section--home-staff {
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
  border-top: 1px solid #e6edf8;
  border-bottom: 1px solid #e6edf8;
}

.staff-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.staff-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.staff-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.staff-track {
  --staff-visible: 4;
  display: flex;
  gap: 1.15rem;
}

.staff-slide {
  flex: 0 0 calc((100% - (1.15rem * (var(--staff-visible) - 1))) / var(--staff-visible));
  min-width: 0;
}

.staff-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #c8d7ec;
  background: #ffffff;
  color: var(--royal-blue-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.staff-arrow:hover {
  background: #eff5ff;
  border-color: #a8c3ea;
  transform: translateY(-1px);
}

.staff-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.home-staff-cta {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.team-card {
  background: #ffffff;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 35, 77, 0.08);
  padding: 0.95rem 0.95rem 1rem;
  text-align: center;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.team-card.reveal-up {
  opacity: 1;
  transform: none;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

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

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-2px);
  border-color: #bfd0ea;
  box-shadow: 0 12px 28px rgba(15, 35, 77, 0.12);
}

.team-card.reveal-up.is-visible:hover,
.team-card.reveal-up.is-visible:focus-within {
  transform: translateY(-2px);
}

/* Portrait frame: padding hack fallback; aspect-ratio preferred (more reliable on mobile WebKit). */
.team-photo-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 120%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5ecf6;
  background: #f8fafc;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@supports (aspect-ratio: 1) {
  .team-photo-wrap {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 5 / 6;
  }
}

.team-photo {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Avoid translateZ on the img: iOS Safari can fail to paint it inside overflow:hidden + radius. */
  transform: scale(1);
  transition: transform 0.35s ease;
}

.team-card:hover .team-photo,
.team-card:focus-within .team-photo {
  transform: scale(1.02);
}

.team-card:hover .team-photo-wrap,
.team-card:focus-within .team-photo-wrap {
  border-color: #cddcf2;
  box-shadow: inset 0 0 0 1px rgba(18, 65, 146, 0.06);
}

.team-card h3 {
  margin: 0.85rem 0 0.28rem;
  color: var(--royal-blue-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.team-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card.reveal-up,
  .team-card.reveal-up.is-visible,
  .team-photo-wrap,
  .team-photo {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.advantages-section {
  background: linear-gradient(180deg, #fffdf8 0%, #f8f7fb 100%);
  border-top: 1px solid #e6edf8;
  border-bottom: 1px solid #e6edf8;
}

.section-head--advantages {
  margin-bottom: 1.9rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #fff2d9;
  color: #8e4c00;
  border: 1px solid #f5d7a1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.78rem;
}

.section-head--advantages h2 {
  margin-bottom: 0.35rem;
  color: var(--royal-blue-dark);
  font-size: 2rem;
  line-height: 1.15;
}

.section-head--advantages p {
  color: #5b6b84;
  font-size: 1rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.advantage-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d3e2f5;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(22, 39, 75, 0.08);
  padding: 1.35rem 1.25rem 1.25rem;
  min-height: 208px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.advantage-card:hover,
.advantage-card:focus-within {
  transform: translateY(-7px);
  border-color: rgba(54, 94, 158, 0.5);
  box-shadow:
    0 14px 28px rgba(22, 39, 75, 0.14),
    0 0 0 1px rgba(54, 94, 158, 0.18);
}

.advantage-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(33, 78, 145, 0.9) 0%, rgba(99, 140, 204, 0.9) 100%);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.advantage-card:hover::before,
.advantage-card:focus-within::before {
  transform: scaleX(1);
}

.advantage-card:hover .advantage-icon,
.advantage-card:focus-within .advantage-icon {
  transform: translateY(-1px) scale(1.05);
  background: linear-gradient(180deg, #ffe7ec 0%, #ffd4de 100%);
  border-color: #efb6c2;
}

@media (prefers-reduced-motion: reduce) {
  .advantage-card,
  .advantage-icon,
  .advantage-card::before {
    transition: none;
  }

  .advantage-card:hover,
  .advantage-card:focus-within {
    transform: none;
    box-shadow: 0 10px 24px rgba(22, 39, 75, 0.08);
  }
}

.advantage-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.62rem;
}

.advantage-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff2f5 0%, #ffe3e8 100%);
  color: #b74356;
  border: 1px solid #f6c7d0;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.advantage-icon svg {
  width: 18px;
  height: 18px;
}

.advantage-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--royal-blue-dark);
}

.advantage-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #42526b;
}

.footer-branding-copy {
  margin: 0;
  font-size: var(--font-size-label);
  color: var(--footer-text);
}

.gallery-filter {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-filter label {
  font-weight: 600;
}

.gallery-filter select {
  min-width: 220px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  background: linear-gradient(
    168deg,
    var(--footer-bg-start) 0%,
    var(--footer-bg-mid) 48%,
    var(--footer-bg-end) 100%
  );
  color: var(--footer-text);
  padding: 2rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--footer-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.footer-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: block;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-brand-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-brand-lead .footer-brand-heading {
  line-height: 1.3;
}

.site-footer .footer-brand-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--footer-heading);
  letter-spacing: 0.02em;
}

.footer-logo-caption {
  margin: 0;
  font-size: var(--font-size-small);
  line-height: 1.55;
  color: var(--footer-caption);
  max-width: 26rem;
}

.footer-title-logo {
  width: 180px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
  flex-shrink: 0;
  /* PNG includes transparent left padding; nudge so the emblem aligns with heading text */
  margin-left: -35px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.footer-contact-item a {
  color: inherit;
}

.footer-contact-item a:hover {
  color: var(--footer-link-hover);
}

.footer-contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  color: var(--contact-icon-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 26px;
  box-shadow: none;
  /* embossed look */
  filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(1px 1px 0 rgba(102, 55, 12, 0.55));
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.9),
    1px 1px 0 rgba(102, 55, 12, 0.5);
  margin-top: 1px;
}

.footer-contact-icon--location {
  font-size: 0;
  background-color: currentColor;
  -webkit-mask-image: var(--mask-contact-location);
  mask-image: var(--mask-contact-location);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.footer-contact-icon--phone,
.footer-contact-icon--email {
  font-size: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.footer-contact-icon--phone {
  -webkit-mask-image: var(--mask-contact-phone);
  mask-image: var(--mask-contact-phone);
}

.footer-contact-icon--email {
  -webkit-mask-image: var(--mask-contact-email);
  mask-image: var(--mask-contact-email);
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--footer-heading);
}

.site-footer a {
  color: var(--footer-text);
  font-weight: 400;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .dropdown a {
  color: var(--footer-text);
  font-weight: 400;
  font-size: var(--font-size-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Match header course dropdown hover (saffron wash + accent text) */
.site-footer .dropdown a:hover {
  background: rgba(242, 183, 100, 0.2);
  color: var(--accent-red-hover);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

/* Footer — Courses: same font/weight/color as other footer links (e.g. About) */
.site-footer .footer-dropdown-trigger.nav-link {
  padding: 0;
  width: 100%;
  justify-content: flex-start;
  font-size: var(--font-size-body);
  font-weight: 400;
  font-family: inherit;
  line-height: inherit;
  color: var(--footer-text);
  border-radius: 6px;
  text-align: left;
}

.site-footer .footer-dropdown-trigger:hover,
.site-footer .footer-dropdown-trigger:focus-visible {
  background: transparent;
  color: var(--footer-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-dropdown-trigger .nav-icon {
  display: none;
}

.site-footer .footer-dropdown-trigger .chevron {
  color: currentColor;
  opacity: 0.85;
}

.site-footer .has-dropdown.is-open .footer-dropdown-trigger {
  font-weight: 400;
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer .has-dropdown.is-open .footer-dropdown-trigger:hover,
.site-footer .has-dropdown.is-open .footer-dropdown-trigger:focus-visible {
  color: var(--footer-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-contact-icon {
  color: var(--contact-icon-orange);
}

/* In-flow panel: expands the footer instead of floating over the copyright row */
.site-footer .has-dropdown .dropdown {
  position: static;
  margin-top: 0.35rem;
  width: 100%;
  max-width: 280px;
  min-width: 0;
  top: auto;
  left: auto;
  z-index: auto;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-border);
  font-size: 0.85rem;
  color: var(--footer-legal);
}

.footer-bottom-copy {
  margin: 0;
  justify-self: start;
  text-align: left;
}

.footer-powered {
  margin: 0;
  justify-self: end;
  text-align: right;
}

@media (min-width: 901px) {
  .header-inner > .brand,
  .header-inner > .main-nav,
  .header-inner > .nav-actions {
    order: 0;
  }
}

/* Tablet: two-column grids before mobile nav breakpoint */
@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-track {
    --staff-visible: 2;
  }

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

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Featured trade cards: avoid min 420px column squeezing layout */
  .section--featured-trade .course-detail-card {
    grid-template-columns: 1fr;
    padding: 1.1rem;
    gap: 1rem;
  }

  .section--featured-trade .course-detail-image {
    height: min(300px, 52vw);
    width: 100%;
    object-fit: cover;
  }

  .about-highlight-grid,
  .about-highlight-grid--media-left {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Match specificity of base .about-highlight-section--principal rule so tablet/mobile stay single column */
  .about-highlight-section--principal .about-highlight-grid--media-left {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-highlight-section--principal .about-highlight-media img {
    height: auto;
    max-height: min(440px, 52vh);
    width: 100%;
    object-fit: cover;
  }

  .about-highlight-grid .about-highlight-media {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-inner .footer-brand-col {
    grid-column: 1 / -1;
  }

  .course-detail-card {
    grid-template-columns: minmax(0, min(280px, 100%)) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  /*
   * body.nav-open uses overflow:hidden to lock scroll; that breaks position:sticky on the header
   * in several browsers. Fixed bar + main offset keeps the header pinned when the menu opens.
   */
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    box-sizing: border-box;
  }

  main {
    padding-top: calc(1.1rem + 80px + env(safe-area-inset-top));
  }

  /* Keep logo, title, and menu controls on one row (wrap was pushing nav-actions to a second line). */
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-inner > .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

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

  .header-inner > .nav-actions {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-phone {
    font-size: 0.8rem;
    padding: 0.4rem 0.62rem;
  }

  .header-inner > .main-nav {
    order: 3;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-highlight-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-highlight-section--principal .about-highlight-grid--media-left {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-highlight-copy {
    max-width: 100%;
  }

  .about-highlight-copy h2 {
    font-size: 1.65rem;
  }

  .about-highlight-copy p {
    font-size: 1rem;
  }

  .about-highlight-media img {
    height: auto;
    max-height: 500px;
  }

  .about-highlight-section--principal .about-highlight-media img {
    height: auto;
    max-height: min(380px, 48vh);
    width: 100%;
    object-fit: cover;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  /* Keep flex so brand column stays left-aligned (display:block was centering the logo visually). */
  .footer-inner > div:first-child.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .course-preview-grid {
    grid-template-columns: 1fr;
  }

  .section--featured-trade .section-inner {
    max-width: min(100%, calc(100vw - 1.5rem));
  }

  .section--featured-trade .course-detail-card {
    grid-template-columns: 1fr;
    padding: 0.95rem;
    gap: 0.9rem;
  }

  .section--featured-trade .course-detail-image {
    height: 250px;
  }

  .course-preview-grid--single .course-preview-link {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 0.95rem;
  }

  .course-preview-grid--single .course-preview-image {
    min-height: 220px;
    max-height: 320px;
  }

  .course-preview-grid--single .course-preview-body {
    padding: 0.3rem 0.15rem 0.15rem;
  }

  .course-detail-card {
    grid-template-columns: 1fr;
  }

  .course-detail-image {
    height: 210px;
  }

  .placements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-track {
    --staff-visible: 2;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    order: 3;
    flex: 1 1 100%;
    display: none;
    flex-direction: column;
    position: absolute;
    /* Full viewport width while positioned inside centered .header-inner */
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    top: 100%;
    z-index: 250;
    max-height: min(70vh, calc(100dvh - 5.5rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0 0 0.75rem;
    margin-top: -1px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-list > li {
    width: 100%;
    min-width: 0;
  }

  .nav-link {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    justify-content: flex-start;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .has-dropdown .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    background: var(--surface);
    border-radius: 8px;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }
}

/* Home banner: image only on phones/tablets; text on desktop */
@media (max-width: 768px) {
  .hero-inner {
    display: none !important;
  }

  .hero {
    padding: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    align-items: stretch;
    background-color: #000;
  }

  .hero-bg {
    background-color: #000;
  }

  .hero-slide,
  .hero-slide--shivasai-college,
  .hero-bg .hero-slide.hero-slide--full-image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    background-color: #000;
  }
}

@media (max-width: 600px) {
  .staff-carousel {
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem;
  }

  .staff-track {
    --staff-visible: 1;
    gap: 0.85rem;
  }

  .staff-slide {
    flex-basis: 100%;
  }

  .staff-arrow {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .page-hero {
    min-height: clamp(180px, 42vw, 260px);
    padding: 1.25rem 1rem 1.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

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

  .header-phone {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .course-preview-image {
    height: 195px;
  }

  .placements-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-title-logo {
    /* Same left nudge as desktop: PNG has transparent padding; aligns emblem with heading text. */
    margin-left: -35px;
    margin-right: auto;
    align-self: flex-start;
    max-width: min(200px, 88vw);
  }

  .footer-brand-lead {
    align-items: flex-start;
    width: 100%;
  }

  .contact-submit {
    width: 100%;
    justify-self: stretch;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-head--trades h2 {
    font-size: clamp(1.45rem, 6vw, 2.1rem);
  }

  .section-head--advantages h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .course-preview-meta p {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .gallery-filter select {
    min-width: 0;
    width: 100%;
    max-width: min(320px, 100%);
  }
}

/* Legal pages (Privacy, Terms) */
.legal-doc {
  position: relative;
  overflow: hidden;
  max-width: 44rem;
  margin-inline: auto;
  padding-top: calc(1.35rem + 4px);
}

.legal-doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-blue), var(--royal-blue-light), var(--saffron-soft));
  border-radius: var(--radius) var(--radius) 0 0;
}

.legal-page {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-page .legal-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.legal-page h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--royal-blue);
}

.legal-page h2:first-of-type {
  margin-top: 0.85rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

.legal-meta {
  font-size: var(--font-size-small);
  color: var(--subtitle-grey);
  margin: 0 0 1rem;
}

.legal-note {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(31, 63, 122, 0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--royal-blue-light);
}

.legal-note strong {
  color: var(--nav-text);
}

/* Legal pages — compact institute contact (email, phone, address) */
.legal-contact-block {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(31, 63, 122, 0.07);
  border-radius: var(--radius);
  border-left: 3px solid var(--royal-blue-light);
}

.legal-contact-block p {
  margin: 0.4rem 0 0;
}

.legal-contact-block p:first-child {
  margin-top: 0;
}

.legal-contact-block strong {
  display: inline-block;
  min-width: 4.75rem;
  color: var(--royal-blue);
  font-weight: 600;
}

.legal-contact-block a {
  color: var(--royal-blue-light);
  font-weight: 500;
}

.legal-contact-block a:hover {
  color: var(--royal-blue);
}

.legal-contact-lead {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-legal-links {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 0.85rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-bottom-copy,
  .footer-powered {
    justify-self: center;
    text-align: center;
  }
}

.footer-legal-links a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
  color: var(--footer-link-hover);
}
