:root {
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-main: #0284c7; /* Sky / Academic Blue */
    --accent-light: #38bdf8;
    --accent-dark: #0f172a;  /* deep navy academic color */
    
    --card-bg: #ffffff;
    --card-shadow: 0 10px 40px rgba(2, 132, 199, 0.08);
    --border-color: rgba(2, 132, 199, 0.1);
    
    --font-heading-en: 'Montserrat', sans-serif;
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Bright summer background covering early sections */
.summer-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(2, 132, 199, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%230284c7' stroke-width='1.2' fill='none' fill-rule='evenodd' stroke-opacity='0.15'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM0 10.39l2.9-1.67 4.1 2.37v4.75l-4.1 2.37-2.9-1.68v-6.14zM28 10.39l-2.9-1.67-4.1 2.37v4.75l4.1 2.37 2.9-1.68v-6.14zM0 38.61l2.9 1.67 4.1-2.37v-4.75l-4.1-2.37-2.9 1.68v6.14zM28 38.61l-2.9 1.67-4.1-2.37v-4.75l4.1-2.37 2.9 1.68v6.14zM14 0l4.1 2.37-4.1 2.37-4.1-2.37L14 0zm0 49l4.1-2.37-4.1-2.37-4.1 2.37L14 49z'/%3E%3C/g%3E%3Cg fill='%230284c7' fill-opacity='0.3'%3E%3Ccircle cx='14' cy='9.25' r='1.5'/%3E%3Ccircle cx='27' cy='16.75' r='1.5'/%3E%3Ccircle cx='27' cy='31.75' r='1.5'/%3E%3Ccircle cx='14' cy='39.25' r='1.5'/%3E%3Ccircle cx='1' cy='31.75' r='1.5'/%3E%3Ccircle cx='1' cy='16.75' r='1.5'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(rgba(2, 132, 199, 0.15) 1px, transparent 1px);
    background-size: 
        100% 100%, 
        100% 100%, 
        56px 98px,
        20px 20px;
    background-position: 
        0 0, 
        0 0, 
        0 0,
        10px 10px;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
}

/* Tech scanline overlay to simulate surveying / processing */
.summer-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(0deg, transparent 0%, rgba(2, 132, 199, 0.05) 50%, transparent 100%);
    background-size: 100% 150vh;
    animation: techScan 6s linear infinite;
    pointer-events: none;
    will-change: background-position;
}

@keyframes techScan {
    0% { background-position: 0 -100vh; }
    100% { background-position: 0 100vh; }
}

/* Subtle sunny cursor glow for summer theme */
.cursor-glow {
    position: fixed;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: multiply;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 20;
}

.text-center { text-align: center; }

h1, h2, h3, h4, .title, .section-title {
    font-family: var(--font-heading);
}

.section-title, .logo, .info-list strong {
    font-family: var(--font-heading-en);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    font-family: var(--font-heading-en);
}

.nav-links a:hover {
    color: var(--accent-main);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent-main);
    border-radius: 50px;
    background: white;
    color: var(--accent-main) !important;
}
.btn-sm:hover {
    background: var(--accent-main);
    color: white !important;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--accent-main);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
    border: none;
    font-family: var(--font-body);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.4);
    background: var(--accent-dark);
}

.btn-primary .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}
.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-primary.large {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

/* Sun-ray inspired background element for Hero */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg at 50% 100%, rgba(255,255,255,0.4) 0deg 5deg, transparent 5deg 10deg);
    top: -50%;
    left: -50%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--accent-main);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent-main);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-main);
    font-family: var(--font-heading-en);
    font-weight: 600;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--accent-main);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--accent-main);
    border-radius: 50px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Sections */
section {
    padding: 7rem 0;
    position: relative;
    z-index: 5;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
}

.section-subtitle {
    color: var(--accent-main);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* White Card Style */
.white-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.white-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.12);
}

.white-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-main), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.white-card:hover::before {
    opacity: 1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
}

.icon-wrap {
    width: 80px; height: 80px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-main);
    font-size: 2.5rem;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.03);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Programs Tab */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: white;
    border: 1px solid var(--accent-main);
    color: var(--accent-main);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
}

