.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

body {
    background-color: #FDFDFD;
    color: #111111;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.max-w-container-max {
    max-width: 1400px;
}

.px-margin-page {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-section-gap {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.pb-section-gap {
    padding-bottom: 8rem;
}

.gap-gutter {
    gap: 1.5rem;
}

.right-margin-page {
    right: 2rem;
}

.font-display-xl,
.font-headline-lg,
.font-headline-md {
    font-family: 'Playfair Display', serif;
}

.font-body-lg,
.font-body-md,
.font-label-sm {
    font-family: 'Montserrat', sans-serif;
}

.text-display-xl {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    font-weight: 700;
}

.text-headline-lg {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 600;
}

.text-headline-md {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.15;
    font-weight: 600;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
}

.text-body-md {
    font-size: 0.975rem;
    line-height: 1.75;
    font-weight: 400;
}

.font-label-sm,
.text-label-sm {
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.text-on-primary {
    color: #FFFFFF;
}

.text-on-surface {
    color: #111111;
}

.text-on-surface-variant {
    color: #5C6B61;
}

/* Elegant Utopia-style elements adapted for friendly Agriculture */
.label-spaced {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #263A2D;
    padding: 14px 36px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.4s ease;
    background: transparent;
    color: #263A2D;
    cursor: pointer;
    border-radius: 9999px;
}

.btn:hover {
    background-color: #263A2D;
    color: #FDFDFD;
}

.btn-accent {
    background-color: #1A4B3A;
    color: #FDFDFD;
    border-color: #1A4B3A;
}

.btn-accent:hover {
    background-color: #C49A45;
    color: #FFFFFF;
    border-color: #C49A45;
}

.btn-tertiary {
    background-color: #38b6ff;
    color: #FFFFFF;
    border: none;
}

.btn-tertiary:hover {
    background-color: #20a8f4;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 14px 28px -18px rgba(56, 182, 255, 0.95);
    transform: translateY(-2px);
}

.view-more-btn {
    position: relative;
    z-index: 20;
    background-color: #fec644 !important;
    color: #263A2D !important;
    border: 0 !important;
    box-shadow: 0 10px 24px -18px #fec644c7;
}

.view-more-btn:hover,
.view-more-btn:focus-visible {
    background-color: #38b6ff !important;
    color: #263A2D !important;
    border-color: transparent !important;
    box-shadow: 0 18px 34px -18px #38b6fff2 !important;
    transform: translateY(-3px) scale(1.03) !important;
}

.view-more-btn:hover .material-symbols-outlined,
.view-more-btn:focus-visible .material-symbols-outlined {
    transform: translateX(4px);
}

.friendly-card {
    background: #FFFFFF;
    border: 1px solid #E8EFEA;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    padding: 2.5rem;
}

.friendly-card:hover {
    border-color: #1A4B3A;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(26, 75, 58, 0.1);
}

/* Utopia Premium Animated Image Cards */
.hover-reveal-card {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(56, 182, 255, 0.22);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.5s ease;
    z-index: 1;
    isolation: isolate;
    box-shadow: 0 18px 45px -28px rgba(11, 20, 99, 0.4);
}

.hover-reveal-card .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    filter: blur(3px);
    transform: scale(1.03);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.hover-reveal-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0b1463, #38b6ffb5);
    transition: all 0.6s ease;
    z-index: 1;
}

.hover-reveal-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 182, 255, 0.46);
    box-shadow: 0 24px 52px -18px rgba(11, 20, 99, 0.28);
}

.hover-reveal-card:hover .overlay {
    background: linear-gradient(135deg, rgba(11, 20, 99, 0.76), rgba(56, 182, 255, 0.48));
}

.hover-reveal-card:hover .bg-img {
    filter: blur(2px) saturate(1.05) contrast(1.04);
    transform: scale(1.07);
}

.hover-reveal-card h3,
.hover-reveal-card p {
    color: #FFFFFF !important;
    text-shadow: 0 1px 12px rgba(11, 20, 99, 0.34);
}

.hover-reveal-card .material-symbols-outlined {
    color: #fec644 !important;
    transition: all 0.4s ease;
}

