/* ══════════════════════════════════════════
   INVESTOR EDUCATION PAGE STYLES (sfv-theme-white)
   Theme: Cozy Classroom, Soft UI, Inviting
══════════════════════════════════════════ */

/* ── Base Setup ── */
#main {
    opacity: 1;
    animation: eduPageFadeIn 0.8s ease-out forwards;
    padding: 0;
}



@keyframes eduPageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --mf-primary: #2563eb;
    --mf-primary-light: #4980f6;
    --mf-primary-deep: #1e3a8a;
    --mf-primary-dim: #1d4ed8;
    --mf-primary-pale: #eff6ff;
    --mf-primary-lt: #dbeafe;
    --mf-green: #22c55e;
    --mf-green-deep: #16a34a;
    --mf-green-pale: #dcfce7;
    --mf-soft-bg: #f8faff;
    --mf-dark-bg: #0f172a;
}

.edu-section {
    padding: 100px 6vw;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.edu-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-bg-soft {
    background: #f8fafc;
}

.edu-bg-dark {
    background: #1e293b;
    color: #fff;
}

.edu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.edu-container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.mb-lg {
    margin-bottom: 50px;
}

.edu-title-md {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

/* ── HERO ── */
.edu-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 311px 8vw 240px;
    background: linear-gradient(180deg, #fdfbfb 0%, #ebedee 100%);
}

.edu-hero-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.edu-chip-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.edu-chip {
    background: var(--blue-pale);
    color: var(--blue-mid);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.edu-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.edu-title span {
    color: var(--blue-mid);
}

.edu-subtitle {
    font-size: 1.25rem;
    color: var(--text-mid);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Fake Search Bar */
.edu-search-fake {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 8px 8px 24px;
    border-radius: 40px;
    max-width: 500px;
    margin: 0 auto 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.es-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.edu-search-fake input {
    border: none;
    background: transparent;
    flex-grow: 1;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
}

.edu-search-fake input:focus {
    outline: none;
}

.edu-search-fake input::placeholder {
    color: #cbd5e1;
}

.es-btn {
    background: var(--blue-mid);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.es-btn:hover {
    background: var(--blue-deep);
}

/* Hero Buttons */
.edu-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-edu-primary {
    background: var(--text-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-edu-ghost {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-edu-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-edu-ghost:hover {
    background: #f8fafc;
}

/* ── INTRO ── */
.edu-intro-card {
    background: #fff;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.ei-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.edu-intro-card h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.edu-intro-card p {
    font-size: 1.15rem;
    color: var(--text-mid);
    margin-bottom: 20px;
    line-height: 1.7;
}

.edu-intro-card p:last-child {
    margin-bottom: 0;
}

/* ── CATEGORIES (EXPANDABLE) ── */
.edu-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.edu-cat-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s;
}

.edu-cat-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.ecc-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.ecc-header h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.ecc-header p {
    color: var(--text-mid);
    margin-bottom: 20px;
}

.ecc-expand-btn {
    background: transparent;
    border: none;
    color: var(--blue-mid);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecc-expand-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eff6ff;
    transition: transform 0.3s;
}

.ecc-content {
    margin-top: 24px;
    opacity: 1;
}

.ecc-content ul {
    list-style: none;
    padding: 16px;
    margin: 0;
    background: #f8fafc;
    border-radius: 16px;
}

.ecc-content li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-info-btn {
    background: #eff6ff;
    border: none;
    color: var(--blue-mid);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.topic-info-btn:hover {
    background: var(--blue-mid);
    color: #fff;
    transform: scale(1.1);
}

.topic-info-btn i {
    width: 14px;
    height: 14px;
}

.ecc-content li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ecc-content li:first-child {
    padding-top: 0;
}

/* ── FEATURED GUIDES ── */
.edu-guide-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
}

.edu-guide-scroll::-webkit-scrollbar {
    height: 8px;
}

.edu-guide-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.edu-guide-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.edu-guide-card {
    min-width: 320px;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.edu-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.egc-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #64748b;
    margin-bottom: 20px;
}

.egc-tag-rec {
    background: #ecfdf5;
    color: #059669;
}

.edu-guide-card h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.edu-guide-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.egc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.egc-arrow {
    transition: transform 0.3s;
    color: var(--blue-mid);
}

.edu-guide-card:hover .egc-arrow {
    transform: translateX(5px);
}

/* ── SIP HIGHLIGHT BLOCK ── */
.edu-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.edu-sip-content {
    width: 50%;
}

.edu-sip-visual {
    width: 45%;
}

.edu-eyebrow {
    color: #60a5fa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: block;
}

.edu-title-light {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.edu-sip-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.edu-list-light {
    list-style: none;
    padding: 0;
    color: #f8fafc;
    font-size: 1.05rem;
}

.edu-list-light li {
    margin-bottom: 12px;
}

.edu-calc-card {
    background: #0f172a;
    border-radius: 24px;
    border: 1px solid #334155;
    padding: 32px;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ecc-head {
    font-family: 'Outfit';
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.ecc-body label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ecc-input-wrap {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ecc-input-wrap span {
    color: #94a3b8;
}

.ecc-input-wrap input {
    background: transparent;
    border: none;
    font-family: 'Inter';
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    width: 100%;
}

.ecc-result {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #334155;
    margin-bottom: 30px;
}

.ecc-res-label {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ecc-res-val {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Outfit';
    color: #fff;
}

.ecc-chart {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    padding-top: 20px;
}

.ecc-bar {
    flex: 1;
    background: #334155;
    border-radius: 4px 4px 0 0;
}

.b1 {
    height: 20%;
}

.b2 {
    height: 35%;
}

.b3 {
    height: 50%;
}

.b4 {
    height: 75%;
}

.b5 {
    height: 100%;
    background: #22c55e;
}

.ecc-line-grow {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: growLine 3s ease infinite;
}

@keyframes growLine {
    0% {
        width: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

/* ── Calculator Section ── */
.edu-calc-section {
    background: var(--off-white);
}

.ec-header {
    margin-bottom: 40px;
}

.ec-tabs {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 40px;
    display: flex;
    gap: 4px;
    width: fit-content;
    margin: 40px auto 32px;
    /* Reduced from 100px and centered */
}

.ec-tab {
    background: transparent;
    border: none !important;
    border-radius: 30px !important;
    padding: 8px 24px !important;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ec-tab:hover {
    color: var(--blue-mid);
}

.ec-tab.active {
    background: #fff !important;
    color: var(--blue-mid) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ec-body {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.ec-inputs {
    flex: 1;
}

.ec-panel {
    display: none;
}

.ec-panel.active {
    display: block;
}

.ec-field {
    margin-bottom: 28px;
}

.ec-field-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ec-field-top label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ec-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-mid);
}

.ec-field input[type="range"] {
    width: 100%;
    accent-color: var(--blue-deep);
    height: 4px;
    cursor: pointer;
}

.ec-result {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: -90px;
}

.ec-donut-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}

.ec-donut {
    width: 100%;
    height: 100%;
}

.ec-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.edc-label {
    font-size: 0.75rem;
    color: var(--text-mid);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.edc-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--blue-deep);
}

.ec-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.ecl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ecl-name {
    flex: 1;
    color: var(--text-mid);
}

.ecl-val {
    font-weight: 700;
    color: var(--text-dark);
}

.ec-cta-btn {
    display: inline-block;
    background: var(--blue-deep);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
    text-align: center;
}

.ec-cta-btn:hover {
    background: var(--blue-mid);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ec-body {
        flex-direction: column;
    }

    .ec-result {
        width: 100%;
    }
}

/* ── FAQ ── */
.ea-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ea-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px 32px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ea-icon {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 300;
    transition: transform 0.3s;
}

.ea-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 32px;
    background: #f8fafc;
}

.ea-content p {
    margin: 0;
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.6;
}

.ea-item.is-open .ea-header {
    border-bottom: 1px solid #f1f5f9;
}

.ea-item.is-open .ea-icon {
    transform: rotate(45deg);
    color: var(--text-dark);
}

.ea-item.is-open .ea-content {
    padding: 24px 32px;
}

.ea-helper {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #64748b;
}

.ea-helper a {
    color: var(--blue-mid);
    text-decoration: none;
    font-weight: 600;
}

/* ── LIFE STAGES ── */
.edu-stage-wrap {
    position: relative;
    padding: 40px 0;
}

.edu-stage-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

.edu-stages {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.es-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    flex: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.es-card:hover {
    transform: translateY(-10px);
    border-color: #cbd5e1;
}

.es-card .es-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.es-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.es-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin: 0;
}

/* ── AI ASSISTANT ── */
.edu-ai-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border-radius: 32px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.eac-left {
    width: 50%;
}

.eac-right {
    width: 45%;
}

.eac-badge {
    background: var(--blue-mid);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.eac-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.eac-left p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 40px;
}

.eac-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eac-chip {
    background: #fff;
    border: 1px solid #bfdbfe;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e40af;
    cursor: pointer;
    transition: transform 0.2s;
}

.eac-chip:hover {
    transform: scale(1.05);
}

.mock-chat {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mc-msg {
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    max-width: 85%;
}

.mc-ai {
    background: #f1f5f9;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mc-user {
    background: var(--blue-mid);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mc-typing {
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 20px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
}

.mc-typing span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.mc-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.mc-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.btn-edu-primary.full {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    padding: 18px;
}

/* ── TRUST & FINAL CTA ── */
.et-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.et-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-mid);
}

/* ── FINAL CTA ── */
.edu-final {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #fff, #f8fafc 15%) !important;
    background-image: none !important;
}

.edu-final .island-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 40px;
    border-radius: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.edu-final-banner.island-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.edu-final-content {
    position: relative;
    z-index: 2;
}

/* ── Growth Beams Animation (Section Background) ── */
.funds-growth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.growth-beam {
    position: absolute;
    bottom: -100px;
    width: 2px;
    height: 120px;
    background: linear-gradient(to top, transparent, rgba(34, 197, 94, 0.25), transparent);
    animation: growthRise 5s infinite linear;
    opacity: 0;
}

.final-sub-text {
    font-size: 10px !important;
}

.growth-beam:nth-child(1) {
    left: 8%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.growth-beam:nth-child(2) {
    left: 25%;
    animation-duration: 5s;
    animation-delay: 1.5s;
    background: linear-gradient(to top, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.growth-beam:nth-child(3) {
    left: 45%;
    animation-duration: 7s;
    animation-delay: 0.8s;
}

.growth-beam:nth-child(4) {
    left: 65%;
    animation-duration: 5.5s;
    animation-delay: 2.2s;
    background: linear-gradient(to top, transparent, rgba(20, 184, 166, 0.2), transparent);
}

.growth-beam:nth-child(5) {
    left: 82%;
    animation-duration: 6.5s;
    animation-delay: 1s;
}

.growth-beam:nth-child(6) {
    left: 95%;
    animation-duration: 4.8s;
    animation-delay: 3s;
}

@keyframes growthRise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* edu-final typography now handled via final-inner and style.css */
.edu-final h2 {
    color: var(--text-dark);
}

.edu-final p {
    color: var(--text-mid);
}

.btn-edu-solid {
    background: var(--text-dark);
    color: #fff;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-edu-solid::before {
    content: '';
    position: absolute;
    top: var(--cy, 50%);
    left: var(--cx, 50%);
    width: 0;
    height: 0;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.btn-edu-solid:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.btn-edu-solid:hover::before {
    width: 500px;
    height: 500px;
}

.btn-edu-solid .btn-circle-icon {
    background: #fff;
    color: var(--text-dark);
}

.btn-edu-solid:hover .btn-circle-icon {
    transform: translateX(4px);
}

/* ── Responsive Overrides ── */
@media (max-width: 900px) {

    .edu-cat-grid,
    .edu-split,
    .edu-ai-card,
    .edu-stages {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .edu-sip-content,
    .edu-sip-visual,
    .eac-left,
    .eac-right,
    .es-card {
        width: 100%;
    }

    .edu-stage-line {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — Funds Education Page
   Cozy, Contained, Native Feel. Desktop unaffected.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Global section padding ── */
    .edu-section {
        padding: 60px 5vw;
    }

    /* ── Hero ── */
    .edu-hero {
        min-height: auto;
        padding: 120px 5vw 60px;
        text-align: center;
    }

    .edu-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .edu-subtitle {
        font-size: 1.05rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .edu-chip-row {
        gap: 8px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .edu-search-fake {
        margin: 0 auto 30px;
        width: 100%;
        max-width: 100%;
        padding: 8px 8px 8px 20px;
    }

    .edu-hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-edu-primary,
    .btn-edu-ghost,
    .btn-edu-solid,
    .es-btn {
        border-radius: 36px !important;
        text-align: center;
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* ── Intro ── */
    .edu-intro-card {
        padding: 40px 24px;
        border-radius: 24px;
    }

    /* ── Category Cards (Hierarchy Fix) ── */
    .edu-cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .edu-cat-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .ecc-header {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "icon desc";
        gap: 2px 20px;
        text-align: left !important;
        align-items: start !important;
    }

    .ecc-icon {
        grid-area: icon;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 0 !important;
    }

    .ecc-header h3 {
        grid-area: title;
        font-size: 1.2rem;
        margin-bottom: 2px !important;
    }

    .ecc-header p {
        grid-area: desc;
        font-size: 0.92rem;
        margin-bottom: 0 !important;
    }

    .ecc-expand-btn {
        margin-top: 16px;
        width: 100%;
        justify-content: flex-start;
    }

    /* ── Featured Guides ── */
    .edu-guide-card {
        min-width: 280px;
        padding: 28px 24px;
    }

    /* ── SIP Section ── */
    .edu-split {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .edu-sip-content,
    .edu-sip-visual {
        width: 100%;
    }

    .edu-title-light {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .edu-list-light {
        text-align: left;
        display: inline-block;
        margin: 0 auto;
    }

    .edu-calc-card {
        padding: 24px;
        border-radius: 20px;
    }

    .ecc-res-val {
        font-size: 2.2rem;
    }

    /* ── Calculator Section ── */
    .ec-tabs {
        margin-top: 32px;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    .ec-tab {
        padding: 6px 14px !important;
        font-size: 0.85rem;
    }

    .ec-body {
        flex-direction: column;
        gap: 40px;
    }

    .ec-result {
        width: 100%;
        margin-top: 0;
    }

    /* ── Life Stages (Horizontal to Vertical Roadmap) ── */
    .edu-stage-wrap {
        padding: 0;
    }

    .edu-stage-line {
        width: 2px;
        height: 100%;
        top: 0;
        bottom: 0;
        left: 10px;
        right: auto;
        transform: none;
    }

    .edu-stages {
        flex-direction: column;
        gap: 16px;
        padding-left: 10px;
        text-align: left;
    }

    .es-card {
        width: 100%;
        text-align: left;
        padding: 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        border-radius: 16px;
    }

    .es-icon {
        font-size: 1.8rem;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .es-card h4 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .es-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    /* ── AI Assistant ── */
    .edu-ai-card {
        flex-direction: column;
        padding: 40px 24px;
        gap: 40px;
    }

    .eac-left,
    .eac-right {
        width: 100%;
    }

    .eac-left {
        text-align: center;
    }

    .eac-chips {
        justify-content: center;
    }

    /* ── Final CTA ── */
    .edu-final .island-card {
        padding: 60px 24px;
        border-radius: 32px;
    }

    .btn-edu-solid {
        border-radius: 36px !important;
        padding: 18px 32px;
    }
}

@media (max-width: 480px) {
    .edu-title {
        font-size: 1.8rem;
    }

    .ecc-res-val {
        font-size: 1.8rem;
    }
}

/* ── BUTTON: TRY CALCULATOR ── */
.btn-mf-calc {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 36px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-mf-calc:hover {
    background: #fff;
    color: var(--mf-dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ══════════════════════════════════════════
   MODAL — SIP CALCULATOR (Glassmorphic)
   ══════════════════════════════════════════ */
.mf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.mf-modal-overlay.is-active {
    display: flex !important;
    opacity: 1;
}

.mf-modal-card {
    width: 100%;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 40px;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.mf-modal-overlay.is-active .mf-modal-card {
    transform: translateY(0) scale(1);
}

.mf-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    color: var(--text-dark);
    z-index: 10;
}

.mf-modal-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Calculator Layout */
.ec-result-card {
    width: 320px;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.btn-edu-primary.full-width {
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mf-modal-card {
        padding: 32px 20px;
    }
}

/* ══════════════════════════════════════════
   LOCALIZED ICON SYSTEM (sfv-icon-box)
══════════════════════════════════════════ */
.sfv-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 12px;
    color: var(--blue-mid, #2563eb);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border, #e5e7eb);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sfv-icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sfv-icon-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--blue-light, #dbeafe);
}

.sfv-icon-box:hover::before {
    opacity: 1;
}

.sfv-icon-box i,
.sfv-icon-box svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
    position: relative;
    z-index: 1;
}

.sfv-icon-box--sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sfv-icon-box--sm i,
.sfv-icon-box--sm svg {
    width: 20px;
    height: 20px;
}

.sfv-icon-box--lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.sfv-icon-box--lg i,
.sfv-icon-box--lg svg {
    width: 28px;
    height: 28px;
}

.icon-inline {
    display: inline-flex;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    
}

.sfv-icon-box--blue {
    color: var(--blue-mid, #2563eb);
}

.sfv-icon-box--green {
    color: var(--slate-green, #22c55e);
}

.sfv-icon-box--amber {
    color: #f59e0b;
}

.sfv-icon-box--indigo {
    color: #4f46e5;
}

.sfv-icon-box--red {
    color: #ef4444;
}