/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* Remove tap highlight on mobile */
}

:root {
    --color-bg-blue: #E1F5FE;
    --color-bg-pink: #FFEBEE;
    --color-bg-yellow: #FFFDE7;
    --color-bg-green: #E8F5E9;
    --color-text: #455A64;
    --color-accent: #FF8A65;
    --font-heading: 'ZCOOL KuaiLe', cursive;
    --font-body: 'Nunito', 'Yuanti SC', 'YouYuan', 'Noto Sans SC', sans-serif;
    --bg-pattern: radial-gradient(#B0BEC5 1px, transparent 1px);
    --bg-size: 20px 20px;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    overflow: hidden;
    /* Prevent default scroll, handle in main */
    background-color: #fff;
    background-image: var(--bg-pattern);
    background-size: var(--bg-size);
    touch-action: pan-y;
    /* Allow vertical pan gestures only */
    overscroll-behavior: none;
    /* Prevent pull-to-refresh and overscroll effects */
}

/* Scroll Snap Container */
.container {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    overscroll-behavior-y: none;
    /* Prevent bounce effect on mobile */
}

.page {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

/* Section Colors */
#cover {
    background-color: var(--color-bg-blue);
}

#why {
    background-color: var(--color-bg-pink);
}

#age-focus {
    background-color: var(--color-bg-yellow);
}

#curriculum {
    background-color: var(--color-bg-green);
}

#safety {
    background-color: var(--color-bg-blue);
}

#coaches {
    background-color: var(--color-bg-pink);
}

/* Page 6: Growth Path - REMOVED */
/* Styles preserved if needed but currently unused */

#together {
    background-color: var(--color-bg-blue);
}

#environment {
    background-color: var(--color-bg-pink);
}

#reviews {
    background-color: var(--color-bg-green);
}

#fit {
    background-color: var(--color-bg-yellow);
}

#contact {
    background-color: var(--color-bg-pink);
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.nav-dots a {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 3px solid var(--color-text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-dots a.active {
    background: var(--color-accent);
    transform: scale(1.5);
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--color-accent);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: #546E7A;
    /* Softer dark grey */
}

h1 {
    font-size: 4rem;
    text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0, 0, 0, 0.1);
    /* Pop style shadow */
    color: #FF8A65;
    /* Accent color for main title */
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    color: #455A64;
}

h3 {
    font-size: 1.5rem;
    color: #546E7A;
}

p {
    line-height: 1.8;
    color: #546E7A;
}

.main-tagline {
    font-size: 1.4rem;
    font-weight: 500;
    color: #37474F;
    margin: 1rem 0;
}

.subtitle {
    font-size: 1.1rem;
    color: #607D8B;
    margin-bottom: 1rem;
}

