/* Mobile & tablet — aligned with TAC_Main_Website_2026_27 */

.bento-mobile-hint,
.bento-mobile-dots {
  display: none;
}

.u-mob-only {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --section-y: clamp(24px, 5.5vw, 34px);
    --section-head-gap: 18px;
  }

  .u-mob-only {
    display: block;
  }

  span.u-mob-only,
  p .u-mob-only,
  .lead .u-mob-only {
    display: inline;
  }

  p.u-mob-only {
    display: block;
  }

  .faq-list.u-mob-only {
    display: flex;
  }

  .u-desk-only {
    display: none !important;
  }

  #hdr .site-nav-inner.site-w {
    width: 100%;
    max-width: none;
    padding-inline: 10px;
  }

  .site-brand-group {
    gap: 0;
  }

  .site-brand img.logo-dark {
    height: 1.875rem;
  }

  section {
    padding: var(--section-y) 0;
  }

  /* Match main site mobile section surfaces */
  #academics.academics-section,
  #cocurricular,
  #form.hero-admissions {
    background: linear-gradient(180deg, #eef4f1 0%, var(--paper, #f4f8f6) 28%);
  }

  #achievements.achievements-section,
  #testimonials.testimonials-section {
    background: var(--off-white, #ececec);
  }


  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    margin-bottom: 18px;
    max-width: none;
    text-align: left;
  }

  .section-head .kicker-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }

  .section-head .kicker-label::before {
    display: none;
  }

  .section-head h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.45rem);
    margin-top: 0;
    line-height: 1.28;
    letter-spacing: -0.01em;
  }

  .section-head p {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    line-height: 1.5;
    color: #999;
  }

  .section-head--mob-tight p {
    margin-top: 0;
  }

  .side-action-stack,
  .widget-stack {
    display: none !important;
  }

  .hero {
    min-height: calc(100svh - var(--site-mobile-action-height, 72px) + 1.25rem);
    padding-top: var(--site-nav-stack);
    padding-bottom: calc(var(--site-mobile-action-height, 72px) + 1rem);
    background-color: #eef4f1;
    overflow-x: clip;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    min-height: 0;
    padding-top: clamp(5vh, 9vh, 14vh);
    padding-bottom: 0;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: clamp(0px, 0.6vh, 6px);
    min-height: 0;
    width: 100%;
  }

  .hero-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .hero-collage {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 100vw;
    max-width: 100vw;
    margin: clamp(6px, 1.4vh, 14px) calc(50% - 50vw) -10px;
    padding: 0;
    pointer-events: none;
    overflow: visible;
  }

  .hero-collage picture {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
  }

  .hero .hero-collage img {
    display: block;
    width: 112%;
    max-width: 112%;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    transform: translate(clamp(-30px, -6.5vw, -16px), 16px);
    transform-origin: left bottom;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8.2vw, 2.15rem);
    margin-top: 0;
    margin-bottom: clamp(8px, 2vw, 12px);
    letter-spacing: -0.03em;
    line-height: 1.02;
  }

  .hero-eyebrow {
    display: none;
  }

  .hero .sub {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-stats {
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(14px, 4.5vw, 22px);
    width: 100%;
    max-width: 100%;
    margin-top: clamp(10px, 2.8vw, 16px);
    margin-bottom: 0;
  }

  .hero-stat-card {
    text-align: center;
  }

  .hero-stats b {
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
  }

  .hero-stats span {
    font-size: 0.52rem;
    line-height: 1.25;
    margin-top: 3px;
  }

  .cta-band {
    border-radius: 20px;
    padding: 28px 22px;
    gap: 20px;
  }

  .cta-band .left h2 {
    font-size: 1.35rem;
  }

  .cta-band .actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .actions .btn-gold {
    width: 100%;
    justify-content: center;
  }

  .cta-band .actions .phone {
    justify-content: center;
    font-size: 0.9rem;
  }

  /* Campus visit — BoardingDividerSection mobile card */
  .visit-divider {
    background: var(--off-white, #ececec) !important;
    padding: clamp(16px, 4vw, 22px) 0;
    overflow: visible;
  }

  .visit-divider .wrap {
    padding-inline: 20px;
  }

  .visit-divider-inner {
    position: relative;
    isolation: isolate;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 1.5rem 1.25rem 1.375rem;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 12px 32px -20px rgba(36, 48, 55, 0.35);
    box-sizing: border-box;
  }

  .visit-divider-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../images/optimized/home/gallery/infrastructure-aerial-800w.webp") center center / cover no-repeat;
    transform: scale(1.02);
  }

  .visit-divider-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      155deg,
      rgba(15, 61, 56, 0.9) 0%,
      rgba(24, 88, 80, 0.82) 45%,
      rgba(36, 48, 55, 0.88) 100%
    );
  }

  .visit-divider-inner > .vd-copy,
  .visit-divider-inner > .vd-actions {
    position: relative;
    z-index: 2;
  }

  .visit-divider .vd-copy {
    max-width: none;
  }

  .visit-divider .vd-copy h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
  }

  .visit-divider .vd-copy p {
    margin: 0 0 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--mist, #d3ddde);
  }

  .visit-divider .vd-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .visit-divider .vd-actions .btn-gold {
    width: 100%;
    justify-content: center;
    border-radius: 30px;
    padding: 0.75rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
  }

  .visit-divider .vd-actions .phone {
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
  }

  .form-shell {
    border-radius: 20px;
    padding: 22px 18px;
  }

  /* Why TACS — mobile snap deck (TAC_Main_Website PillarsSection) */
  .bento-mobile-hint {
    display: block;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #999;
  }

  .bento-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin: 0.875rem 0 0.25rem;
  }

  .bento-mobile-dots span {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: #c3c3c3;
    transition: width 0.2s ease, background 0.2s ease;
  }

  .bento-mobile-dots span.is-active {
    width: 1rem;
    background: var(--forest);
  }

  #about .wrap {
    padding-inline: 0;
  }

  #about .section-head,
  #about .bento-mobile-hint,
  #about .bento-mobile-dots {
    padding-inline: 20px;
  }

  #about .section-head {
    margin-bottom: 0.5rem;
  }

  #about .section-head h2 {
    font-size: 1.3rem;
    margin-top: 0.5rem;
  }

  #about .section-head p {
    display: none;
  }

  #about .bento {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.875rem;
    min-height: 0;
    margin-inline: 0;
    padding: 0 20px 0.625rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-auto-rows: unset;
  }

  #about .bento::-webkit-scrollbar {
    display: none;
  }

  #about .bento-boarding-col {
    display: contents;
  }

  #about .bento .tile.b1,
  #about .bento .tile.b2,
  #about .bento .tile.b3,
  #about .bento .tile.b4 {
    flex: 0 0 240px;
    width: 240px;
    min-height: 210px;
    height: 210px;
    grid-column: unset;
    grid-row: unset;
    scroll-snap-align: start;
    border-radius: 20px;
    order: 0;
  }

  #about .bento .tile.b1 { order: 1; }
  #about .bento .tile.b2 { order: 2; }
  #about .bento .tile.b3 { order: 3; }
  #about .bento .tile.b4 { order: 4; }

  #about .bento .tile.b5 {
    flex: 0 0 200px;
    width: 200px;
    min-height: 210px;
    height: 210px;
    order: 5;
    scroll-snap-align: start;
    border-radius: 20px;
  }

  #about .bento .tile::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  #about .bento .tile.b3::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.44) 0%,
      rgba(0, 0, 0, 0.18) 36%,
      transparent 100%
    );
  }

  #about .bento .tile-content {
    padding: 1.125rem 1.125rem 1.375rem;
  }

  #about .bento .tile h3 {
    margin-bottom: 0.375rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  #about .bento .tile p {
    margin-top: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
  }

  #about .bento .b5 a {
    font-size: 1rem;
    line-height: 1.35;
  }

  #about .pull-quote {
    display: none;
  }

  /* Life on Campus gallery — matches TAC_Main_Website GallerySection mobile */
  #gallery .home-gallery-panels-desktop {
    display: none !important;
  }

  #gallery.home-gallery {
    padding-top: clamp(28px, 3.5vw, 44px);
  }

  #gallery.home-gallery .wrap {
    padding-inline: 0;
  }

  #gallery .home-gallery-head--mobile,
  #gallery .home-gallery-tabs,
  #gallery .home-gallery-mobile-foot {
    padding-inline: 20px;
  }

  #gallery .home-gallery-head--mobile {
    margin-bottom: 0.875rem;
  }

  #gallery .home-gallery-head--mobile h2 {
    font-size: 1.3rem;
    margin-top: 0.5rem;
  }

  #gallery .home-gallery-tabs {
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 2px;
    border-bottom: none;
    -webkit-overflow-scrolling: touch;
  }

  #gallery .home-gallery-tabs .home-gallery-tab {
    border-radius: 20px;
    border-bottom: none;
    margin-bottom: 0;
    padding: 0.5rem 0.875rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    background: var(--off-white, #ececec);
    color: var(--charcoal, #433e42);
  }

  #gallery .home-gallery-tabs .home-gallery-tab.is-active,
  #gallery .home-gallery-tabs .home-gallery-tab[aria-selected="true"] {
    background: var(--forest);
    color: #fff;
  }

  #gallery .home-gallery-mobile-foot {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
  }

  #gallery .home-gallery-mobile-stage {
    overflow: hidden;
    transition: height 0.25s ease;
  }

  #gallery .home-gallery-mobile-scroller {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #gallery .home-gallery-mobile-scroller::-webkit-scrollbar {
    display: none;
  }

  #gallery .home-gallery-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  /* Tiles — match GallerySection / PhotoGallery mobile (cover fill, 14px radius, line border) */
  #gallery .home-gallery-panels-mobile .home-gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line, #dce8e4);
    background: linear-gradient(155deg, var(--forest-deep), var(--forest));
  }

  #gallery .home-gallery-panels-mobile .home-gallery-tile--masonry img,
  #gallery .home-gallery-panels-mobile .home-gallery-tile--hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #gallery .home-gallery-panels-mobile .home-gallery-zoom {
    opacity: 0;
    pointer-events: none;
  }

  /* Bento — same mosaic as TAC_Main_Website MobileBentoGrid (fixed 90px rows, cover crop) */
  #gallery .home-gallery-bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(4, min(28vw, 118px));
    gap: 8px;
    width: 100%;
  }

  #gallery .home-gallery-bento > .home-gallery-tile {
    position: relative;
    min-height: 0;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    align-self: stretch;
    justify-self: stretch;
  }

  #gallery .home-gallery-bento > .home-gallery-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  #gallery .home-gallery-bento > .mb-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  #gallery .home-gallery-bento > .mb-2 {
    grid-column: 2;
    grid-row: 1;
  }

  #gallery .home-gallery-bento > .mb-3 {
    grid-column: 2;
    grid-row: 2;
  }

  #gallery .home-gallery-bento > .mb-4 {
    grid-column: 1;
    grid-row: 3;
  }

  #gallery .home-gallery-bento > .mb-5 {
    grid-column: 2;
    grid-row: 3 / span 2;
  }

  #gallery .home-gallery-bento > .mb-6 {
    grid-column: 1;
    grid-row: 4;
  }

  /* Infrastructure tab: 16:9 hero + 2-col masonry with capped tile heights */
  #gallery .home-gallery-tile--hero,
  #gallery .home-gallery-tile.mobile-hero {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-bottom: 8px;
  }

  #gallery .home-gallery-tile--hero img,
  #gallery .home-gallery-tile.mobile-hero img {
    position: absolute;
    inset: 0;
  }

  #gallery .home-gallery-mobile-featured .home-gallery-masonry--2 {
    columns: 2;
    column-gap: 8px;
  }

  #gallery .home-gallery-panels-mobile .home-gallery-tile--masonry {
    height: max(var(--tile-h, 220px), min(52vw, 280px));
    min-height: max(var(--tile-h, 220px), min(52vw, 280px));
    margin-bottom: 8px;
    break-inside: avoid;
  }

  #gallery .home-gallery-panels-mobile .home-gallery-tile--masonry img {
    position: absolute;
    inset: 0;
  }

  /* Academics — mobile layout only (same content as desktop) */
  #academics.academics-section {
    padding-top: clamp(28px, 3.5vw, 44px);
    background: var(--surface-white, #fff) !important;
  }

  #academics .section-head {
    margin-bottom: 1.25rem;
  }

  #academics .section-head h2 {
    font-size: 1.3rem;
    margin-top: 0.5rem;
  }

  #academics .roadmap--pathway {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-inline: -16px;
    margin-bottom: 1.25rem !important;
    padding: 0 16px 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #academics .roadmap--pathway::-webkit-scrollbar {
    display: none;
  }

  #academics .pathway-card {
    flex: 0 0 min(70vw, 248px);
    scroll-snap-align: start;
    border-radius: 16px;
    border-left-width: 4px;
    padding: 1rem 1rem 1.0625rem 0.875rem;
    box-shadow: 0 8px 24px -16px rgba(36, 48, 55, 0.2);
  }

  #academics .pathway-card:hover {
    transform: none;
  }

  #academics .pathway-card .focus {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
  }

  #academics .pathway-card .d {
    display: block;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 500;
    margin: 0;
  }

  #academics .pathway-card h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  /* School Integrated Programme — StreamsSection mobile patterns */
  #academics .integrated-programme {
    margin-bottom: 0;
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(24, 88, 80, 0.1);
  }

  #academics .integrated-programme__head {
    display: block;
    margin-bottom: 1.25rem;
  }

  #academics .integrated-programme__intro .kicker-label {
    margin-bottom: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  #academics .integrated-programme__intro .kicker-label::before {
    display: none;
  }

  #academics .integrated-programme__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--navy, #243037);
  }

  #academics .integrated-programme__desc {
    margin-top: 0.375rem;
    max-width: none;
    white-space: normal;
    font-size: 0.78125rem;
    line-height: 1.55;
    color: #999;
  }

  #academics .integrated-programme__faq.faq-list {
    margin: 0;
    max-width: none;
    gap: 0.625rem;
  }

  #academics .integrated-programme__faq .sip-faq-card {
    border: none;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 10px 28px -18px rgba(10, 44, 40, 0.45);
  }

  #academics .integrated-programme__faq .sip-faq-card:nth-child(1) {
    background: linear-gradient(150deg, var(--violet), #3d0d63);
  }

  #academics .integrated-programme__faq .sip-faq-card:nth-child(2) {
    background: linear-gradient(150deg, var(--forest), #0c322c);
  }

  #academics .integrated-programme__faq .sip-faq-card:nth-child(3) {
    background: linear-gradient(150deg, #2e2a2c, #241f22);
  }

  #academics .integrated-programme__faq .sip-faq-card:not(.is-open):hover {
    transform: none;
    box-shadow: 0 10px 28px -18px rgba(10, 44, 40, 0.45);
  }

  #academics .integrated-programme__faq .sip-faq-card.is-open {
    box-shadow: 0 14px 32px -16px rgba(10, 44, 40, 0.5);
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__trigger {
    align-items: center;
    gap: 0.75rem;
    padding: 0.9375rem 1rem;
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__trigger:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  #academics .integrated-programme__faq .sip-faq-card__head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
  }

  #academics .integrated-programme__faq .sip-faq-card__emoji {
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1;
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__question {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #fff;
  }

  #academics .integrated-programme__faq .sip-faq-card:not(.is-open):hover .faq-card__question {
    color: #fff;
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__icon {
    width: 1.625rem;
    height: 1.625rem;
    margin-top: 0;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__icon svg {
    color: rgba(255, 255, 255, 0.9);
  }

  #academics .integrated-programme__faq .sip-faq-card:not(.is-open):hover .faq-card__icon {
    transform: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
  }

  #academics .integrated-programme__faq .sip-faq-card.is-open .faq-card__icon {
    border-color: var(--gold);
    background: var(--gold);
  }

  #academics .integrated-programme__faq .sip-faq-card.is-open .faq-card__icon svg {
    color: var(--forest-deep);
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__panel {
    min-height: 0;
  }

  #academics .integrated-programme__faq .sip-faq-card .faq-card__panel-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 1rem 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  #academics .integrated-programme__faq .sip-faq-card:not(.is-open) .faq-card__panel-inner {
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
  }

  #academics .integrated-programme__faq .sip-faq-card.is-open .faq-card__panel-inner {
    padding-top: 0.625rem;
  }

  #academics .integrated-programme__faq .sip-accordion__list {
    margin: 0;
    padding: 0;
  }

  #academics .integrated-programme__faq .sip-accordion__list li {
    font-size: 0.6875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.4375rem;
  }

  #academics .integrated-programme__faq .sip-accordion__list li:last-child {
    margin-bottom: 0;
  }

  #academics .integrated-programme__faq .sip-accordion__list li::before {
    content: '→';
    color: var(--gold);
    font-size: 0.65rem;
    margin-top: 2px;
  }

  #academics .integrated-programme__partners {
    margin-top: 1.125rem;
    padding-top: 0;
    border-top: none;
    text-align: left;
  }

  #academics .integrated-programme__partners-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65625rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #999;
  }

  #academics .integrated-programme__partners-logos {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.625rem;
  }

  #academics .integrated-programme__partners-logos img {
    height: 2rem;
    max-width: 8.5rem;
    opacity: 0.85;
  }

  /* Co-curricular & boarding — compact cards, smaller media */
  #cocurricular {
    padding-top: clamp(24px, 3.5vw, 36px);
    padding-bottom: clamp(20px, 4vw, 28px);
  }

  #cocurricular .section-head {
    margin-bottom: 1rem;
  }

  #cocurricular .cocurricular-sport {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem !important;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(24, 88, 80, 0.08);
    background: #fff;
    box-shadow: 0 10px 32px -22px rgba(36, 48, 55, 0.18);
  }

  #cocurricular .cocurricular-sport__media {
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 168px;
    max-height: min(220px, 52vw);
    border-radius: 0;
    box-shadow: none;
    background: var(--forest-deep);
  }

  #cocurricular .cocurricular-sport__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }

  #cocurricular .cocurricular-sport__copy {
    padding: 1rem 1rem 1.125rem;
  }

  #cocurricular .cocurricular-sport__copy .kicker-label {
    margin-bottom: 0.375rem;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  #cocurricular .cocurricular-sport__copy .kicker-label::before {
    display: none;
  }

  #cocurricular .cocurricular-sport__copy h2 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--navy, #243037);
  }

  #cocurricular .cocurricular-sport__copy .lead {
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.5;
    font-weight: 400;
    color: #888;
  }

  #cocurricular .chip-row--sport {
    gap: 0.35rem;
    margin-bottom: 0.625rem;
  }

  #cocurricular .chip-row--sport .chip {
    border: none;
    background: var(--off-white, #ececec);
    padding: 0.2rem 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--charcoal, #433e42);
  }

  #cocurricular .cocurricular-stat {
    margin-top: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(24, 88, 80, 0.08), rgba(45, 148, 92, 0.06));
    gap: 0;
  }

  #cocurricular .cocurricular-stat b {
    font-size: 1.125rem;
    color: var(--forest, #185850);
  }

  #cocurricular .cocurricular-stat span {
    font-size: 0.65rem;
    color: #666;
  }

  #cocurricular .cocurricular-boarding {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0;
  }

  #cocurricular .cocurricular-boarding__day {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem !important;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(24, 88, 80, 0.08);
    background: #fff;
    box-shadow: 0 10px 32px -22px rgba(36, 48, 55, 0.18);
  }

  #cocurricular .cocurricular-boarding__media {
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 168px;
    max-height: min(220px, 52vw);
    border-radius: 0;
    box-shadow: none;
    background: var(--forest-deep);
  }

  #cocurricular .cocurricular-boarding__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 22% center;
  }

  #cocurricular .cocurricular-boarding__copy {
    padding: 1rem 1rem 1.125rem;
  }

  #cocurricular .cocurricular-boarding__day .f-copy .kicker-label {
    margin-bottom: 0.375rem;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  #cocurricular .cocurricular-boarding__day .f-copy .kicker-label::before {
    display: none;
  }

  #cocurricular .cocurricular-boarding__day .f-copy h2 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--navy, #243037);
  }

  /* Daily schedule — time + description rows with dividers (no rail) */
  #cocurricular .cocurricular-timeline {
    --schedule-pad-y: 0.875rem;
    --schedule-pad-x: 1rem;
    --schedule-text-gap: 0.625rem;
    position: relative;
    margin-top: 0 !important;
    padding-left: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(24, 88, 80, 0.12);
    background: #fff;
    box-shadow: 0 8px 24px -18px rgba(36, 48, 55, 0.14);
  }

  #cocurricular .cocurricular-timeline::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
      90deg,
      var(--forest, #185850) 0%,
      var(--emerald, #2d945c) 50%,
      var(--gold-dark, #c4880e) 100%
    );
  }

  #cocurricular .cocurricular-timeline::after {
    display: none;
  }

  #cocurricular .cocurricular-timeline .t-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(5rem, 5.75rem) minmax(0, 1fr);
    column-gap: 0;
    align-items: stretch;
    padding: var(--schedule-pad-y) var(--schedule-pad-x);
    margin: 0;
    padding-bottom: var(--schedule-pad-y);
    background: #fff;
  }

  #cocurricular .cocurricular-timeline .t-item.u-desk-only {
    display: none !important;
  }

  #cocurricular .cocurricular-timeline .t-item::before,
  #cocurricular .cocurricular-timeline .t-item::after {
    display: none;
    content: none;
  }

  #cocurricular .cocurricular-timeline .t-item + .t-item {
    border-top: 1px solid rgba(24, 88, 80, 0.08);
  }

  #cocurricular .cocurricular-timeline .t-item .time {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--forest, #185850);
    padding: 0 var(--schedule-text-gap) 0 0;
    margin: 0;
    border: none;
    border-right: 0.5px solid rgba(24, 88, 80, 0.08);
  }

  #cocurricular .cocurricular-timeline .t-item .what {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.45;
    color: #5b6f6c;
    padding: 0 0 0 var(--schedule-text-gap);
    margin: 0;
    border: none;
  }

  #cocurricular .cocurricular-boarding__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0;
  }

  #cocurricular .cocurricular-boarding__grid .feature-item {
    margin: 0;
    padding: 0.6875rem 0.5625rem 0.75rem;
    border: 1px solid rgba(24, 88, 80, 0.08);
    border-left: 3px solid var(--forest, #185850);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
  }

  #cocurricular .cocurricular-boarding__grid .feature-item.fi-emerald {
    border-left-color: var(--emerald);
  }

  #cocurricular .cocurricular-boarding__grid .feature-item.fi-cyan {
    border-left-color: var(--cyan);
  }

  #cocurricular .cocurricular-boarding__grid .feature-item.fi-gold {
    border-left-color: var(--gold-dark);
  }

  #cocurricular .cocurricular-boarding__grid .feature-item .ico {
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1;
    background: none;
  }

  #cocurricular .cocurricular-boarding__grid .feature-item h4 {
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy, #243037);
  }

  #cocurricular .cocurricular-boarding__grid .feature-item p {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.4;
    color: #888;
  }

  /* —— Achievements through footer (mobile) —— */
  #achievements.achievements-section {
    padding-top: clamp(24px, 5vw, 32px);
    padding-bottom: clamp(20px, 4vw, 28px);
  }

  #achievements .section-head {
    margin-bottom: 1rem;
    padding-inline: 4px;
  }

  #achievements .section-head h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  #achievements .achievements-gallery {
    margin-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  #achievements .achievements-gallery__track {
    height: 92px;
    gap: 4px;
  }

  #achievements .achievements-gallery__tile,
  #achievements .achievements-gallery__words {
    width: min(50vw, 164px);
    border-radius: 10px;
  }

  #achievements .achievements-gallery__cap {
    padding: 16px 8px 6px;
  }

  #achievements .achievements-gallery__cap strong {
    font-size: 0.6rem;
  }

  #achievements .achievements-gallery__cap span {
    font-size: 0.55rem;
  }

  #achievements .achievements-gallery__cat {
    top: 6px;
    right: 6px;
    padding: 3px 7px;
    font-size: 0.5rem;
  }

  #achievements .achievements-gallery__row--offset-b {
    padding-left: 16px;
  }

  #achievements .achievements-gallery__row--offset-c {
    padding-left: 8px;
  }

  #campus.campus-section {
    padding: clamp(24px, 5vw, 34px) 0;
  }

  #campus .section-head {
    margin-bottom: 1rem;
    text-align: left;
  }

  #campus .section-head .kicker-label::before {
    background: var(--gold);
  }

  #campus .section-head h2 {
    font-size: 1.2rem;
    line-height: 1.28;
  }

  #campus .campus-section__desc {
    margin-top: 0.5rem;
    max-width: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
  }

  #campus .campus-video {
    margin-top: 1rem;
    border-radius: 16px;
  }

  #campus .campus-section__actions {
    margin-top: 1rem;
  }

  #campus .campus-section__actions .btn-gold {
    width: 100%;
    justify-content: center;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
  }

  /* Awards strip — below hero (4×2 compact grid) */
  #awards.awards-strip.awards-section {
    padding-top: clamp(28px, 7vw, 40px) !important;
    padding-bottom: clamp(18px, 4vw, 26px) !important;
    background: linear-gradient(180deg, #f4f9f7 0%, #fff 100%);
  }

  .awards-strip__head {
    text-align: center;
    margin-bottom: 0.875rem;
  }

  .awards-strip__title {
    font-size: 1.05rem;
  }

  .hero-admissions__panel {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 14px 40px -24px rgba(36, 48, 55, 0.22);
  }

  #awards .awards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    align-items: end;
  }

  #awards .awards-grid__item {
    grid-column: auto;
    min-height: 0;
    height: clamp(3.75rem, 18vw, 5.5rem);
    padding: 0;
    align-items: flex-end;
    justify-content: center;
  }

  #awards .awards-grid__item--emblem,
  #awards .awards-grid__item--wide,
  #awards .awards-grid__item--tall {
    --award-max-h: 100%;
  }

  #awards .awards-grid__item:nth-child(4),
  #awards .awards-grid__item:nth-child(6) {
    align-items: center;
  }

  #awards .awards-grid__logo {
    height: 100%;
    max-height: 100%;
    align-items: flex-end;
    justify-content: center;
  }

  #awards .awards-grid__item:nth-child(4) .awards-grid__logo,
  #awards .awards-grid__item:nth-child(6) .awards-grid__logo {
    align-items: center;
  }

  #awards .awards-grid__logo picture {
    height: 100%;
    max-height: 100%;
    align-items: flex-end;
    justify-content: center;
  }

  #awards .awards-grid__logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }

  #awards .awards-grid__item:nth-child(4) .awards-grid__logo img,
  #awards .awards-grid__item:nth-child(6) .awards-grid__logo img {
    object-position: center center;
  }

  #awards .awards-grid__item:nth-child(1) .awards-grid__logo,
  #awards .awards-grid__item:nth-child(2) .awards-grid__logo,
  #awards .awards-grid__item:nth-child(3) .awards-grid__logo,
  #awards .awards-grid__item:nth-child(8) .awards-grid__logo {
    transform: scale(0.78);
    transform-origin: bottom center;
  }

  #awards .awards-grid__item:nth-child(1) .awards-grid__logo {
    transform: scale(0.78) translateY(-8px);
  }

  #awards .awards-grid__item:nth-child(3) .awards-grid__logo {
    transform: scale(0.78) translateY(-8px);
  }

  #awards .awards-grid__item:nth-child(7) .awards-grid__logo img {
    transform: translateY(6px);
  }

  #awards .awards-grid__item:nth-child(5) .awards-grid__logo img,
  #awards .awards-grid__item:nth-child(8) .awards-grid__logo img {
    max-height: 92%;
  }

  #testimonials.testimonials-section {
    padding-top: clamp(24px, 5vw, 32px);
    padding-bottom: clamp(24px, 5vw, 32px);
  }

  #testimonials .section-head {
    margin-bottom: 1rem;
  }

  #testimonials .section-head h2 {
    font-size: 1.2rem;
  }

  #testimonials .testi-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-inline: -16px;
    padding: 0 16px 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #testimonials .testi-grid::-webkit-scrollbar {
    display: none;
  }

  #testimonials .testi-card {
    flex: 0 0 min(86vw, 292px);
    scroll-snap-align: start;
    padding: 1rem 1rem 1.125rem;
    border-radius: 16px;
    box-shadow: 0 10px 28px -20px rgba(36, 48, 55, 0.2);
  }

  #testimonials .testi-card__head {
    gap: 0.625rem;
    margin-bottom: 0.75rem;
  }

  #testimonials .testi-card__avatar {
    width: 48px;
    height: 48px;
  }

  #testimonials .testi-card__name {
    font-size: 0.8125rem;
  }

  #testimonials .testi-card__batch {
    font-size: 0.6875rem;
  }

  #testimonials .testi-card__quote {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  #faqs.faq-section {
    padding-top: clamp(24px, 5vw, 32px);
    padding-bottom: clamp(24px, 5vw, 32px);
  }

  #faqs .section-head {
    margin-bottom: 0.875rem;
  }

  #faqs .section-head h2 {
    font-size: 1.2rem;
  }

  #faqs .faq-list {
    margin-top: 0;
    gap: 0.5rem;
  }

  #faqs .faq-card {
    border-radius: 14px;
    border-color: rgba(24, 88, 80, 0.1);
  }

  #faqs .faq-card:not(.is-open):hover {
    transform: none;
    box-shadow: none;
  }

  #faqs .faq-card__trigger {
    padding: 0.75rem 0.875rem;
  }

  #faqs .faq-card__question {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--navy, #243037);
  }

  #faqs .faq-card__answer {
    padding: 0 0.875rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  #form.hero-admissions {
    padding-top: clamp(16px, 4vw, 24px);
    padding-bottom: clamp(20px, 5vw, 28px);
  }

  .hero-admissions .form-shell--hero-admissions {
    border-radius: 0;
    box-shadow: none;
  }

  #form .form-shell,
  .hero-admissions .form-shell {
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  #form .form-side {
    padding: 1rem 1.125rem 0.875rem;
  }

  #form .form-side__title {
    font-size: 1.85rem;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
  }

  #form .form-side__cta {
    display: none;
  }

  #form .form-side__bg {
    position: absolute;
    inset: 0;
  }

  #form .form-side {
    min-height: 12.5rem;
    padding-bottom: 1.25rem;
  }

  #form .form-fields {
    padding: 1rem 1rem 1.125rem;
    background: #fff;
  }

  .hero-admissions__form-title {
    font-size: 1.35rem;
    text-align: left;
    margin-bottom: 0.875rem;
  }

  #form .enquiry-submit {
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    letter-spacing: normal;
  }

  #contact.contact-section {
    padding: clamp(24px, 5vw, 32px) 0 clamp(28px, 6vw, 36px);
  }

  #contact .contact-section__mobile .kicker-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }

  #contact .contact-section__mobile .kicker-label::before {
    display: none;
  }

  #contact .contact-section__title--mobile {
    font-size: 1.25rem;
    line-height: 1.28;
    text-align: left;
  }

  #contact .contact-section__ctas--mobile {
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  #contact .contact-section__ctas--mobile .contact-section__cta {
    width: 100%;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
  }

  #contact .contact-map--integrated {
    border-radius: 16px;
  }

  #contact .contact-map--integrated iframe {
    height: 168px;
    filter: none;
  }

  .site-footer .foot-mobile {
    padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer .foot-brand img {
    max-width: 9.5rem;
  }

  .site-footer .foot-brand p {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 0.75rem;
  }

  .site-footer .foot-mobile-cols {
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .site-footer h5 {
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
  }

  .site-footer ul a {
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }

  .foot-mobile-copy {
    margin-top: 1.25rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    opacity: 0.75;
  }
}

@media (max-width: 767px) {
  .mob-drawer a:not(.mob-sub):not(.mob-apply) {
    padding: 0.65rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: color 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
  }

  .mob-drawer a:not(.mob-sub):not(.mob-apply):hover {
    padding-left: 0.5rem;
    color: var(--gold);
    border-bottom-color: rgba(246, 171, 22, 0.35);
  }

  .mob-drawer .mob-group-label {
    padding: 0.65rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mob-drawer .mob-sub {
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
  }

  .mob-drawer .mob-sub:hover {
    padding-left: 1.25rem;
    color: var(--gold);
    border-bottom-color: rgba(246, 171, 22, 0.3);
  }

  .mob-drawer .mob-apply {
    margin-top: 1.5rem;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-align: center;
  }

  .mobile-action-bar a,
  .mobile-action-bar button {
    min-height: 44px;
  }

  .mobile-action-bar .chat-btn {
    min-height: 44px;
    padding-inline: 0.4rem;
  }
}
