/* ==========================================================================
   Anan Early Years – Curriculum
   Builds on style.css + inner.css
   ========================================================================== */

/* ---------- The Anan Way ---------- */
.way-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.way-card {
    position: relative;
    padding: 30px 28px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--c);
    transition: translate .5s var(--ease), box-shadow .5s;
}

.way-card:nth-child(even) {
    margin-top: 44px;
}

.way-card:hover {
    translate: 0 -6px;
    box-shadow: var(--shadow);
}

.wc-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 15%, #fff);
}

.way-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.way-card p {
    margin: 0;
}

@media (max-width: 575px) {
    .way-cards {
        grid-template-columns: 1fr;
    }

    .way-card:nth-child(even) {
        margin-top: 0;
    }
}

/* ---------- Synora 360° ---------- */
.spectrum-2 {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    color: rgba(255, 255, 255, .82);
    background:
        radial-gradient(45% 50% at 85% 20%, rgba(240, 138, 176, .28), transparent 70%),
        radial-gradient(45% 50% at 10% 85%, rgba(123, 184, 174, .25), transparent 70%),
        linear-gradient(135deg, #34175a, #57288a);
}

.sp-bigword {
    position: absolute;
    top: 6%;
    right: -4%;
    font-size: 28vw;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
    pointer-events: none;
    user-select: none;
}

.spectrum-2 .section-head {
    position: relative;
    max-width: 760px;
}

.sp-title {
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.sp-tag {
    margin-top: 10px;
    font-family: var(--script);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    color: var(--yellow);
}

/* Donut */
.donut {
    --size: min(380px, 80vw);
    position: relative;
    width: var(--size);
    aspect-ratio: 1;
    margin: 0 auto;
}

.donut-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* r = 120 → circumference 753.98; each segment is 125.66 with a 6-unit gap */
.seg {
    fill: none;
    stroke: var(--c);
    stroke-width: 44;
    stroke-dasharray: 119.66px 634.32px;
    stroke-dashoffset: calc(var(--o) * -125.66px);
    opacity: .4;
    cursor: pointer;
    transition: opacity .4s, stroke-width .5s var(--ease);
}

.seg:hover {
    opacity: .75;
}

.seg.active {
    opacity: 1;
    stroke-width: 56;
}

.donut-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #fff;
    pointer-events: none;
    transform:
        rotate(calc(var(--i) * 60deg + 30deg))
        translateY(calc(var(--size) * -.4))
        rotate(calc(var(--i) * -60deg - 30deg));
    transition: scale .5s var(--ease);
}

.donut-icon.active {
    scale: 1.25;
}

.donut-core {
    position: absolute;
    inset: 27%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .5);
}

