/* Apple-inspired Minimal Design */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #374151;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --background-primary: #ffffff;
    --background-secondary: #f5f5f7;
    --background-soft: #fafbfc;
    --border-light: #d2d2d7;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.47059;
    color: var(--text-primary);
    background-color: var(--background-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apple-style Navigation */
.modern-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-navbar .container {
    max-width: 980px;
}

.modern-navbar .navbar-nav {
    gap: 2rem;
}

.brand-text {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.brand-highlight {
    color: var(--primary-color);
}

.nav-link {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 1rem 0 !important;
    margin: 0 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Apple-style Buttons */
.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.23536;
    letter-spacing: -0.022em;
    text-decoration: none;
    border-radius: 980px;
    padding: 14px 28px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    min-width: 140px;
    text-shadow: none;
}

.apple-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.apple-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.apple-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section - Apple Style */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 692px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-primary);
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.21053;
    letter-spacing: 0.012em;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 2px 4px;
    border-radius: 6px;
}

.hero-headline {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
    display: inline-block;
    padding: 4px 6px;
    border-radius: 8px;
}

.hero-subheadline {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.007em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 3px 5px;
    max-width: 600px;
    border-radius: 6px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-learn-more {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.hero-learn-more:hover {
    opacity: 1;
    color: white;
}

.hero-learn-more::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 8px auto 0;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-background-image {
    transform: scale(1);
}

/* Visual Carousel */
.visual-carousel-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--background-secondary);
}

.visual-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.visual-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.visual-slide.prev {
    transform: translateX(-100%);
}

.visual-slide .visual-card.large {
    height: 100%;
}

.visual-slide .visual-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: var(--background-secondary);
}

.visual-slide:hover .visual-image {
    transform: scale(1.02);
}

/* Students Carousel */
.students-carousel-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--background-secondary);
}

.students-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.students-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.students-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.students-slide.prev {
    transform: translateX(-100%);
}

.students-slide .visual-card.large {
    height: 100%;
}

.students-slide .visual-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: var(--background-secondary);
}

.students-slide:hover .visual-image {
    transform: scale(1.02);
}

/* Carousel Controls - Both Carousels Same Style */
.visual-carousel-controls,
.students-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.visual-carousel-controls .carousel-btn,
.students-carousel-controls .carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.visual-carousel-controls .carousel-btn:hover,
.students-carousel-controls .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.visual-carousel-controls .carousel-btn:active,
.students-carousel-controls .carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Indicators - Both Carousels Same Style */
.visual-carousel-indicators,
.students-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.visual-carousel-indicators .indicator,
.students-carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.visual-carousel-indicators .indicator.active,
.students-carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.2);
}

.visual-carousel-indicators .indicator:hover,
.students-carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Visual Overlay - Same for Both Carousels */
.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 2rem 2rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* Always show overlay on active slides for both carousels */
.visual-slide.active .visual-overlay,
.students-slide.active .visual-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Show overlay on hover for both carousels */
.visual-card:hover .visual-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Apple-style Sections */
.apple-section {
    padding: 80px 0;
    text-align: center;
}

