/* ==========================================================
   Educast – Homepage v2 (hero, approvals, headline seal, programs)
   Prefixed with .ec- so it never clashes with the template CSS
   ========================================================== */
:root {
    --ec-green: #108700;
    --ec-green-dark: #0b6400;
    --ec-navy: #0a2472;
    --ec-navy-dark: #061a52;
    --ec-red: #d71920;
    --ec-amber: #ffc221;
    --ec-ink: #1d2433;
    --ec-muted: #5d6475;
    --ec-line: #e6e9f0;
    --ec-soft: #f4f7fb;
}

.ec-ml { font-family: 'Noto Sans Malayalam', 'Gordita', sans-serif; }

/* ---------- HERO (logo palette: Educast green + navy, globe accents) ---------- */
.ec-hero {
    position: relative;
    /* top spacing = header height + gap (header is absolute in this template).
       Pure CSS so it never depends on JavaScript. */
    padding: 117px 0 80px; margin-top: 0 !important;
    background:
        linear-gradient(90deg, rgba(246,255,244,.95) 0%, rgba(246,255,244,.86) 38%, rgba(246,255,244,.42) 62%, rgba(10,36,114,.28) 100%),
        url(../images/hero-educast-bg.jpg) center 35% / cover no-repeat;
    overflow: hidden;
}
@media (min-width: 576px)  { .ec-hero { padding-top: 167px; } }
@media (min-width: 768px)  { .ec-hero { padding-top: 153px; } }
@media (min-width: 992px)  { .ec-hero { padding-top: 173px; } }
@media (min-width: 1200px) { .ec-hero { padding-top: 201px; } }
.ec-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: linear-gradient(90deg, var(--ec-green) 0 50%, var(--ec-navy) 50% 100%);
}
.ec-hero .row { position: relative; z-index: 1; }

