/* =========================================================
   EduCode product page
   Same type scale / container / spacing system as travelcode.css
   All classes are prefixed "ec-" so they never clash with site.css
   (header + footer styles still come from css/site.css)
   ========================================================= */

:root {
    --ec-blue: #155eef;
    --ec-blue-hover: #104ed0;
    --ec-navy: #10213c;
    --ec-text: #1d3c69;
    --ec-muted: #586a84;
    --ec-line: #dce6f3;
    --ec-shadow: 0 16px 40px rgba(30, 82, 151, .11);
    --font-body: "DM Sans", sans-serif;
    --font-display: "Manrope", sans-serif;
    --font-script: "Caveat", "Segoe Script", cursive;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ec-text);
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin-top: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.ec-container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

/* ---------------------------------------------------------
   Shared bits
   --------------------------------------------------------- */
.ec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ec-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.ec-eyebrow i {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--ec-blue);
}

.ec-title {
    font-size: clamp(32px, 3.6vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--ec-navy);
    margin: 0 0 16px;
    font-weight: 800;
}

.ec-title span,
.ec-hero h1 span {
    color: #2563eb;
}

.ec-lead {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ec-muted);
    max-width: 480px;
    margin: 0;
}

.ec-section {
    padding: 85px 0;
}

.ec-button {
    background: var(--ec-blue);
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 94, 239, 0.22);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.ec-button:hover {
    transform: translateY(-2px);
    background: var(--ec-blue-hover);
    box-shadow: 0 14px 30px rgba(21, 94, 239, 0.3);
}

/* ---------------------------------------------------------
   Hero  (image + badge are direct children of the section,
   so they anchor to the full-width hero and reach the right edge)
   --------------------------------------------------------- */
.ec-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #f3f9ff 0%, #eaf4ff 45%, #ddecff 100%);
    padding: 80px 0;
    margin-top: 50px;
}

.ec-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.ec-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #e0f0ff;
    color: var(--ec-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.ec-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ec-blue);
}

.ec-hero h1 {
    font-size: clamp(38px, 4.2vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--ec-navy);
    margin: 0 0 18px;
    font-weight: 800;
}

.ec-hero-copy > p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ec-muted);
    max-width: 500px;
    margin: 0 0 32px;
}

.ec-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.ec-trust > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-round {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--ec-blue);
    box-shadow: 0 6px 18px rgba(23, 98, 255, 0.12);
    flex-shrink: 0;
}

.ec-round svg {
    width: 22px;
    height: 22px;
}

.ec-trust b,
.ec-trust small {
    display: block;
}

.ec-trust b {
    color: var(--ec-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.ec-trust small {
    color: var(--ec-muted);
    font-size: 13px;
    line-height: 1.35;
}

.ec-hero-img {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 14%, rgba(0, 0, 0, 0.88) 32%, #000 48%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 14%, rgba(0, 0, 0, 0.88) 32%, #000 48%, #000 100%);
    z-index: 1;
    pointer-events: none;
}

.ec-hero-badge {
    position: absolute;
    z-index: 3;
    top: 56px;
    right: max(32px, calc((100% - var(--container)) / 2));
    padding: 18px 28px 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(10, 43, 91, 0.14);
    transform: rotate(-6deg);
}

.ec-hero-badge b {
    position: relative;
    display: block;
    font-family: var(--font-script);
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.12;
    color: var(--ec-blue);
}

.ec-hero-badge b::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 4px;
    border-bottom: 2px solid var(--ec-blue);
    border-radius: 0 0 60% 40% / 0 0 100% 100%;
    opacity: 0.7;
}

/* ---------------------------------------------------------
   Key features
   --------------------------------------------------------- */
.ec-features-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 56px;
    align-items: center;
}

.ec-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ec-feature-card {
    padding: 24px 20px;
    min-height: 175px;
    border: 1px solid var(--ec-line);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f8fbff);
    box-shadow: 0 8px 22px rgba(35, 90, 150, 0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}

.ec-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(23, 98, 255, 0.12);
    background: #fff;
}

.ec-feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 14px;
}