/* Content Wrapper */
.content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Components */
.btn-start,
.btn-book {
    display: inline-block;
    padding: 15px 50px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    border: 4px solid #fff;
    box-shadow: 0 6px 15px rgba(255, 138, 101, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    cursor: pointer;
    font-family: var(--font-heading);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.btn-start:hover,
.btn-book:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(255, 138, 101, 0.6);
}

.btn-start::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-start:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Stickers & Decoration */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sticker-deco {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.sun {
    width: 120px;
    height: 120px;
    top: -60px;
    right: -30px;
    background: radial-gradient(circle, #FFF59D 60%, transparent 60%);
    /* lighter yellow */
    border-radius: 50%;
    box-shadow: 0 0 30px #FFF59D;
    animation: spin 20s linear infinite;
    /* Spin separate from float */
}

.flower {
    width: 90px;
    height: 90px;
    top: 20px;
    left: 20px;
    background: radial-gradient(circle, #F48FB1 20%, transparent 20%),
        conic-gradient(#F8BBD0 25%, transparent 0);
    /* softer pinks */
    border-radius: 50%;
    animation: float 5s ease-in-out infinite reverse;
}

.shield {
    width: 100px;
    height: 120px;
    bottom: 40px;
    right: 40px;
    top: auto;
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    border-radius: 50% 50% 50% 50% / 10% 10% 50% 50%;
    box-shadow: 0 8px 25px rgba(129, 199, 132, 0.3);
    animation: float 6s ease-in-out infinite;
}

.shield::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shield::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50% 50% 50% 50% / 10% 10% 50% 50%;
}

.heart {
    width: 80px;
    height: 80px;
    top: 30px;
    right: 30px;
    position: absolute;
    animation: pulse 3s infinite ease-in-out;
}

.heart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 40px;
    height: 64px;
    background: #F48FB1;
    border-radius: 40px 40px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 64px;
    background: #F48FB1;
    border-radius: 40px 40px 0 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Hero Art (CSS Only) */
/* Hero Art */
.hero-image-container {
    margin: 20px auto;
    position: relative;
    max-width: 400px;
}

.hero-illustration {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
    animation: float 6s ease-in-out infinite;
    border: 5px solid #fff;
}

/* About Layout */
.magazine-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.text-block {
    text-align: left;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.img-frame {
    padding: 10px;
    background: #fff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
}

.placeholder-img {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ddd;
}

.bg-pink {
    background: #F8BBD0;
}

/* Cards */
.cards-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 35px;
    /* More rounded */
    width: 220px;
    box-shadow: 0 10px 25px rgba(149, 157, 165, 0.1);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 35px rgba(149, 157, 165, 0.2);
}

.card-blue {
    border-bottom: 5px solid #4FC3F7;
}

.card-yellow {
    border-bottom: 5px solid #FFF176;
}

.card-green {
    border-bottom: 5px solid #81C784;
}

.card-icon {
    font-size: 3rem;
    margin-top: 10px;
}

/* Environment List */
.features-list {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
}

.features-list .icon {
    font-size: 2rem;
    margin-right: 20px;
}

/* New Page 2: Why - Value Statement */
.value-statement {
    margin: 2rem 0;
}

.large-text {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin: 1rem 0;
    color: #37474F;
}

.quote-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 20px;
    margin: 2rem 0;
    border-left: 5px solid var(--color-accent);
    font-size: 1.2rem;
    line-height: 1.8;
}

.keywords-float {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.keyword {
    background: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.keyword:hover {
    transform: translateY(-3px) rotate(-2deg);
}

/* Page 3: Age Focus */
.emphasis-text {
    font-size: 1.2rem;
    margin-top: 2rem;
    color: #37474F;
    font-weight: 500;
}

/* Page 4: Safety */
.safety-section {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.safety-block {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 20px;
    flex: 1;
    min-width: 250px;
}

.safety-block h3 {
    margin-bottom: 15px;
    color: var(--color-accent);
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.simple-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-top: 2rem;
    color: #37474F;
    font-weight: 500;
}

/* Page 5: Coaches */
.coach-criteria {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.criteria-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 20px;
    flex: 1;
    min-width: 150px;
    transition: transform 0.3s;
}

.criteria-item:hover {
    transform: translateY(-5px);
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

.img-frame {
    margin-top: 2rem;
    padding: 10px;
    background: #fff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: inline-block;
}

/* Page 6: Growth Path */
.growth-path {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.path-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: bold;
}

.milestones {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 20px;
    margin-top: 2rem;
}

.milestone-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.milestone-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

/* Page 7: Together */
.together-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.together-card {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque */
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(149, 157, 165, 0.1);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.together-card:hover {
    transform: translateY(-5px);
}

.together-card h3 {
    color: var(--color-accent);
    margin-bottom: 10px;
}

/* Page 8: Environment Gallery */
.environment-gallery {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.env-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.env-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    padding: 20px;
}

.bg-blue {
    background: #B3E5FC;
}

.bg-yellow {
    background: #FFF9C4;
}

.note-text {
    margin-top: 2rem;
    color: #607D8B;
    font-style: italic;
}

/* Page 9: Reviews */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 2rem 0;
}

.review-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 35px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(149, 157, 165, 0.1);
    border-left: 8px solid var(--color-accent);
    /* Thicker accent */
}

.review-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #37474F;
}

.review-author {
    text-align: right;
    color: #607D8B;
    font-size: 0.95rem;
}

/* Page 10: Fit */
.fit-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 25px;
    margin: 2rem 0;
}

.intro-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.fit-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.fit-list li {
    font-size: 1.2rem;
    padding: 10px 0;
    color: #37474F;
}

.conclusion-text {
    font-size: 1.4rem;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Page 11: CTA */
.cta-subtitle {
    font-size: 1.1rem;
    color: #607D8B;
    margin-bottom: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 30px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    margin-top: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.qrcode-section {
    text-align: center;
    margin: 0;
}

.qrcode-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 8px;
}

.qrcode-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #607D8B;
    font-weight: 500;
}

.map-placeholder {
    margin-top: 20px;
    padding: 40px;
    background: #ddd;
    border-radius: 15px;
    color: #666;
}

footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    color: #607D8B;
}

/* Page 4: 课程体系 */
#curriculum .subtitle {
    margin-bottom: 0.5rem;
}

.scroll-hint {
    font-size: 0.85rem;
    color: #78909C;
    margin-top: 0.5rem;
    display: none;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.level-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(149, 157, 165, 0.1);
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-card h3 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #37474F;
}

.level-age {
    color: #607D8B;
    font-size: 0.9rem;
    margin: 5px 0;
}

.level-brief {
    color: #78909C;
    font-size: 0.95rem;
    margin-top: 10px;
}

.course-type {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: #FFE0B2;
    color: #E65100;
    font-size: 0.85rem;
    border-radius: 12px;
    font-weight: 500;
}

.course-type.independent {
    background: #C8E6C9;
    color: #2E7D32;
}

/* Modal 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #455A64;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-accent);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-accent), #FF9066);
    padding: 40px 30px;
    text-align: center;
    color: #fff;
    border-radius: 25px 25px 0 0;
}

.modal-level-badge {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid #fff;
    border-radius: 50%;
    line-height: 54px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 2rem;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-age {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.modal-course-type {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-bg-pink);
}

.modal-goals {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #455A64;
    padding: 15px;
    background: var(--color-bg-yellow);
    border-radius: 15px;
    font-weight: 500;
}

.modal-content-list {
    background: var(--color-bg-blue);
    padding: 20px;
    border-radius: 15px;
}

.modal-content-list .content-phase {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #B0BEC5;
}

.modal-content-list .content-phase:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-content-list .phase-title {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.modal-content-list .phase-items {
    color: #455A64;
    line-height: 1.7;
    font-size: 0.95rem;
}

.highlight-section {
    background: linear-gradient(135deg, #FFF9C4, #FFECB3);
    padding: 25px;
    border-radius: 20px;
    margin-top: 10px;
}

.highlight-section h3 {
    border-bottom: none;
    color: #F57C00;
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #455A64;
}

/* Clickable Safety Block */
.safety-block.clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.safety-block.clickable:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Image Modal */
#imageModal {
    display: none;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.95), rgba(252, 228, 236, 0.95));
    backdrop-filter: blur(10px);
}

