@layer base, components, utilities, route;
@layer route {
    #home-about-page {
    }
    .about-page-container {
        background-color: var(--bg-main);
        color: var(--text-main);
    }

    .about-hero-section {
        background-color: var(--bg-main);
        padding: 140px 0 80px 0;
        border-bottom: 1px solid var(--surface-alt);
    }

    .about-hero-title {
        font-size: 40px;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .about-hero-subtitle {
        max-width: 800px;
        margin: 0 auto;
        font-size: 18px;
        line-height: 1.6;
        color: var(--text-muted);
    }

    .about-philosophy-section {
        padding: 80px 0;
        content-visibility: auto;
        contain-intrinsic-size: 600px;
    }

    .about-philosophy-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 4rem;
        align-items: center;
    }

    .about-philosophy-img {
        width: 100%;
        border-radius: 14px;
        box-shadow: 0 8px 20px var(--surface-alt);
    }

    .about-philosophy-content h2 {
        font-size: 32px;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .about-philosophy-content p {
        font-size: 18px;
        line-height: 1.6;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

    .about-philosophy-content p:last-of-type {
        font-size: 16px;
        margin-bottom: 0;
    }

    .about-philosophy-content .highlight-text {
        font-weight: 600;
        color: var(--text-main);
    }

    .about-curriculum-section {
        background-color: var(--warning);
        padding: 80px 0;
    }

    .about-curriculum-header {
        text-aid: center;
        margin-bottom: 60px;
        text-align: center;
    }

    .about-curriculum-header h2 {
        font-size: 32px;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 16px;
    }

    .about-curriculum-header p {
        font-size: 18px;
        line-height: 1.6;
        color: var(--text-muted);
        max-width: 600px;
        margin: 0 auto;
    }

    .about-curriculum-badge {
        display: inline-block;
        background: var(--primary-light);
        color: var(--primary);
        padding: 6px 16px;
        border-radius: 99px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 16px;
    }

    .timeline-container {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        padding-left: 50px;
    }

    .timeline-line {
        position: absolute;
        left: 23px;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary);
        border-radius: 4px;
    }

    .timeline-step {
        position: relative;
        margin-bottom: 3rem;
        opacity: 0;
        transform: translateX(30px);
        transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    }

    .timeline-step.active-reveal {
        opacity: 1;
        transform: translateX(0);
    }

    .step-marker {
        position: absolute;
        left: -43px;
        top: 0;
        width: 32px;
        height: 32px;
        background: var(--surface);
        border: 4px solid var(--primary);
        border-radius: 50%;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: var(--primary);
    }

    .timeline-card {
        background: var(--surface);
        border-radius: 14px;
        padding: 2rem;
        box-shadow: 0 8px 20px var(--surface-alt);
        border: 1px solid var(--surface-alt);
    }

    .timeline-card h4 {
        color: var(--primary);
        font-size: 22px;
        font-weight: 500;
        margin-bottom: 12px;
    }

    .timeline-card p {
        color: var(--text-muted);
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
    }

    .timeline-step.final-step .timeline-card {
        border: 2px solid var(--primary);
    }

    .timeline-step.final-step .step-marker {
        background: var(--primary);
        color: var(--surface);
        border-color: var(--primary);
    }

    @media (max-width: 768px) {
        .about-philosophy-grid {
            grid-template-columns: 1fr;
        }
        .timeline-container {
            padding-left: 40px;
        }
        .timeline-step .step-marker {
            left: -42px;
        }
    }
}