.ec-feature-icon svg {
    width: 24px;
    height: 24px;
}

.ec-feature-icon.violet { background: #ede3ff; color: #6c3bf0; }
.ec-feature-icon.cyan { background: #ddf5ff; color: #168ce8; }
.ec-feature-icon.mint { background: #d8f7f2; color: #009d90; }
.ec-feature-icon.sky { background: #e3f0ff; color: #1762ff; }
.ec-feature-icon.rose { background: #ffe3ef; color: #df2c75; }

.ec-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ec-navy);
    margin: 0 0 8px;
}

.ec-feature-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ec-muted);
    margin: 0;
}

/* ---------------------------------------------------------
   Why choose EduCode  (dashboard preview + checklist)
   --------------------------------------------------------- */
.ec-benefits {
    position: relative;
    overflow: hidden;
    padding: 85px 0;
    background: linear-gradient(110deg, #f4faff, #edf7ff 55%, #f9fcff);
}

.ec-benefits::before {
    content: "";
    position: absolute;
    left: -130px;
    top: 50%;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(190, 225, 255, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.ec-benefits-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.ec-preview {
    min-width: 0;
}

.ec-pv {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 56px rgba(34, 99, 179, 0.18);
}

.ec-pv-side {
    background: #123f82;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ec-pv-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    padding: 0 8px 16px;
}

.ec-pv-brand svg {
    width: 20px;
    height: 20px;
}

.ec-pv-side > span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8dbf7;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.ec-pv-side > span svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ec-pv-side > span.selected {
    background: #1762ff;
    color: #fff;
}

.ec-pv-main {
    min-width: 0;
}

.ec-pv-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf3fb;
}

.ec-pv-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f2f7fd;
    border-radius: 24px;
    padding: 9px 16px;
    color: #8aa0bd;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}

.ec-pv-search svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ec-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #5b6cf0;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.ec-pv-content {
    padding: 18px;
}

.ec-pv-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ec-navy);
    margin: 0 0 12px;
}

.ec-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ec-metric {
    padding: 13px 12px;
    border: 1px solid #e9f1fb;
    border-radius: 12px;
    min-width: 0;
}

.ec-metric small {
    display: block;
    font-size: 12px;
    color: #6f86a6;
    white-space: nowrap;
}

.ec-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.ec-metric strong {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--ec-navy);
}

.ec-metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ec-metric-icon svg {
    width: 16px;
    height: 16px;
}

.ec-metric-icon.sky { background: #e3f0ff; color: #1762ff; }
.ec-metric-icon.mint { background: #d8f7f2; color: #009d90; }
.ec-metric-icon.violet { background: #ede3ff; color: #6c3bf0; }

.ec-pv-panels {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
}

.ec-panel {
    border: 1px solid #e9f1fb;
    border-radius: 12px;
    padding: 12px;
    min-width: 0;
}

.ec-panel h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ec-navy);
    margin: 0 0 10px;
}

.ec-chart {
    width: 100%;
    height: 110px;
    display: block;
}

.ec-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #8aa0bd;
}

.ec-activity {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.ec-activity li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #4f6788;
}

.ec-activity li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--dot, #5b6cf0);
}

.ec-benefits-copy .ec-title {
    font-size: clamp(30px, 3.2vw, 40px);
}

.ec-benefits-copy > p {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ec-muted);
    max-width: 440px;
    margin: 0;
}

.ec-checks {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 15px;
}

.ec-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--ec-navy);
}

.ec-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
    background: var(--ec-blue);
    color: #fff;
}

.ec-check svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

/* ---------------------------------------------------------
   Institutions
   --------------------------------------------------------- */
.ec-center-head {
    text-align: center;
    margin-bottom: 44px;
}

.ec-center-head .ec-lead {
    max-width: 560px;
    margin-inline: auto;
}

.ec-institution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ec-institution-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 20px;
    border: 1px solid var(--ec-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fcff, #eff7ff);
    box-shadow: 0 8px 22px rgba(35, 90, 150, 0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}

.ec-institution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(23, 98, 255, 0.12);
}

