/* ==================================================
   HERO SECTION
================================================== */

.courses-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50px;

  background:
    url("../Courses-bg.webp")
    center center / cover no-repeat;
}


.courses-hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
}

.courses-hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1200px;
  margin: 200px auto;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-cards {
  position: relative;
  width: 700px;
  height: 320px;
  margin-bottom: -50px;

  /* Cards are positioned behind the information box */
  z-index: 100;
}


/* =========================================
   COURSE CARDS
========================================= */

.hero-card {
  position: absolute;
  width: 260px;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);

  /*
    Initially the cards are hidden
    inside / behind the info box.
  */
  opacity: 0;

  /* No transition here on purpose: scale/opacity are driven by
     --hero-scale / --hero-opacity on every scroll frame (see
     courses.js), so they need to track the scrollbar 1:1 rather
     than animate over a fixed duration. */
  transition: none;

  pointer-events: none;
  will-change: transform, opacity;
}


/* Image */

.hero-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;

  background:
    url("../Courses-bg.png")
    center center / cover no-repeat;
}


/* Title */

.hero-card h3 {
  margin: 15px 0 0;
  font-size: 20px;
  line-height: 1.1;
  font-family: 'Sora', sans-serif;
}


/* =========================================
   HERO CARDS — SCROLL-DRIVEN GROWTH
   Position is fixed at the fanned "open"
   spot at all times. SCALE and OPACITY are
   driven continuously by scroll position via
   --hero-scale / --hero-opacity, set on
   .courses-hero by hero-scroll JS on every
   scroll frame (see courses.js). That JS also
   drives a separate fade to 0 opacity once
   the real course grid overlaps this section.
========================================= */

.hero-card-left {
  left: 40px;
  top: 40px;

  transform:
    translate(0, 0)
    rotate(-12deg)
    scale(var(--hero-scale, .45));

  opacity: calc(var(--hero-opacity, 0) * 0.9);
  z-index: 1;
}

.hero-card-center {
  left: 50%;
  top: 0;

  transform:
    translateX(-50%)
    rotate(0deg)
    scale(var(--hero-scale, .45));

  opacity: var(--hero-opacity, 0);
  z-index: 3;
}

.hero-card-right {
  left: auto;
  right: 40px;
  top: 40px;

  transform:
    translate(0, 0)
    rotate(12deg)
    scale(var(--hero-scale, .45));

  opacity: calc(var(--hero-opacity, 0) * 0.9);
  z-index: 1;
}

