:root {
  --saffron: #e8581a;
  --saffron-dark: #bd3f11;
  --saffron-light: #ffaa5e;
  --blue: #1a3a8f;
  --blue-dark: #10245f;
  --cream: #fff8f0;
  --ink: #172033;
  --muted: #5f6b80;
  --teal: #16806f;
  --gold: #f4b23c;
  --brown: #372219;
  --peach: #efb9a0;
  --white: #f8f5f0;
  --line: rgba(23, 32, 51, 0.12);
  --shadow: 0 20px 50px rgba(16, 36, 95, 0.14);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--brown);
  box-shadow: 0 10px 28px rgba(28, 16, 12, 0.22);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(55, 34, 25, 0.96);
  box-shadow: 0 10px 35px rgba(28, 16, 12, 0.24);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 248, 240, 0.72);
  border-radius: 50%;
  background: #fff8f0;
  flex: 0 0 auto;
}

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

.brand strong {
  display: block;
  color: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  max-width: 220px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.site-header.scrolled .brand strong,
.site-header.menu-active .brand strong,
.footer .brand strong {
  color: var(--white);
}

.site-header.scrolled .brand small,
.site-header.menu-active .brand small,
.footer .brand small {
  color: rgba(255, 255, 255, 0.76);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8ec5fc;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header.scrolled .nav-links,
.site-header.menu-active .nav-links {
  color: #8ec5fc;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 10px 8px;
  color: #8ec5fc;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: #ffffff;
}

.nav-links a:not(.btn).active,
.nav-links a:not(.btn)[aria-current="page"] {
  color: #ffffff;
}

.nav-links a:not(:last-child)::before {
  content: "|";
  position: absolute;
  right: -10px;
  color: rgba(142, 197, 252, 0.55);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 36, 95, 0.15);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--saffron);
  box-shadow: 0 14px 30px rgba(232, 88, 26, 0.26);
}

.btn-primary:hover {
  background: var(--saffron-dark);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.btn-teal {
  color: var(--white);
  background: #057779;
  box-shadow: 0 14px 30px rgba(5, 119, 121, 0.28);
}

.btn-teal:hover {
  background: #075f62;
}

.btn-secondary {
  color: var(--blue);
  border-color: rgba(26, 58, 143, 0.24);
  background: var(--white);
}

.btn-light {
  color: var(--saffron-dark);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f7f1e7;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(100deg, rgba(4, 113, 116, 0.92) 0%, rgba(239, 210, 184, 0.76) 44%, rgba(224, 100, 34, 0.92) 72%, rgba(55, 34, 25, 0.98) 100%),
    url("assets/SVIT_BULIEDing.jpg") center / cover no-repeat;
}

.hero-overlay {
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 246, 219, 0.5), transparent 18%),
    radial-gradient(circle at 30% 82%, rgba(255, 248, 240, 0.32), transparent 22%),
    linear-gradient(180deg, rgba(55, 34, 25, 0.1), rgba(55, 34, 25, 0.36));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  padding-top: 118px;
  padding-bottom: 74px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--saffron);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.eyebrow.light {
  color: #ffe6cf;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  color: #2f221d;
  font-size: clamp(46px, 5.2vw, 72px);
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 21px;
}

.hero-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: #fff8f0;
  font-size: 21px;
  text-shadow: 0 2px 12px rgba(28, 16, 12, 0.2);
}

.hero-kicker {
  margin: 0 0 4px;
  color: #fff8f0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(28, 16, 12, 0.2);
}

.mobile-break {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.hero-portrait {
  position: absolute;
  top: 116px;
  right: 22px;
  width: 330px;
  min-height: 302px;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 0 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.18);
  filter: blur(20px);
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  width: min(330px, 82vw);
  filter: drop-shadow(0 0 18px rgba(255, 239, 201, 0.78)) drop-shadow(0 22px 34px rgba(55, 34, 25, 0.36));
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  align-items: stretch;
  margin-top: 18px;
}