#imageModal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 112, 67, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.8);
    animation: zoomIn 0.3s ease-out;
    border: 3px solid #fff;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal-close {
    position: fixed;
    right: 30px;
    top: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 2rem;
    color: #455A64;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-modal-close:hover {
    background: var(--color-accent);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.3);
}

/* Tablet Responsive */
@media (max-width: 900px) {
    .page {
        padding: 1.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    .cards-container {
        gap: 15px;
    }

    .card {
        width: 180px;
        padding: 25px 15px;
    }

    .level-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .environment-gallery {
        gap: 15px;
    }

    .env-photo {
        width: 180px;
        height: 180px;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0, 0, 0, 0.1);
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.2rem;
    }

    .main-tagline {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Page padding for mobile */
    .page {
        padding: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
        align-items: flex-start;
    }

    /* Ensure content has enough space */
    .page .content {
        margin-top: 1rem;
    }

    /* Content max-width */
    .content {
        max-width: 100%;
    }

    /* Navigation dots - hide on mobile */
    .nav-dots {
        display: none;
    }

    /* Hero section */
    .hero-image-container {
        max-width: 280px;
        margin: 15px auto;
    }

    /* Buttons */
    .btn-start,
    .btn-book {
        padding: 12px 35px;
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    /* Stickers - reduce size on mobile */
    .sun {
        width: 80px;
        height: 80px;
        top: -40px;
        right: -20px;
    }

    .flower {
        width: 60px;
        height: 60px;
    }

    .shield {
        width: 70px;
        height: 84px;
        bottom: 20px;
        right: 20px;
    }

    .shield::before {
        font-size: 2.5rem;
    }

    .heart {
        width: 60px;
        height: 60px;
    }

    /* Magazine layout */
    .magazine-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Value statement */
    .large-text {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .quote-box {
        font-size: 0.95rem;
        padding: 18px;
        margin: 1.5rem 0;
        line-height: 1.6;
    }

    .keywords-float {
        gap: 10px;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .keyword {
        padding: 10px 18px;
        font-size: 0.95rem;
        margin: 4px;
    }

    /* Cards */
    .cards-container {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 300px;
        padding: 22px 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .card p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-top: 8px;
    }

    /* Safety section */
    .safety-section {
        flex-direction: column;
        gap: 15px;
        margin: 1.5rem 0;
    }

    .safety-block {
        min-width: 100%;
        padding: 18px;
    }

    .quote-text {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    /* Coaches criteria */
    .coach-criteria {
        gap: 12px;
        flex-direction: column;
    }

    .criteria-item {
        min-width: 100%;
        padding: 18px;
    }

    .icon-large {
        font-size: 2.5rem;
    }

    .img-frame {
        margin-top: 1.5rem;
    }

    .placeholder-img {
        width: 100%;
        max-width: 300px;
        height: 240px;
        font-size: 0.9rem;
    }

    /* Growth path */
    .growth-path {
        flex-direction: column;
        gap: 5px;
    }

    .path-arrow {
        transform: rotate(90deg);
    }

    /* Together section */
    .together-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 1.5rem 0;
    }

    .together-card {
        padding: 25px;
    }

    /* Environment gallery */
    .environment-gallery {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin: 1.5rem 0;
    }

    .env-item {
        width: 100%;
    }

    .env-photo {
        width: 100%;
        max-width: 300px;
        height: 220px;
        font-size: 0.9rem;
        padding: 15px;
    }

    .note-text {
        font-size: 1rem;
    }

    /* Reviews */
    .reviews-container {
        gap: 15px;
        margin: 1.5rem 0;
    }

    .review-card {
        padding: 20px 25px;
        border-left: 5px solid var(--color-accent);
    }

    .review-text {
        font-size: 1rem;
    }

    .review-author {
        font-size: 0.9rem;
    }

    /* Fit section */
    .fit-content {
        padding: 25px 20px;
        max-width: 320px;
        margin: 1.5rem auto;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .fit-list {
        margin: 1.5rem auto;
        max-width: 280px;
        text-align: center;
    }

    .fit-list li {
        font-size: 1rem;
        padding: 12px 0;
        line-height: 1.5;
    }

    .conclusion-text {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    /* Contact section */
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-card {
        padding: 20px 15px;
        border-radius: 25px;
        margin: 1rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0.8rem;
    }

    .contact-info {
        gap: 10px;
    }

    .contact-item {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .qrcode-img {
        width: 130px;
        height: 130px;
    }

    .qrcode-text {
        font-size: 0.85rem;
        margin-top: 6px;
    }

    .map-placeholder {
        display: none;
    }

    /* Show scroll hint on mobile */
    .scroll-hint {
        display: block;
    }

    /* Level grid - 2 columns on mobile with better spacing */
    .level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 1.5rem 0;
    }

    .level-card {
        padding: 16px 12px;
        border-radius: 18px;
        min-height: auto;
    }

    .level-badge {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .level-card h3 {
        font-size: 1.05rem;
        margin: 8px 0 4px;
        line-height: 1.2;
    }

    .level-age {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 4px 0;
    }

    .level-brief {
        font-size: 0.85rem;
        margin-top: 8px;
        line-height: 1.4;
    }

    .course-type {
        margin-top: 8px;
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    /* Modal improvements for mobile */
    .modal.active {
        padding: 0;
        align-items: stretch;
        justify-content: flex-end;
    }

    .modal-content {
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    .modal-header {
        padding: 30px 20px 25px;
        border-radius: 0;
        position: relative;
    }

    /* Add visual indicator for swipe-down */
    .modal-header::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 2px;
        animation: swipeHint 2s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
            opacity: 0.6;
        }
        50% {
            transform: translateX(-50%) translateY(3px);
            opacity: 1;
        }
    }

    .modal-level-badge {
        width: 50px;
        height: 50px;
        line-height: 44px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .modal-title {
        font-size: 1.5rem;
        margin: 8px 0;
    }

    .modal-age {
        font-size: 1rem;
    }

    .modal-course-type {
        margin-top: 12px;
        padding: 5px 14px;
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-section {
        margin-bottom: 20px;
    }

    .modal-section h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .modal-goals {
        font-size: 0.95rem;
        padding: 12px;
        line-height: 1.6;
    }

    .modal-content-list {
        padding: 15px;
    }

    .modal-content-list .content-phase {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .modal-content-list .phase-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .modal-content-list .phase-items {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .highlight-section {
        padding: 20px;
    }

    .modal-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    /* Image modal for mobile */
    .image-modal-content {
        max-width: 95%;
        max-height: 85vh;
        padding: 10px;
    }

    .image-modal-content img {
        max-height: 85vh;
        border-radius: 15px;
        box-shadow: 0 8px 30px rgba(255, 112, 67, 0.15), 0 0 0 5px rgba(255, 255, 255, 0.8);
        touch-action: manipulation;
    }

    .image-modal-close {
        right: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Small mobile optimization - keep 2 columns for better visibility */
@media (max-width: 375px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page {
        padding: 0.75rem;
        padding-bottom: 1.5rem;
    }

    /* Keep 2 columns but make cards even more compact */
    .level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 1.2rem 0;
    }

    .level-card {
        padding: 12px 8px;
        border-radius: 15px;
    }

    .level-badge {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .level-card h3 {
        font-size: 0.95rem;
        margin: 5px 0;
    }

    .level-age {
        font-size: 0.7rem;
    }

    .level-brief {
        font-size: 0.75rem;
        margin-top: 5px;
    }

    .course-type {
        margin-top: 5px;
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    .btn-start,
    .btn-book {
        padding: 10px 30px;
        font-size: 1rem;
    }
}

/* Touch optimization - increase tap targets */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap target size for better mobile UX */
    .level-card {
        min-height: 140px;
    }

    .nav-dots a {
        width: 20px;
        height: 20px;
    }

    .btn-start,
    .btn-book,
    .modal-close,
    .image-modal-close {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .level-card:hover::before {
        transform: scaleX(0);
    }

    /* Immediate feedback on tap */
    .level-card:active {
        transform: scale(0.98);
    }

    .btn-start:active,
    .btn-book:active {
        transform: scale(0.95);
    }
}