﻿
  #main { background-color: #fff; }

  .fs-3-5 { font-size: 3.5rem; line-height: 0.9em; }
  .fs-2-5 { font-size: 2.5rem; line-height: 0.9em; }

  .rounded-15 { border-radius: 15px; }

  .hero-parallax-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 16 / 9;
  }

  /* Fallback for older browsers without aspect-ratio support */
  @supports not (aspect-ratio: 1 / 1) {
    .hero-parallax-container::before {
      content: "";
      display: block;
      padding-top: 56.25%;
    }
  }

  /* Ensure media layers fill the aspect box */
  .hero-parallax-container > .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Video */
  .hero-video {
    object-fit: cover;
    border-radius: 15px;
    display: block;
  }

  /* Play/Pause button */
  .hero-video-toggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(17, 24, 39, 0.7);
    color: #fff;
  }
  .hero-video-toggle i { font-size: 16px; }
  .hero-video-toggle:focus { outline: 2px solid #fff; outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .hero-video-toggle { transition: none; } }

  .text-pink { color: #c4006b; }

  .section-heading {
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem 0 2.5rem;
  }

  /* ===== Qualifications 3-up carousel (custom, no Bootstrap JS) ===== */
  #quals .qual-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    text-decoration: none;
  }
  #quals .qual-prev { background: #eef2ff; color: #1e3a8a; }
  #quals .qual-next { background: #1d4ed8; color: #fff; }
  #quals .qual-controls button i { font-size: 18px; }

  #quals .qual-viewport { overflow: hidden; width: 100%; }
  #quals .qual-track { display: flex; gap: 24px; transition: transform .45s ease; will-change: transform; }
  @media (prefers-reduced-motion: reduce) { #quals .qual-track { transition: none; } }

  /* exactly 3 visible items at all widths */
  #quals .qual-item { flex: 0 0 calc((100% - 48px) / 3); }

  #quals .qcard {
    border-radius: 28px;
    padding: 2rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  #quals .qtitle { font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; }
  #quals .qtext { color: #0f172a; font-size: 1rem; line-height: 1.6; }

  /* pastel backgrounds */
  #quals .qcard-peach { background: #fff6ea; }
  #quals .qcard-mint  { background: #eaf7ef; }
  #quals .qcard-grey  { background: #f2f4f7; }
  #quals .qcard-lilac { background: #f5f0ff; }
  #quals .qcard-blue  { background: #eef6ff; }

  /* disabled arrows */
  #quals .qual-controls button.disabled { opacity: .4; pointer-events: none; cursor: default; }

  /* Stack cards vertically on tablets/phones and remove carousel controls */
  @media (max-width: 991.98px) {
    #quals .qual-viewport { overflow: visible; }
    #quals .qual-track { display: block; transform: none !important; }
    #quals .qual-item { width: 100%; margin-bottom: 24px; }
    #quals .qual-controls { display: none !important; }
    #quals .d-md-none { display: none !important; }
    #quals .qcard { min-height: auto; }
  }

  /* ===== Class Gallery ===== */
  #gallery .gallery-lead{ max-width: 80ch; }

  #gallery .gallery-grid{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 190px;
    gap: 18px;
    margin-top: 18px;
  }

  #gallery .g-item{
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #ffffff;
  }

  /* subtle pastel ring feel */
  #gallery .g-item::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 20px;
    box-shadow: inset 0 0 0 6px rgba(196, 0, 107, 0.08);
    opacity: 0;
    transition: opacity 0.12s ease;
  }

  #gallery .g-item:hover::after{ opacity: 1; }

  #gallery .g-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease;
  }

  #gallery .g-item:hover img{ transform: scale(1.02); }

  #gallery .g-big{ grid-row: span 2; }
  #gallery .g-wide{ grid-column: span 2; }

  #gallery .g-cap{
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 2px solid #e2e8f0;
    color: #111827;
    font-weight: 800;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
  }

  #gallery .g-cap i{ color: #c4006b; }

  /* Responsive: simple 2-col then 1-col */
  @media (max-width: 1200px){
    #gallery .gallery-grid{
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: 210px;
    }
    #gallery .g-wide{ grid-column: span 2; }
  }

  @media (max-width: 768px){
    #gallery .gallery-grid{
      grid-template-columns: 1fr;
      grid-auto-rows: 220px;
    }
    #gallery .g-big,
    #gallery .g-wide{ grid-row: auto; grid-column: auto; }
  }

  /* ===== Jobs section (pill list) ===== */
  #jobs .jobs-wrap {
    background: #f2f4f7;
    border: #e2e8f0 2px solid;
  }

  #jobs .jobs-lead {
    max-width: 70ch;
  }

  #jobs .joblist {
    display: flex;
    flex-wrap: wrap;
    gap: 2px !important;          /* spacing between pills */
    column-gap: 2px !important;
    row-gap: 2px !important;
    margin-top: 12px;
  }

  #jobs .job {
    margin: 0;
    padding: 0;
  }

  #jobs .job-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  }

  #jobs .job-pill i {
    color: #c4006b;
  }

  #jobs .job-pill:hover {
    background: #fce8fa;
    border-color: #f2b6dd;
    transform: translateY(-1px);
  }

  #jobs .job-pill:focus {
    outline: 2px solid #111827;
    outline-offset: 2px;
  }

