/* ================= CURRICULUM "GROWTH JOURNEY" STYLES ================= */

/* --- Container Standardization --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* --- Hero Section: Growth Mosaic --- */
.curriculum-mosaic-hero {
    position: relative;
    padding: clamp(120px, 15vh, 200px) 0 clamp(80px, 10vh, 140px);
    background: var(--white);
    overflow: hidden;
}

.highlight-text {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent);
    opacity: 0.15;
    z-index: -1;
}

.reveal-text {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: inline-block;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.display-title {
    font-family: var(--font-head);
    font-weight: 900;
    text-transform: uppercase;
}

.mosaic-auras .aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: 0;
}

.aura-1 { width: clamp(300px, 40vw, 500px); height: clamp(300px, 40vw, 500px); background: var(--primary-light); top: -100px; left: -100px; }
.aura-2 { width: clamp(250px, 30vw, 400px); height: clamp(250px, 30vw, 400px); background: var(--accent); bottom: -100px; right: -100px; }

.mosaic-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(4rem, 8vw, 10rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.mosaic-content {
    animation: fadeInLeft 1s var(--transition);
}

.mosaic-content .display-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.9;
    margin-bottom: 2.5rem;
    color: var(--primary);
}

.lead-text {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.8;
}

.mosaic-visuals {
    position: relative;
    height: clamp(400px, 50vh, 550px);
    width: 100%;
}

.visual-frame {
    position: absolute;
    border-radius: clamp(20px, 3vw, 40px);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(26, 54, 93, 0.12);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.frame-lg {
    width: 75%;
    height: 75%;
    top: 5%;
    left: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb, 26, 54, 93), 0.05), transparent);
}

.frame-lg img {
    object-fit: contain;
    transform: scale(1.1);
}

.frame-sm {
    width: 55%;
    height: 55%;
    bottom: 5%;
    right: 0;
    z-index: 2;
    border: clamp(8px, 1.5vw, 12px) solid var(--white);
}

.visual-frame img { width: 100%; height: 100%; object-fit: cover; }

.ghost-year {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 950;
    color: var(--primary);
    opacity: 0.03;
    z-index: 0;
    letter-spacing: -5px;
}

.visual-frame:hover {
    transform: translateY(-20px) scale(1.02) rotate(1deg);
    z-index: 5;
    box-shadow: 0 60px 120px rgba(26, 54, 93, 0.2);
}

/* --- Milestone Navigator --- */
.milestone-nav-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    padding: clamp(1.5rem, 3vh, 2.5rem) 0;
    position: sticky;
    top: 10%;
    z-index: 100;
}

.milestone-path {
    display: flex;
    justify-content: space-around;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.path-line {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(26, 54, 93, 0.05);
    z-index: 0;
}

.milestone-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    transition: all 0.4s var(--transition);
}

.node-icon {
    width: clamp(44px, 6vw, 54px);
    height: clamp(44px, 6vw, 54px);
    background: var(--white);
    border: 2px solid rgba(26, 54, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-muted);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.node-info {
    text-align: center;
    margin-top: 1.2rem;
    opacity: 0.5;
    transition: all 0.4s;
}

.node-info strong {
    display: block;
    font-family: var(--font-head);
    color: var(--primary);
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    letter-spacing: -0.5px;
}

.node-info span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
}

.milestone-node.active .node-icon {
    background: var(--node-color);
    border-color: var(--node-color);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(var(--theme-rgb, 26, 54, 93), 0.3);
    transform: scale(1.25) translateY(-5px);
}

.milestone-node.active .node-info {
    opacity: 1;
    transform: translateY(5px);
}

.milestone-node.active .node-info strong { color: var(--node-color); }
.milestone-node.active .node-info span { opacity: 1; color: var(--node-color); }

/* --- Journey Panels: Glass Canvas --- */
.journey-panels-container {
    padding: clamp(80px, 12vh, 160px) 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.blueprint-bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    color: var(--primary);
    z-index: 0;
    pointer-events: none;
}

.blueprint-svg {
    width: 100%;
    height: 100%;
}

.journey-panel {
    display: none;
    position: relative;
    z-index: 1;
}