.ec-brandtag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 16px 6px 6px; border-radius: 40px;
    background: #fff; border: 1px solid #d6ecd2;
    box-shadow: 0 6px 18px rgba(16,135,0,.10);
    font-size: 13px; font-weight: 600; color: var(--ec-navy); letter-spacing: .3px;
}
.ec-brandtag b {
    background: var(--ec-navy); color: #fff; border-radius: 30px; padding: 4px 13px;
    font-size: 12px; letter-spacing: 1.5px;
}
.ec-hero__title {
    margin: 22px 0 14px; font-size: 46px; line-height: 1.15; font-weight: 700; color: var(--ec-navy);
}
.ec-hero__title span {
    color: var(--ec-green);
    background: linear-gradient(90deg, #13a000, #0b6400); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ec-hero__lead { font-size: 17px; color: #4b5568; max-width: 540px; margin-bottom: 24px; }

.ec-checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.ec-checklist li {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px;
    font-size: 18px; font-weight: 600; color: var(--ec-ink); line-height: 1.4;
}
.ec-checklist li small { display: block; font-size: 14px; font-weight: 400; color: var(--ec-muted); }
.ec-checklist i {
    flex: 0 0 28px; height: 28px; border-radius: 50%; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ec-green); color: #fff; font-size: 12px;
    box-shadow: 0 4px 10px rgba(16,135,0,.3);
}

/* Admission open strip */
.ec-admission {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 16px; max-width: 640px;
    background: linear-gradient(100deg, #15a100 0%, #0b6400 100%);
    box-shadow: 0 14px 30px rgba(16,135,0,.28);
}
.ec-admission__label {
    display: flex; align-items: center; gap: 10px; margin-right: auto; white-space: nowrap;
    color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase;
}
.ec-admission__label small { display: block; font-size: 12px; font-weight: 400; letter-spacing: .5px; color: #d6f5cf; text-transform: none; }
.ec-pulse {
    width: 12px; height: 12px; border-radius: 50%; background: #fff; position: relative; flex: 0 0 12px;
}
.ec-pulse::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid #fff; animation: ecPulse 1.6s ease-out infinite;
}
@keyframes ecPulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.ec-trust { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; max-width: 640px; }
.ec-trust__item { flex: 1; padding: 0 18px; border-left: 2px solid #d3e6cf; }
.ec-trust__item:first-child { padding-left: 0; border-left: 0; }
.ec-trust__item b { display: block; font-size: 24px; font-weight: 800; color: var(--ec-navy); line-height: 1.1; }
.ec-trust__item span { font-size: 13px; color: var(--ec-muted); }

.ec-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
    font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.ec-btn:hover { transform: translateY(-2px); }
.ec-btn--white { background: #fff; color: var(--ec-navy); }
.ec-btn--white:hover { background: #fff; color: var(--ec-green); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.ec-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.ec-btn--ghost:hover { background: #fff; color: var(--ec-navy); }
.ec-btn--green { background: var(--ec-green); color: #fff; }
.ec-btn--green:hover { background: var(--ec-green-dark); color: #fff; box-shadow: 0 8px 18px rgba(16,135,0,.35); }
.ec-btn--navy { background: var(--ec-navy); color: #fff; }
.ec-btn--navy:hover { background: var(--ec-navy-dark); color: #fff; }
.ec-btn--outline { background: #fff; color: var(--ec-green); border: 1.5px solid var(--ec-green); }
.ec-btn--outline:hover { background: var(--ec-green); color: #fff; }
.ec-btn--block { width: 100%; }

/* Enquiry form card */
.ec-form-card {
    background: #fff; border-radius: 20px; padding: 0 26px 22px; overflow: hidden;
    border: 1px solid #dfeadc;
    box-shadow: 0 28px 60px rgba(10,36,114,.14);
}
.ec-form-card__head {
    margin: 0 -26px 22px; padding: 22px 26px 18px; color: #fff;
    background: linear-gradient(110deg, var(--ec-navy) 0%, #143a9c 100%);
    border-bottom: 4px solid var(--ec-green);
}
.ec-form-card__head h3 { font-size: 23px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ec-form-card__head p { font-size: 14px; color: #c9d4f5; margin: 0; }
.ec-field { margin-bottom: 14px; }
.ec-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ec-navy); margin-bottom: 6px; }
.ec-field input, .ec-field select {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 10px;
    border: 1.5px solid #e0e8dd; background: #f5faf4;
    font-size: 15px; color: var(--ec-ink); outline: none; transition: border-color .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
.ec-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23108700' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.ec-field input:focus, .ec-field select:focus { border-color: var(--ec-green); background-color: #fff; box-shadow: 0 0 0 4px rgba(16,135,0,.1); }
.ec-form-card .nice-select { display: none !important; } /* template plugin would hide our select */
.ec-field select.ec-select { display: block !important; }
.ec-chat-line {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; font-size: 14px; color: var(--ec-muted);
}
.ec-chat-line a { color: var(--ec-green); font-weight: 600; }
.ec-chat-line i { color: #25d366; font-size: 18px; }
.ec-consult {
    margin-top: 16px; display: flex; align-items: center; gap: 14px;
    background: var(--ec-navy); border-radius: 14px; padding: 14px 16px;
    text-decoration: none; transition: background .2s, transform .2s;
    box-shadow: 0 12px 26px rgba(10,36,114,.25);
}
.ec-consult:hover { background: var(--ec-navy-dark); transform: translateY(-2px); }
.ec-consult .ec-consult__icon {
    flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--ec-green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.ec-consult strong { display: block; font-size: 16px; color: #fff; }
.ec-consult span { font-size: 13px; color: #c9d4f5; }
.ec-consult .fa-arrow-right { margin-left: auto; color: #8ee07f; }

/* ---------- APPROVALS ---------- */
.ec-approvals {
    position: relative; padding: 70px 0 60px;
    background: url(../images/close-up-students-indoors.jpg) center/cover no-repeat;
}
.ec-approvals::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,24,34,.72), rgba(20,24,34,.62));
}
.ec-approvals .container { position: relative; z-index: 1; }
.ec-approvals__title {
    text-align: center; color: #fff; font-size: 44px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px;
}
.ec-approvals__sub { text-align: center; color: #dfe3ea; font-size: 16px; margin-bottom: 40px; }
.ec-approval {
    position: relative; height: 100%;
    background: rgba(255,255,255,.18); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,.18);
    padding: 52px 18px 30px; text-align: center; transition: background .25s, transform .25s;
}
.ec-approval:hover { background: rgba(255,255,255,.28); transform: translateY(-4px); }
.ec-approval::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 62px; height: 4px; background: var(--ec-red);
}
.ec-approval__logo {
    width: 150px; height: 150px; margin: 0 auto 26px; border-radius: 50%;
    background: #fff; border: 3px solid #e2531f;
    box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 10px 26px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 18px;
}
.ec-approval__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ec-approval__logo--bci, .ec-approval__logo--aicte { padding: 8px; }
.ec-approval__logo--wes, .ec-approval__logo--iqas { padding: 14px; }
/* Text badge shown until the official logo file is uploaded */
.ec-approval__mark { display: none; flex-direction: column; align-items: center; line-height: 1.1; }
.ec-approval__logo.no-img img { display: none; }
.ec-approval__logo.no-img .ec-approval__mark { display: flex; }
.ec-approval__mark b { font-size: 30px; font-weight: 800; color: var(--ec-navy); letter-spacing: 1px; }
.ec-approval__mark span { font-size: 10px; color: var(--ec-red); font-weight: 700; letter-spacing: 1px; margin-top: 4px; text-transform: uppercase; }
.ec-approval h4 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 4px; letter-spacing: 1px; }
.ec-approval p { color: #e3e6ec; font-size: 13px; margin: 0; line-height: 1.45; }
/* Moving strip */
.ec-marquee {
    position: relative; overflow: hidden; padding: 8px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ec-marquee__track { display: flex; width: max-content; animation: ecMarquee var(--ec-dur, 40s) linear infinite; will-change: transform; }
.ec-marquee__group { display: flex; gap: 24px; padding-right: 24px; }
.ec-marquee .ec-approval { flex: 0 0 230px; height: auto; }
@keyframes ecMarquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--ec-shift, 50%))); } }

/* ---------- HEADLINE + SEAL ---------- */
.ec-statement { padding: 80px 0 30px; text-align: center; background: #fff; }
.ec-statement__kicker {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--ec-green);
    text-transform: uppercase; margin-bottom: 14px;
}
.ec-statement__title {
    max-width: 980px; margin: 0 auto; font-size: 40px; line-height: 1.3; font-weight: 700; color: var(--ec-ink);
}
.ec-statement__title mark { background: none; color: var(--ec-green); padding: 0; }
.ec-statement__title em { font-style: normal; color: var(--ec-navy); }

.ec-seal {
    position: relative; width: 190px; height: 190px; margin: 36px auto 0;
    transform: rotate(-14deg); color: var(--ec-red);
    filter: drop-shadow(0 6px 14px rgba(215,25,32,.18));
    animation: ecStamp .7s cubic-bezier(.2,1.6,.4,1) both;
}
.ec-seal svg { width: 100%; height: 100%; display: block; }
.ec-seal__band {
    position: absolute; left: -10px; right: -10px; top: 50%; transform: translateY(-50%);
    background: var(--ec-red); color: #fff; text-align: center; border: 2px solid #fff; outline: 2px solid var(--ec-red);
    font-size: 28px; font-weight: 800; letter-spacing: 4px; padding: 6px 0; line-height: 1.1;
    box-shadow: 0 4px 10px rgba(215,25,32,.3);
}
@keyframes ecStamp { from { transform: rotate(-14deg) scale(1.8); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* ---------- EXPLORE COURSES (Xylem style) ---------- */
.ec-courses { padding: 50px 0 90px; background: #fff; }
.ec-courses__head { text-align: center; max-width: 1080px; margin: 0 auto 46px; }
.ec-courses__title { font-size: 48px; font-weight: 700; color: var(--ec-navy); margin-bottom: 18px; }
.ec-courses__lead { font-size: 17px; line-height: 1.75; color: #4a5560; margin: 0; }

.ec-course {
    height: 100%; display: flex; flex-direction: column;
    background: #effaf3; border: 1px solid #d9efe1; border-radius: 22px; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ec-course:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(16,135,0,.14); }

.ec-course__banner {
    position: relative; height: 170px; overflow: hidden;
    background:
        linear-gradient(120deg, transparent 52%, rgba(16,135,0,.35) 52.2%, rgba(16,135,0,.18) 66%, transparent 66.2%),
        linear-gradient(105deg, #c9f2c0 0%, #a5e39a 45%, #4fbf5a 78%, #1f8f3a 100%);
}
.ec-course__frame {
    position: absolute; inset: 22px 22px 0 22px; border: 1.5px solid rgba(255,255,255,.85); border-bottom: 0;
    pointer-events: none; z-index: 1;
}
.ec-course__big {
    position: absolute; left: 40px; top: 50%; transform: translateY(-50%); z-index: 2; margin: 0;
    max-width: 50%;
    font-size: 27px; line-height: .98; font-weight: 800; letter-spacing: -.5px; text-transform: uppercase;
    color: #0f7a1f;
}
.ec-course__big span { display: block; }
.ec-course__img {
    position: absolute; right: -6px; bottom: 0; z-index: 2; height: 92%; width: auto; max-width: 48%;
    object-fit: contain; object-position: right bottom;
    transition: transform .35s ease;
}
.ec-course:hover .ec-course__img { transform: scale(1.05); transform-origin: right bottom; }

.ec-course__body { padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.ec-course__title { font-size: 22px; font-weight: 600; color: var(--ec-green); margin-bottom: 16px; }
.ec-course__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.ec-course__tags span, .ec-course__tags a {
    font-size: 14px; color: #2b3440; background: #fff; border: 1px solid #dbe9e0;
    padding: 7px 15px; border-radius: 30px; line-height: 1.2;
}
.ec-course__text { font-size: 15px; line-height: 1.6; color: #3d4752; margin-bottom: 20px; }
.ec-course__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ec-course__more {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600; color: #15202b; text-decoration: none; white-space: nowrap;
}
.ec-course__more:hover { color: var(--ec-green); }
.ec-course__dot {
    width: 18px; height: 18px; border-radius: 50%; background: var(--ec-green); position: relative; flex: 0 0 18px;
}
.ec-course__dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.ec-course__apply {
    font-size: 13.5px; font-weight: 600; color: var(--ec-green); text-decoration: none;
    padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(16,135,0,.3); background: #fff; white-space: nowrap;
    transition: background .2s, color .2s;
}
.ec-course__apply:hover { background: var(--ec-green); color: #fff; }

/* =====================================================================
   HOME V3 – Xylem-style sections (green / navy)
   ===================================================================== */
.ec-sec { padding: 90px 0; }
.ec-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ec-green);
}
.ec-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.ec-eyebrow--light { color: #9be88c; }
.ec-h2 { font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--ec-navy); margin-bottom: 18px; }
.ec-h2 span { color: var(--ec-green); }
.ec-p { font-size: 16px; line-height: 1.75; color: #4b5568; }
.ec-head-center { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.ec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.ec-head-row .ec-h2 { margin-bottom: 0; }

/* About */
.ec-about { background: #f3fbf1; }
.ec-about__media { position: relative; max-width: 440px; margin: 0 auto; padding: 0 0 30px 30px; }
.ec-about__media::before {
    content: ""; position: absolute; left: 0; bottom: 0; width: 78%; height: 82%;
    border-radius: 28px; background: linear-gradient(135deg, var(--ec-green), #0b6400);
}
.ec-about__media img { position: relative; width: 100%; border-radius: 26px; display: block; box-shadow: 0 24px 50px rgba(10,36,114,.18); }
.ec-about__badge {
    position: absolute; right: -14px; top: 34px; display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 34px rgba(10,36,114,.16);
}
.ec-about__badge b { font-size: 28px; font-weight: 800; color: var(--ec-green); line-height: 1; }
.ec-about__badge span { font-size: 12px; color: var(--ec-muted); line-height: 1.3; max-width: 70px; }
.ec-about__badge--alt { top: auto; right: auto; left: -6px; bottom: 60px; }
.ec-about__badge--alt b { color: var(--ec-navy); }
.ec-about__lead { font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--ec-ink); margin-bottom: 14px; }
.ec-about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.ec-about__call { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ec-muted); font-size: 13px; }
.ec-about__call i {
    width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ec-green);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(16,135,0,.18);
}
.ec-about__call b { display: block; font-size: 17px; color: var(--ec-navy); }

/* Features strip */
.ec-features { background: #f3fbf1; padding: 0 0 90px; }
.ec-feature {
    height: 100%; display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #dceedc; border-radius: 18px; padding: 22px 20px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ec-feature:hover { transform: translateY(-4px); border-color: var(--ec-green); box-shadow: 0 16px 30px rgba(16,135,0,.12); }
.ec-feature__icon {
    flex: 0 0 54px; height: 54px; border-radius: 16px; background: rgba(16,135,0,.12); color: var(--ec-green);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ec-feature__icon--navy { background: rgba(10,36,114,.1); color: var(--ec-navy); }
.ec-feature h3 { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ec-ink); margin: 0; }

/* Stats band */
/* .ec-stats-wrap { padding: 90px 0 0; background: #fff; }
.ec-stats {
    position: relative; overflow: hidden; border-radius: 28px; padding: 48px 50px;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: center;
    background: linear-gradient(115deg, var(--ec-navy) 0%, #0f3192 45%, #0b6a17 100%);
    box-shadow: 0 26px 50px rgba(10,36,114,.22);
}
.ec-stats::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    border: 40px solid rgba(255,255,255,.06);
}
.ec-stats__head h2 { color: #fff; font-size: 36px; line-height: 1.2; font-weight: 700; margin: 0; }
.ec-stats__head h2 span { color: #8ee07f; }
.ec-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.ec-stat {
    text-align: center; padding: 22px 10px; border-radius: 18px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.ec-stat i { font-size: 22px; color: #8ee07f; margin-bottom: 10px; }
.ec-stat b { display: block; font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; }
.ec-stat p { margin: 6px 0 0; font-size: 13.5px; color: #d2dbf7; } */


/* TESTIMONIAL SECTION */

.ec-testimonial-wrap {
    padding: 90px 0;
    background: #f7f8fc;
    overflow: hidden;
}

.ec-testimonial-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.ec-testimonial-heading .ec-eyebrow {
    display: inline-block;
    color: #76b83e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.ec-testimonial-heading h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a2238;
    margin-bottom: 12px;
}

.ec-testimonial-heading h2 span {
    color: #76b83e;
}

.ec-testimonial-heading p {
    color: #777;
    font-size: 15px;
    line-height: 1.7;
}

/* SLIDER */

.ec-testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.ec-testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.ec-testimonial-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    padding: 30px 26px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
    transition: .35s ease;
}

.ec-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.10);
    border-color: #76b83e;
}

/* STUDENT INFO */

.ec-testimonial-top {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    margin-bottom: 22px;
}

.ec-student-img {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e7f3dc;
}

.ec-student-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-student-info h3 {
    font-size: 17px;
    color: #1a2238;
    margin: 0 0 5px;
    font-weight: 700;
}

.ec-student-info span {
    font-size: 13px;
    color: #777;
}

.ec-quote {
    margin-left: auto;
    font-size: 30px;
    color: #76b83e;
    opacity: .3;
}

/* RATING */

.ec-testimonial-stars {
    color: #ffb323;
    font-size: 19px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

/* FEEDBACK */

.ec-testimonial-card > p {
    font-size: 14px;
    line-height: 1.9;
    color: #666;
    margin: 0 0 25px;
    min-height: 105px;
}

/* FOOTER */

.ec-testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 17px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #777;
}

.ec-testimonial-footer i {
    color: #76b83e;
    margin-right: 5px;
}

.ec-testimonial-footer span:last-child {
    color: #76b83e;
    font-weight: 600;
}

/* SLIDER BUTTONS */

.ec-testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.ec-testimonial-controls button {
    width: 43px;
    height: 43px;
    border: 1px solid #76b83e;
    border-radius: 50%;
    background: transparent;
    color: #76b83e;
    cursor: pointer;
    transition: .3s ease;
}

.ec-testimonial-controls button:hover {
    background: #76b83e;
    color: #fff;
}

.ec-testimonial-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ec-testimonial-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d4ddcc;
    cursor: pointer;
    transition: .3s;
}

.ec-testimonial-dots span.active {
    width: 25px;
    border-radius: 20px;
    background: #76b83e;
}

/* RESPONSIVE */

@media(max-width: 991px) {
    .ec-testimonial-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media(max-width: 600px) {
    .ec-testimonial-wrap {
        padding: 65px 0;
    }

    .ec-testimonial-heading h2 {
        font-size: 28px;
    }

    .ec-testimonial-card {
        flex: 0 0 100%;
        padding: 24px 20px;
    }

    .ec-testimonial-card > p {
        min-height: auto;
    }

    .ec-testimonial-controls {
        margin-top: 28px;
    }
}


/* Services */
.ec-services { background: #fff; }
.ec-service {
    height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: #effaf3; border: 1px solid #d9efe1; border-radius: 22px;
    transition: transform .3s, box-shadow .3s;
}
.ec-service:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(16,135,0,.14); }
.ec-service__img { position: relative; aspect-ratio: 770 / 417; overflow: hidden; }
.ec-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ec-service:hover .ec-service__img img { transform: scale(1.06); }
.ec-service__chip {
    position: absolute; left: 16px; top: 16px; background: var(--ec-navy); color: #fff;
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.ec-service__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ec-service__body h3 { font-size: 22px; font-weight: 600; color: var(--ec-green); margin-bottom: 10px; }
.ec-service__body p { font-size: 15px; line-height: 1.65; color: #3d4752; margin-bottom: 20px; }
.ec-service__body .ec-course__more { margin-top: auto; }

/* Why */
.ec-why { background: #f3fbf1; }
.ec-why__card {
    position: relative; height: 100%; overflow: hidden;
    background: #fff; border-radius: 22px; padding: 30px 26px; border: 1px solid #dceedc;
    transition: transform .3s, box-shadow .3s, background .3s;
}
.ec-why__card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--ec-green), var(--ec-navy)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.ec-why__card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(10,36,114,.12); }
.ec-why__card:hover::after { transform: scaleX(1); }
.ec-why__num { position: absolute; right: 22px; top: 16px; font-size: 44px; font-weight: 800; color: rgba(16,135,0,.1); line-height: 1; }
.ec-why__card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.ec-why__card h3 { font-size: 20px; font-weight: 600; color: var(--ec-navy); margin-bottom: 10px; }
.ec-why__card p { font-size: 14.5px; line-height: 1.65; color: var(--ec-muted); margin: 0; }

/* Register CTA */
.ec-register-wrap { background: #fff; }
.ec-register {
    position: relative; overflow: hidden; border-radius: 30px; padding: 56px 54px;
    background:
        linear-gradient(115deg, rgba(10,36,114,.96) 0%, rgba(10,36,114,.9) 50%, rgba(11,100,0,.88) 100%),
        url(../images/home-education-center-hero-bg.jpg) center/cover no-repeat;
}
.ec-register__title { color: #fff; font-size: 42px; line-height: 1.2; font-weight: 700; margin-bottom: 16px; }
.ec-register__title span { color: #8ee07f; }
.ec-register__text { color: #d2dbf7; font-size: 16px; line-height: 1.7; margin-bottom: 20px; max-width: 480px; }
.ec-register__list { list-style: none; padding: 0; margin: 0 0 28px; }
.ec-register__list li { color: #fff; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.ec-register__list i { color: #8ee07f; }
.ec-register__form { background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.ec-register__form h3 { font-size: 24px; font-weight: 700; color: var(--ec-navy); margin-bottom: 20px; }
.ec-register__form h3 span { color: var(--ec-green); }
.ec-input {
    width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid #e0e8dd; background: #f5faf4;
    font-size: 15px; color: var(--ec-ink); outline: none; transition: border-color .2s, background .2s; resize: vertical;
}
.ec-input:focus { border-color: var(--ec-green); background: #fff; box-shadow: 0 0 0 4px rgba(16,135,0,.1); }

/* About 2 */
.ec-afford { background: #f3fbf1; }
.ec-afford__media { position: relative; }
.ec-afford__media img { width: 100%; display: block; }
.ec-afford__widget {
    position: absolute; left: 6%; bottom: 6%; display: flex; align-items: center; gap: 12px;
    background: var(--ec-navy); color: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: 0 18px 36px rgba(10,36,114,.3);
    font-size: 14px; line-height: 1.35;
}
.ec-afford__widget span { max-width: 150px; }
.ec-afford__widget b { display: block; }
.ec-afford__widget i { width: 42px; height: 42px; border-radius: 50%; background: var(--ec-green); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ec-afford__widget b { color: #8ee07f; }
.ec-afford__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 30px; }
.ec-afford__grid div {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center;
    background: #fff; border: 1px solid #dceedc; border-radius: 16px; padding: 14px;
}
.ec-afford__grid i {
    grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: rgba(16,135,0,.12); color: var(--ec-green);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ec-afford__grid b { font-size: 15.5px; color: var(--ec-navy); line-height: 1.2; }
.ec-afford__grid span { font-size: 13px; color: var(--ec-muted); line-height: 1.3; }

/* Testimonials */
.ec-testi { background: #fff; }
.ec-testi-swiper { padding: 10px 4px 50px !important; }
.ec-testi .swiper-slide { height: auto; }
.ec-testi__card {
    height: 100%; display: flex; flex-direction: column;
    background: #effaf3; border: 1px solid #d9efe1; border-radius: 22px; padding: 28px 26px;
}
.ec-testi__stars { color: #ffb400; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.ec-testi__card h3 { font-size: 19px; font-weight: 600; color: var(--ec-green); margin-bottom: 10px; }
.ec-testi__card p { font-size: 15px; line-height: 1.7; color: #3d4752; margin-bottom: 22px; }
.ec-testi__who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid #d9efe1; }
.ec-testi__who b { display: block; font-size: 16px; color: var(--ec-navy); }
.ec-testi__who small { font-size: 13px; color: var(--ec-muted); }
.ec-testi__who .fa-quote-right { margin-left: auto; font-size: 28px; color: rgba(16,135,0,.25); }
.ec-avatar {
    flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--ec-green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.ec-avatar--navy { background: var(--ec-navy); }
.ec-avatar--amber { background: #e0610b; }
.ec-avatar--red { background: var(--ec-red); }
.ec-testi .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--ec-green); opacity: .25; }
.ec-testi .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }

/* Destinations */
.ec-dest { background: #f3fbf1; }
.ec-dest__lead { max-width: 640px; margin: 12px 0 0; }
.ec-dest__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ec-flag.ec-flag--more { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ec-navy), #0b6a17); }
.ec-flag.ec-flag--more > i { font-size: 44px; color: rgba(255,255,255,.25); margin-bottom: 20px; }
.ec-flag.ec-flag--more span { background: none; }
.ec-flag {
    position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 378 / 240;
    background: #fff; box-shadow: 0 10px 24px rgba(10,36,114,.08); text-decoration: none;
}
.ec-flag img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ec-flag span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
    background: linear-gradient(180deg, transparent, rgba(6,26,82,.85));
    color: #fff; font-size: 15px; font-weight: 600;
}
.ec-flag:hover img { transform: scale(1.08); }

/* CTA banner */
.ec-cta-wrap { background: #fff; }
.ec-cta {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
    border-radius: 30px; background: linear-gradient(115deg, #13a000 0%, #0b6400 100%);
    box-shadow: 0 26px 50px rgba(16,135,0,.25);
}
.ec-cta__text { padding: 54px 50px; position: relative; z-index: 1; }
.ec-cta__text h2 { color: #fff; font-size: 38px; line-height: 1.2; font-weight: 700; margin-bottom: 12px; }
.ec-cta__text h2 span { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 8px; }
.ec-cta__text p { color: #e1f7dc; font-size: 16px; margin-bottom: 26px; max-width: 460px; }
.ec-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ec-cta__img { background-size: cover; background-position: center; min-height: 260px; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }

/* Partner logos */
.ec-partners { padding: 10px 0 70px; background: #fff; }
.ec-marquee--light { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.ec-plogo {
    flex: 0 0 200px; height: 100px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e3ece1; border-radius: 16px; padding: 14px 22px;
    transition: border-color .25s, box-shadow .25s;
}
.ec-plogo:hover { border-color: var(--ec-green); box-shadow: 0 10px 24px rgba(16,135,0,.12); }
.ec-plogo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199px) {
    .ec-hero__title { font-size: 38px; }
    .ec-statement__title { font-size: 34px; }
}
@media (max-width: 991px) {
    .ec-dest__grid { grid-template-columns: repeat(3, 1fr); }
    .ec-hero { padding-bottom: 50px; }
    .ec-hero {
        background:
            linear-gradient(180deg, rgba(246,255,244,.9) 0%, rgba(246,255,244,.84) 50%, rgba(246,255,244,.7) 100%),
            url(../images/hero-educast-bg.jpg) center top / cover no-repeat;
    }
    .ec-sec { padding: 64px 0; }
    .ec-h2 { font-size: 32px; }
    .ec-stats { grid-template-columns: 1fr; padding: 38px 30px; }
    .ec-stats__head { text-align: center; }
    .ec-register { padding: 40px 28px; }
    .ec-register__title { font-size: 34px; }
    .ec-cta { grid-template-columns: 1fr; }
    .ec-cta__img { min-height: 200px; clip-path: none; }
    .ec-features { padding-bottom: 64px; }
    .ec-stats-wrap { padding-top: 64px; }
    .ec-hero::after { display: none; }
    .ec-form-card { margin-top: 10px; }
    .ec-approvals__title { font-size: 36px; }
}
@media (max-width: 767px) {
    .ec-hero__title { font-size: 31px; }
    .ec-trust__item { padding: 0 10px; }
    .ec-trust__item b { font-size: 20px; }
    .ec-trust__item span { font-size: 12px; }
    .ec-h2 { font-size: 27px; }
    .ec-head-center { margin-bottom: 30px; }
    .ec-stats__head h2 { font-size: 27px; }
    .ec-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .ec-stat b { font-size: 28px; }
    .ec-about__badge { right: 0; }
    .ec-about__badge--alt { left: 0; }
    .ec-afford__grid { grid-template-columns: 1fr; }
    .ec-register { padding: 30px 18px; border-radius: 22px; }
    .ec-register__title { font-size: 28px; }
    .ec-register__form { padding: 24px 18px; }
    .ec-cta__text { padding: 36px 24px; }
    .ec-cta__text h2 { font-size: 28px; }
    .ec-dest__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ec-plogo { flex-basis: 150px; height: 80px; }
    .ec-hero__lead { font-size: 15px; }
    .ec-checklist li { font-size: 16px; }
    .ec-admission { padding: 14px; }
    .ec-admission__label { width: 100%; white-space: normal; }
    .ec-admission .ec-btn { flex: 1; }
    .ec-form-card { padding: 24px 18px 20px; }
    .ec-approvals { padding: 54px 0 44px; }
    .ec-approvals__title { font-size: 30px; }
    .ec-approval__logo { width: 130px; height: 130px; }
    .ec-statement { padding: 56px 0 20px; }
    .ec-statement__title { font-size: 25px; }
    .ec-seal { width: 150px; height: 150px; }
    .ec-seal__band { font-size: 23px; }
    .ec-marquee .ec-approval { flex-basis: 190px; padding: 44px 14px 24px; }
    .ec-courses { padding: 30px 0 60px; }
    .ec-courses__title { font-size: 32px; }
    .ec-courses__lead { font-size: 15px; }
    .ec-course__banner { height: 160px; }
    .ec-course__big { font-size: 28px; left: 36px; }
}


/* =====================================================================
   FOOTER (shared on every page)
   ===================================================================== */
.ec-footer {
    position: relative; background: var(--ec-navy-dark, #061a52); color: #c3cdee;
    padding: 64px 0 0; font-size: 15px;
}
.ec-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: linear-gradient(90deg, var(--ec-green, #108700) 0 50%, var(--ec-navy, #0a2472) 50% 100%);
}
.ec-footer__grid {
    display: grid; grid-template-columns: 1.35fr .8fr .95fr 1.3fr; gap: 40px;
    padding-bottom: 44px;
}
.ec-footer__logo { display: inline-block; margin-bottom: 18px; }
.ec-footer__logo img { display: block; width: 190px; height: auto; }
.ec-footer__brand p { line-height: 1.75; margin: 0 0 20px; color: #c3cdee; max-width: 360px; }
.ec-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-footer__social a {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 15px; transition: background .2s, transform .2s;
}
.ec-footer__social a:hover { background: var(--ec-green, #108700); color: #fff; transform: translateY(-2px); }
.ec-footer__col h4 {
    color: #fff; font-size: 18px; font-weight: 700; margin: 6px 0 20px; position: relative; padding-bottom: 12px;
}
.ec-footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--ec-green, #108700); }
.ec-footer__col ul { list-style: none; padding: 0; margin: 0; }
.ec-footer__col li { margin-bottom: 11px; }
.ec-footer__col li a { color: #c3cdee; text-decoration: none; transition: color .2s, padding .2s; }
.ec-footer__col li a:hover { color: #8ee07f; padding-left: 4px; }
.ec-footer__branch { margin-bottom: 18px; }
.ec-footer__branch b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.ec-footer__branch b i, .ec-footer__branch a i, .ec-footer__mail i { color: #8ee07f; font-size: 13px; }
.ec-footer__branch p { margin: 0 0 6px; line-height: 1.6; font-size: 14px; color: #c3cdee; }
.ec-footer__branch a, .ec-footer__mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.ec-footer__branch a:hover, .ec-footer__mail:hover { color: #8ee07f; }
.ec-footer__mail { font-weight: 400; font-size: 14px; color: #c3cdee; word-break: break-all; }
.ec-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.ec-footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ec-footer__bottom p { margin: 0; font-size: 14px; color: #9fabd6; }
.ec-footer__bottom b { color: #fff; }
.ec-footer__bottom a { color: #8ee07f; text-decoration: none; }
.ec-footer__bottom a:hover { text-decoration: underline; }

@media (max-width: 1199px) {
    .ec-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
}
@media (max-width: 575px) {
    .ec-footer { padding-top: 48px; }
    .ec-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .ec-footer__brand, .ec-footer__contact { grid-column: 1 / -1; }
    .ec-footer__bottom .container { flex-direction: column; text-align: center; }
}

/* =====================================================================
   MOBILE MENU (offcanvas) – Enquiry Now button
   ===================================================================== */
.offcanvas-mobile .offcanvas-user { display: block; padding: 18px 32px 26px !important; }
.offcanvas-mobile .offcanvas-user__button { width: 100%; margin: 0; }
.ec-menu-enquire {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 14px 20px; border-radius: 12px; text-decoration: none;
    background: linear-gradient(100deg, #15a100 0%, #0b6400 100%); color: #fff !important;
    font-size: 16px; font-weight: 700; letter-spacing: .3px;
    box-shadow: 0 10px 24px rgba(16,135,0,.35); transition: transform .2s, box-shadow .2s;
}
.ec-menu-enquire:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16,135,0,.45); color: #fff; }
.offcanvas-mobile .offcanvas-logo__logo img { max-height: 54px; width: auto; }
/* keep the floating WhatsApp bubble from covering the menu button */
body:has(.offcanvas-mobile.show) #wh-widget-send-button,
body:has(.offcanvas-mobile.showing) #wh-widget-send-button { display: none !important; }

/* =====================================================================
   MOBILE POLISH (phones)
   ===================================================================== */
@media (max-width: 575px) {
    .ec-sec { padding: 52px 0; }
    .ec-h2 { font-size: 25px; margin-bottom: 12px; }
    .ec-p { font-size: 15px; }
    .ec-head-row { margin-bottom: 24px; gap: 14px; }
    .ec-head-center { margin-bottom: 24px; }

    /* hero */
    .ec-hero { padding-bottom: 44px; }
    .ec-brandtag { font-size: 12px; padding: 5px 12px 5px 5px; gap: 8px; }
    .ec-brandtag b { font-size: 11px; padding: 3px 10px; }
    .ec-hero__title { font-size: 29px; margin-top: 16px; }
    .ec-checklist li { font-size: 15.5px; gap: 12px; margin-bottom: 12px; }
    .ec-checklist li small { font-size: 13px; }
    .ec-admission__label { font-size: 16px; }
    .ec-admission .ec-btn { padding: 11px 12px; font-size: 14px; }
    .ec-chat-line { flex-wrap: wrap; text-align: center; gap: 4px 6px; font-size: 13.5px; }
    .ec-form-card__head { padding: 18px 18px 14px; margin: 0 -18px 18px; }
    .ec-form-card { padding: 0 18px 18px; }
    .ec-consult { padding: 12px 14px; }
    .ec-consult strong { font-size: 15px; }

    /* swipeable rows: courses, services, why */
    .ec-courses .row, .ec-services .row, .ec-why .row {
        flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        margin-left: -15px; margin-right: -15px; padding: 4px 15px 18px; --bs-gutter-x: 14px;
    }
    .ec-courses .row::-webkit-scrollbar, .ec-services .row::-webkit-scrollbar, .ec-why .row::-webkit-scrollbar { display: none; }
    .ec-courses .row > [class*="col"], .ec-services .row > [class*="col"], .ec-why .row > [class*="col"] {
        flex: 0 0 84%; max-width: 84%; scroll-snap-align: start;
    }
    .ec-swipe-hint {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        font-size: 13px; color: var(--ec-muted); margin-top: -4px;
    }
    .ec-swipe-hint i { color: var(--ec-green); animation: ecNudge 1.4s ease-in-out infinite; }
    @keyframes ecNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

    .ec-courses__head { margin-bottom: 26px; }
    .ec-courses__title { font-size: 28px; margin-bottom: 12px; }
    .ec-course__body { padding: 18px 18px 20px; }
    .ec-course__title { font-size: 19px; margin-bottom: 12px; }
    .ec-course__tags span, .ec-course__tags a { font-size: 13px; padding: 6px 12px; }
    .ec-why__card { padding: 24px 20px; }

    /* features: 2-column compact */
    .ec-features { padding-bottom: 52px; }
    .ec-features .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
    .ec-features .row > [class*="col"] { flex: 0 0 50%; max-width: 50%; }
    .ec-feature { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; }
    .ec-feature__icon { flex-basis: auto; width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .ec-feature h3 { font-size: 14.5px; }

    /* about-2 tiles: 2-column */
    .ec-afford__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ec-afford__grid div { grid-template-columns: 1fr; row-gap: 6px; padding: 14px 12px; }
    .ec-afford__grid i { grid-row: auto; width: 38px; height: 38px; font-size: 16px; }
    .ec-afford__grid b { font-size: 14px; }
    .ec-afford__grid span { font-size: 12px; }

    /* stats */
    .ec-stats { padding: 30px 18px; border-radius: 22px; }
    .ec-stat { padding: 16px 6px; }

    /* statement */
    .ec-statement { padding: 48px 0 10px; }
    .ec-statement__kicker { font-size: 11px; letter-spacing: 2px; }
}
.ec-swipe-hint { display: none; }
@media (max-width: 575px) { .ec-swipe-hint { display: flex; } }

/* =====================================================================
   HERO – long headline variant
   ===================================================================== */
.ec-hero__title--long { font-size: 40px; line-height: 1.2; }
@media (max-width: 1199px) { .ec-hero__title--long { font-size: 34px; } }
@media (max-width: 575px)  { .ec-hero__title--long { font-size: 26px; } }

/* =====================================================================
   CERTIFICATES & APPROVALS
   ===================================================================== */
.ec-certs { background: #f3fbf1; }
.ec-certs .ec-head-center .ec-p { margin: 0; }
.ec-cert {
    height: 100%; display: flex; flex-direction: column; background: #fff;
    border: 1px solid #dceedc; border-radius: 24px; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.ec-cert:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(10,36,114,.12); }
.ec-cert__frame {
    position: relative; aspect-ratio: 4 / 3; padding: 18px;
    background: linear-gradient(135deg, #e9f7e6 0%, #eef3ff 100%);
}
.ec-cert__view {
    position: relative; display: block; width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
    background: #fff; box-shadow: 0 12px 26px rgba(10,36,114,.14);
}
.ec-cert__view img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .4s; }
.ec-cert:hover .ec-cert__view img { transform: scale(1.03); }
.ec-cert__zoom {
    position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0;
    background: rgba(6,26,82,.88); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px;
    white-space: nowrap; transition: opacity .25s, transform .25s;
}
.ec-cert:hover .ec-cert__zoom { opacity: 1; transform: translate(-50%, 0); }
/* placeholder certificate (until a real image is uploaded) */
.ec-cert__paper { display: none; position: absolute; inset: 18px; }
.ec-cert__frame.no-img .ec-cert__view { display: none; }
.ec-cert__frame.no-img .ec-cert__paper { display: block; }
.ec-cert__paper {
    border-radius: 12px; background: #fffdf6; padding: 10px;
    box-shadow: 0 12px 26px rgba(10,36,114,.14);
}
.ec-cert__paper-in {
    position: relative; height: 100%; border: 2px solid #c9a646; outline: 1px solid #e6d39a; outline-offset: -7px;
    border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    text-align: center; padding: 12px 18px;
}
.ec-cert__paper-top { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; letter-spacing: 3px; color: #8a6d1c; text-transform: uppercase; }
.ec-cert__paper-in b { font-size: 15px; color: var(--ec-navy); letter-spacing: .5px; margin-bottom: 4px; }
.ec-cert__paper-in > i { display: block; height: 4px; width: 70%; background: #ece4c9; border-radius: 4px; }
.ec-cert__paper-in > i.short { width: 45%; }
.ec-cert__paper-seal {
    position: absolute; right: 14px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
    background: radial-gradient(circle, #e53935 0 55%, #b71c1c 56% 100%); color: #ffe082;
    display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 10px rgba(183,28,28,.35);
}
.ec-cert__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ec-cert__body h3 { font-size: 22px; font-weight: 700; color: var(--ec-navy); margin-bottom: 14px; }
.ec-cert__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ec-cert__chip {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ec-ink);
    background: #f3fbf1; border: 1px solid #dceedc; border-radius: 30px; padding: 5px 12px 5px 6px;
}
.ec-cert__chip img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; background: #fff; }
.ec-cert__chip i { color: var(--ec-green); font-size: 15px; margin-left: 4px; }
.ec-cert__body .ec-course__more { margin-top: auto; }
@media (max-width: 575px) {
    .ec-certs .row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-left: -15px; margin-right: -15px; padding: 4px 15px 18px; --bs-gutter-x: 14px; justify-content: flex-start !important; }
    .ec-certs .row::-webkit-scrollbar { display: none; }
    .ec-certs .row > [class*="col"] { flex: 0 0 84%; max-width: 84%; scroll-snap-align: start; }
    .ec-cert__body h3 { font-size: 19px; }
}




/* CERTIFICATE IMAGE */

.ec-cert {
    height: 100%;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    overflow: hidden;
    transition: all .4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.ec-cert:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.ec-cert__image {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #f1f2f5;
    cursor: zoom-in;
}

.ec-cert__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.ec-cert:hover .ec-cert__image img {
    transform: scale(1.07);
}

.ec-zoom-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #76b83e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.7);
    transition: .35s ease;
}

.ec-cert:hover .ec-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* CARD CONTENT */

.ec-cert__body {
    padding: 24px;
}

.ec-cert__body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2238;
    margin-bottom: 18px;
}

.ec-cert__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.ec-cert__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: #f0f7e9;
    color: #528d2d;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.ec-cert__chip i {
    font-size: 12px;
}

/* LIGHTBOX */

.ec-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.ec-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.ec-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(.7);
    transition: transform .4s ease;
    box-shadow: 0 15px 50px rgba(0,0,0,.4);
}

.ec-lightbox.active img {
    transform: scale(1);
}

/* LIGHTBOX BUTTONS */

.ec-lightbox button {
    position: absolute;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
}

.ec-lightbox button:hover {
    background: #76b83e;
}

.ec-lightbox-close {
    top: 25px;
    right: 30px;
}

.ec-lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.ec-lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

/* MOBILE */

@media(max-width: 600px) {
    .ec-cert__image {
        height: 220px;
    }

    .ec-lightbox {
        padding: 20px;
    }

    .ec-lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .ec-lightbox-prev {
        left: 8px;
    }

    .ec-lightbox-next {
        right: 8px;
    }
}






/* =====================================================================
   SHARED ENQUIRY SECTION (all inner pages)
   ===================================================================== */
.ec-page-enquiry {
    position: relative; padding: 80px 0;
    background:
        linear-gradient(90deg, rgba(246,255,244,.96) 0%, rgba(246,255,244,.9) 45%, rgba(246,255,244,.55) 70%, rgba(10,36,114,.3) 100%),
        url(../images/hero-educast-bg.jpg) center 35% / cover no-repeat;
}
.ec-page-enquiry .ec-p { max-width: 520px; margin-bottom: 22px; }
.ec-page-enquiry__contact { display: flex; flex-wrap: wrap; gap: 14px; }
.ec-page-enquiry__contact a {
    display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 14px;
    background: #fff; border: 1px solid #dceedc; text-decoration: none; color: var(--ec-muted); font-size: 13px;
    box-shadow: 0 8px 20px rgba(10,36,114,.06); transition: transform .2s, border-color .2s;
}
.ec-page-enquiry__contact a:hover { transform: translateY(-2px); border-color: var(--ec-green); }
.ec-page-enquiry__contact i {
    width: 40px; height: 40px; border-radius: 50%; background: var(--ec-green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ec-page-enquiry__contact .fa-whatsapp { background: #25d366; font-size: 20px; }
.ec-page-enquiry__contact b { display: block; font-size: 16px; color: var(--ec-navy); }
@media (max-width: 991px) {
    .ec-page-enquiry { padding: 56px 0;
        background:
            linear-gradient(180deg, rgba(246,255,244,.93) 0%, rgba(246,255,244,.86) 100%),
            url(../images/hero-educast-bg.jpg) center top / cover no-repeat; }
}

/* =====================================================================
   FAQ
   ===================================================================== */
.ec-faq { background: #fff; }
.ec-faq__help {
    display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 22px;
    background: #f3fbf1; border: 1px solid #dceedc; border-radius: 20px; max-width: 460px;
}
.ec-faq__help-icon {
    flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--ec-navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ec-faq__help b { display: block; font-size: 18px; color: var(--ec-navy); }
.ec-faq__help > div > span { font-size: 14px; color: var(--ec-muted); }
.ec-faq__help-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ec-faq__help-btns .ec-btn { padding: 10px 16px; font-size: 14px; }
.ec-faq__list { display: flex; flex-direction: column; gap: 14px; }
.ec-faq__item {
    background: #f3fbf1; border: 1px solid #dceedc; border-radius: 18px; overflow: hidden;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.ec-faq__item[open] { background: #fff; border-color: var(--ec-green); box-shadow: 0 16px 34px rgba(16,135,0,.10); }
.ec-faq__item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
}
.ec-faq__item summary::-webkit-details-marker { display: none; }
.ec-faq__num { flex: 0 0 auto; font-size: 14px; font-weight: 800; color: var(--ec-green); letter-spacing: 1px; }
.ec-faq__q { flex: 1; font-size: 17px; font-weight: 600; color: var(--ec-navy); line-height: 1.4; }
.ec-faq__icon {
    position: relative; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #dceedc;
    transition: background .25s, transform .3s;
}
.ec-faq__icon::before, .ec-faq__icon::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ec-green);
    border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s, background .25s;
}
.ec-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.ec-faq__item[open] .ec-faq__icon { background: var(--ec-green); border-color: var(--ec-green); transform: rotate(180deg); }
.ec-faq__item[open] .ec-faq__icon::before, .ec-faq__item[open] .ec-faq__icon::after { background: #fff; }
.ec-faq__item[open] .ec-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.ec-faq__a { padding: 0 20px 20px 54px; }
.ec-faq__a p { margin: 0; font-size: 15.5px; line-height: 1.75; color: #3d4752; }
.ec-faq__item[open] .ec-faq__a { animation: ecFaqIn .3s ease; }
@keyframes ecFaqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
    .ec-faq__item summary { padding: 16px 14px; gap: 10px; }
    .ec-faq__q { font-size: 15.5px; }
    .ec-faq__a { padding: 0 14px 16px 14px; }
    .ec-faq__a p { font-size: 14.5px; }
    .ec-faq__help { padding: 18px; }
}

/* Certificates & Approvals – logo header instead of certificate image */
.ec-cert__top {
    display: flex; align-items: center; justify-content: center; gap: 18px; padding: 30px 20px;
    background: linear-gradient(135deg, #e9f7e6 0%, #eef3ff 100%);
}
.ec-cert__logo {
    width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 3px solid #e2531f;
    box-shadow: 0 0 0 6px rgba(255,255,255,.7), 0 10px 22px rgba(10,36,114,.12);
    display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden;
}
.ec-cert__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ec-cert__logo--icon { border-color: var(--ec-green); color: var(--ec-green); font-size: 34px; }
.ec-cert__logo--navy { border-color: var(--ec-navy); color: var(--ec-navy); }
@media (max-width: 575px) { .ec-cert__logo { width: 80px; height: 80px; } .ec-cert__logo--icon { font-size: 28px; } }

/* =====================================================================
   GALLERY (dynamic)
   ===================================================================== */
.ec-gallery { background: #fff; }
.ec-gallery__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px;
}
.ec-gallery__grid:not(.ec-gallery__grid--all) .ec-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.ec-gallery__item {
    position: relative; display: block; overflow: hidden; border-radius: 18px; background: #eef3ee;
    box-shadow: 0 10px 24px rgba(10,36,114,.08);
}
.ec-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ec-gallery__item::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,26,82,.75) 100%);
    opacity: 0; transition: opacity .3s;
}
.ec-gallery__item:hover img { transform: scale(1.07); }
.ec-gallery__item:hover::after { opacity: 1; }
.ec-gallery__cap {
    position: absolute; left: 16px; right: 56px; bottom: 14px; z-index: 1; color: #fff; font-size: 14.5px; font-weight: 600;
    opacity: 0; transform: translateY(8px); transition: .3s; line-height: 1.35;
}
.ec-gallery__zoom {
    position: absolute; right: 14px; bottom: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
    background: var(--ec-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
    opacity: 0; transform: scale(.6); transition: .3s;
}
.ec-gallery__item:hover .ec-gallery__cap { opacity: 1; transform: none; }
.ec-gallery__item:hover .ec-gallery__zoom { opacity: 1; transform: none; }
.ec-gallery__grid--all { grid-auto-rows: 240px; }
.ec-gallery__empty { text-align: center; padding: 40px 0; color: var(--ec-muted); }
.ec-gallery__empty i { font-size: 46px; color: #b9dbb1; margin-bottom: 10px; }
.ec-gallery--page { padding-top: 70px; }
@media (max-width: 991px) {
    .ec-gallery__grid, .ec-gallery__grid--all { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 575px) {
    .ec-gallery__grid, .ec-gallery__grid--all { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
    .ec-gallery__item { border-radius: 14px; }
    .ec-gallery__cap, .ec-gallery__zoom { opacity: 1; transform: none; }
    .ec-gallery__item::after { opacity: .8; }
    .ec-gallery__cap { font-size: 12.5px; left: 10px; bottom: 8px; right: 10px; }
    .ec-gallery__zoom { display: none; }
}

/* =====================================================================
   BLOG (dynamic) – cards, listing, article
   ===================================================================== */
.ec-blog { background: #f3fbf1; }
.ec-blog--page { background: #fff; padding-top: 70px; }
.ec-post {
    height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #dceedc;
    border-radius: 22px; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.ec-post:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(10,36,114,.12); }
.ec-post__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef3ee; }
.ec-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ec-post:hover .ec-post__img img { transform: scale(1.06); }
.ec-post__date {
    position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; align-items: center;
    background: #fff; color: var(--ec-muted); border-radius: 12px; padding: 6px 10px; font-size: 12px; font-weight: 600;
    line-height: 1.1; text-transform: uppercase; box-shadow: 0 6px 16px rgba(10,36,114,.15);
}
.ec-post__date b { font-size: 20px; color: var(--ec-green); }
.ec-post__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ec-post__title { font-size: 19px; line-height: 1.4; font-weight: 700; margin-bottom: 10px; }
.ec-post__title a { color: var(--ec-navy); text-decoration: none; }
.ec-post__title a:hover { color: var(--ec-green); }
.ec-post__text { font-size: 14.5px; line-height: 1.65; color: #4b5568; margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ec-post__body .ec-course__more { margin-top: auto; }
.ec-pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.ec-pager a {
    width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #dceedc; color: var(--ec-navy); font-weight: 700; text-decoration: none; background: #fff;
}
.ec-pager a.on, .ec-pager a:hover { background: var(--ec-green); border-color: var(--ec-green); color: #fff; }

/* article */
.ec-post-banner__title { font-size: 40px; line-height: 1.25; max-width: 900px; margin: 0 auto; }
.ec-article { background: #fff; padding-top: 60px; }
.ec-article__cover { width: 100%; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 20px 40px rgba(10,36,114,.12); }
.ec-article__meta { display: flex; align-items: center; gap: 8px; margin: 20px 0 6px; color: var(--ec-muted); font-size: 14px; }
.ec-article__meta i { color: var(--ec-green); }
.ec-article__content { font-size: 17px; line-height: 1.85; color: #33404d; }
.ec-article__content p { margin: 0 0 18px; }
.ec-article__content h2 { font-size: 26px; font-weight: 700; color: var(--ec-navy); margin: 32px 0 12px; }
.ec-article__content ul { margin: 0 0 20px; padding: 0; list-style: none; }
.ec-article__content li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ec-article__content li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(16,135,0,.12); color: var(--ec-green); font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.ec-article__share { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e3ece1; }
.ec-article__share b { color: var(--ec-navy); margin-right: 4px; }
.ec-article__share a {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f3fbf1; color: var(--ec-green); border: 1px solid #dceedc; transition: .2s;
}
.ec-article__share a:hover { background: var(--ec-green); color: #fff; }
.ec-article__side { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 20px; }
.ec-side-card { background: #f3fbf1; border: 1px solid #dceedc; border-radius: 22px; padding: 24px; }
.ec-side-card h4 { font-size: 19px; font-weight: 700; color: var(--ec-navy); margin-bottom: 16px; }
.ec-side-card--cta { background: linear-gradient(135deg, var(--ec-navy), #0b6a17); border: 0; color: #fff; }
.ec-side-card--cta h4 { color: #fff; margin-bottom: 8px; }
.ec-side-card--cta p { color: #d2dbf7; font-size: 14.5px; margin-bottom: 16px; }
.ec-side-card--cta .ec-btn { margin-top: 10px; }
.ec-mini { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 10px 0; border-top: 1px solid #dceedc; }
.ec-mini:first-of-type { border-top: 0; padding-top: 0; }
.ec-mini img { width: 76px; height: 58px; border-radius: 10px; object-fit: cover; flex: 0 0 76px; }
.ec-mini b { display: block; font-size: 14.5px; line-height: 1.35; color: var(--ec-navy); }
.ec-mini small { color: var(--ec-muted); font-size: 12.5px; }
.ec-mini:hover b { color: var(--ec-green); }
@media (max-width: 991px) { .ec-article__side { position: static; } .ec-post-banner__title { font-size: 30px; } }
@media (max-width: 575px) {
    .ec-blog .row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-left: -15px; margin-right: -15px; padding: 4px 15px 18px; --bs-gutter-x: 14px; }
    .ec-blog .row::-webkit-scrollbar { display: none; }
    .ec-blog .row > [class*="col"] { flex: 0 0 84%; max-width: 84%; scroll-snap-align: start; }
    .ec-blog--page .row { flex-wrap: wrap; overflow: visible; margin-left: calc(-.5 * var(--bs-gutter-x)); margin-right: calc(-.5 * var(--bs-gutter-x)); padding: 0; }
    .ec-blog--page .row > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
    .ec-post-banner__title { font-size: 24px; }
    .ec-article__content { font-size: 16px; }
    .ec-article__content h2 { font-size: 21px; }
}

/* =====================================================================
   HEADER – keep the logo full size when the menu is long
   ===================================================================== */
.header-logo { flex: 0 0 auto; }
.header-logo__logo { max-width: none; height: auto; }
@media (min-width: 1200px) and (max-width: 1499px) {
    .header-logo { margin-right: 16px; }
    .header-logo__logo { width: 132px; }
    .menu-primary__container > li > a { padding-left: 11px; padding-right: 11px; }
    .header-navigation .btn.btn-success { padding: 0 18px; }
}



/* =====================================================================
   REGISTER SECTION – banner slideshow (Admin › Banners)
   ===================================================================== */
.ec-rbanner {
    position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 21 / 20;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
}
.ec-rbanner__stage { position: absolute; inset: 0; }
.ec-rbanner__slide {
    position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease; text-decoration: none;
}
.ec-rbanner__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
/* blurred copy fills empty space so posters of any shape look intentional */
.ec-rbanner__blur {
    position: absolute; inset: -30px; background: center / cover no-repeat;
    filter: blur(24px) brightness(.7) saturate(1.2); transform: scale(1.1);
}
.ec-rbanner__slide img {
    position: relative; z-index: 1; width: 100%; height: 100%; display: block;
    object-fit: contain; transform: scale(1.04); transition: transform 6s ease;
}
.ec-rbanner__slide.is-active img { transform: scale(1); }
.ec-rbanner__cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 46px 22px 50px;
    background: linear-gradient(180deg, rgba(6,26,82,0) 0%, rgba(6,26,82,.88) 100%);
    color: #fff; font-size: 18px; font-weight: 700; line-height: 1.35;
}
.ec-rbanner__cap i { color: #8ee07f; margin-left: 6px; font-size: 14px; transition: transform .3s; }
a.ec-rbanner__slide:hover .ec-rbanner__cap i { transform: translateX(4px); }
.ec-rbanner__arrow {
    position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.9); color: var(--ec-navy); font-size: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; transition: opacity .3s, background .3s, color .3s;
}
.ec-rbanner__arrow--prev { left: 14px; }
.ec-rbanner__arrow--next { right: 14px; }
.ec-rbanner:hover .ec-rbanner__arrow, .ec-rbanner__arrow:focus-visible { opacity: 1; }
.ec-rbanner__arrow:hover { background: var(--ec-green); color: #fff; }
.ec-rbanner__dots {
    position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3;
    display: flex; justify-content: center; gap: 7px;
}
.ec-rbanner__dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 20px; cursor: pointer;
    background: rgba(255,255,255,.55); transition: width .3s, background .3s;
}
.ec-rbanner__dots button.is-active { width: 28px; background: #8ee07f; }
@media (max-width: 991px) {
    .ec-rbanner { aspect-ratio: 4 / 3; }
    .ec-rbanner__arrow { opacity: 1; width: 38px; height: 38px; }
}
@media (max-width: 767px) {
    .ec-rbanner { border-radius: 16px; }
    .ec-rbanner__cap { font-size: 15px; padding: 36px 16px 44px; }
    .ec-rbanner__arrow--prev { left: 8px; }
    .ec-rbanner__arrow--next { right: 8px; }
}


/* =====================================================================
   COURSE PAGE  (/course/<slug>)
   ===================================================================== */
.ec-cd__hero { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; margin-bottom: 26px; }
.ec-cd__hero-img { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 18px 40px rgba(10,36,114,.14); }
.ec-cd__hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-cd__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 50px; background: #eaf6e8; color: var(--ec-green); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.ec-cd__hero-txt h2 { font-size: 34px; font-weight: 800; color: var(--ec-navy); line-height: 1.2; margin-bottom: 10px; }
.ec-cd__hero-txt p { font-size: 17px; color: var(--ec-muted); line-height: 1.6; margin: 0; }
.ec-cd__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.ec-cd__facts div { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; background: #fff; border: 1px solid #e3ece1; border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(10,36,114,.05); }
.ec-cd__facts i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--ec-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ec-cd__facts span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ec-muted); font-weight: 600; }
.ec-cd__facts b { font-size: 14.5px; color: var(--ec-navy); line-height: 1.3; }
.ec-cd__block { margin-bottom: 34px; }
.ec-cd .row.g-4 { margin-bottom: 34px; }
.ec-cd__block h3, .ec-cd__box h3 { font-size: 23px; font-weight: 800; color: var(--ec-navy); margin-bottom: 14px; }
.ec-cd__block p { font-size: 16px; line-height: 1.75; color: #4b5468; }
.ec-cd__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-cd__chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 50px; background: #fff; border: 1.5px solid #dceedc; color: var(--ec-navy); font-weight: 600; font-size: 14.5px; }
.ec-cd__chips i { color: var(--ec-green); font-size: 13px; }
.ec-cd__note { margin-top: 14px; font-size: 14px !important; color: var(--ec-muted) !important; }
.ec-cd__note i { color: var(--ec-green); margin-right: 4px; }
.ec-cd__why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ec-cd__why div { background: #f3fbf1; border-radius: 16px; padding: 18px; border: 1px solid #dceedc; transition: transform .3s, box-shadow .3s; }
.ec-cd__why div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,36,114,.08); }
.ec-cd__why i { width: 42px; height: 42px; border-radius: 12px; background: var(--ec-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 10px; }
.ec-cd__why b { display: block; font-weight: 700; color: var(--ec-navy); font-size: 16px; margin-bottom: 4px; }
.ec-cd__why span { font-size: 14px; color: var(--ec-muted); line-height: 1.5; }
.ec-cd__box { height: 100%; border-radius: 20px; padding: 24px; background: #fff; border: 1px solid #e3ece1; box-shadow: 0 10px 26px rgba(10,36,114,.06); }
.ec-cd__box h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.ec-cd__box h3 i { color: var(--ec-green); }
.ec-cd__box p { margin: 0; font-size: 15px; line-height: 1.7; color: #4b5468; }
.ec-cd__box--navy { background: linear-gradient(140deg, #0a2472, #061a52); border: 0; }
.ec-cd__box--navy h3 { color: #fff; }
.ec-cd__box--navy h3 i { color: #8ee07f; }
.ec-cd__box ul { list-style: none; padding: 0; margin: 0; }
.ec-cd__box li { color: #dfe6fb; font-size: 15px; padding: 6px 0; display: flex; gap: 10px; align-items: center; }
.ec-cd__box li i { color: #8ee07f; }
.ec-cd__related { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.ec-cd__related a { position: relative; display: block; padding: 18px 46px 18px 18px; border-radius: 16px; background: #fff; border: 1px solid #e3ece1; transition: border-color .3s, transform .3s; }
.ec-cd__related a:hover { border-color: var(--ec-green); transform: translateY(-3px); }
.ec-cd__related b { display: block; font-weight: 700; color: var(--ec-navy); font-size: 15.5px; margin-bottom: 4px; }
.ec-cd__related span { font-size: 13.5px; color: var(--ec-muted); line-height: 1.45; display: block; }
.ec-cd__related i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--ec-green); }
.ec-cd__side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.ec-cd__form { background: #fff; border-radius: 22px; padding: 26px 22px; border: 1px solid #e3ece1; box-shadow: 0 18px 40px rgba(10,36,114,.10); }
.ec-cd__form h4 { font-size: 21px; font-weight: 800; color: var(--ec-navy); margin-bottom: 6px; }
.ec-cd__form p { font-size: 14px; color: var(--ec-muted); margin-bottom: 16px; }
.ec-cd__form .ec-input { margin-bottom: 12px; }
.ec-cd__form .ec-input[readonly] { background: #eaf6e8; color: var(--ec-green); font-weight: 700; }
@media (max-width: 991px) { .ec-cd__side { position: static; } }
@media (max-width: 767px) {
    .ec-cd__hero { grid-template-columns: 1fr; gap: 18px; }
    .ec-cd__hero-txt h2 { font-size: 27px; }
    .ec-cd__facts, .ec-cd__why, .ec-cd__related { grid-template-columns: 1fr; }
}

/* Course tags on the homepage cards are links */
a.ec-course__tag { text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
a.ec-course__tag:hover { background: var(--ec-green); border-color: var(--ec-green); color: #fff !important; }


/* =====================================================================
   ABOUT – "Access An Affordable Education" (redesigned)
   ===================================================================== */
.ec-afford { background: linear-gradient(180deg, #f3fbf1 0%, #ffffff 100%); overflow: hidden; }
.ec-ab { position: relative; padding: 10px 0 60px 70px; max-width: 560px; margin-left: auto; }
.ec-ab__dots { position: absolute; right: -24px; top: -20px; width: 180px; height: 180px; z-index: 0;
    background-image: radial-gradient(rgba(16,135,0,.35) 2px, transparent 2px); background-size: 16px 16px; }
.ec-ab__main { position: relative; z-index: 1; border-radius: 28px; overflow: hidden; aspect-ratio: 5/4.4;
    box-shadow: 0 30px 60px rgba(10,36,114,.18); }
.ec-ab__main img, .ec-ab__small img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-ab__main img { transition: transform 1.2s ease; }
.ec-ab:hover .ec-ab__main img { transform: scale(1.04); }
.ec-ab__small { position: absolute; z-index: 2; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 24px; overflow: hidden;
    border: 8px solid #fff; box-shadow: 0 24px 48px rgba(10,36,114,.22); }
.ec-ab__small img { object-position: 50% 30%; }
.ec-ab__stat { position: absolute; z-index: 3; left: 18px; top: 40px; background: #fff; border-radius: 18px; padding: 14px 20px;
    box-shadow: 0 18px 40px rgba(10,36,114,.16); text-align: center; animation: ecAbFloat 4s ease-in-out infinite; }
.ec-ab__stat b { display: block; font-size: 28px; line-height: 1; font-weight: 800; color: var(--ec-green); }
.ec-ab__stat span { font-size: 12.5px; color: var(--ec-muted); font-weight: 600; }
.ec-ab__widget { position: absolute; z-index: 3; right: -10px; bottom: 26px; display: flex; align-items: center; gap: 12px;
    background: var(--ec-navy); color: #fff; padding: 14px 20px; border-radius: 18px; box-shadow: 0 18px 36px rgba(10,36,114,.32);
    font-size: 14px; line-height: 1.35; animation: ecAbFloat 4s ease-in-out 2s infinite; }
.ec-ab__widget span { max-width: 150px; }
.ec-ab__widget b { display: block; color: #8ee07f; }
.ec-ab__widget i { width: 42px; height: 42px; border-radius: 50%; background: var(--ec-green); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 42px; }
@keyframes ecAbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ec-ab__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 30px; }
.ec-ab__grid a { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 18px;
    background: #fff; border: 1px solid #dceedc; box-shadow: 0 8px 22px rgba(10,36,114,.05); text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.ec-ab__grid a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ec-green); transform: scaleY(0); transition: transform .3s ease; }
.ec-ab__grid a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(10,36,114,.12); border-color: var(--ec-green); }
.ec-ab__grid a:hover::before { transform: scaleY(1); }
.ec-ab__grid i { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 19px;
    color: #fff; background: linear-gradient(135deg, #16a000, #0b6400); box-shadow: 0 8px 18px rgba(16,135,0,.28); transition: transform .3s ease; }
.ec-ab__grid a:nth-child(2) i, .ec-ab__grid a:nth-child(3) i { background: linear-gradient(135deg, #1c3fa8, #0a2472); box-shadow: 0 8px 18px rgba(10,36,114,.28); }
.ec-ab__grid a:hover i { transform: rotate(-8deg) scale(1.06); }
.ec-ab__grid b { display: block; font-size: 16px; font-weight: 700; color: var(--ec-navy); line-height: 1.25; }
.ec-ab__grid small { display: block; font-size: 13px; color: var(--ec-muted); line-height: 1.35; margin-top: 2px; }
@media (max-width: 991px) { .ec-ab { margin: 0 auto; } }
@media (max-width: 767px) {
    .ec-ab { padding: 0 0 50px 30px; }
    .ec-ab__dots { right: -10px; width: 120px; height: 120px; }
    .ec-ab__stat { left: 0; top: 20px; padding: 10px 14px; }
    .ec-ab__stat b { font-size: 22px; }
    .ec-ab__widget { right: 0; bottom: 10px; padding: 10px 14px; font-size: 12.5px; }
    .ec-ab__widget i { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; }
    .ec-ab__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ec-ab__stat, .ec-ab__widget { animation: none; } }