/* ===== Available Courses section ===== */
  #courses .courses-wrap {
    background: #ffffff;
  }

  #courses .courses-lead {
    max-width: 80ch;
  }

  /* Tabs: soft, rounded, matches site palette */
  #courses .nav-tabs {
    border-bottom: 0 !important;
    box-shadow: none !important;
    gap: 10px;
    flex-wrap: wrap;
  }

  #courses .nav-tabs .nav-link {
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    color: #111827;
    font-weight: 700;
    background: #ffffff;
  }

  #courses .nav-tabs .nav-link:hover {
    background: #f2f4f7;
  }

  #courses .nav-tabs .nav-link.active {
    background: #fce8fa;
    border: 0 !important;
    box-shadow: none !important;
    color: #111827;
  }

  #courses .tab-content {
    margin-top: 18px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-bottom: 24px; /* space below tabs / All Courses content */
  }

  #courses .tab-pane > .h5 {
    margin-top: 8px;
  }

  /* ===== Courses list (stacked cards, no icons) ===== */
  #courses .tab-pane ul{
    list-style: none;
    padding-left: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 14px;
  }

  #courses .tab-pane li{
    margin: 0;
  }

  /* Make each course link look like a flat card row */
  #courses .tab-pane li > a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    font-weight: 700;
    color: #c4006b;
    transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
  }

  /* Chevron on the right */
  #courses .tab-pane li > a::after{
    content: '›';
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    flex: 0 0 auto;
  }

  #courses .tab-pane li > a:hover{
    background: #fce8fa;
    border-color: #f2b6dd;
    transform: translateY(-1px);
  }

  #courses .tab-pane li > a:focus{
    outline: 2px solid #111827;
    outline-offset: 2px;
  }

  /* If the component outputs nested links or wrappers, keep them inheriting nicely */
  #courses .tab-pane li > a *{
    color: inherit;
    text-decoration: none;
  }

  /* Reduce spacing on small screens */
  @media (max-width: 576px){
    #courses .tab-pane li > a{
      padding: 16px 16px;
      border-radius: 14px;
    }
  }

  /* ===== Progression section ===== */
  #progression{
    background: #ffffff;
    border-top: 0;
    border-bottom: 0;
  }

  #progression .progression-lead{ max-width: 85ch; }

  #progression .prog-grid{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 22px;
  }

  /* connector line behind the cards */
  #progression .prog-grid::before{
    content: "";
    position: absolute;
    left: 2%;
    right: 2%;
    top: 58%;
    height: 6px;
    background: rgba(59, 130, 246, 0.22);
    border-radius: 999px;
    z-index: 0;
  }

  #progression .prog-card{
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.25rem;
    min-height: 360px;
  }

  #progression .prog-pill{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
  }

  #progression .prog-title{
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: #111827;
  }

  #progression .prog-sub{
    margin: 0 0 16px;
    color: #475569;
    font-size: 1.05rem;
  }

  #progression .prog-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
  }

  #progression .prog-item{
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    align-items: start;
    color: #0f172a;
    line-height: 1.45;
  }

  #progression .prog-item i{
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    font-size: 14px;
    margin-top: 2px;
  }

  /* ===== Career Opportunities ===== */
  #careerOpps .career-lead{ max-width: 80ch; }

  #careerOpps .stats-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
  }

  #careerOpps .stat-card{
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem 1.75rem;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  /* Pastel backgrounds to match page */
  #careerOpps .stat-peach{ background: #fff6ea; }
  #careerOpps .stat-lilac{ background: #f5f0ff; }
  #careerOpps .stat-blue{  background: #eef6ff; }

  #careerOpps .stat-icon{
    color: #c4006b;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 6px;
  }

  #careerOpps .stat-value{
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 2.6rem;
    margin: 0;
    color: #111827;
  }

  #careerOpps .stat-label{
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
  }

  #careerOpps .roles-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
  }

  #careerOpps .role-card{
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem 1.5rem;
    background: #ffffff;
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  }

  #careerOpps .role-card:hover{
    background: #fce8fa;
    border-color: #f2b6dd;
    transform: translateY(-1px);
  }

  #careerOpps .role-title{
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: #111827;
  }

  #careerOpps .role-meta{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.98rem;
  }

  #careerOpps .demand-pill{
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #c4006b;
    white-space: nowrap;
  }

  #careerOpps .role-desc{
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.55;
  }

  #careerOpps .role-cta{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #c4006b;
    text-decoration: none;
  }

  #careerOpps .role-cta:hover{ text-decoration: underline; }

  @media (max-width: 991.98px){
    #careerOpps .stats-grid{ grid-template-columns: 1fr; }
    #careerOpps .roles-grid{ grid-template-columns: 1fr; }
  }

  @media (max-width: 1200px){
    #careerOpps .roles-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 768px){
    #careerOpps .roles-grid{ grid-template-columns: 1fr; }
  }

  /* ===== Faculty section ===== */
  #faculty .faculty-lead{ max-width: 80ch; }

  #faculty .faculty-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 18px;
  }

  #faculty .faculty-card{
    text-align: center;
    padding: 1rem 0.25rem;
  }

  #faculty .faculty-avatar{
    width: 190px;
    height: 190px;
    border-radius: 999px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 2.25rem;
    color: #111827;
    border: 2px solid #e2e8f0;
    background: #f2f4f7;
    overflow: hidden;
  }

  /* If you swap to real photos later, just drop an <img> inside .faculty-avatar */
  #faculty .faculty-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  #faculty .faculty-name{
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0 0 6px;
    color: #111827;
  }

  #faculty .faculty-role{
    display: inline-block;
    font-weight: 800;
    color: #c4006b;
    margin: 0 0 10px;
    text-decoration: none;
  }

  #faculty .faculty-role:hover{ text-decoration: underline; }

  #faculty .faculty-area{
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.5;
  }

  #faculty .faculty-meta{
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  /* subtle pastel ring variants */
  #faculty .ring-peach{ background: #fff6ea; }
  #faculty .ring-lilac{ background: #f5f0ff; }
  #faculty .ring-blue{  background: #eef6ff; }
  #faculty .ring-mint{  background: #eaf7ef; }

  @media (max-width: 1200px){
    #faculty .faculty-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 768px){
    #faculty .faculty-grid{ grid-template-columns: 1fr; }
    #faculty .faculty-avatar{ width: 160px; height: 160px; }
  }

  /* ===== Enquiry CTA section ===== */
  #enquiryCta{
    background: #f2f4f7; /* soft neutral, no blue */
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.25rem;
  }

  #enquiryCta .enquiry-kicker{
    color: #c4006b;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  #enquiryCta .enquiry-title{
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 2.4rem;
    margin: 0 0 10px;
    color: #111827;
  }

  #enquiryCta .enquiry-copy{
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 70ch;
  }

  #enquiryCta .enquiry-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }

  #enquiryCta .btn-outline-soft{
    border: 2px solid #111827;
    background: transparent;
    color: #111827;
    font-weight: 800;
    border-radius: 14px;
    padding: 0.7rem 1.1rem;
  }
  #enquiryCta .btn-outline-soft:hover{
    background: #ffffff;
  }

  #enquiryCta .contact-list{
    display: grid;
    gap: 14px;
    margin-top: 10px;
  }

  #enquiryCta .contact-item{
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: #111827;
  }

  #enquiryCta .contact-item i{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c4006b;
    font-size: 16px;
    margin-top: 2px;
  }

  #enquiryCta .contact-item .label{
    display: block;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  #enquiryCta .contact-item .value{
    display: block;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
  }

  #enquiryCta .enquiry-card{
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
  }

  #enquiryCta .enquiry-card h4{
    font-weight: 900;
    margin: 0 0 14px;
    color: #111827;
  }

  #enquiryCta .form-label{
    font-weight: 800;
    color: #111827;
  }

  #enquiryCta .form-control,
  #enquiryCta .form-select{
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    padding: 0.7rem 0.9rem;
  }

  #enquiryCta .form-control:focus,
  #enquiryCta .form-select:focus{
    border-color: #111827;
    box-shadow: none;
  }

  #enquiryCta .btn-submit{
    width: 100%;
    border-radius: 14px;
    font-weight: 900;
    padding: 0.85rem 1rem;
  }

  @media (max-width: 991.98px){
    #enquiryCta{ padding: 1.5rem; }
    #enquiryCta .enquiry-title{ font-size: 2rem; }
  }

  /* ===== Important Dates ===== */
  #importantDates .dates-wrap{
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
  }

  #importantDates .dates-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
  }

  #importantDates .date-card{
    background: #f2f4f7;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem 1.5rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #importantDates .date-value{
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 2.1rem;
    color: #111827;
    margin: 0 0 6px;
  }

  #importantDates .date-label{
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 700;
  }

  #importantDates .date-note{
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  @media (max-width: 1200px){
    #importantDates .dates-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 576px){
    #importantDates .dates-wrap{ padding: 1.5rem; }
    #importantDates .dates-grid{ grid-template-columns: 1fr; }
    #importantDates .date-card{ min-height: auto; }
  }

  /* Responsive: stack cards + remove connector line */
  @media (max-width: 991.98px){
    #progression .prog-grid{
      grid-template-columns: 1fr;
      gap: 18px;
    }
    #progression .prog-grid::before{ display: none; }
    #progression .prog-card{ min-height: auto; }
    #progression .prog-title{ font-size: 1.75rem; }
  }

  /* ===== Testimonials carousel: ensure nav arrows are visible/clickable ===== */
  #testimonials .tw-stage{
    position: relative;
    overflow: visible !important; /* prevent clipping */
  }

  #testimonials .tw-controls{
    display: flex !important;      /* override any responsive hiding */
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999;
    pointer-events: none;          /* only the buttons should be clickable */
  }

  #testimonials .tw-controls button{
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* If icon fonts fail to load, show a text fallback */
  #testimonials .tw-controls button.tw-prev i,
  #testimonials .tw-controls button.tw-next i{
    display: inline-block;
  }
  #testimonials .tw-controls button.tw-prev::before{ content: '‹'; font-size: 28px; line-height: 1; }
  #testimonials .tw-controls button.tw-next::before{ content: '›'; font-size: 28px; line-height: 1; }

  /* If Font Awesome loads, it will render the <i>; hide the fallback by setting it behind */
  #testimonials .tw-controls button i{ position: relative; z-index: 1; }
  #testimonials .tw-controls button.tw-prev::before,
  #testimonials .tw-controls button.tw-next::before{ position: absolute; z-index: 0; }

  /* Don’t visually “vanish” when disabled */
  #testimonials .tw-controls button:disabled{
    opacity: .45;
  }