.journey-panel.active {
    display: block;
    animation: canvasFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes canvasFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Glass Canvas Stage */
.glass-canvas-stage {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    position: relative;
    min-height: clamp(600px, 80vh, 850px);
}

.stage-reverse { grid-template-columns: 1.2fr 1fr; }
.stage-reverse .canvas-visual { order: 2; }
.stage-reverse .canvas-content-overlay { order: 1; margin-right: -10rem; margin-left: 0; }

/* Visual Side */
.canvas-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-image-wrap {
    width: 100%;
    height: clamp(450px, 70vh, 750px);
    background: radial-gradient(circle at center, rgba(var(--theme-rgb), 0.1), transparent 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.canvas-image-wrap img {
    height: 105%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
    transition: transform 0.8s var(--transition);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.journey-panel.active .canvas-image-wrap img {
    animation: studentReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes studentReveal {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Orbiting Annotations */
.orbiting-annotations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.annotation {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    font-weight: 800;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.ann-1 { top: 20%; right: 5%; animation: float 4s ease-in-out infinite; }
.ann-2 { bottom: 25%; left: 0%; animation: float 6s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-2deg); }
}

/* Content Overlay Side */
.canvas-content-overlay {
    position: relative;
    z-index: 5;
    margin-left: -10rem;
    transition: margin 0.4s;
}

/* Glass System */
.glass-card, .glass-module {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Elevation Levels */
.z-depth-1 { box-shadow: 0 10px 40px rgba(26, 54, 93, 0.05); }
.z-depth-2 { box-shadow: 0 25px 60px rgba(26, 54, 93, 0.08); }
.z-depth-3 { box-shadow: 0 50px 100px rgba(26, 54, 93, 0.12); }

.glass-card.main-info {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: clamp(30px, 5vw, 60px);
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.glass-card.main-info .panel-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.85;
    margin: 1.5rem 0 2rem;
}

/* Glass Modules Grid */
.glass-modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 2rem);
    padding-left: 2rem;
}

.glass-module {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.glass-module:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--theme-color);
}

.glass-module.mod-accent {
    background: var(--theme-color);
    border: none;
}

.glass-module.mod-accent * { color: var(--white) !important; }

.mod-icon {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--theme-color);
}

.glass-module h3 { font-size: clamp(1.1rem, 1.5vw, 1.5rem); font-weight: 800; color: var(--primary); }
.glass-module p { font-size: clamp(0.9rem, 1.1vw, 1.05rem); line-height: 1.6; color: var(--text-muted); }

/* Ghost Labels Redefined */
.panel-ghost-label {
    position: absolute;
    bottom: -1.5rem;
    right: 2rem;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 950;
    color: var(--primary);
    opacity: 0.02;
    z-index: -1;
    letter-spacing: -5px;
}

/* --- Responsive Transformation --- */
@media (max-width: 1440px) {
    .canvas-content-overlay { margin-left: -5rem; }
    .stage-reverse .canvas-content-overlay { margin-right: -5rem; }
}

@media (max-width: 1200px) {
    .container { padding: 0 2.5rem; }
    .glass-canvas-stage { grid-template-columns: 1fr; min-height: auto; text-align: center; gap: 4rem; }
    .canvas-content-overlay { margin-left: 0; margin-top: -6rem; }
    .stage-reverse .canvas-content-overlay { margin-right: 0; }
    .stage-reverse .canvas-visual { order: 0; }
    .glass-card.main-info { margin: 0 auto -3rem; }
    .glass-modules-grid { padding-left: 0; margin-top: 5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
    .canvas-image-wrap { height: 500px; }
}

@media (max-width: 1024px) {
    .mosaic-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 5rem; }
    .lead-text { margin: 0 auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .milestone-nav-section { padding: 1.2rem 0; }
    .node-info { display: none; }
    .milestone-node.active .node-icon { transform: scale(1.15) translateY(-2px); }
    .path-line { left: 10%; right: 10%; }
    .canvas-image-wrap {
        height: 380px;
        width: 100%;
    }
    .ann-1 {
        top: 10%;
    }
    .canvas-image-wrap img {
        height: 100%;
        width: 100%;
    }
    .glass-card.main-info { padding: 2.5rem; }
    .glass-modules-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .glass-module { padding: 2.2rem; }
    
    .panel-ghost-label { font-size: 6rem; bottom: 0; right: 1rem; }
    .visual-frame:hover { transform: translateY(-10px) rotate(0); }
}

@media (max-width: 480px) {
    .curriculum-mosaic-hero { padding: 160px 0 80px; }
    .mosaic-visuals { height: 350px; }
    .canvas-image-wrap { height: 380px; }
    .canvas-content-overlay { margin-top: -4rem; }
    .glass-card.main-info .panel-title { font-size: 2.5rem; }
}

/* Themes with RGB for shadows */
#stage-kidz { --theme-color: #f59e0b; --theme-rgb: 245, 158, 11; }
#stage-champs { --theme-color: #10b981; --theme-rgb: 16, 185, 129; }
#stage-edge { --theme-color: #3b82f6; --theme-rgb: 59, 130, 246; }
#stage-future { --theme-color: #8b5cf6; --theme-rgb: 139, 92, 246; }

/* Animations */
@keyframes panelSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