.dc-num {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dc-of {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Tabs + panels */
.approach-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.approach-tabs button {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 600;
    transition: background .3s, color .3s, border-color .3s;
}

.approach-tabs button:hover {
    color: #fff;
    border-color: var(--c);
}

.approach-tabs button.active {
    background: var(--c);
    border-color: var(--c);
    color: #2b1745;
}

.approach-panels {
    display: grid;
}

.ap-panel {
    grid-area: 1 / 1;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s;
}

.ap-panel.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ap-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #2b1745;
    background: var(--c);
}

.ap-panel h3 {
    margin: 18px 0 2px;
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.ap-tagline {
    font-family: var(--script);
    font-size: 1.2rem;
    color: var(--c);
    margin-bottom: 12px;
}

.ap-panel p:not(.ap-tagline) {
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
}

.ap-builds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ap-builds::before {
    content: "Builds";
    margin-right: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.ap-builds li {
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--c);
    font-size: 13px;
    font-weight: 600;
    color: var(--c);
}

.ap-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.ap-nav button {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    transition: background .3s, border-color .3s;
}

.ap-nav button:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.ap-progress {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
}

.ap-progress span {
    display: block;
    width: 16.66%;
    height: 100%;
    border-radius: 4px;
    background: var(--rainbow);
    transition: width .5s var(--ease);
}

.sp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
}

.sp-stat {
    padding: 26px 18px;
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}

.sps-num {
    display: block;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sps-label {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

@media (max-width: 991px) {
    .spectrum-2 {
        padding: 90px 0;
    }

    .sp-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 50px;
    }
}

@media (max-width: 575px) {
    .ap-panel {
        padding: 26px 22px;
    }

    .donut-icon {
        font-size: 14px;
    }
}

/* ---------- Nine domains: orbit ---------- */
.domains {
    background: #fff;
    border-radius: 60px 60px 0 0;
}

.orbit {
    --ac: var(--purple);
    position: relative;
    width: min(640px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
}

.orbit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.orbit-ring {
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
    stroke-dasharray: 4 10;
}

/* Nodes sit on a circle 40% from the centre, 40° apart */
.domain-node {
    position: absolute;
    left: calc(50% + 40% * sin(var(--i) * 40deg));
    top: calc(50% - 40% * cos(var(--i) * 40deg));
    width: 130px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
    z-index: 1;
}

.dn-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: var(--c);
    background: #fff;
    border: 3px solid color-mix(in srgb, var(--c) 30%, #fff);
    box-shadow: var(--shadow-sm);
    transition: background .35s, color .35s, scale .45s var(--ease), box-shadow .35s;
}

.dn-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    transition: color .35s;
}

.dn-desc {
    display: none;
}

.domain-node:hover .dn-icon,
.domain-node.active .dn-icon {
    background: var(--c);
    color: #fff;
    scale: 1.12;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 20%, transparent), var(--shadow-sm);
}

.domain-node.active .dn-name {
    color: var(--c);
}

.orbit-core {
    position: absolute;
    inset: 27%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: var(--cream);
    border: 6px solid color-mix(in srgb, var(--ac) 25%, #fff);
    box-shadow: var(--shadow);
    transition: border-color .5s;
}

.oc-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
    background: var(--ac);
    transition: background .5s;
}

.orbit-core h3 {
    font-size: 1.2rem;
    color: var(--ac);
    margin-bottom: 6px;
    transition: color .5s;
}

.orbit-core p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
}

/* Tablet & phone: the orbit becomes a list with descriptions shown */
@media (max-width: 991px) {
    .orbit {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        width: 100%;
        aspect-ratio: auto;
    }

    .orbit-lines,
    .orbit-core {
        display: none;
    }

    .domain-node {
        position: static;
        width: auto;
        transform: none;
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
        align-items: start;
        padding: 18px;
        border-radius: 20px;
        background: var(--cream);
        text-align: left;
    }

    .dn-icon {
        grid-row: span 2;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .dn-name {
        font-size: 15px;
        align-self: end;
    }

    .dn-desc {
        display: block;
        font-size: 14px;
        line-height: 1.5;
        color: var(--muted);
    }

    .domain-node:hover .dn-icon,
    .domain-node.active .dn-icon {
        scale: 1;
        box-shadow: var(--shadow-sm);
    }
}

@media (max-width: 575px) {
    .orbit {
        grid-template-columns: 1fr;
    }
}

/* ---------- Theme-based learning ---------- */
.theme-map {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    gap: 70px;
    align-items: center;
}

.theme-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.theme-lines path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 6 10;
    animation: themeFlow 1.4s linear infinite;
}

@keyframes themeFlow {
    to { stroke-dashoffset: -16; }
}

.tm-col {
    display: grid;
    gap: 22px;
}

.tm-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: border-color .4s, box-shadow .4s, translate .5s var(--ease);
}

.tm-card:hover {
    border-color: var(--c);
    box-shadow: var(--shadow);
}

.tm-left .tm-card {
    flex-direction: row-reverse;
    text-align: right;
}

.tm-left .tm-card:hover { translate: -6px 0; }
.tm-right .tm-card:hover { translate: 6px 0; }

.tm-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
    background: var(--c);
}

.tm-card h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.tm-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.tm-hub {
    position: relative;
    z-index: 1;
    width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(60% 60% at 30% 25%, rgba(240, 138, 176, .55), transparent 70%),
        var(--purple-deep);
    box-shadow: 0 30px 60px -24px rgba(107, 63, 160, .7);
}

.tm-hub::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px dashed rgba(107, 63, 160, .35);
    animation: spin 30s linear infinite;
}

.tm-hub-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--yellow);
}

.tm-hub-icon {
    width: 62px;
    height: 62px;
    margin: 10px 0 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: var(--teal);
    background: #fff;
}

.tm-hub strong {
    font-size: 2rem;
    line-height: 1.1;
}