.hover-reveal-card:hover .material-symbols-outlined {
    color: #fec644 !important;
    transform: translateY(-2px);
}

/* Process Step Animations */
.process-step {
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: visible;
}

.process-step:hover {
    transform: translateX(10px);
}

.process-step:hover .step-img {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.step-img {
    position: absolute;
    right: -120px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFF;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8) translateX(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    pointer-events: none;
}


.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.section-spacing {
    padding: 8rem 0;
}

.heading-large {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: #111111;
    font-weight: 600;
}

@media (min-width: 768px) {
    .heading-large {
        font-size: 3.5rem;
    }
}

/* Hero Slideshow Animation */
@keyframes crossfade {
    0% {
        opacity: 1;
        transform: scale(1.05);
    }

    25% {
        opacity: 1;
        transform: scale(1.0);
    }

    33% {
        opacity: 0;
        transform: scale(1.0);
    }

    92% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: crossfade 18s infinite;
    z-index: 0;
    mix-blend-mode: overlay;
}

.slide-bg:nth-child(1) {
    animation-delay: 0s;
}

.slide-bg:nth-child(2) {
    animation-delay: 6s;
}

.slide-bg:nth-child(3) {
    animation-delay: 12s;
}

.hero-floating-cards {
    width: min(100%, 344px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-float-card {
    width: 312px;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(142, 169, 203, 0.24);
    border-radius: 16px;
    background: #0b14638f;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.hero-float-card:nth-child(2) {
    margin-left: 37px;
}

.hero-float-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-float-label {
    color: rgba(190, 202, 218, 0.72);
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.hero-float-title {
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
}

.bg-mid {
    background-color: #0b1463 !important;
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 20, 99, 0.08);
    color: #0b1463;
    margin: 0 auto 0.35rem;
    cursor: pointer;
    box-shadow: 0 12px 28px -22px rgba(11, 20, 99, 0.55);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-icon:hover {
    background: #fec644;
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -16px #fee844a5;
}

.metric-icon:active {
    transform: translateY(-1px) scale(0.96);
}

.metric-icon .material-symbols-outlined {
    font-size: 34px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 34;
}

.metric-note {
    max-width: 190px;
    color: #5C6B61;
    font-size: 0.82rem;
    line-height: 1.55;
    font-weight: 400;
    margin: 0 auto;
}

.metric-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-6px);
}

.metric-heading {
    position: relative;
    color: #001b4a !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.metric-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #38b6ff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.metric-item:hover .metric-heading {
    color: #38b6ff !important;
}

.metric-item:hover .metric-heading::after {
    width: 42px;
}

.gallery-card {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid #E8EFEA;
    border-radius: 1.5rem;
    isolation: isolate;
    background: #FFFFFF;
    box-shadow: 0 18px 45px -30px rgba(11, 20, 99, 0.45);
}

.gallery-card.tall {
    min-height: 460px;
}

.gallery-card.offset {
    margin-top: 3rem;
}

.gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transform: scale(1);
    transition: transform 0.7s ease, filter 0.7s ease;
    z-index: 0;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #38b6ffb3, #0b1463);
    z-index: 1;
    transition: background 0.5s ease;
}

.gallery-card:hover img {
    filter: grayscale(0);
    transform: scale(1.08);
}

.gallery-card:hover::after {
    background: linear-gradient(180deg, rgba(56, 182, 255, 0.08), rgba(11, 20, 99, 0.78));
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem;
    color: #FFFFFF;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 300;
    margin-top: 0.65rem;
}

@media (max-width: 1023px) {
    .hero-floating-cards {
        width: min(100%, 360px);
        align-items: center;
    }

    .hero-float-card {
        width: min(100%, 312px);
    }

    .hero-float-card:nth-child(2),
    .hero-float-card:nth-child(3) {
        margin-left: 0;
    }

    .gallery-card.offset {
        margin-top: 0;
    }

    .gallery-card,
    .gallery-card.tall {
        min-height: 360px;
    }
}

/* Page Load Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Apply to elements */
nav {
    animation: fadeInDown 0.8s ease both;
}

header h1 {
    animation: fadeInUp 1s ease 0.3s both;
}

header span.label-spaced {
    animation: fadeInUp 0.8s ease 0.1s both;
}

header p {
    animation: fadeInUp 0.8s ease 0.5s both;
}

header .flex.flex-wrap {
    animation: fadeInUp 0.8s ease 0.7s both;
}

/* Floating cards animation */
.hero-float-card:nth-child(1) {
    animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-float-card:nth-child(2) {
    animation: fadeInRight 0.8s ease 0.6s both;
}

.hero-float-card:nth-child(3) {
    animation: fadeInRight 0.8s ease 0.8s both;
}

/* Continuous float on cards */
.hero-floating-cards {
    animation: floatUp 4s ease-in-out infinite;
}

.asymmetric-label {
    position: absolute;
    z-index: 20;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    font-weight: 700;
    color: rgba(11, 20, 99, 0.08);
    letter-spacing: -0.06em;
    pointer-events: none;
    user-select: none;
}

.service-overlap-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(56, 182, 255, 0.2);
    border-radius: 2rem;
    padding: 2.75rem;
    box-shadow: 0 24px 60px -32px rgba(11, 20, 99, 0.28);
    backdrop-filter: blur(12px);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.service-overlap-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 182, 255, 0.42);
    box-shadow: 0 32px 80px -34px rgba(11, 20, 99, 0.35);
}

