
  .homepage-guide {
    position: relative;
    z-index: 3;
    padding: clamp(34px, 5vw, 58px) 0;
    background: #fff;
  }

  .homepage-guide-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: stretch;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(13,20,87,0.04), rgba(245,166,35,0.09));
    border: 1px solid rgba(13,20,87,0.08);
    box-shadow: 0 22px 55px rgba(13,20,87,0.10);
  }

  .homepage-guide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .homepage-guide-copy h2 {
    margin: 0 0 14px;
    color: var(--navy-dark);
    font-family: var(--heading-font);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: 0;
  }

  .homepage-guide-copy p {
    color: var(--gray);
    line-height: 1.75;
    font-size: 17px;
  }

  .homepage-guide-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .homepage-guide-links a {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 4px;
    min-height: 118px;
    align-content: center;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(13,20,87,0.09);
    color: var(--navy-dark);
    box-shadow: 0 14px 34px rgba(13,20,87,0.08);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  }

  .homepage-guide-links a:hover {
    transform: translateY(-4px);
    border-color: rgba(245,166,35,0.48);
    box-shadow: 0 18px 40px rgba(13,20,87,0.13);
  }

  .homepage-guide-links span {
    grid-row: 1 / span 2;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    font-weight: 900;
    font-size: 13px;
  }

  .homepage-guide-links strong {
    align-self: end;
    font-size: 19px;
    line-height: 1.22;
  }

  .homepage-guide-links small {
    color: var(--gray);
    font-weight: 700;
    line-height: 1.45;
  }

  #about {
    padding-top: clamp(76px, 8vw, 110px);
    padding-bottom: clamp(70px, 7vw, 104px);
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,249,255,0.96)),
      url(""../assets/images/hero (4).avif"") center/cover;
  }

  #about:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 18% 12%, rgba(245,166,35,0.14), transparent 30%),
      radial-gradient(circle at 82% 0%, rgba(26,35,126,0.10), transparent 32%);
    pointer-events: none;
  }

  #about .container {
    position: relative;
    z-index: 1;
  }

  #about .section-title {
    margin-bottom: clamp(36px, 5vw, 58px);
  }

  #about .section-title h2 {
    font-size: clamp(40px, 5.3vw, 72px);
    line-height: 1.02;
    color: var(--navy-dark);
  }

  #about .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 34px);
  }

  #about .feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid rgba(13,20,87,0.10);
    border-top: 0;
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 54px rgba(13,20,87,0.12);
  }

  #about .feature-card:hover {
    border-color: rgba(245,166,35,0.42);
    background: rgba(255,255,255,0.94);
  }

  #about .feature-media {
    width: min(150px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13,20,87,0.08);
    box-shadow: 0 16px 36px rgba(13,20,87,0.18);
  }

  #about .feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #about .feature-media.is-logo {
    display: grid;
    place-items: center;
    padding: 16px;
  }

  #about .feature-media.is-logo img {
    object-fit: contain;
  }

  #about .feature-card h3 {
    margin: 0 auto 10px;
    max-width: 240px;
    font-size: clamp(19px, 1.55vw, 25px);
    line-height: 1.22;
  }

  #about .feature-card p {
    max-width: 250px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.65;
  }

  #about .feature-card-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

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

  @media (max-width: 900px) {
    #about .features-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #about .feature-card {
      padding: 18px 14px;
      border-radius: 22px;
    }

    #about .feature-media {
      width: min(118px, 100%);
      margin-bottom: 14px;
      border-radius: 18px;
    }

    #about .feature-card h3 {
      font-size: clamp(16px, 4.4vw, 20px);
    }

    #about .feature-card p {
      font-size: 13.5px;
    }
  }

  @media (max-width: 480px) {
    #about .features-grid {
      gap: 14px !important;
    }
  }

  #programs {
    padding-top: clamp(82px, 9vw, 122px);
    padding-bottom: clamp(82px, 9vw, 122px);
    background: #fff;
  }

  #programs .programs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(30px, 3.5vw, 46px);
  }

  #programs .program-card {
    height: 310px;
    min-height: 0;
    padding: 0;
    border-radius: 32px !important;
    background: #fff;
    border: 1px solid rgba(13,20,87,0.08) !important;
    box-shadow: 0 18px 46px rgba(13,20,87,0.12);
    display: block;
    overflow: hidden;
  }

  #programs .program-card:first-child {
    min-height: 0;
  }

  #programs .program-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: saturate(1.08) contrast(1.03) brightness(1.02);
    transform-origin: center;
    transform: none !important;
    transition: filter 0.35s ease !important;
  }

  #programs .program-overlay {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 24px;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(13,20,87,0.95), rgba(13,20,87,0.08));
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
  }

  #programs .program-overlay h3 {
    color: var(--white);
    text-shadow: 0 10px 28px rgba(0,0,0,.22);
    font-size: 28px;
    margin-bottom: 10px;
  }

  #programs .program-overlay p {
    color: rgba(255,255,255,0.82);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
  }

  #programs .program-card:hover {
    box-shadow: 0 28px 70px rgba(13,20,87,0.17);
  }

  #programs .program-card:hover img {
    transform: none !important;
    filter: saturate(1.08) contrast(1.03) brightness(1.02);
  }

  html[dir="rtl"] #programs .program-overlay {
    text-align: right;
    align-items: flex-end;
  }

  .test-prep {
    padding-top: clamp(82px, 8vw, 116px);
    padding-bottom: clamp(82px, 8vw, 116px);
    background: linear-gradient(135deg, rgba(13,20,87,0.045), rgba(245,166,35,0.075));
  }

  .test-prep .prep-grid {
    gap: 22px;
  }

  .test-prep .prep-card {
    min-height: 252px;
    border: 1px solid rgba(13,20,87,0.08);
    background: #fff;
    box-shadow: 0 18px 42px rgba(13,20,87,0.10);
  }

  .test-prep .prep-image {
    border-bottom: 1px solid rgba(13,20,87,0.08);
  }

  .test-prep .prep-card-toefl .prep-image {
    background:
      linear-gradient(135deg, rgba(248,249,255,0.96), rgba(238,240,248,0.94));
  }

  .test-prep .prep-card-toefl img {
    padding: 14px;
    object-fit: contain;
  }

  #study-modes {
    padding-top: clamp(82px, 8vw, 116px);
    padding-bottom: clamp(82px, 8vw, 116px);
    background: #fff;
  }

  #study-modes .study-card {
    border: 1px solid rgba(13,20,87,0.08);
    background: #fff;
  }

  .camps-section {
    background: linear-gradient(135deg, rgba(13,20,87,0.96), rgba(26,35,126,0.92));
    color: #fff;
  }

  .camps-section h2,
  .camps-section p {
    color: #fff;
  }

  .camps-section .mini-title {
    background: rgba(255,255,255,0.12);
    color: var(--gold-light);
  }

  @media (max-width: 980px) {
    .homepage-guide-shell {
      grid-template-columns: 1fr;
    }

    #programs .programs-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
    }

    #programs .program-card,
    #programs .program-card:first-child {
      height: 320px;
      min-height: 0;
    }
  }

  @media (max-width: 760px) {
    #programs .programs-grid {
      grid-template-columns: 1fr;
      gap: 22px;
      max-width: 520px;
      margin-inline: auto;
    }
  }

  @media (max-width: 640px) {
    .homepage-guide {
      padding: 24px 0 38px;
    }

    .homepage-guide-shell {
      padding: 20px;
      border-radius: 22px;
    }

    .homepage-guide-links {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .homepage-guide-links a {
      grid-template-columns: 1fr;
      min-height: 142px;
      padding: 15px;
    }

    .homepage-guide-links span {
      width: 36px;
      height: 36px;
    }

    .homepage-guide-links strong {
      font-size: 16px;
    }

    .homepage-guide-links small {
      font-size: 12px;
    }

    #programs .programs-grid {
      gap: 20px;
      max-width: 100%;
    }

    #programs .program-card,
    #programs .program-card:first-child {
      height: auto;
      aspect-ratio: 16 / 11;
      padding: 0;
      border-width: 1px;
      border-radius: 24px !important;
      box-shadow: 0 14px 34px rgba(13,20,87,0.12);
    }

    #programs .program-card img {
      border-radius: inherit;
    }

    #programs .program-overlay {
      inset: 0;
      min-height: 0;
      padding: 18px;
      border-radius: inherit;
      background: linear-gradient(to top, rgba(13,20,87,0.92), rgba(13,20,87,0.02) 68%);
    }

    #programs .program-overlay h3 {
      font-size: clamp(22px, 7vw, 28px);
      line-height: 1.08;
    }

    #programs .program-overlay p {
      max-width: 30ch;
      font-size: 13px;
      line-height: 1.55;
    }
  }

  @media (max-width: 390px) {
    #programs .program-card,
    #programs .program-card:first-child {
      aspect-ratio: 4 / 3;
    }

    #programs .program-overlay {
      padding: 15px;
    }

    #programs .program-overlay p {
      font-size: 12px;
    }
  }

  /* Homepage responsive polish */
  #programs .program-card img,
  #programs .program-card:hover img,
  #programs .program-card:focus-visible img {
    transform: none !important;
  }

  @media (hover: none) {
    .feature-card:hover,
    .program-card:hover,
    .prep-card:hover,
    .activity-card:hover,
    .study-card:hover {
      transform: none !important;
      --lift: 0;
    }

    .feature-card:hover:after,
    .program-card:hover:after,
    .prep-card:hover:after,
    .activity-card:hover:after,
    .study-card:hover:after {
      opacity: 0;
    }
  }

  @media (max-width: 768px) {
    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
    }

    .hero-content,
    .section-title,
    .section-header {
      width: min(100%, calc(100vw - 24px));
      margin-inline: auto;
    }

    .hero {
      min-height: 100svh !important;
      padding-inline: 0 !important;
    }

    .hero-buttons {
      width: 100%;
      align-items: center;
    }

    .hero-buttons .btn {
      width: min(100%, 340px);
    }

    #about .section-title h2,
    #programs .section-title h2 {
      font-size: clamp(30px, 8.5vw, 42px) !important;
    }

    #about .features-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 14px !important;
    }

    #about .feature-card {
      min-width: 0;
      padding: 16px 12px;
    }

    #programs .programs-grid,
    .test-prep .prep-grid,
    .activities-grid,
    .study-grid {
      width: min(100%, 520px);
      margin-inline: auto;
    }

    #programs .program-card {
      max-width: 100%;
    }

    .prep-card,
    .activity-card,
    .study-card {
      max-width: 520px;
      margin-inline: auto;
    }

    .prep-card img,
    .study-card img {
      aspect-ratio: 16 / 10;
      object-fit: cover;
    }
  }

  @media (max-width: 430px) {
    #about .feature-media {
      width: min(104px, 100%);
    }

    #about .feature-card h3 {
      font-size: clamp(15px, 4.4vw, 18px);
      line-height: 1.2;
    }

    #about .feature-card p {
      font-size: 12.5px;
      line-height: 1.5;
    }

    #programs .program-overlay {
      justify-content: flex-end;
    }
  }

  /* Final homepage card alignment */
  header:not(.scrolled) .logo img {
    width: 136px !important;
  }

  #about .feature-card,
  #study-modes .study-card,
  #programs .program-card,
  .test-prep .prep-card {
    border: 1px solid rgba(13,20,87,0.08) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 22px 54px rgba(13,20,87,0.10) !important;
    overflow: hidden;
  }

  #study-modes .study-grid {
    gap: clamp(24px, 3.3vw, 42px);
  }

  #study-modes .study-card {
    min-height: 356px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px 34px !important;
  }

  #study-modes .study-card img {
    width: min(186px, 72%) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 28px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(13,20,87,0.06) !important;
    box-shadow: 0 18px 38px rgba(13,20,87,0.08);
    object-fit: cover;
  }

  #study-modes .study-card h3 {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--navy-dark) !important;
    font-family: var(--heading-font, var(--heading));
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.08;
    text-align: center;
  }

  #programs .program-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px 30px !important;
  }

  #programs .program-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px;
    aspect-ratio: 16 / 10 !important;
    margin: 0 auto 26px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(13,20,87,0.06) !important;
    box-shadow: 0 18px 38px rgba(13,20,87,0.08);
    background: #fff;
    object-fit: contain !important;
    transform: none !important;
  }

  #programs .program-overlay {
    position: static !important;
    inset: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #programs .program-overlay h3 {
    margin: 0 !important;
    color: var(--navy-dark) !important;
    font-family: var(--heading-font, var(--heading));
    font-size: clamp(24px, 2.3vw, 34px) !important;
    line-height: 1.08 !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  #programs .program-overlay p {
    display: none !important;
  }

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

  @media (max-width: 768px) {
    header:not(.scrolled) .logo img {
      width: 104px !important;
    }

    #study-modes .study-grid,
    #programs .programs-grid {
      width: min(100%, 560px);
      margin-inline: auto;
    }

    #study-modes .study-card,
    #programs .program-card {
      min-height: 0;
      padding: 22px 16px 24px !important;
      border-radius: 24px !important;
    }

    #study-modes .study-card img {
      width: min(132px, 76%) !important;
      margin-bottom: 18px !important;
      border-radius: 18px !important;
    }

    #programs .program-card img {
      max-height: none;
      aspect-ratio: 16 / 10 !important;
      margin-bottom: 18px !important;
      border-radius: 18px !important;
    }

    #study-modes .study-card h3,
    #programs .program-overlay h3 {
      font-size: clamp(20px, 5.5vw, 26px) !important;
    }
  }

  @media (max-width: 430px) {
    #study-modes .study-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 16px !important;
    }

    #study-modes .study-card {
      padding: 18px 10px 20px !important;
    }

    #study-modes .study-card img {
      width: min(108px, 78%) !important;
      margin-bottom: 14px !important;
    }

    #study-modes .study-card h3 {
      font-size: clamp(16px, 4.8vw, 20px) !important;
      line-height: 1.12 !important;
    }
  }

  /* Mobile study grid hard override */
  @media (max-width: 768px) {
    body #study-modes .container > .study-grid {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 16px !important;
      width: 100% !important;
      max-width: 520px !important;
      margin-inline: auto !important;
    }

    body #study-modes .container > .study-grid > .study-card {
      width: 100% !important;
      max-width: none !important;
      min-width: 0 !important;
      margin: 0 !important;
    }
  }

  @media (max-width: 430px) {
    body #study-modes .container > .study-grid {
      gap: 12px !important;
    }

    body #study-modes .container > .study-grid > .study-card {
      padding: 16px 8px 18px !important;
    }
  }