.tm-hub-sub {
    font-family: var(--script);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 991px) {
    .theme-map {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .theme-lines {
        display: none;
    }

    .tm-hub {
        order: -1;
        width: 210px;
        margin: 0 auto 10px;
    }

    .tm-left .tm-card {
        flex-direction: row;
        text-align: left;
    }
}

/* ---------- Anan labs explorer ---------- */
.labs {
    background: #fff;
}

.lab-explorer {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.lab-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-tabs button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 2px solid transparent;
    background: var(--cream);
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    transition: border-color .3s, background .3s, translate .4s var(--ease);
}

.lab-tabs i {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 15%, #fff);
    transition: background .3s, color .3s;
}

.lab-tabs button:hover {
    border-color: color-mix(in srgb, var(--c) 40%, transparent);
}

.lab-tabs button.active {
    border-color: var(--c);
    background: #fff;
    box-shadow: var(--shadow-sm);
    translate: 6px 0;
}

.lab-tabs button.active i {
    color: #fff;
    background: var(--c);
}

.lab-panels {
    display: grid;
}

.lab-panel {
    grid-area: 1 / 1;
    border-radius: 30px;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s;
}

.lab-panel.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lab-img {
    height: 290px;
    margin: 0;
    overflow: hidden;
}

.lab-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.2s var(--ease);
}

.lab-panel.active .lab-img img {
    transform: scale(1);
}

.lab-body {
    padding: 30px 34px 34px;
}

.lab-body h3 {
    font-size: 1.6rem;
    color: var(--c);
    margin-bottom: 10px;
}

.lab-body h4 {
    margin: 22px 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lab-chips li {
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    background: color-mix(in srgb, var(--c) 16%, #fff);
}

.five-e {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: e;
}

.five-e li {
    counter-increment: e;
    padding: 14px 6px;
    border-radius: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--ink);
    background: color-mix(in srgb, var(--c) 16%, #fff);
}

.five-e li::before {
    content: counter(e);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--c);
}

@media (max-width: 991px) {
    .lab-explorer {
        grid-template-columns: 1fr;
    }

    .lab-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 4px 2px 10px;
        scrollbar-width: none;
    }

    .lab-tabs::-webkit-scrollbar {
        display: none;
    }

    .lab-tabs button {
        flex-shrink: 0;
    }

    .lab-tabs button.active {
        translate: 0;
    }
}

@media (max-width: 575px) {
    .lab-img {
        height: 200px;
    }

    .lab-body {
        padding: 24px 22px 26px;
    }

    .five-e {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Assessment ---------- */
.cycle {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
}

.cycle-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cycle-track {
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
    stroke-dasharray: 4 8;
}

.cycle-arc {
    fill: none;
    stroke: var(--purple-deep);
    stroke-width: 4;
    stroke-linecap: round;
}

.cycle-core {
    position: absolute;
    inset: 31%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--purple-soft);
}

.cycle-core strong {
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--ink);
}

.cycle-core span {
    font-size: 13px;
}

.cycle-node {
    position: absolute;
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    background: var(--c);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 22%, transparent), var(--shadow);
}

.cycle-node i {
    font-size: 22px;
}

.cycle-node b {
    font-size: 15px;
}

/* Node centres on the r = 150 circle of the 400-unit viewBox */
.cn-plan { left: 50%; top: 12.5%; }
.cn-do { left: 82.5%; top: 68.75%; }
.cn-review { left: 17.5%; top: 68.75%; }

.assess-points {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.assess-points li {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
}

.assess-points i {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--c);
}

.assess-points strong {
    display: block;
    color: var(--ink);
}

.beyond {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
    margin-top: 90px;
    padding: 44px;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.beyond-head h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.beyond-head p {
    margin: 0;
}

.beyond-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beyond-chips li {
    padding: 14px 22px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--ink);
    background: color-mix(in srgb, var(--c) 15%, #fff);
    transition: background .35s, color .35s, translate .35s var(--ease);
}

.beyond-chips i {
    margin-right: 8px;
    color: var(--c);
    transition: color .35s;
}

.beyond-chips li:hover {
    color: #fff;
    background: var(--c);
    translate: 0 -4px;
}

.beyond-chips li:hover i {
    color: #fff;
}

@media (max-width: 991px) {
    .beyond {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        margin-top: 60px;
    }
}

@media (max-width: 575px) {
    .cycle-node {
        width: 84px;
        height: 84px;
        margin: -42px 0 0 -42px;
    }

    .cycle-node i {
        font-size: 18px;
    }

    .cycle-core strong {
        font-size: .9rem;
    }
}