.service-overlap-card a {
    position: relative;
}

.service-overlap-card a .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.service-overlap-card:hover a .material-symbols-outlined {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .px-margin-page {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .py-section-gap,
    .section-spacing {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .right-margin-page {
        right: 1.25rem;
    }

    .pb-section-gap {
        padding-bottom: 5rem;
    }

    .service-overlap-card {
        padding: 1.75rem;
        border-radius: 1.5rem;
    }

    .asymmetric-label {
        font-size: clamp(2.5rem, 16vw, 4.5rem);
    }
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.ken-burns {
    animation: kenBurns 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce-slow 2s ease-in-out infinite;
}

.btn-hover-lift {
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: none;
}

.shimmer-btn:hover::after {
    animation: shimmer 0.8s forwards;
}

.module-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.module-card:hover {
    transform: translateY(-8px);
}

.module-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #fec644;
    width: 0;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.module-card:hover::after {
    width: 100%;
}

.learn-more-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.module-card:hover .learn-more-link {
    opacity: 1;
    transform: translateY(0);
}

.parallax-img {
    transition: transform 0.1s ease-out;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-item.active .accordion-header {
    background-color: #fec64470;
}

.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.label-spaced {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
}

body {
    background-color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
}

.stagger-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-word.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hubCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes hubRowSweep {
    0% {
        transform: translateX(-18px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hub-table-shell {
    animation: hubCardFloat 6s ease-in-out infinite;
}

.hub-table-row {
    opacity: 0;
    animation: hubRowSweep 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hub-table-row:nth-child(1) {
    animation-delay: 0.12s;
}

.hub-table-row:nth-child(2) {
    animation-delay: 0.24s;
}

.hub-table-row:nth-child(3) {
    animation-delay: 0.36s;
}

/* === iPAD VIEW FIXES (768px – 1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
  /* 1. NAVBAR */
  nav .flex.justify-between.items-center {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  nav .text-3xl {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
  }
  nav .gap-12 {
    gap: 0.85rem !important;
    font-size: 0.75rem !important;
  }
  nav .gap-12 a {
    white-space: nowrap !important;
  }
  nav .gap-8 {
    gap: 0.5rem !important;
  }
  nav .btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }

  /* 2. HERO / SLIDER */
  header.min-h-screen {
    min-height: auto !important;
  }
  header.min-h-screen .relative.z-10 {
    flex-direction: row !important;
    align-items: center !important;
    gap: 2rem !important;
    padding-top: 8rem !important;
    padding-bottom: 5rem !important;
  }
  header.min-h-screen h1 {
    font-size: 38px !important;
    line-height: 1.15 !important;
    margin-bottom: 1.25rem !important;
  }
  header.min-h-screen p.text-xl {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
  }
  header.min-h-screen .hero-floating-cards {
    width: 300px !important;
    margin-top: 0 !important;
  }
  header.min-h-screen .hero-float-card {
    width: 100% !important;
    padding: 1.15rem !important;
    gap: 1.15rem !important;
  }

  /* 3. STATS ROW */
  .stats-strip .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  .stats-strip .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
  .stats-strip .text-4xl {
    font-size: 1.85rem !important;
  }
  .stats-strip .text-5xl,
  .stats-strip .text-6xl {
    font-size: 2.5rem !important;
  }
  .stats-strip .label-spaced {
    font-size: 0.65rem !important;
  }

  /* 4. WHY SCHOOLS TRUST US */
  #ksk > .grid {
    grid-template-columns: 0.9fr 1.1fr !important;
    gap: 2rem !important;
  }
  #ksk .min-h-\[520px\] {
    min-height: 420px !important;
  }
  #ksk .absolute.-left-6 {
    left: -1rem !important;
    bottom: 2rem !important;
    padding: 1.25rem !important;
  }
  #ksk h2 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  #ksk p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  #ksk .text-2xl {
    font-size: 1.3rem !important;
  }
  #ksk .process-step {
    margin-bottom: 1.5rem !important;
  }

  /* 5. CAPABILITIES GRID */
  #app > .grid:not(.mt-6) {
    grid-template-columns: 1.15fr 0.8fr 1.15fr !important;
    gap: 1rem !important;
  }
  #app > .grid:not(.mt-6) > div:nth-child(2) {
    grid-column: span 1 !important;
  }
  #phoneMockup {
    max-width: 180px !important;
    width: 180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0.5rem !important;
  }
  #app .friendly-card {
    padding: 1rem !important;
  }
  #app .hover-reveal-card:not(.flex) {
    padding: 1.75rem 1.25rem !important;
    min-height: 220px !important;
  }
  #app .hover-reveal-card:not(.flex) h3 {
    font-size: 1.2rem !important;
  }
  #app .hover-reveal-card:not(.flex) p {
    font-size: 0.85rem !important;
  }
  #app .hover-reveal-card.flex {
    padding: 1.25rem 1rem !important;
    min-height: auto !important;
    gap: 1rem !important;
  }
  #app .hover-reveal-card.flex h3 {
    font-size: 1.25rem !important;
  }
  #app .hover-reveal-card.flex p {
    font-size: 0.85rem !important;
  }

  /* 6. GALLERY */
  .gallery-card.offset {
    margin-top: 0 !important;
  }
  .gallery-card,
  .gallery-card.tall {
    min-height: 340px !important;
  }

  /* 7. TESTIMONIALS */
  #Investors .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
  #Investors .grid > div:last-child {
    grid-column: span 2 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  /* 8. CTA SECTION */
  .py-32.bg-surface .text-center {
    text-align: center !important;
  }
  .py-32.bg-surface .flex {
    justify-content: center !important;
    align-items: center !important;
  }

  /* 9. FOOTER */
  footer .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5rem !important;
  }
  footer .grid > div:first-child {
    grid-column: span 2 !important;
    max-width: 100% !important;
  }
  footer .grid > div:nth-child(2),
  footer .grid > div:nth-child(3) {
    justify-self: start !important;
  }

  /* 10. GENERAL OVERFLOW & SERVICES OVERRIDES */
  html, body {
    overflow-x: hidden !important;
  }
  .service-overlap-card {
    transform: none !important;
  }
  .py-section-gap.bg-white .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5rem !important;
  }
}