.hero-info-card {
  position: relative;
  width: 500px;
  height: 280px;
  background-image: url("../file-image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 32px;
  padding: 40px;
  margin-top: -70px;
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
  z-index: 10;
}

.hero-info-content h2{
  font-size:34px;
  line-height:1.1;
  margin-bottom:15px;
  color:#111;
}

.hero-info-content p{
  color:#555;
  line-height:1.7;
}

.hero-btn{
  width:68px;
  height:68px;
  background:#ff2026;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:22px;
  margin-top:25px;
  box-shadow:0 10px 25px rgba(255,32,37,.35);
}

.hero-btn2{
    width: 65px;
    height: 65px;
  background:#ff2026;
  border-radius:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:22px;
  box-shadow:0 10px 25px rgba(255,32,37,.35);
  margin-top: 35%;
  margin-left: 85%;
}

.hero-arrow{
  position:absolute;
  top:160px;
  width:70px;
  height:70px;
  border:none;
  border-radius:50%;
  background:#fff;
  font-size:24px;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  z-index:5;
}

.hero-prev{
  left:120px;
}

.hero-next{
  right:120px;
}



.hero-btn2 i {
  transition: transform .5s ease;
}

@media(max-width:991px){

  .courses-hero{
    min-height:700px;
  }

  .hero-cards{
    width:100%;
    max-width:500px;
  }

  .hero-card-left,
  .hero-card-right{
    display:none;
  }

  .hero-info-card{
    width:90%;
    max-width:450px;
  }

  .hero-prev{
    left:20px;
  }

  .hero-next{
    right:20px;
  }
}



/* ==================================================
   COURSES HERO - RESPONSIVE
   Desktop styles remain unchanged
================================================== */


/* ==================================================
   LARGE TABLETS / SMALL LAPTOPS
   992px - 1199px
================================================== */

@media (min-width: 992px) and (max-width: 1199px) {

    .courses-hero {
        min-height: 620px;
        border-radius: 40px;
    }

    .courses-hero-content {
        max-width: 900px;
        margin: 160px auto;
    }

    .hero-cards {
        width: 620px;
        height: 300px;
        margin-bottom: 70px;
    }

    .hero-card {
        width: 230px;
    }

    .hero-card-left {
        left: 20px;
    }

    .hero-card-right {
        right: 20px;
    }

    .hero-info-card {
        width: 410px;
    }

    .hero-prev {
        left: 35px;
    }

    .hero-next {
        right: 35px;
    }
}


/* ==================================================
   TABLETS
   768px - 991px
================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .courses-hero {
        min-height: 680px;
        max-height: none;
        border-radius: 35px;
    }

    .courses-hero-content {
        width: 100%;
        max-width: 700px;
        margin: 120px auto 80px;
        padding: 0 30px;
        box-sizing: border-box;
    }

    .hero-cards {
        width: 100%;
        max-width: 320px;
        height: 300px;
        margin-bottom: 60px;
    }

    .hero-card{
  position: absolute;
  min-width: 350px;
  min-height: 100px;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
}

.hero-card img{
  min-width: 100%;
  min-height: auto;
}

    .hero-card-left {
        left: 0;
        top: 35px;
    }

    .hero-card-right {
        right: 0;
        top: 35px;
    }

    .hero-card-center {
        left: 50%;
    }

    .hero-card img {
        height: auto;
    }

    .hero-card h3 {
        font-size: 18px;
    }

    .hero-info-card {
        width: min(430px, 90%);
        padding: 35px;
        margin-top: -45px;
        box-sizing: border-box;
    }

    .hero-info-content h2 {
        font-size: 30px;
    }

    .hero-info-content p {
        font-size: 15px;
    }

    .hero-arrow {
        top: 145px;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }
}


/* ==================================================
   MOBILE
   481px - 767px
================================================== */

@media (min-width: 481px) and (max-width: 767px) {

    .courses-hero {
        min-height: 650px;
        max-height: none;
        border-radius: 28px;
    }

    .courses-hero-content {
        width: 100%;
        margin: 90px auto 60px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .hero-cards {
        width: 100%;
        height: 260px;
        margin-bottom: 45px;
    }

    .hero-card{
  position: absolute;
  min-width: 400px;
  min-height: 200px;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
}

.hero-card img{
  min-width: 100%;
  min-height: 200px;
}


    /*
       Keep the center card visible,
       hide the side cards on mobile.
    */

    .hero-card-left,
    .hero-card-right {
        display: none;
    }

    .hero-card-center {
        width: min(300px, 75vw);
        left: 50%;
        top: 15px;
        transform: translateX(-50%);
    }


    .hero-card h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .hero-info-card {
        width: min(430px, 100%);
        padding: 30px 25px;
        margin-top: -25px;
        border-radius: 26px;
        box-sizing: border-box;
    }

    .hero-info-content h2 {
        font-size: clamp(25px, 5vw, 30px);
    }

    .hero-info-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-btn2 {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-top: 40%;
    }

    .hero-arrow {
        top: 125px;
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .hero-prev {
        left: 12px;
        z-index: 999;
    }

    .hero-next {
        right: 12px;
        z-index: 999;
    }
}


/* ==================================================
   SMALL MOBILE
   320px - 480px
================================================== */

@media (max-width: 480px) {

    .courses-hero {
        min-height: 600px;
        max-height: none;
        border-radius: 22px;
    }

    .courses-hero-content {
        width: 100%;
        margin: 65px auto 45px;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .hero-cards {
        width: 100%;
        max-width: 220px;
        height: 100%;
        margin-bottom: 0px;
    }

    .hero-card{
  position: absolute;
  min-width: 250px;
  min-height: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
}

.hero-card img{
  min-width: 100%;
  min-height: 200px;
}

    .hero-card-left,
    .hero-card-right {
        display: none;
    }

    .hero-card-center {
        width: min(280px, 78vw);
        left: 50%;
        top: 5px;
        transform: translateX(-50%);
        border-radius: 20px;
        padding: 10px;
    }

    .hero-card img {
        height: 110px;
        border-radius: 13px;
    }

    .hero-card h3 {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.2;
    }

    .hero-info-card {
        width: 100%;
        padding: 24px 20px;
        margin-top: -5px;
        border-radius: 22px;
        box-sizing: border-box;
    }

    .hero-info-content h2 {
        font-size: clamp(22px, 6vw, 27px);
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .hero-info-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-btn2 {
        width: 45px;
        height: 45px;
        font-size: 17px;
        margin-top: 50%;
    }

    .hero-arrow {
        top: 105px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .hero-prev {
        left: 7px;
        z-index: 999;
    }

    .hero-next {
        right: 7px;
        z-index: 999;
    }
}



/* ==================================================
   EXTRA SMALL DEVICES
   Below 360px
================================================== */

@media (max-width: 359px) {

    .courses-hero {
        min-height: 570px;
        border-radius: 18px;
    }

    .courses-hero-content {
        margin-top: 55px;
        padding: 0 10px;
    }

    .hero-cards {
        height: 205px;
        margin-bottom: 30px;
    }

    .hero-card-center {
        width: 240px;
    }

    .hero-card img {
        height: 95px;
    }

    .hero-card h3 {
        font-size: 15px;
    }

    .hero-info-card {
        padding: 20px 17px;
        border-radius: 19px;
    }

    .hero-info-content h2 {
        font-size: 21px;
    }

    .hero-info-content p {
        font-size: 13px;
        line-height: 1.55;
    }

    .hero-btn2 {
        width: 42px;
        height: 42px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-prev {
        left: 4px;
        z-index: 999;
    }

    .hero-next {
        right: 4px;
        z-index: 999;
    }
}


/* ==================================================
   LANDSCAPE MOBILE
================================================== */

@media (max-width: 767px) and (orientation: landscape) {

    .courses-hero {
        min-height: 550px;
    }

    .courses-hero-content {
        margin-top: 50px;
        margin-bottom: 40px;
    }

    .hero-cards {
        height: 210px;
        margin-bottom: 30px;
    }

    .hero-card-center {
        width: 260px;
    }

    .hero-card img {
        height: 100px;
    }

    .hero-info-card {
        max-width: 400px;
        padding: 22px;
    }

    .hero-info-content h2 {
        font-size: 23px;
    }

    .hero-info-content p {
        font-size: 13px;
    }

    .hero-arrow {
        top: 90px;
    }
}


/* ==================================================
   VERY TALL MOBILE SCREENS
================================================== */

@media (max-width: 767px) and (min-height: 800px) {

    .courses-hero {
        min-height: 680px;
    }

    .courses-hero-content {
        margin-top: 100px;
    }
}



/* ==========================================================================
   SizCom Institute — Courses Page BODY styles
   Scoped under .courses-page — never touches global h1/h2/h3/button/a/img
   Design tokens lifted from the Home page: bright red, near-black, light
   gray, white — soft floating cards, pill CTAs, red four-point sparkles.
   ========================================================================== */

.courses-page {
  --sc-red: #FF2025;
  --sc-red-dark: #E01015;
  --sc-black: #111111;
  --sc-gray: #F3F3F3;
  --sc-white: #FFFFFF;
  --sc-text-muted: #5B5B5B;
  --sc-border: #ECECEC;

  --sc-shadow-card: 0 12px 35px rgba(0, 0, 0, 0.08);
  --sc-shadow-card-hover: 0 20px 45px rgba(0, 0, 0, 0.13);
  --sc-shadow-btn: 0 10px 24px rgba(255, 32, 37, 0.28);

  --sc-radius-card: 24px;
  --sc-radius-image: 20px;
  --sc-radius-pill: 999px;
  --sc-radius-sm: 16px;

  --sc-font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --sc-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  background: var(--sc-white);
  color: var(--sc-black);
  font-family: var(--sc-font-body);
  overflow-x: hidden;
}

.courses-page * {
  box-sizing: border-box;
}

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

.courses-page a {
  text-decoration: none;
  color: inherit;
}

.courses-page button {
  font-family: inherit;
  cursor: pointer;
}

.courses-page .sc-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.courses-page section {
  position: relative;
}

/* Focus states — visible keyboard focus throughout */
.courses-page a:focus-visible,
.courses-page button:focus-visible {
  outline: 3px solid var(--sc-red);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Decorative sparkles (small red / black four-point stars)
   -------------------------------------------------------------------------- */

.courses-page .sc-sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.courses-page .sc-sparkle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.courses-page .sc-sparkle--sm {
  width: 14px;
  height: 14px;
}

.courses-page .sc-sparkle--black path {
  fill: var(--sc-black);
}

.courses-page .sc-sparkle--red path {
  fill: var(--sc-red);
}

@media (max-width: 600px) {
  .courses-page .sc-sparkle {
    width: 14px;
    height: 14px;
  }
  .courses-page .sc-sparkle--sm {
    width: 10px;
    height: 10px;
  }
}

/* --------------------------------------------------------------------------
   Section 1 — Courses Introduction
   -------------------------------------------------------------------------- */

.courses-intro {
  background: #f3f3f3;
  padding: 96px 0 72px;
  text-align: center;
}

.courses-intro__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0px;
}

.courses-intro .courses-title {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--sc-red);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.courses-intro .courses-subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sc-text-muted);
  margin: 0 auto;
  max-width: 560px;
}

.courses-intro .sc-sparkle:nth-of-type(1) { top: 8px; left: -6%; }
.courses-intro .sc-sparkle:nth-of-type(2) { top: 40px; right: -4%; }
.courses-intro .sc-sparkle:nth-of-type(3) { bottom: -10px; left: 6%; }

@media (max-width: 600px) {
  .courses-intro { padding: 0px 0 0px; }
  .courses-intro .sc-sparkle:nth-of-type(1),
  .courses-intro .sc-sparkle:nth-of-type(2) { display: none; }
}

/* --------------------------------------------------------------------------
   Section 2 — Courses Grid
   -------------------------------------------------------------------------- */

.courses-grid-section {
  background: var(--sc-gray);
  padding: 64px 0 88px;
  position: relative;
}

.courses-grid-section .sc-sparkle:nth-of-type(1) { top: 24px; right: 4%; }
.courses-grid-section .sc-sparkle:nth-of-type(2) { bottom: 40px; left: 3%; }

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

@media (max-width: 1024px) {
  .courses-page .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .courses-page .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.courses-page .courses-card {
  background: var(--sc-white);
  border-radius: var(--sc-radius-card);
  box-shadow: var(--sc-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.courses-page .courses-card:hover,
.courses-page .courses-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--sc-shadow-card-hover);
}

.courses-page .courses-card__image {
  position: relative;
  margin: 10px 10px 0;
  border-radius: var(--sc-radius-image);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* Placeholder treatment — replace background-image via inline style or
     swap the <img> in HTML for the real course photo. */
  background: linear-gradient(135deg, #14181f 0%, #1d2430 45%, #0c1016 100%);
}

.courses-page .courses-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.courses-page .courses-card:hover .courses-card__image img {
  transform: scale(1.04);
}

.courses-page .courses-card__badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-family: var(--sc-font-display);
  line-height: 1.25;
}

.courses-page .courses-card__badge .eyebrow {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 500;
}

.courses-page .courses-card__badge .headline {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--sc-red);
  padding-bottom: 3px;
  width: max-content;
}

.courses-page .courses-card__content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.courses-page .courses-card__title {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--sc-black);
  margin: 0 0 10px;
}

.courses-page .courses-card__description {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--sc-text-muted);
  margin: 0 0 20px;
  flex: 1;
}

.courses-page .courses-card__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sc-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 10px 10px 20px;
  border: none;
  border-radius: var(--sc-radius-pill);
  box-shadow: var(--sc-shadow-btn);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.courses-page .courses-card__button .btn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.courses-page .courses-card__button .btn-arrow svg {
  width: 12px;
  height: 12px;
}

.courses-page .courses-card:hover .courses-card__button {
  background: var(--sc-red-dark);
  box-shadow: 0 14px 30px rgba(255, 32, 37, 0.38);
  transform: translateY(-2px);
}

.courses-page .courses-card:hover .courses-card__button .btn-arrow {
  transform: rotate(45deg);
}

/* Read more / Read less — description clamped per card */
.courses-page .courses-card__desc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 20px;
}

.courses-page .courses-card__desc-wrap .courses-card__description {
  flex: 0 0 auto;
  margin: 0;
}

.courses-page .courses-card__description.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.courses-page .courses-card__more {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--sc-red);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.courses-page .courses-card__more:hover,
.courses-page .courses-card__more:focus-visible {
  color: var(--sc-red-dark);
  text-decoration: underline;
}

.courses-page .courses-card__more[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Section 3 — Download Brochure CTA
   -------------------------------------------------------------------------- */

.courses-brochure {
  background: #f3f3f3;
  padding: 24px 0 88px;
  text-align: center;
}

.courses-page .courses-brochure__btn {
  margin: 10px;
  display: inline-flex;
  align-items: center;
  background: var(--sc-red);
  color: #fff;
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 12px 12px 28px;
  border: none;
  border-radius: var(--sc-radius-pill);
  box-shadow: var(--sc-shadow-btn);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.courses-page .courses-brochure__btn:hover {
  background: var(--sc-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 32, 37, 0.36);
}

.courses-page .courses-brochure__btn .btn-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.courses-page .courses-brochure__btn:hover .btn-arrow {
  transform: rotate(45deg);
}

.courses-page .courses-brochure__btn .btn-arrow svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Section 4 — Repair Courses Included
   -------------------------------------------------------------------------- */

.repair-courses {
  background: var(--sc-gray);
  padding: 72px 0 80px;
  position: relative;
}

.repair-courses .sc-sparkle:nth-of-type(1) { top: 20px; left: 4%; }
.repair-courses .sc-sparkle:nth-of-type(2) { bottom: 16px; right: 5%; }

.repair-courses .repair-courses__heading {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--sc-red);
  text-align: center;
  margin: 0 0 40px;
}

.courses-page .repair-courses__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.courses-page .repair-courses__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sc-white);
  border: 1.5px solid rgba(255, 32, 37, 0.35);
  border-radius: var(--sc-radius-pill);
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sc-black);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.courses-page .repair-courses__item:hover {
  border-color: var(--sc-red);
  box-shadow: 0 10px 26px rgba(255, 32, 37, 0.14);
  transform: translateY(-2px);
}

.courses-page .repair-courses__item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-red);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .courses-page .repair-courses__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 4px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .courses-page .repair-courses__item {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Section 5 — Our Facilities
   -------------------------------------------------------------------------- */

.facilities-section {
  background: var(--sc-white);
  padding: 88px 0 96px;
  position: relative;
}

.facilities-section .sc-sparkle:nth-of-type(1) { top: 8px; right: 8%; }
.facilities-section .sc-sparkle:nth-of-type(2) { top: 60px; right: 2%; }

.facilities-section__head {
  max-width: 620px;
  margin-bottom: 48px;
}

.facilities-section .facilities-title {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  color: var(--sc-red);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.facilities-section .facilities-subtext {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sc-text-muted);
  margin: 0;
}

.courses-page .facilities-carousel {
  position: relative;
}

.courses-page .facilities-carousel__track-wrap {
  overflow: hidden;
  border-radius: var(--sc-radius-image);
}

.courses-page .facilities-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.courses-page .facilities-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  border-radius: var(--sc-radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #14181f 0%, #1d2430 45%, #0c1016 100%);
  box-shadow: var(--sc-shadow-card);
  position: relative;
}

.courses-page .facilities-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.courses-page .facilities-slide__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .courses-page .facilities-slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .courses-page .facilities-slide {
    flex-basis: 100%;
  }
}