.ec-institution-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #dceaff;
    color: var(--ec-blue);
    flex-shrink: 0;
}

.ec-institution-icon svg {
    width: 25px;
    height: 25px;
}

.ec-institution-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ec-navy);
    margin: 2px 0 6px;
}

.ec-institution-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ec-muted);
    margin: 0;
}

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.ec-cta {
    margin: 10px auto 90px;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(110deg, #eef9ff, #e0f2ff 65%, #cde8ff);
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.9fr;
    align-items: center;
    padding: 52px 60px;
    box-shadow: 0 20px 50px rgba(23, 98, 255, 0.1);
}

.ec-cta-copy {
    position: relative;
    z-index: 2;
}

.ec-cta-copy > small {
    display: block;
    color: var(--ec-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.ec-cta h2 {
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--ec-navy);
    font-weight: 800;
    margin: 12px 0 16px;
}

.ec-cta-copy > p {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ec-muted);
    max-width: 440px;
    margin: 0 0 26px;
}

.ec-cta-middle {
    position: relative;
    z-index: 2;
    justify-self: center;
    text-align: center;
}

.ec-cta-cap {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ec-blue);
    box-shadow: 0 8px 22px rgba(23, 98, 255, 0.12);
}

.ec-cta-cap svg {
    width: 28px;
    height: 28px;
}

.ec-cta-middle p {
    margin: 0;
    color: var(--ec-blue);
    font-family: var(--font-script);
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    transform: rotate(-5deg);
}

.ec-cta-art {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 38%;
}

.ec-cta-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    mask-image: linear-gradient(90deg, transparent, #000 35%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .ec-features-layout {
        gap: 36px;
    }

    .ec-hero-img {
        width: 50%;
    }

    .ec-benefits-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ec-benefits-copy > p {
        max-width: 560px;
    }

    .ec-institution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-cta {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .ec-container {
        width: calc(100% - 36px);
    }

    .ec-hero {
        display: flex;
        flex-direction: column;
        padding: 40px 0 54px;
    }

    .ec-hero .ec-container {
        order: 1;
    }

    .ec-hero h1 {
        font-size: clamp(32px, 7vw, 42px);
    }

    .ec-hero-img {
        order: 2;
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: calc(100% - 36px);
        height: 320px;
        margin: 32px auto 0;
        border-radius: 20px;
        mask-image: none;
        -webkit-mask-image: none;
        mix-blend-mode: normal;
        box-shadow: 0 16px 40px rgba(16, 52, 105, 0.12);
    }

    .ec-hero-badge {
        top: auto;
        right: auto;
        left: 36px;
        bottom: 74px;
        padding: 10px 18px 12px;
        transform: rotate(-4deg);
    }

    .ec-hero-badge b {
        font-size: 22px;
    }

    .ec-section,
    .ec-benefits {
        padding: 56px 0;
    }

    .ec-features-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ec-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ec-pv {
        grid-template-columns: minmax(0, 1fr);
    }

    .ec-pv-side {
        display: none;
    }

    .ec-pv-panels {
        grid-template-columns: 1fr;
    }

    .ec-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 36px 28px;
        min-height: auto;
        margin-bottom: 56px;
    }

    .ec-cta-middle {
        display: none;
    }

    .ec-cta-art {
        position: relative;
        width: 100%;
        height: 220px;
        margin-top: 24px;
    }

    .ec-cta-art img {
        border-radius: 16px;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (max-width: 480px) {
    .ec-container {
        width: calc(100% - 28px);
    }

    .ec-hero h1 {
        font-size: 30px;
    }

    .ec-hero-copy > p,
    .ec-lead,
    .ec-benefits-copy > p {
        font-size: 15px;
    }

    .ec-hero-img {
        height: 260px;
    }

    .ec-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .ec-feature-grid,
    .ec-institution-grid {
        grid-template-columns: 1fr;
    }

    .ec-feature-card {
        min-height: 0;
    }

    .ec-metrics {
        grid-template-columns: 1fr;
    }

    .ec-cta {
        padding: 28px 20px;
    }
}