.apple-section-light {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.apple-section-dark {
    background: var(--background-secondary);
}

.section-eyebrow {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.19048;
    letter-spacing: 0.011em;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-headline {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    color: var(--text-primary);
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subheadline {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards - Enhanced Modern Design */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.apple-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.apple-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apple-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.apple-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.apple-feature-card:hover::before {
    opacity: 1;
}

.apple-feature-card:hover::after {
    opacity: 1;
}

.feature-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.feature-icon {
    font-size: 56px;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.feature-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.apple-feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.apple-feature-card:hover .feature-icon-bg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.feature-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.apple-feature-card:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

.apple-feature-card:hover .feature-description {
    color: #64748b;
}

.feature-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apple-feature-card:hover .feature-accent {
    opacity: 1;
}

/* Enhanced animations for feature cards */
@keyframes featureFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.apple-feature-card {
    animation: featureFloat 6s ease-in-out infinite;
}

.apple-feature-card:nth-child(2) {
    animation-delay: -2s;
}

.apple-feature-card:nth-child(3) {
    animation-delay: -4s;
}

/* Visual Showcase Section */
.visual-showcase-section {
    padding: 0;
    margin: 0;
}

.visual-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.visual-card.large {
    height: 600px;
}

.visual-card.medium {
    height: 300px;
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.visual-card:hover .visual-image {
    transform: scale(1.1);
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-feature {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.about-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-feature:hover::before {
    opacity: 1;
}

.about-feature-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    color: white;
}

.about-feature:hover .about-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.about-feature-text {
    flex: 1;
}

.about-feature h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.about-feature p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.01em;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--background-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA Section - Apple Style */
.apple-cta {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.apple-cta .section-headline {
    color: white;
    font-size: 48px;
}

.apple-cta .section-subheadline {
    color: rgba(255, 255, 255, 0.8);
}

.apple-cta .apple-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.apple-cta .apple-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.apple-cta .apple-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.apple-cta .apple-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Phone Call Buttons - Centered */
.phone-call-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

/* Footer - Apple Style */
.apple-footer {
    background: var(--background-secondary);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-section h6 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42859;
    letter-spacing: -0.016em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Teacher's Message Section - Professional & Elegant */
.teacher-message-container {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 2rem;
    position: relative;
}

.teacher-message-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.teacher-message-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.teacher-message-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.teacher-message {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

.teacher-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6, #8b5cf6);
    border-radius: 24px 24px 0 0;
}

.teacher-quote-icon {
    text-align: center;
    margin-bottom: 24px;
}

.teacher-quote-icon i {
    font-size: 32px;
    color: var(--primary-color);
    opacity: 0.7;
}

.teacher-quote {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 32px 0;
    padding: 0;
    border: none;
    position: relative;
    font-style: italic;
}

.teacher-quote::before,
.teacher-quote::after {
    content: '"';
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.6;
    font-style: normal;
}

.teacher-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.teacher-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.teacher-experience {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Teacher Message Carousel Controls */
.teacher-message-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 -20px;
    z-index: 10;
    pointer-events: none;
}

.teacher-message-controls .carousel-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.teacher-message-controls .carousel-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Teacher Message Indicators */
.teacher-message-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    z-index: 10;
}

.teacher-message-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.teacher-message-indicators .indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.teacher-message-indicators .indicator:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* About Text Section */
.about-text-section {
    margin-top: 2rem;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.about-text-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
}

.about-text-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: justify;
    letter-spacing: 0.01em;
}

.about-text-content:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Flash Messages */
.flash-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 350px;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.flash-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-toast.success {
    border-left: 5px solid #10b981;
}

.flash-toast.error {
    border-left: 5px solid #ef4444;
}

.flash-toast.info {
    border-left: 5px solid #3b82f6;
}

.flash-toast.warning {
    border-left: 5px solid #f59e0b;
}

.flash-toast-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.flash-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.flash-toast.success .flash-toast-icon {
    color: #10b981;
}

.flash-toast.error .flash-toast-icon {
    color: #ef4444;
}

.flash-toast.info .flash-toast-icon {
    color: #3b82f6;
}

.flash-toast.warning .flash-toast-icon {
    color: #f59e0b;
}

.flash-toast-message {
    flex: 1;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
}

.flash-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.flash-toast-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.flash-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    animation: progress 5s linear forwards;
}

.flash-toast.error .flash-toast-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.flash-toast.info .flash-toast-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.flash-toast.warning .flash-toast-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 11;
}

/* Enhanced Form Styles */
.modal-title-section {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .form-control {
    border-radius: 12px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    padding: 14px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
    outline: none;
}

.contact-form .form-control:hover {
    border-color: rgba(37, 99, 235, 0.4);
}

.form-check-input {
    border-radius: 6px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    width: 1.2rem;
    height: 1.2rem;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Modern Footer */
.modern-footer {
    background: var(--background-secondary);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.modern-footer .container {
    max-width: 1200px;
}

.modern-footer h5 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.modern-footer h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.modern-footer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.modern-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer ul li {
    margin-bottom: 12px;
}

.modern-footer ul li a {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 4px 0;
}

.modern-footer ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.modern-footer ul li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.modern-footer ul li a:hover::after {
    width: 100%;
}

.modern-footer i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    display: inline-block;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.footer-description {
    max-width: 280px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--background-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social a i {
    margin: 0;
    width: auto;
    font-size: 18px;
}

.phone-call-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Responsive Design - Enhanced for Mobile */
@media (max-width: 1200px) {
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .apple-feature-card {
        padding: 48px 32px;
    }
    
    .section-headline {
        font-size: 40px;
    }
    
    .contact-info {
        gap: 3rem;
    }
}

@media (max-width: 1068px) {
    .hero-headline {
        font-size: 52px;
    }
    
    .section-headline {
        font-size: 36px;
    }
    
    .modern-navbar .container {
        padding: 0 1.5rem;
    }
    
    .modern-navbar .navbar-nav {
        gap: 1.5rem;
    }
    
    .apple-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        padding: 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .flash-toast {
        min-width: 300px;
        max-width: 350px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 60vh;
        height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-headline {
        font-size: 36px;
        padding: 8px 16px;
        margin-bottom: 16px;
    }
    
    .hero-subheadline {
        font-size: 16px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }
    
    .hero-eyebrow {
        font-size: 14px;
        padding: 4px 8px;
        margin-bottom: 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-learn-more {
        bottom: 20px;
        font-size: 15px;
    }
    
    /* Apple Buttons Mobile */
    .apple-btn {
        min-width: 280px;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    /* Navigation Mobile */
    .modern-navbar {
        padding: 0.5rem 0;
    }
    
    .modern-navbar .container {
        padding: 0 1rem;
    }
    
    .modern-navbar .navbar-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 0.75rem 0 !important;
    }
    
    .brand-text {
        font-size: 18px;
    }
    
    /* Sections Mobile */
    .apple-section {
        padding: 50px 0;
    }
    
    .section-headline {
        font-size: 28px;
        padding: 0 1rem;
    }
    
    .section-eyebrow {
        font-size: 16px;
    }
    
    .section-subheadline {
        font-size: 16px;
        padding: 0 1rem;
    }
    
    /* Feature Cards Mobile */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .apple-feature-card {
        padding: 40px 24px;
        border-radius: 20px;
    }
    
    .feature-icon {
        font-size: 48px;
    }
    
    .feature-icon-bg {
        width: 80px;
        height: 80px;
    }
    
    .feature-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .feature-description {
        font-size: 15px;
        max-width: 100%;
    }
    
    /* Carousel Mobile */
    .visual-carousel-container,
    .students-carousel-container {
        height: 400px;
        border-radius: 8px;
    }
    
    .visual-carousel-controls,
    .students-carousel-controls {
        padding: 0 10px;
    }
    
    .visual-carousel-controls .carousel-btn,
    .students-carousel-controls .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .visual-carousel-indicators,
    .students-carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .visual-carousel-indicators .indicator,
    .students-carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    .visual-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    /* About Section Mobile */
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .about-features {
        margin-top: 1.5rem;
        gap: 1.25rem;
    }
    
    .about-feature {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .about-feature-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .about-icon {
        width: 56px;
        height: 56px;
        font-size: 2rem;
        border-radius: 10px;
    }
    
    .about-feature h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .about-feature p {
        font-size: 14px;
    }
    
    /* Teacher Message Mobile */
    .teacher-message-container {
        padding: 0 1rem;
        margin-bottom: 40px;
    }
    
    .teacher-message {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .teacher-quote {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .teacher-quote::before,
    .teacher-quote::after {
        font-size: 24px;
    }
    
    .teacher-signature {
        gap: 6px;
        padding-top: 16px;
    }
    
    .teacher-name {
        font-size: 15px;
    }
    
    .teacher-experience {
        font-size: 13px;
    }
    
    .teacher-message-controls {
        padding: 0 -10px;
    }
    
    .teacher-message-controls .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .teacher-message-indicators {
        gap: 8px;
        margin-top: 20px;
    }
    
    .teacher-message-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    /* About Text Section Mobile */
    .about-text-section {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .about-text-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .about-text-content {
        font-size: 15px;
        text-align: left;
        margin-bottom: 12px;
    }
    
    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* CTA Section Mobile */
    .apple-cta {
        padding: 60px 0;
    }
    
    .apple-cta .section-headline {
        font-size: 32px;
        padding: 0 1rem;
    }
    
    .apple-cta .section-subheadline {
        padding: 0 1rem;
    }
    
    .cta-buttons {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 2rem;
    }
    
    .contact-item {
        justify-content: center;
        margin-bottom: 1rem;
        font-size: 15px;
    }
    
    .phone-call-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Footer Mobile */
    .modern-footer {
        padding: 40px 0 30px;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .modern-footer h5 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .modern-footer h6 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-description {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Flash Messages Mobile */
    .flash-toast {
        min-width: 280px;
        max-width: 90vw;
        top: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }
    
    .flash-toast-content {
        padding: 16px;
        gap: 12px;
    }
    
    .flash-toast-icon {
        font-size: 20px;
    }
    
    .flash-toast-message {
        font-size: 14px;
    }
    
    /* Modal Mobile */
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .modal-title-section {
        padding: 0 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .modal-body {
        padding: 0.5rem 1rem 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .hero-section {
        min-height: 50vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 0 0.75rem;
    }
    
    .hero-headline {
        font-size: 28px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    
    .hero-subheadline {
        font-size: 14px;
        padding: 4px 8px;
        margin-bottom: 20px;
    }
    
    .hero-eyebrow {
        font-size: 12px;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
    
    .apple-btn {
        min-width: 240px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .section-headline {
        font-size: 24px;
        padding: 0 0.75rem;
    }
    
    .section-subheadline {
        font-size: 15px;
        padding: 0 0.75rem;
    }
    
    .feature-grid {
        padding: 0 0.75rem;
    }
    
    .apple-feature-card {
        padding: 32px 20px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-description {
        font-size: 14px;
    }
    
    .visual-carousel-container,
    .students-carousel-container {
        height: 300px;
        border-radius: 6px;
    }
    
    .visual-carousel-controls .carousel-btn,
    .students-carousel-controls .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .visual-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .teacher-message-container {
        padding: 0 0.75rem;
    }
    
    .teacher-message {
        padding: 24px 16px;
    }
    
    .teacher-quote {
        font-size: 14px;
    }
    
    .about-text-section {
        padding: 16px 12px;
    }
    
    .about-text-title {
        font-size: 18px;
    }
    
    .about-text-content {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .apple-cta .section-headline {
        font-size: 28px;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        font-size: 14px;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .flash-toast {
        min-width: 260px;
    }
    
    .flash-toast-content {
        padding: 14px;
    }
    
    .modal-header {
        padding: 1rem 0.75rem 0.5rem;
    }
    
    .modal-body {
        padding: 0.5rem 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    /* Very Small Mobile */
    .hero-headline {
        font-size: 24px;
    }
    
    .hero-subheadline {
        font-size: 13px;
    }
    
    .apple-btn {
        min-width: 200px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .section-headline {
        font-size: 22px;
    }
    
    .apple-feature-card {
        padding: 28px 16px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 13px;
    }
    
    .visual-carousel-container,
    .students-carousel-container {
        height: 250px;
    }
    
    .teacher-message {
        padding: 20px 12px;
    }
    
    .teacher-quote {
        font-size: 13px;
    }
    
    .about-text-content {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .apple-cta .section-headline {
        font-size: 24px;
    }
    
    .flash-toast {
        min-width: 240px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .apple-btn {
        padding: 16px 28px;
        min-height: 48px;
    }
    
    .carousel-btn {
        width: 48px !important;
        height: 48px !important;
        min-height: 48px;
    }
    
    .indicator {
        width: 16px !important;
        height: 16px !important;
        min-height: 16px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem !important;
        min-height: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .apple-feature-card:hover,
    .about-feature:hover,
    .visual-card:hover .visual-image,
    .students-slide:hover .visual-image,
    .visual-slide:hover .visual-image {
        transform: none;
    }
    
    .apple-feature-card:hover::before,
    .apple-feature-card:hover::after,
    .about-feature:hover::before {
        opacity: 0;
    }
    
    .apple-feature-card:hover .feature-icon,
    .about-feature:hover .about-icon {
        transform: none;
    }
}

/* Landscape phone orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0 40px;
    }
    
    .hero-headline {
        font-size: 32px;
    }
    
    .hero-subheadline {
        font-size: 15px;
    }
    
    .apple-section {
        padding: 40px 0;
    }
    
    .visual-carousel-container,
    .students-carousel-container {
        height: 300px;
    }
}