.courses-page .facilities-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sc-white);
  border: 1.5px solid rgba(255, 32, 37, 0.3);
  color: var(--sc-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sc-shadow-card);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
  z-index: 2;
}

.courses-page .facilities-control svg {
  width: 18px;
  height: 18px;
}

.courses-page .facilities-control:hover {
  background: var(--sc-red);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.courses-page .facilities-control--prev {
  left: -22px;
}

.courses-page .facilities-control--next {
  right: -22px;
}

@media (max-width: 900px) {
  .courses-page .facilities-control--prev { left: -10px; }
  .courses-page .facilities-control--next { right: -10px; }
  .courses-page .facilities-control {
    width: 38px;
    height: 38px;
  }
}

.courses-page .facilities-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.courses-page .facilities-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #D9D9D9;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.courses-page .facilities-dots button[aria-current="true"] {
  background: var(--sc-red);
  width: 22px;
  border-radius: var(--sc-radius-pill);
}

.facilities-section__body {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.facilities-section__body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sc-text-muted);
  margin: 0;
}

.facilities-section__body strong {
  display: block;
  color: var(--sc-black);
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .facilities-section__body {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .courses-page * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}




/* ==================================================
   HERO → GRID "FLYING CARD" OVERLAY
================================================== */

.hero-fly-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 60;
}

.hero-fly-card {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: top, left, width, height, opacity, border-radius;
}

.hero-fly-card img {
  width: 100%;
  height: 65%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.hero-fly-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.15;
  font-family: 'Sora', sans-serif;
  color: #111;
}

/* Below the breakpoint where left/right hero cards are hidden, the
   fan → grid travel effect is disabled (see JS) — hide the overlay too. */
@media (max-width: 991px) {
  .hero-fly-overlay {
    display: none;
  }
}