.tab-btn.active {
    background: var(--accent-main);
    color: white;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.program-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.program-grid.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.program-card {
    display: flex;
    flex-direction: column;
}

.program-card .category {
    font-size: 0.75rem;
    background: var(--bg-gradient);
    color: var(--accent-dark);
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.program-card .target-subject {
    font-size: 0.78rem;
    color: var(--accent-main);
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.program-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--accent-dark);
}

.program-card .instructor {
    font-size: 0.85rem;
    color: var(--accent-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-card .details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.program-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-color);
    padding-top: 1rem;
    font-weight: 600;
}

/* Info Section */
.info {
    position: relative;
}

.card-large {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 4rem;
}

.card-large h2 {
    color: var(--accent-dark);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    border-bottom: 1px dashed var(--border-color);
    padding: 1.5rem 0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    width: 30%;
    color: var(--accent-main);
    font-weight: 700;
}

.info-list span {
    width: 70%;
    color: var(--text-primary);
    line-height: 1.6;
}

/* CTA Section */
.apply {
    background: #fff;
    padding-top: 5rem;
    padding-bottom: 7rem;
    position: relative;
}

.apply::before {
    content: '';
    position: absolute;
    top: -50px; left: 0;
    width: 100%; height: 50px;
    background: linear-gradient(to bottom right, transparent 49%, #fff 50%);
}

.apply h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.apply p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-family: var(--font-heading);
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--accent-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: #fff;
    font-family: var(--font-heading-en);
}

footer p {
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Hero date & booking notice */
.hero-date {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hero-booking-notice {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-main);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.2rem;
    border: 2px solid var(--accent-main);
    border-radius: 50px;
    display: inline-block;
}

/* About lead story card */
.about-lead {
    max-width: 860px;
    margin: 0 auto 3rem;
    padding: 2.5rem 3rem;
    line-height: 2;
}

.about-lead-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-lead p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.about-lead p:last-child {
    margin-bottom: 0;
}

.points-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 2rem;
}

/* Point number badges (replacing emojis) */
.point-number {
    font-family: var(--font-heading-en);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-main);
    line-height: 1;
}

/* Section description text */
.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.8rem;
}

.section-desc small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tab button with small subtext */
.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.tab-btn small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    padding: 2rem 2.5rem;
}

.faq-q {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 0.8rem;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-main);
}

/* Footer address */
.footer-address {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll Reveal */
.reveals {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.reveals.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ===== Mobile Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .title {
        font-size: 2.8rem;
    }

    .program-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .card-large {
        padding: 2.5rem 3rem;
    }

    .apply h2 {
        font-size: 2rem;
    }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 150;
        transition: right 0.35s cubic-bezier(0.33, 1, 0.68, 1);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-links .btn-sm {
        margin-top: 1rem;
        text-align: center;
        border: 2px solid var(--accent-main);
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
    }

    /* Navbar mobile */
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.05em;
    }

    /* Hero mobile — auto height to prevent overflow */
    .hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 1rem;
    }

    .hero-content {
        padding: 1.2rem 1rem;
        margin: 0 0.5rem;
        border-radius: 16px;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    h1.title,
    .title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.05em;
    }

    .description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.8rem;
        margin-bottom: 0.8rem;
    }

    .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .btn-primary.large {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections mobile */
    section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* About grid mobile — single column */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .white-card {
        padding: 1.8rem 1.5rem;
        border-radius: 18px;
    }

    .icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }

    /* Tabs mobile */
    .tabs {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .tab-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }

    /* Program grid mobile — single column */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .program-card h3 {
        font-size: 1.1rem;
    }

    .program-card .details {
        font-size: 0.85rem;
    }

    .program-card .meta {
        font-size: 0.8rem;
    }

    /* Info section mobile */
    .card-large {
        padding: 1.5rem 1.2rem;
        border-radius: 18px;
    }

    .card-large h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .info-list li {
        flex-direction: column;
        gap: 0.4rem;
        padding: 1.2rem 0;
    }

    .info-list strong {
        width: 100%;
        font-size: 0.8rem;
    }

    .info-list span {
        width: 100%;
        font-size: 0.95rem;
    }

    /* CTA section mobile */
    .apply {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .apply h2 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .apply p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Footer mobile */
    footer {
        padding: 2rem 0;
    }

    .footer-logo {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.75rem;
    }

    .footer-address {
        font-size: 0.7rem;
    }

    /* Hero date & notice mobile */
    .hero-date {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .hero-booking-notice {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
        margin-bottom: 1rem;
    }

    /* About lead mobile */
    .about-lead {
        padding: 1.5rem 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.8;
    }

    .about-lead-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .about-lead p {
        font-size: 0.88rem;
    }

    .points-heading {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .point-number {
        font-size: 1.5rem;
    }

    /* Section desc mobile */
    .section-desc {
        font-size: 0.85rem;
    }

    /* FAQ mobile */
    .faq-item {
        padding: 1.5rem 1.2rem;
    }

    .faq-q {
        font-size: 0.95rem;
    }

    .faq-a {
        font-size: 0.88rem;
        padding-left: 1rem;
    }

    /* Disable cursor glow on touch devices */
    .cursor-glow {
        display: none;
    }

    /* Disable card hover lift on touch */
    .white-card:hover {
        transform: translateZ(0);
    }

    /* Disable heavy background animations on mobile for performance */
    .hero::before {
        display: none;
    }

    .summer-bg::after {
        animation: none;
    }

    /* Simplify background on mobile */
    .summer-bg {
        background-image:
            radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 85% 90%, rgba(2, 132, 199, 0.08) 0%, transparent 50%);
        background-size: 100% 100%, 100% 100%;
    }

    /* Remove will-change after animation done to free memory */
    .reveals.active {
        will-change: auto;
    }
}

/* ===== Responsive — Small phones ===== */
@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 1rem 0.8rem;
        margin: 0 0.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .apply h2 {
        font-size: 1.4rem;
    }
}

/* Safe area support for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    
    .navbar {
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
    }
}
