/* ==========================================================================
   MATSELIM - OUR PROGRAMS PAGE STYLESHEET
   Exact Pixel-Perfect Match to PDF Design
   ========================================================================== */

:root {
  --navy: #071441;
  --navy-dark: #050f33;
  --teal: #447580;
  --yellow: #f0d43a;
  --yellow-hover: #e5c626;
  --gray-bg: #d9d9d9;
  --white: #ffffff;
  --red-text: #8b1e1e;
  --text-dark: #111111;
  --text-muted: #222222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 70px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow);
  color: #0b0b0b;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}

.btn-yellow:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   1. HERO & NAVBAR SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #ffffff;
  min-height: clamp(720px, 50vw, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg-wrapper {
  position: absolute;
  top: 112px;
  right: max(0px, calc((100vw - 1920px) / 2));
  bottom: 0;
  width: 82%;
  max-width: 1580px;
  height: calc(100% - 112px);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 34px;
  padding-bottom: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}

.brand-logo img {
  width: 118px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-left: 40px;
  order: 2;
}

.nav-link {
  font-size: 16.5px;
  font-weight: 500;
  color: #1a1a1a;
}

.nav-link:hover {
  color: var(--teal);
}

.nav-link.active {
  color: var(--teal);
  font-weight: 600;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  order: 3;
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  width: 185px;
  height: 52px;
  border-radius: 50px;
  white-space: nowrap;
}

.btn-connect:hover {
  background-color: #10246b;
}

.mobile-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background-color: rgba(7, 20, 65, 0.06);
  border: 1.5px solid rgba(7, 20, 65, 0.16);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  z-index: 1001;
}

.mobile-burger-btn:hover {
  background-color: rgba(7, 20, 65, 0.12);
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-burger-btn.active .burger-bar:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}

.mobile-burger-btn.active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-burger-btn.active .burger-bar:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Hero Text Content */
.hero-content {
  margin-top: 135px;
  margin-bottom: 150px;
  max-width: 960px;
}

.hero-title {
  font-size: 80px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 34px;
}

.hero-desc {
  font-size: 24px;
  font-weight: 400;
  color: #111111;
  line-height: 1.56;
  margin-bottom: 48px;
}

.btn-explore {
  width: 192px;
  height: 52px;
  font-size: 15.5px;
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 58px;
}

.section-title {
  font-size: 74px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 23.5px;
  font-weight: 400;
  color: #181818;
  line-height: 1.55;
  max-width: 1380px;
  margin: 0 auto;
}

.section-header-light .section-title {
  color: var(--white);
}

.section-header-light .section-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   2. EXPLORE OUR COURSES SECTION
   ========================================================================== */
.courses-section {
  background-color: var(--navy);
  padding: 105px 0 118px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  margin-top: 66px;
}

.course-card {
  background-color: var(--gray-bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-img-wrap {
  width: 100%;
  height: 202px;
  overflow: hidden;
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.course-body {
  padding: 30px 22px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.course-title {
  font-size: 23.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}

.course-years {
  font-size: 18.5px;
  font-weight: 500;
  color: var(--red-text);
  margin-bottom: 14px;
}

.course-desc {
  font-size: 15px;
  font-weight: 400;
  color: #141414;
  line-height: 1.56;
  margin-bottom: 24px;
  flex: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 6px;
  margin-bottom: 22px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--teal);
}

.meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.star-icon {
  width: 15px;
  height: 15px;
  color: var(--yellow);
  flex-shrink: 0;
}

.btn-programme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  width: 230px;
  height: 46px;
  border-radius: 50px;
}

.btn-programme:hover {
  background-color: #11266c;
}

/* ==========================================================================
   3. GRAY SURFACE & REGISTRATION GUIDES
   ========================================================================== */
.gray-surface {
  background-color: var(--gray-bg);
  position: relative;
}

.guide-section {
  padding-top: 115px;
  padding-bottom: 40px;
}

/* Stepper */
.stepper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 64px auto 64px;
}

.stepper-line {
  position: absolute;
  top: 50%;
  left: 50px;
  right: 50px;
  height: 1.5px;
  background-color: #2b2b2b;
  transform: translateY(-50%);
  z-index: 1;
}

.step-circle {
  position: relative;
  z-index: 2;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1.8px solid var(--navy);
  color: var(--navy);
  font-family: inherit;
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-circle.active {
  background-color: var(--navy);
  color: var(--white);
}

.step-circle:hover:not(.active) {
  background-color: #f0f2f8;
}

/* Step Banner Card */
.step-banner {
  background-color: var(--teal);
  max-width: 1175px;
  margin: 0 auto;
  padding: 78px 70px 78px;
  border-radius: 40px 185px 40px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.step-banner-header,
.step-banner-desc {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.step-banner.slide-out-left .step-banner-header,
.step-banner.slide-out-left .step-banner-desc {
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-banner.slide-in-right .step-banner-header,
.step-banner.slide-in-right .step-banner-desc {
  transform: translateX(60px);
  opacity: 0;
  transition: none !important;
}

.step-banner-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.step-number-label {
  font-size: 78px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.step-divider {
  width: 2.5px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.85);
  display: inline-block;
}

.step-title-label {
  font-size: 50px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.15;
}

.step-banner-desc {
  font-size: 27px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.56;
  max-width: 890px;
  margin: 0 auto;
}

/* ==========================================================================
   4. STUDENT & TUTOR AUTHENTICATION SECTIONS
   ========================================================================== */
.auth-section {
  padding-top: 86px;
  padding-bottom: 85px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 88px;
  margin-top: 56px;
}

.auth-card {
  background-color: var(--navy);
  border-radius: 42px;
  padding: 20px 20px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-img-frame {
  width: 100%;
  height: 356px;
  border-radius: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  background-color: var(--navy-dark);
}

.auth-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* In Tutors Authentication, the white card frame shows the photo centered with white side margins */
.auth-img-white-bg {
  background-color: var(--white);
  border-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-img-white-bg img.tutor-img-login {
  width: 63%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.auth-img-white-bg img.tutor-img-register {
  width: 71%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.auth-card-body {
  padding: 28px 30px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.auth-card-title {
  font-size: 31px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 14px;
}

.auth-card-desc {
  font-size: 16.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 30px;
}

.btn-auth {
  width: 335px;
  height: 55px;
  font-size: 17px;
  font-weight: 600;
}

/* ==========================================================================
   5. SIDE TEAL ACCENT BARS BETWEEN STUDENTS & TUTORS
   ========================================================================== */
.side-accent-bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 40px 0 10px;
}

.accent-bar {
  display: block;
  width: 24%;
  max-width: 460px;
  height: 11px;
  background-color: var(--teal);
}

.left-bar {
  border-radius: 0 10px 10px 0;
}

.right-bar {
  border-radius: 10px 0 0 10px;
}

.tutors-guide-section {
  padding-top: 95px;
}

.tutors-auth-section {
  padding-bottom: 120px;
}

/* ==========================================================================
   6. FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: var(--teal);
  border-radius: 82px 82px 0 0;
  padding: 98px 0 46px;
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 1.5fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  margin-left: 38px;
  margin-bottom: 28px;
}

.footer-logo img {
  width: 132px;
  height: auto;
}

.footer-about-text {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.85;
}

.footer-heading {
  font-size: 21px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links a {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
}

.contact-list li.contact-address {
  align-items: flex-start;
}

.contact-list li.contact-address .contact-icon {
  margin-top: 3px;
}

.contact-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-icon-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-icon-link:hover {
  color: var(--yellow);
  transform: scale(1.08);
}

.social-icon-link svg {
  width: 32px;
  height: 32px;
}

/* Let's Connect Banner */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  margin-top: 56px;
  margin-bottom: 54px;
}

.lets-connect-text {
  font-size: 92px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}

.btn-footer-contact {
  width: 194px;
  height: 55px;
  font-size: 16.5px;
  font-weight: 600;
}

/* Copyright Bottom */
.footer-bottom {
  border-top: 1.5px solid rgba(255, 255, 255, 0.78);
  padding-top: 32px;
  text-align: center;
}

.copyright-text {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   7. STUDENT LOGIN MODAL PORTAL
   ========================================================================== */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 15, 51, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-portal {
  position: relative;
  width: 100%;
  max-width: 940px;
  background-color: var(--navy);
  border-radius: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-overlay.active .login-modal-portal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Left Brand Side */
.portal-brand-side {
  background-color: var(--teal);
  padding: 52px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.portal-brand-side::after {
  content: '';
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(240, 212, 58, 0.12);
  pointer-events: none;
}

.portal-logo-badge {
  background-color: var(--white);
  padding: 14px 22px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(7, 20, 65, 0.22);
}

.portal-logo-badge img {
  width: 112px;
  height: auto;
}

.portal-welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.25;
  margin-bottom: 14px;
}

.portal-welcome-text {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 28px;
}

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

.portal-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.highlight-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--yellow);
  flex-shrink: 0;
}

/* Right Form Side */
.portal-form-side {
  padding: 52px 48px;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-form-header {
  margin-bottom: 28px;
}

.portal-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--yellow);
  background-color: rgba(240, 212, 58, 0.14);
  border: 1px solid rgba(240, 212, 58, 0.35);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.portal-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.portal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.portal-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 48px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-input:focus {
  border-color: var(--yellow);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(240, 212, 58, 0.18);
}

.toggle-password-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.toggle-password-btn:hover,
.toggle-password-btn.showing {
  color: var(--yellow);
}

.toggle-password-btn svg {
  width: 20px;
  height: 20px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin-top: -2px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow);
  cursor: pointer;
}

.forgot-link {
  color: var(--yellow);
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-portal-submit {
  width: 100%;
  height: 54px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  margin-top: 4px;
  box-shadow: 0 8px 20px rgba(240, 212, 58, 0.25);
}

.login-feedback {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.login-feedback.success {
  color: var(--yellow);
  font-weight: 500;
}

.login-feedback.error {
  color: #ff6b6b;
  font-weight: 500;
}

.portal-footer-prompt {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.portal-footer-prompt a {
  color: var(--yellow);
  font-weight: 600;
}

.portal-footer-prompt a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   8. STUDENT REGISTRATION & INTAKE MODAL PORTAL
   ========================================================================== */
.register-modal-portal {
  max-width: 980px;
  grid-template-columns: 1fr;
  max-height: 92vh;
  overflow-y: auto;
}

/* Custom scrollbar for registration modal */
.register-modal-portal::-webkit-scrollbar {
  width: 8px;
}

.register-modal-portal::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

.register-modal-portal::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 10px;
}

.intake-modal-header {
  background-color: var(--teal);
  padding: 32px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.intake-logo-badge {
  background-color: var(--white);
  padding: 12px 18px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(7, 20, 65, 0.22);
}

.intake-logo-badge img {
  width: 96px;
  height: auto;
}

.intake-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intake-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.25;
  margin-bottom: 4px;
}

.intake-subtitle {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.94);
}

.intake-form {
  padding: 36px 44px 40px;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.intake-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.intake-field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intake-full-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intake-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.2px;
}

.intake-input {
  padding: 0 16px;
  height: 48px;
  font-size: 14.5px;
}

.intake-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f0d43a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.intake-select option {
  background-color: var(--navy);
  color: var(--white);
}

/* Date of Birth DD / MM / YYYY */
.dob-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dob-part {
  width: 78px;
  text-align: center;
  padding: 0 10px;
}

.dob-year {
  width: 110px;
  text-align: center;
  padding: 0 10px;
}

.dob-sep {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

/* Checkboxes for Primary Subjects & Focus Areas */
.intake-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.focus-areas-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.intake-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.intake-checkbox-item:hover {
  border-color: rgba(240, 212, 58, 0.55);
  background-color: rgba(255, 255, 255, 0.1);
}

.intake-checkbox-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
}

.intake-textarea {
  height: auto;
  min-height: 92px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.55;
}

.intake-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.btn-intake-submit {
  width: 100%;
  max-width: 420px;
  height: 54px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(240, 212, 58, 0.25);
}

/* Tutor Application Section Banners (1. Personal & Contact / 2. Academic Background) */
.tutor-section-banner {
  background-color: rgba(68, 117, 128, 0.25);
  border-left: 5px solid var(--yellow);
  padding: 12px 18px;
  border-radius: 6px 12px 12px 6px;
  margin-top: 4px;
}

.tutor-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   9. COURSE PROGRAMME DETAILS MODAL PORTAL
   ========================================================================== */
.course-detail-portal {
  max-width: 1020px;
}

.course-modal-header {
  align-items: center;
}

.course-modal-thumb-wrap {
  width: 148px;
  height: 122px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(7, 20, 65, 0.35);
  flex-shrink: 0;
}

.course-modal-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.course-modal-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.course-modal-badges .portal-badge {
  margin-bottom: 0;
}

.course-modal-years-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background-color: rgba(7, 20, 65, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 14px;
  border-radius: 50px;
}

.course-modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.course-stat-pill {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 13px;
  border-radius: 50px;
}

.course-stat-pill strong {
  color: var(--yellow);
}

#courseDetailModal .course-modal-body,
.course-modal-body {
  color: #ffffff !important;
}

#courseDetailModal .course-modal-overview,
.course-modal-overview {
  font-size: 15.5px;
  line-height: 1.75;
  color: #ffffff !important;
  margin-top: 4px;
}

#courseDetailModal .course-info-box,
.course-info-box {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 22px 24px;
}

#courseDetailModal .course-box-title,
.course-box-title {
  font-size: 17px;
  font-weight: 700;
  color: #f0d43a !important;
  margin-bottom: 14px;
}

#courseDetailModal .course-bullet-list,
.course-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#courseDetailModal .course-bullet-list li,
.course-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #ffffff !important;
}

#courseDetailModal .course-bullet-list li::before,
.course-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f0d43a;
}

#courseDetailModal .course-delivery-grid,
.course-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

#courseDetailModal .course-delivery-card,
.course-delivery-card {
  background-color: rgba(68, 117, 128, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
}

#courseDetailModal .course-delivery-card h5,
.course-delivery-card h5 {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0d43a !important;
  margin-bottom: 6px;
}

#courseDetailModal .course-delivery-card p,
.course-delivery-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff !important;
}

.course-modal-actions {
  margin-top: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Widescreen, 1440px Laptops, Tablets, Mobile)
   ========================================================================== */
@media (min-width: 1921px) {
  .hero-section {
    min-height: 920px;
  }
  .hero-bg-wrapper {
    top: 116px;
    height: calc(100% - 116px);
    max-width: 1620px;
  }
}

@media (max-width: 1600px) {
  .container {
    max-width: 1400px;
    padding: 0 50px;
  }
  .hero-section {
    min-height: clamp(680px, 50vw, 780px);
  }
  .hero-bg-wrapper {
    top: 98px;
    height: calc(100% - 98px);
    width: 78%;
  }
  .hero-content {
    margin-top: 95px;
    margin-bottom: 105px;
    max-width: 58%;
  }
  .hero-title {
    font-size: clamp(48px, 4.1vw, 66px);
  }
  .hero-desc {
    font-size: clamp(17px, 1.3vw, 20px);
  }
  .section-title {
    font-size: clamp(44px, 3.8vw, 60px);
  }
  .section-subtitle {
    font-size: clamp(17px, 1.3vw, 20px);
  }
  .courses-grid {
    gap: 28px;
  }
  .course-title {
    font-size: 20px;
  }
  .course-years {
    font-size: 16px;
  }
  .course-desc {
    font-size: 13.5px;
  }
  .course-meta {
    font-size: 13px;
  }
  .btn-programme {
    width: 195px;
    height: 42px;
    font-size: 14px;
  }
  .step-banner {
    max-width: 1020px;
    padding: 64px 50px;
  }
  .step-number-label {
    font-size: 64px;
  }
  .step-title-label {
    font-size: 42px;
  }
  .step-banner-desc {
    font-size: 22px;
  }
  .auth-grid {
    gap: 50px;
  }
  .auth-img-frame {
    height: 310px;
  }
  .lets-connect-text {
    font-size: 74px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 36px;
  }
  .hero-section {
    min-height: 640px;
  }
  .hero-bg-wrapper {
    top: 96px;
    height: calc(100% - 96px);
    width: 72%;
    opacity: 1;
  }
  .hero-content {
    max-width: 54%;
    margin-top: 70px;
    margin-bottom: 80px;
  }
  .hero-title {
    font-size: clamp(38px, 3.8vw, 48px);
    margin-bottom: 22px;
  }
  .hero-desc {
    font-size: 16.5px;
    margin-bottom: 34px;
  }
  .hero-desc br {
    display: none;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-social {
    align-items: flex-start;
  }
  .social-icons {
    flex-direction: row;
  }
}

@media (max-width: 991px) {
  .container {
    padding: 0 24px;
  }
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 14px;
    gap: 12px;
  }
  .brand-logo {
    order: 1 !important;
  }
  .brand-logo img {
    width: 98px;
  }
  .nav-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    order: 2 !important;
    margin-left: auto !important;
  }
  .mobile-burger-btn {
    display: flex !important;
  }
  .btn-connect {
    width: auto;
    min-width: 110px;
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin-left: 0;
    background-color: #ffffff;
    border: 1.5px solid rgba(7, 20, 65, 0.12);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(7, 20, 65, 0.16);
    flex-direction: column !important;
    align-items: stretch;
    padding: 18px 20px;
    gap: 6px;
    z-index: 1000;
    order: 3 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    font-size: 15.5px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--navy);
  }
  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(68, 117, 128, 0.1);
    color: var(--teal);
  }
  .hero-section {
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-container {
    order: 1;
  }
  .hero-content {
    max-width: 100%;
    margin-top: 36px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(34px, 6vw, 46px);
    margin-bottom: 18px;
  }
  .hero-desc {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero-bg-wrapper {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    opacity: 1;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
  }
  .hero-bg-image {
    width: 136%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
  }
  .section-title {
    font-size: clamp(32px, 5.2vw, 42px);
  }
  .section-subtitle {
    font-size: 16px;
  }
  .section-subtitle br,
  .hero-desc br,
  .step-banner-desc br,
  .auth-card-desc br {
    display: none;
  }
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .step-circle {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
  .step-banner {
    border-radius: 28px 90px 28px 28px;
    padding: 42px 24px;
  }
  .step-divider {
    display: none;
  }
  .step-number-label {
    font-size: 44px;
  }
  .step-title-label {
    font-size: 28px;
  }
  .step-banner-desc {
    font-size: 17px;
  }
  .footer-cta {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .lets-connect-text {
    font-size: 46px;
  }
  .login-modal-portal {
    grid-template-columns: 1fr;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
  }
  .portal-brand-side {
    padding: 32px 28px 26px;
    align-items: center;
    text-align: center;
  }
  .portal-highlights {
    display: none;
  }
  .portal-welcome-text {
    margin-bottom: 0;
  }
  .portal-form-side {
    padding: 32px 28px 36px;
  }
  .register-modal-portal {
    max-width: 640px;
  }
  .intake-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 16px;
  }
  .intake-header-text {
    align-items: center;
  }
  .intake-form {
    padding: 28px 24px 32px;
  }
  .intake-grid-2,
  .focus-areas-group,
  .course-delivery-grid {
    grid-template-columns: 1fr;
  }
  .course-modal-badges,
  .course-modal-stats {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .navbar {
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .brand-logo img {
    width: 82px;
  }
  .nav-right-actions {
    gap: 8px;
  }
  .btn-connect {
    min-width: auto;
    padding: 0 14px;
    height: 38px;
    font-size: 12.5px;
    font-weight: 700;
  }
  .mobile-burger-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .burger-bar {
    width: 18px;
  }
  .mobile-burger-btn.active .burger-bar:nth-child(1) {
    transform: translateY(6.2px) rotate(45deg);
  }
  .mobile-burger-btn.active .burger-bar:nth-child(3) {
    transform: translateY(-6.2px) rotate(-45deg);
  }
  .nav-links {
    padding: 14px 16px;
  }
  .nav-link {
    font-size: 14.5px;
    padding: 9px 12px;
  }
  .hero-content {
    margin-top: 26px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .btn-explore {
    width: 165px;
    height: 46px;
    font-size: 14.5px;
  }
  .hero-bg-image {
    width: 148%;
  }
  .courses-section {
    padding: 64px 0 72px;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: 30px;
    margin-bottom: 12px;
  }
  .section-subtitle {
    font-size: 14.5px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }
  .course-img-wrap {
    height: 215px;
  }
  .guide-section {
    padding-top: 64px;
    padding-bottom: 24px;
  }
  .stepper {
    margin: 34px auto;
  }
  .stepper-line {
    left: 24px;
    right: 24px;
  }
  .step-circle {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
  .step-banner {
    border-radius: 22px 56px 22px 22px;
    padding: 32px 18px;
  }
  .step-banner-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }
  .step-number-label {
    font-size: 34px;
  }
  .step-title-label {
    font-size: 22px;
  }
  .step-banner-desc {
    font-size: 15px;
    line-height: 1.6;
  }
  .auth-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .auth-grid {
    gap: 28px;
    margin-top: 32px;
  }
  .auth-card {
    border-radius: 26px;
    padding: 14px 14px 26px;
  }
  .auth-img-frame {
    height: 220px;
    border-radius: 20px;
  }
  .auth-card-body {
    padding: 20px 10px 0;
  }
  .auth-card-title {
    font-size: 24px;
  }
  .auth-card-desc {
    font-size: 14.5px;
    margin-bottom: 22px;
  }
  .btn-auth {
    width: 100%;
    height: 48px;
    font-size: 15.5px;
  }
  .side-accent-bars {
    padding: 20px 0 6px;
  }
  .tutors-guide-section {
    padding-top: 56px;
  }
  .tutors-auth-section {
    padding-bottom: 72px;
  }
  .site-footer {
    border-radius: 38px 38px 0 0;
    padding: 56px 0 32px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-logo {
    margin-left: 0;
    margin-bottom: 16px;
  }
  .footer-about-text,
  .footer-links a,
  .contact-list li {
    font-size: 15.5px;
  }
  .footer-about-text br,
  .contact-address br {
    display: none;
  }
  .footer-cta {
    margin-top: 38px;
    margin-bottom: 36px;
    gap: 18px;
  }
  .lets-connect-text {
    font-size: 36px;
  }
  .footer-bottom {
    padding-top: 22px;
  }
  .copyright-text {
    font-size: 14.5px;
  }
  .login-modal-overlay {
    padding: 12px;
  }
  .login-modal-portal {
    border-radius: 24px;
  }
  .intake-modal-header {
    padding: 22px 18px;
  }
  .intake-title {
    font-size: 21px;
  }
  .intake-form {
    padding: 20px 18px 26px;
    gap: 16px;
  }
  .dob-part {
    width: 64px;
  }
  .dob-year {
    width: 92px;
  }
}
