/* ============================================
   Curriculum Page Styles
   ============================================ */

.curriculum-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.curriculum-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: cur-pulse 8s ease-in-out infinite;
}
.curriculum-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,80,214,0.18) 0%, transparent 60%);
    border-radius: 50%;
    animation: cur-pulse 10s ease-in-out infinite reverse;
}
@keyframes cur-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 0.8; }
}
.curriculum-hero .hero-content { position: relative; z-index: 10; }
.curriculum-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}
.curriculum-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto;
}

/* Intro Section */
.curriculum-intro {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
}
.curriculum-intro .row { align-items: center; }
.curriculum-intro .badge {
    display: inline-block;
    background: linear-gradient(135deg, #31287e, #1a1556);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.curriculum-intro h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1556;
    margin: 0 0 18px;
    line-height: 1.2;
}
.curriculum-intro h2 .accent {
    background: linear-gradient(120deg, #31287e 0%, #5b50d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.curriculum-intro p {
    font-size: 16px;
    line-height: 1.85;
    color: #5a5a72;
    margin-bottom: 18px;
}
.curriculum-intro .intro-image {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(49, 40, 126, 0.18);
}
.curriculum-intro .intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.curriculum-intro .intro-image:hover img { transform: scale(1.04); }

/* Philosophy Section */
.curriculum-philosophy {
    padding: 60px 0;
    background: linear-gradient(135deg, #31287e 0%, #1a1556 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.curriculum-philosophy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91,80,214,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.curriculum-philosophy .container { position: relative; z-index: 1; }
.curriculum-philosophy .badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.curriculum-philosophy h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.25;
}
.curriculum-philosophy p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255,255,255,0.88);
    margin-bottom: 16px;
}

/* Stages Section */
.curriculum-stages {
    padding: 80px 0 90px;
    background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%);
}
.curriculum-stages .stages-header {
    text-align: center;
    margin-bottom: 60px;
}
.curriculum-stages .stages-header .badge {
    display: inline-block;
    background: linear-gradient(135deg, #31287e, #1a1556);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.curriculum-stages .stages-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1556;
    margin: 0 0 14px;
    line-height: 1.2;
}
.curriculum-stages .stages-header h2 .accent {
    background: linear-gradient(120deg, #31287e 0%, #5b50d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.curriculum-stages .stages-header p {
    font-size: 16px;
    color: #5a5a72;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.stage-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(49, 40, 126, 0.08);
    box-shadow: 0 18px 44px rgba(49, 40, 126, 0.08);
    margin-bottom: 36px;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.45s ease;
}
.stage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(49, 40, 126, 0.18);
}
.stage-card.reverse { grid-template-columns: 1.2fr 1fr; }
.stage-card.reverse .stage-visual { order: 2; }
.stage-card.reverse .stage-body   { order: 1; }

.stage-visual { position: relative; overflow: hidden; min-height: 320px; }
.stage-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.stage-card:hover .stage-visual img { transform: scale(1.08); }
.stage-visual .stage-number-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: "Catamaran", sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255,255,255,0.85);
    line-height: 1;
    text-shadow: 0 6px 20px rgba(0,0,0,0.3);
    letter-spacing: -2px;
}

.stage-body { padding: 36px 36px 32px; }
.stage-body .stage-range {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stage-c1, #31287e);
    background: var(--stage-soft, rgba(49, 40, 126, 0.1));
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}
.stage-body h3 {
    font-family: "Catamaran", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1a1556;
    margin: 0 0 14px;
}
.stage-body p {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #5a5a72;
    margin: 0 0 18px;
}
.stage-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.stage-body ul li {
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 14.5px;
    color: #4a4a5e;
    line-height: 1.6;
}
.stage-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--stage-c1, #31287e), var(--stage-c2, #5b50d6));
    box-shadow: 0 0 0 3px rgba(49, 40, 126, 0.08);
}
.stage-body .stage-note {
    font-style: italic;
    font-size: 14px;
    color: var(--stage-c1, #31287e);
    border-left: 3px solid var(--stage-c1, #31287e);
    padding: 6px 14px;
    margin-top: 8px;
}

/* Per-stage colors */
.stage-card.stage-1 { --stage-c1: #10b981; --stage-c2: #34d399; --stage-soft: rgba(16, 185, 129, 0.1); }
.stage-card.stage-2 { --stage-c1: #3b82f6; --stage-c2: #60a5fa; --stage-soft: rgba(59, 130, 246, 0.1); }
.stage-card.stage-3 { --stage-c1: #8b5cf6; --stage-c2: #a78bfa; --stage-soft: rgba(139, 92, 246, 0.1); }
.stage-card.stage-4 { --stage-c1: #f59e0b; --stage-c2: #fbbf24; --stage-soft: rgba(245, 158, 11, 0.12); }

/* Smart Classrooms callout */
.curriculum-smart {
    padding: 60px 0 90px;
    background: #ffffff;
}
.smart-card {
    background: linear-gradient(135deg, #31287e 0%, #5b50d6 100%);
    color: #fff;
    border-radius: 24px;
    padding: 44px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: 0 24px 60px rgba(49, 40, 126, 0.22);
    position: relative;
    overflow: hidden;
}
.smart-card::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.smart-card .smart-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    position: relative;
}
.smart-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    position: relative;
}
.smart-card p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    margin: 0;
    position: relative;
}

@media (max-width: 991px) {
    .stage-card,
    .stage-card.reverse { grid-template-columns: 1fr; gap: 0; }
    .stage-card.reverse .stage-visual { order: 1; }
    .stage-card.reverse .stage-body   { order: 2; }
    .stage-visual { min-height: 240px; }
    .curriculum-intro h2,
    .curriculum-stages .stages-header h2 { font-size: 1.9rem; }
    .smart-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 18px; text-align: left; }
}

@media (max-width: 575px) {
    .curriculum-hero { height: 360px; }
    .curriculum-hero h1 { font-size: 2.2rem; }
    .stage-body { padding: 26px 22px 24px; }
    .stage-visual .stage-number-overlay { font-size: 48px; }
}