/* === MOBILE VIEW FIXES (max-width: 767px) === */
@media (max-width: 767px) {
  /* 1. NAVBAR & MOBILE DRAWER */
  nav .text-3xl {
    font-size: 1.5rem !important;
    white-space: nowrap !important;
  }
  nav .flex.justify-between.items-center {
    padding-left: 1rem !important;
    padding-right: 1.25rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  #mobileMenuBtn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
    color: #ffffff !important;
  }
  #mobileMenuBtn:active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
  }
  #mobileMenuDrawer {
    display: flex !important;
    flex-direction: column !important;
    background-color: rgba(11, 20, 99, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    padding: 1.5rem 1.5rem 2rem 1.5rem !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
  }
  #mobileMenuDrawer.hidden {
    display: none !important;
  }
  #mobileMenuDrawer a {
    font-size: 1.05rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    padding: 0.85rem 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: color 0.2s ease !important;
    letter-spacing: 0.05em !important;
  }
  #mobileMenuDrawer a:hover,
  #mobileMenuDrawer a:active {
    color: #fec644 !important;
  }
  #mobileMenuDrawer .flex.flex-col.gap-4 {
    gap: 1rem !important;
    margin-top: 1rem !important;
  }
  #mobileMenuDrawer .btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    border-radius: 9999px !important;
    box-sizing: border-box !important;
  }

  /* 2. HERO / SLIDER */
  header.min-h-screen .relative.z-10 {
    padding-top: 7rem !important;
    padding-bottom: 3rem !important;
    gap: 1.5rem !important;
  }
  header.min-h-screen h1 {
    font-size: 2.15rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  header.min-h-screen p.text-xl {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }
  header.min-h-screen .flex.flex-wrap {
    gap: 0.75rem !important;
  }
  header.min-h-screen .btn {
    padding: 10px 20px !important;
    font-size: 0.75rem !important;
  }
  header.min-h-screen .hero-floating-cards {
    width: 100% !important;
    align-items: center !important;
    margin-top: 1rem !important;
  }
  header.min-h-screen .hero-float-card {
    width: 100% !important;
    max-width: 290px !important;
    padding: 0.85rem 1.15rem !important;
    min-height: auto !important;
  }

  /* 3. METRICS / STATS STRIP */
  .stats-strip {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .stats-strip .gap-10,
  .stats-strip .gap-gutter {
    gap: 1.5rem !important;
  }
  .stats-strip .text-4xl,
  .stats-strip .font-headline-lg {
    font-size: 1.75rem !important;
  }
  .stats-strip .label-spaced {
    font-size: 0.65rem !important;
  }

  /* 4. WHY SCHOOLS TRUST US */
  #ksk {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  #ksk > .grid {
    gap: 2.5rem !important;
  }
  #ksk .min-h-\[520px\] {
    min-height: 280px !important;
  }
  #ksk .absolute.-left-6 {
    left: 0.5rem !important;
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 1rem !important;
    max-width: none !important;
  }
  #ksk .absolute.-left-6 p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  #ksk h2 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  #ksk p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  #ksk .border-l {
    padding-left: 1.25rem !important;
  }
  #ksk .text-2xl {
    font-size: 1.25rem !important;
  }
  #ksk form {
    flex-direction: column !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    background: transparent !important;
    gap: 0.5rem !important;
  }
  #ksk form input {
    border-radius: 9999px !important;
    border: 1px solid rgba(38, 58, 45, 0.15) !important;
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
  }
  #ksk form button {
    border-radius: 9999px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
  }

  /* 5. CAPABILITIES GRID */
  #app {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  #app .mb-20 {
    margin-bottom: 2rem !important;
  }
  #app h2 {
    font-size: 1.85rem !important;
  }
  #app p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-top: 1rem !important;
  }
  #app #phoneMockup {
    max-width: 200px !important;
    width: 200px !important;
    margin-bottom: 1.5rem !important;
  }
  #app .hover-reveal-card:not(.flex) {
    padding: 1.25rem !important;
    min-height: auto !important;
  }
  #app .hover-reveal-card:not(.flex) h3 {
    font-size: 1.15rem !important;
  }
  #app .hover-reveal-card:not(.flex) p {
    font-size: 0.8rem !important;
  }

  /* 6. GENERAL PADDING & OVERFLOW */
  .px-margin-page {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .py-section-gap,
  .section-spacing {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* 7. SERVICES PAGE TARGETED STYLES */
  main section.pt-16.pb-section-gap {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
    margin-top: 0 !important;
  }
  .service-overlap-card {
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 15px 35px -20px rgba(11, 20, 99, 0.2) !important;
  }
  .service-overlap-card h3 {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }
  .service-overlap-card p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }
  .service-overlap-card ul {
    margin-bottom: 1.25rem !important;
  }
  .service-overlap-card li {
    font-size: 0.85rem !important;
  }
  .service-overlap-card span.material-symbols-outlined.text-5xl {
    font-size: 2.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  /* Constrain huge service layout images on mobile */
  main .md:col-span-5 img,
  main .md:col-span-6 img {
    height: 250px !important;
    border-radius: 0 0 1.25rem 1.25rem !important;
  }
  main .md:col-span-6 .relative img {
    height: 250px !important;
  }
  
  /* 8. CONTACT PAGE OVERRIDES */
  main section.relative.-mt-16 {
    margin-top: -2.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  main section.relative.-mt-16 .grid {
    gap: 1rem !important;
  }
  main section.relative.-mt-16 .bg-surface {
    padding: 1.5rem !important;
  }
  main section.relative.-mt-16 h3 {
    font-size: 1.2rem !important;
  }
  main section.relative.-mt-16 p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }
  main section.relative.h-\[450px\] {
    height: 280px !important;
  }
  main section.relative.h-\[450px\] iframe {
    height: 100% !important;
  }
  main section.relative.h-\[450px\] .absolute.bottom-8 {
    bottom: 0.75rem !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    transform: none !important;
    width: auto !important;
  }
  main section.relative.h-\[450px\] .absolute.bottom-8 .bg-white\/95 {
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    gap: 0.5rem !important;
  }
  main section.relative.h-\[450px\] .absolute.bottom-8 p.text-primary {
    font-size: 0.8rem !important;
  }

  /* 9. HERO PLACEMENT FOR INNER PAGES (What We Do, Services, Contact) */
  main section.relative.h-\[500px\] {
    height: 350px !important;
    padding-top: 5rem !important;
  }
  main section.relative.h-\[500px\] h1.text-display-xl {
    font-size: 2.15rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
  }
  main section.relative.h-\[500px\] p.text-body-lg {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }
  main section.relative.h-\[500px\] .absolute.top-28,
  main section.relative.h-\[500px\] .absolute.top-32 {
    display: none !important;
  }
  main section.relative.h-\[500px\] .bounce-animation {
    display: none !important;
  }

  /* 10. TESTIMONIALS & OTHER GRID ITEMS */
  #Investors .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  #Investors .bg-surface {
    padding: 1.5rem !important;
  }
  #Investors .bg-surface p {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }
  #Investors .md\:-translate-y-4 {
    transform: none !important;
  }

  /* 11. CTA BANNER */
  section.py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  section.py-32 h2,
  section.py-24 h2 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  section.py-32 p,
  section.py-24 p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 2rem !important;
  }
  section.py-32 .flex-col,
  section.py-24 .flex-col {
    gap: 0.75rem !important;
  }
  
  /* 12. FOOTER OVERRIDES */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
  }
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  footer .grid > div {
    max-width: 100% !important;
    justify-self: stretch !important;
    text-align: left !important;
  }

  /* 13. ARCHITECTURE HUB TABLE TO CARDS */
  .hub-table-shell table {
    min-width: 0 !important;
    display: block !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }
  .hub-table-shell thead {
    display: none !important;
  }
  .hub-table-shell tbody {
    display: block !important;
    width: 100% !important;
  }
  .hub-table-shell tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    border-bottom: 2px solid rgba(11, 20, 99, 0.08) !important;
    background-color: #ffffff !important;
    gap: 0.75rem !important;
  }
  .hub-table-shell tr:last-child {
    border-bottom: none !important;
  }
  .hub-table-shell td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
  }
  .hub-table-shell td:nth-child(2)::before {
    content: "Capabilities: " !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: #0b1463 !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }
  .hub-table-shell td:nth-child(3)::before {
    content: "Outcome: " !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: #0b1463 !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }
  .hub-table-shell td:nth-child(4) {
    margin-top: 0.5rem !important;
  }
  .hub-table-shell td:nth-child(4) span {
    display: inline-flex !important;
  }
}