/* Siddartha ITI — logo palette + light header (reference layout) */
:root {
  --royal-blue: #1f3f7a;
  --royal-blue-dark: #162f5e;
  --royal-blue-light: #4a6fae;
  --nav-text: #1f3555;
  --header-blue: #2a4f8f;
  --accent-red: #c84f62;
  --accent-red-hover: #b74255;
  --saffron: #f2b764;
  --saffron-soft: #f7cd92;
  --white: #ffffff;
  --text: #243247;
  --text-muted: #5f6f86;
  --subtitle-grey: #7f8ea5;
  --surface: #f8f7fb;
  --header-surface: #ffffff;
  --pill-active: #f0f3fa;
  --icon-circle: #d9e4f7;
  --shadow: 0 12px 30px rgba(26, 58, 122, 0.08);
  --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/v1775887787/feebb586-a22f-41d4-b5f0-2605720f0912_jktv1a.jpg");
  --banner-heading-color: #f5f2eb;
  --banner-heading-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.42),
    1px 2px 0 rgba(10, 28, 58, 0.5),
    0 3px 26px rgba(0, 0, 0, 0.5),
    0 0 2px rgba(15, 42, 92, 0.35);
  /* 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: #f7f9fd;
  --footer-bg-mid: #eef2fb;
  --footer-bg-end: #e2eaf6;
  --footer-heading: #0d2240;
  --footer-text: #3d4d66;
  --footer-caption: #5a6b82;
  --footer-link: var(--royal-blue);
  --footer-link-hover: var(--royal-blue-light);
  --footer-border: rgba(31, 63, 122, 0.13);
  --footer-legal: #5c6d85;
  --footer-contact-icon-color: #4a6494;
}

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

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

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(30, 64, 175, 0.1);
  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.75rem 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: 64px;
  height: 64px;
  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(--nav-text);
  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(31, 63, 122, 0.09);
  color: var(--header-blue);
  text-decoration: none;
}

.nav-link.is-active {
  background: rgba(31, 63, 122, 0.13);
  color: var(--royal-blue-dark);
}

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

.nav-icon {
  width: 16px;
  height: 16px;
  color: #5e7394;
}

.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(20, 46, 99, 0.84) 0%,
    rgba(26, 58, 122, 0.54) 45%,
    rgba(20, 46, 99, 0.3) 100%
  );
  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/v1775887787/feebb586-a22f-41d4-b5f0-2605720f0912_jktv1a.jpg");
}

.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: var(--accent-red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(183, 66, 85, 0.24);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.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;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.hero-slide--banner-fe036610 {
  background-position: center 99%;
}

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

.hero-bg .hero-slide:nth-child(5) {
  background-size: 100% 100%;
  background-position: center center;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 42, 92, 0.75) 0%,
    rgba(26, 58, 122, 0.45) 42%,
    rgba(15, 42, 92, 0.35) 100%
  );
  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(242, 183, 100, 0.2);
  border: 1px solid rgba(255, 223, 173, 0.65);
  color: #eff6ff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.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, #e8f0fb 0%, #d8e4f5 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-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-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;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.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(--footer-contact-icon-color);
  -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: min(220px, 38vh);
  aspect-ratio: 16 / 7;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  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;
}

.contact-map-actions {
  margin: 0.85rem 0 0;
  text-align: right;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--royal-blue-dark);
  text-decoration: none;
}

.contact-map-link:hover,
.contact-map-link:focus-visible {
  color: var(--royal-blue);
  text-decoration: underline;
}

.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.5rem;
  align-items: stretch;
}

.section-head--trades h2 {
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--royal-blue-dark);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.section-head--trades p {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.section-head--trades h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  margin: 0.5rem auto 0;
  background: #2d5aa8;
}

.course-preview-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dbe6f5;
  padding: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 12px 28px rgba(15, 35, 77, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.28s ease;
  isolation: isolate;
}

.course-preview-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  height: 220%;
  margin: -110% 0 0 -110%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: conic-gradient(
    from 0deg,
    var(--header-blue),
    var(--royal-blue-light),
    var(--saffron),
    var(--accent-red),
    #5a7eb8,
    var(--header-blue)
  );
  animation: course-preview-border-spin 2.6s linear infinite;
  animation-play-state: paused;
}

.course-preview-card:hover::before,
.course-preview-card:focus-within::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes course-preview-border-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-preview-card::before {
    animation: none;
  }

  .course-preview-card:hover::before,
  .course-preview-card:focus-within::before {
    background: linear-gradient(
      125deg,
      var(--header-blue),
      var(--royal-blue-light),
      var(--saffron-soft),
      var(--accent-red),
      var(--header-blue)
    );
  }
}

.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: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 0.75rem 0.75rem 0.9rem;
}

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

.course-preview-card:hover,
.course-preview-card:focus-within {
  transform: translateY(-6px);
  border-color: transparent;
  background: linear-gradient(
    135deg,
    #a5b4fc 0%,
    #c4b5fd 28%,
    #e9d5ff 52%,
    #93c5fd 78%,
    #818cf8 100%
  );
  box-shadow:
    0 14px 40px rgba(79, 70, 229, 0.2),
    0 0 52px rgba(167, 139, 250, 0.26);
}

.course-preview-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.course-preview-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  padding: 0.85rem 0.1rem 0.05rem;
  flex: 1;
}

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

.course-preview-meta h3 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--royal-blue-dark);
  line-height: 1.25;
}

.course-preview-meta p {
  margin: 0.32rem 0 0;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  border: 2px solid rgba(49, 87, 150, 0.28);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

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

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

.course-preview-arrow {
  color: #9d3345;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  align-self: flex-start;
  text-transform: uppercase;
  background: #fff1f4;
  border: 1px solid #f1c5cc;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

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

.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: 2px solid #e2eaf4;
  background: #ffffff;
  box-shadow: 0 10px 24px 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(-4px);
  border: 2px solid transparent;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #fafbff 100%),
    linear-gradient(
      125deg,
      #a5b4fc 0%,
      #c4b5fd 22%,
      #ddd6fe 48%,
      #93c5fd 72%,
      #818cf8 100%
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 4px 14px rgba(79, 70, 229, 0.12),
    0 18px 48px rgba(99, 102, 241, 0.16),
    0 0 52px rgba(167, 139, 250, 0.24);
}

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

@keyframes course-card-enter-from-left {
  from {
    opacity: 0;
    transform: translateX(-2.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes course-card-enter-from-right {
  from {
    opacity: 0;
    transform: translateX(2.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 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;
  transform: translateX(-2.25rem);
}

.course-detail-card--scroll-reveal.course-detail-card--enter-right:not(.is-in-view) {
  opacity: 0;
  transform: translateX(2.25rem);
}

.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 #e2eaf4;
  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;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--header-blue),
    var(--royal-blue-light),
    var(--accent-red)
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}

.placement-card:hover {
  transform: translateY(-4px);
  border-color: #cddcea;
  box-shadow:
    0 2px 4px rgba(15, 35, 77, 0.04),
    0 16px 36px rgba(15, 35, 77, 0.1);
}

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

.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;
}

.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: #ffffff;
  border: 1px solid #dce7f6;
  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;
}

.advantage-card:hover,
.advantage-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(42, 79, 143, 0.22);
  animation: advantage-ring-pulse 2.2s ease-in-out infinite;
}

@keyframes advantage-ring-pulse {
  0%,
  100% {
    transform: translateY(-5px);
    box-shadow:
      0 0 0 1px rgba(200, 79, 98, 0.38),
      0 0 0 7px rgba(74, 111, 174, 0.07),
      0 14px 34px rgba(22, 39, 75, 0.14);
  }

  50% {
    transform: translateY(-5px);
    box-shadow:
      0 0 0 2px rgba(42, 79, 143, 0.42),
      0 0 0 14px rgba(200, 79, 98, 0.05),
      0 20px 44px rgba(22, 39, 75, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .advantage-card:hover,
  .advantage-card:focus-within {
    animation: none;
    box-shadow:
      0 0 0 1px rgba(200, 79, 98, 0.35),
      0 0 0 8px rgba(74, 111, 174, 0.08),
      0 16px 34px rgba(22, 39, 75, 0.15);
  }
}

.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;
}

.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;
  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(--footer-contact-icon-color);
}

/* 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));
  }

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

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

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

  .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) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner > .brand {
    order: 1;
  }

  .header-inner > .nav-actions {
    order: 2;
    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-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;
  }

  .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;
  }

  .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));
  }

  .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;
  }
}

@media (max-width: 600px) {
  .hero-bg .hero-slide:nth-child(5) {
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .hero-copy,
  .page-hero .page-hero-inner {
    display: none;
  }

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

  .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);
}