.home-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  color: var(--brown);
  box-shadow: 12px 14px 24px rgba(55, 34, 25, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 14px 18px 30px rgba(55, 34, 25, 0.32);
}

.home-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  fill: currentColor;
}

.home-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-card span,
.home-card b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.home-card b {
  margin-top: auto;
  padding-top: 14px;
}

.cream-card {
  background: #f6eed7;
}

.saffron-card {
  background: #df6828;
  color: #fff8f0;
}

.peach-card {
  background: var(--peach);
}

.teal-card {
  background: #057779;
  color: #fff8f0;
}

.home-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 0;
  background: var(--brown);
  color: #fff8f0;
}

.home-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.announcement {
  overflow: hidden;
  background: var(--saffron);
  color: var(--white);
  font-weight: 800;
}

.announcement-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.announcement span {
  display: block;
  padding: 12px 30px;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
}

.about .split {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

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

.image-panel img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-image img {
  object-position: center;
}

.section-copy p,
.section-heading p,
.cta-inner p,
.footer p {
  color: var(--muted);
}

.section-copy > p {
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 36, 95, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--blue);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.stat-card span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.courses,
.gallery,
.testimonials {
  background: var(--white);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.course-grid,
.why-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card,
.why-card,
.testimonial-card,
.contact-form,
.contact-info {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 36, 95, 0.08);
}

.course-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-top: 5px solid var(--saffron);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(26, 58, 143, 0.18);
}

.course-icon,
.why-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.course-card h3 {
  margin-top: 18px;
  color: var(--blue);
}

.course-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.course-card strong {
  margin-top: auto;
  color: var(--teal);
}

.course-card a {
  width: max-content;
  margin-top: 16px;
  color: var(--saffron);
  font-weight: 800;
}

.featured-card {
  border-top-color: var(--teal);
  background: #f3fbf8;
}

.why {
  background: linear-gradient(180deg, #fff8f0, #f7fbff);
}

.why-card {
  padding: 24px;
  border: 1px solid rgba(26, 58, 143, 0.08);
}

.why-card:nth-child(even) span {
  background: var(--saffron);
}

.why-card:nth-child(3n) span {
  background: var(--teal);
}

.why-card strong {
  display: block;
  margin-top: 16px;
  font-size: 18px;
}

.why-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-carousel {
  position: relative;
  display: grid;
  align-items: center;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  height: 360px;
  margin-right: 22px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(16, 36, 95, 0.08);
  cursor: pointer;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(16, 36, 95, 0.18));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
}

.gallery-slide:hover::after {
  opacity: 1;
}

.gallery-control,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--saffron);
  box-shadow: 0 14px 30px rgba(232, 88, 26, 0.26);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gallery-control:hover,
.lightbox-nav:hover {
  transform: translateY(-2px);
  background: var(--saffron-dark);
}

.gallery-control:focus-visible,
.gallery-slide:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid rgba(244, 178, 60, 0.72);
  outline-offset: 3px;
}

.gallery-prev {
  left: -18px;
}

.gallery-next {
  right: -18px;
}

@media (max-width: 1180px) {
  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.admissions {
  background: #f7fbff;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(26, 58, 143, 0.18);
}

.timeline-step {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  text-align: center;
}

.timeline-step span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 6px solid #f7fbff;
  border-radius: 50%;
  color: var(--white);
  background: var(--saffron);
  box-shadow: 0 12px 26px rgba(232, 88, 26, 0.22);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.timeline-step p {
  color: var(--muted);
}

.testimonial-card {
  padding: 26px;
  border: 1px solid rgba(26, 58, 143, 0.08);
}

.stars {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0;
}

.testimonial-card p {
  color: var(--muted);
}

.testimonial-card strong {
  color: var(--blue);
}

.cta-band {
  padding: 58px 0;
  color: var(--white);
  background: linear-gradient(115deg, var(--saffron), #f08a23 58%, var(--blue));
}

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

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.contact {
  background: linear-gradient(180deg, #fff8f0, #ffffff);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-form,
.contact-info {
  padding: 30px;
}

.contact-form label {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.1);
}

.contact-form button {
  width: 100%;
  margin-top: 20px;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--teal);
  font-weight: 800;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.info-list p {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  color: var(--blue);
}

.info-list span {
  color: var(--muted);
}

.contact-info iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
}

.footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--blue-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
  padding: 58px 0 34px;
}

.footer .brand strong {
  color: var(--white);
}

.footer .brand small,
.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 17px;
  color: var(--white);
}

.footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

.socials a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #1fa463;
  box-shadow: 0 14px 32px rgba(31, 164, 99, 0.28);
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 17, 42, 0.86);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 86vw);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  object-fit: contain;
}

.lightbox p {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(720px, calc(100% - 48px));
  margin: 0;
  transform: translateX(-50%);
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

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

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

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 18px;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 40;
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(:last-child)::before {
    display: none;
  }

  .nav-links a,
  .nav-links a:not(.btn) {
    color: var(--ink);
    padding: 13px 8px;
    font-weight: 700;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a:not(.btn):hover,
  .nav-links a:not(.btn):focus-visible {
    color: var(--saffron);
  }

  .nav-links a.active,
  .nav-links a:not(.btn).active {
    color: var(--saffron-dark);
  }

  .nav-cta {
    margin-top: 10px;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-inner {
    padding-top: 116px;
    padding-bottom: 48px;
  }

  .hero-portrait {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: 280px;
    margin-top: 22px;
  }

  .hero-copy {
    max-width: none;
  }

  .home-strip {
    position: relative;
    margin-top: 24px;
  }

  .home-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
  }

  .course-grid,
  .why-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-slide {
    flex-basis: calc((100% - 22px) / 2);
    height: 320px;
  }

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

  .timeline::before {
    display: none;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar {
    width: min(100% - 24px, 1120px);
  }

  .navbar {
    height: 70px;
  }

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

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

  .brand strong {
    font-size: clamp(24px, 6.5vw, 28px);
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 0;
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(32px, 8.5vw, 44px);
    word-break: break-word;
  }

  .hero-kicker {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.45;
  }

  .mobile-break {
    display: block;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-portrait {
    min-height: 240px;
    overflow: hidden;
    padding-left: 0;
  }

  .hero-portrait img {
    width: min(280px, 78vw);
  }

  .home-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-card {
    min-height: auto;
    padding: 20px 18px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(55, 34, 25, 0.22);
  }

  .home-card strong {
    font-size: 20px;
  }

  .home-card span,
  .home-card b {
    font-size: 15px;
    word-break: break-word;
  }

  .home-strip {
    position: relative;
    margin-top: 20px;
    padding: 14px 0;
  }

  .home-strip .container {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    text-align: center;
  }

  .trust-row span {
    width: 100%;
  }

  .section {
    padding: clamp(48px, 8vw, 68px) 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  h2 {
    font-size: clamp(24px, 6.2vw, 34px);
    word-break: break-word;
  }

  /* About section mobile optimization */
  .about .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image img {
    height: clamp(220px, 56vw, 340px);
    width: 100%;
    object-fit: cover;
  }

  .image-panel img {
    height: clamp(220px, 56vw, 340px);
  }

  .section-copy > p {
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.55;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
  }

  .stat-card {
    padding: 14px 8px;
    text-align: center;
    min-width: 0;
  }

  .stat-card strong {
    font-size: clamp(20px, 5vw, 24px);
  }

  .stat-card span:last-child {
    font-size: 12px;
    margin-top: 4px;
    word-break: break-word;
  }

  .course-grid,
  .why-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .why-card,
  .testimonial-card {
    padding: 20px 18px;
  }

  .cta-band {
    padding: 44px 0;
  }

  .cta-inner {
    gap: 18px;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .gallery-slide {
    flex-basis: 100%;
    height: clamp(220px, 60vw, 300px);
    margin-right: 0;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 170px);
  }

  .lightbox p {
    bottom: 74px;
    font-size: 14px;
    width: calc(100% - 32px);
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    bottom: 20px;
    top: auto;
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }

  .contact-form,
  .contact-info {
    padding: 20px 16px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .info-list {
    margin: 16px 0;
    gap: 10px;
  }

  .info-list p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-info iframe {
    height: 240px;
  }

  .footer-grid {
    gap: 24px;
    padding: 42px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .container,
  .navbar {
    width: min(100% - 16px, 1120px);
  }

  .brand strong {
    font-size: 22px;
  }

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

  h1 {
    font-size: 30px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat-card {
    padding: 10px 4px;
  }

  .stat-card strong {
    font-size: 19px;
  }

  .stat-card span:last-child {
    font-size: 11px;
  }

  .home-card {
    padding: 16px 14px;
  }

  .contact-form,
  .contact-info {
    padding: 16px 12px;
  }

  .whatsapp {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   PRODUCTION ENHANCEMENTS: ACCESSIBILITY, SUBPAGES & CRO COMPONENTS
   ========================================================================== */

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--saffron);
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Accessible Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

/* Breadcrumbs Navigation */
.breadcrumbs {
  padding: 14px 0;
  font-size: 14px;
  background: rgba(55, 34, 25, 0.04);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(23, 32, 51, 0.35);
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  color: var(--saffron);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Dedicated Page Hero */
.page-hero {
  position: relative;
  padding: 130px 0 54px;
  background: linear-gradient(135deg, #2b1810 0%, #3e2216 48%, #1f110b 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(232, 88, 26, 0.22), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(22, 128, 111, 0.18), transparent 45%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.page-hero h1 {
  color: #ffffff;
  margin: 12px 0 16px;
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.15;
}

.page-hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  line-height: 1.5;
}

.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Specific Action Buttons */
.btn-whatsapp {
  color: #ffffff;
  background: #1e9d56;
  border-color: #1e9d56;
  box-shadow: 0 12px 26px rgba(30, 157, 86, 0.26);
}

.btn-whatsapp:hover {
  background: #178347;
  color: #ffffff;
}

.btn-call {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(26, 58, 143, 0.26);
}

.btn-call:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

/* Course Spec Highlights Bar */
.course-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding: 22px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.course-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-meta-item small {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.course-meta-item strong {
  font-size: 18px;
  color: var(--ink);
}

/* FAQ Accordion Styling */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--saffron);
  box-shadow: 0 8px 24px rgba(232, 88, 26, 0.08);
}

.faq-summary {
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--saffron);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-content p {
  margin: 0 0 10px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* Comparison Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.comparison-table th {
  background: #faf6f0;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tr:hover td {
  background: rgba(232, 88, 26, 0.03);
}

/* Content Articles & Resources */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(16, 36, 95, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--saffron);
  box-shadow: 0 14px 34px rgba(232, 88, 26, 0.12);
}

.article-card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff0e8;
  color: var(--saffron-dark);
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.35;
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.article-card .read-link {
  color: var(--blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card .read-link:hover {
  color: var(--saffron);
}

/* Full Gallery Grid */
.gallery-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--saffron);
  color: #ffffff;
  border-color: var(--saffron);
}

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

.gallery-grid-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-grid-item .item-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.gallery-grid-item:hover .item-caption,
.gallery-grid-item:focus-visible .item-caption {
  transform: translateY(0);
}

/* Student Deals Architecture */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.deal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.deal-card .badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #e8f5e9;
  color: #2e7d32;
  margin-bottom: 12px;
}

.deal-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.deal-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.deal-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
}

.deal-card li {
  margin-bottom: 6px;
}

/* Media Queries for Subpages */
@media (max-width: 768px) {
  .page-hero {
    padding: 104px 0 42px;
  }

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

  .gallery-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  .course-meta-bar {
    grid-template-columns: 1fr;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
  }
}

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

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