/* ══════════════════════════════════════════
   EduCoach — Home Page CSS  (Updated)
   public/css/home.css
══════════════════════════════════════════ */

:root {
    --navy:    #000000;
    --navy2:   #111827;
    --orange:  #2563eb;
    --orange2: #1d4ed8;
    --teal:    #0ea5e9;
    --gold:    #3b82f6;
    --saffron: #f59e0b;
    --white:   #ffffff;
    --gray50:  #f8fafc;
    --gray100: #f1f5f9;
    --gray200: #e2e8f0;
    --gray400: #94a3b8;
    --gray600: #475569;
    --gray800: #111827;
}

/* ════════════════════════════════════════
   KEYFRAME ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { transform: translateX(-12px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Intersection Observer helper classes */
.ec-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ec-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.ec-animate-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ec-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.ec-animate-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ec-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.ec-animate-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.ec-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.05s !important; }
.delay-2 { transition-delay: 0.12s !important; }
.delay-3 { transition-delay: 0.19s !important; }
.delay-4 { transition-delay: 0.26s !important; }
.delay-5 { transition-delay: 0.33s !important; }
.delay-6 { transition-delay: 0.40s !important; }

/* ── Section Common ── */
.ec-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 0.75rem;
    display: block;
}
.ec-heading {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.ec-heading em { font-style: normal; color: var(--orange); }
.ec-subtext {
    font-size: 1rem;
    color: var(--gray600);
    line-height: 1.7;
    max-width: 560px;
}

/* ══════════════════════════════════════════
   ANNOUNCEMENTS TICKER
══════════════════════════════════════════ */
.ec-ticker-wrap {
    background: #e8651a;
    display: flex;
    align-items: center;
    height: 48px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid #c0501a;
    box-shadow: 0 4px 20px rgba(232,101,26,0.4);
}
.ec-ticker-label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #0d1f3c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 1.2rem 0 1rem;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
}
.ec-ticker-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 12px solid #0d1f3c;
}
.ec-ticker-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8651a;
    border: 2px solid #fff;
    flex-shrink: 0;
    animation: liveBlink 1.2s ease-in-out infinite;
}
.ec-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}
.ec-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 28s linear infinite;
    will-change: transform;
}
.ec-ticker-track:hover { animation-play-state: paused; }
.ec-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 2rem;
    text-decoration: none;
    height: 48px;
    border-right: 1px solid rgba(255,255,255,0.18);
    transition: background 0.2s;
}
.ec-ticker-item:hover { background: rgba(0,0,0,0.08); }
.ec-ticker-item:hover .ec-ticker-title { color: #0d1f3c; }
.ec-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0d1f3c;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(13,31,60,0.5);
}
.ec-ticker-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.ec-ticker-date {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    flex-shrink: 0;
    background: rgba(0,0,0,0.15);
    padding: 2px 7px;
    border-radius: 10px;
}
.ec-ticker-sep { color: rgba(255,255,255,0.2); font-size: 0.9rem; }
.ec-ticker-more {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.1rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0d1f3c;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ec-ticker-more:hover { background: rgba(0,0,0,0.2); color: #fff; }

/* ══════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════ */
.ec-stats {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.ec-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.ec-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.ec-stat-box {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ec-stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.06), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ec-stat-box:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(37,99,235,0.3);
}
.ec-stat-box:hover::before { opacity: 1; }
.ec-stat-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}
.ec-stat-box:hover .ec-stat-icon { transform: scale(1.15) rotate(-5deg); }
.ec-stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.35rem;
    display: block;
}
.ec-stat-lbl {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════
   FACULTY SECTION
══════════════════════════════════════════ */
.ec-faculty {
    padding: 5rem 2rem;
    background: var(--gray50);
}
.ec-faculty-header { text-align: center; margin-bottom: 3rem; }
.ec-faculty-header .ec-subtext { margin: 0 auto; }

.ec-faculty-grid {
    max-width: 980px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.ec-faculty-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray200);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ec-faculty-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.ec-faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(10,22,40,0.15);
}
.ec-faculty-card:hover::after { transform: scaleX(1); }

.ec-faculty-photo {
    width: 100%;
    height: 230px;
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.ec-faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}
.ec-faculty-card:hover .ec-faculty-photo img { transform: scale(1.07); }

.ec-fac-initials {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 3px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255,255,255,.75);
    font-style: normal;
    animation: float 4s ease-in-out infinite;
}
.ec-fac-subj-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10,22,40,.8);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-fac-exp-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
    animation: pulseRing 2.5s infinite;
}
.ec-faculty-body {
    padding: 1.3rem 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ec-faculty-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .22rem;
    line-height: 1.3;
}
.ec-faculty-subject {
    font-size: .72rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .38rem;
}
.ec-faculty-desig { font-size: .8rem; color: var(--gray600); margin-bottom: .7rem; }
.ec-faculty-exp {
    display: inline-block;
    background: var(--gray100);
    color: var(--gray600);
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: .9rem;
}
.ec-fac-stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding-top: .85rem;
    border-top: 1px solid var(--gray100);
    margin-top: auto;
}
.ec-fac-stat strong {
    display: block;
    font-size: .95rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 3px;
}
.ec-fac-stat strong.ora { color: var(--orange); }
.ec-fac-stat span {
    font-size: .6rem;
    color: var(--gray400);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ══════════════════════════════════════════
   COURSES SECTION
══════════════════════════════════════════ */
.ec-courses { padding: 5rem 2rem; background: var(--white); }
.ec-courses-header { text-align: center; margin-bottom: 3rem; }
.ec-courses-header .ec-subtext { margin: 0 auto; }

.ec-courses-grid {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.ec-course-card {
    background: var(--white);
    border: 1px solid var(--gray200);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ec-course-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 48px rgba(10,22,40,0.12);
}
.ec-course-banner {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.ec-course-banner img {
    transition: transform 0.5s ease;
}
.ec-course-card:hover .ec-course-banner img { transform: scale(1.06); }

.ec-course-banner.c1 { background: linear-gradient(135deg,#0a1628,#1a3a6b); }
.ec-course-banner.c2 { background: linear-gradient(135deg,#064e3b,#065f46); }
.ec-course-banner.c3 { background: linear-gradient(135deg,#7c2d12,#c2410c); }
.ec-course-banner.c4 { background: linear-gradient(135deg,#312e81,#4338ca); }
.ec-course-banner.c5 { background: linear-gradient(135deg,#713f12,#a16207); }
.ec-course-banner.c6 { background: linear-gradient(135deg,#1e1b4b,#3730a3); }
.ec-course-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ec-course-fee {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}
.ec-course-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ec-course-category {
    font-size: .65rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .3rem;
}
.ec-course-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.ec-course-desc {
    font-size: 0.82rem;
    color: var(--gray600);
    line-height: 1.6;
    margin-bottom: 0.9rem;
    flex: 1;
}
.ec-course-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.ec-course-meta span {
    font-size: 0.74rem;
    color: var(--gray400);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── Shared View All ── */
.ec-view-all-wrap { text-align: center; }
.ec-btn-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--navy2);
    color: var(--navy2);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.ec-btn-viewall::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.28s ease;
    z-index: 0;
}
.ec-btn-viewall span, .ec-btn-viewall { position: relative; z-index: 1; }
.ec-btn-viewall:hover { color: var(--white); }
.ec-btn-viewall:hover::before { transform: scaleX(1); transform-origin: left; }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.ec-testimonials { padding: 5rem 2rem; background: var(--gray50); }
.ec-testimonials-header { text-align: center; margin-bottom: 3rem; }
.ec-testimonials-header .ec-subtext { margin: 0 auto; }

.ec-testi-arrows {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.ec-testi-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--gray200);
    background: var(--white);
    color: var(--navy);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}
.ec-testi-arrow:hover {
    border-color: var(--orange);
    color: var(--white);
    background: var(--orange);
    transform: scale(1.1);
}

.ec-testimonials-scroll-wrap {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}
.ec-testimonials-grid {
    display: flex !important;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
    scrollbar-width: none;
    cursor: grab;
}
.ec-testimonials-grid::-webkit-scrollbar { display: none; }
.ec-testimonials-grid:active { cursor: grabbing; }

.ec-testi-card {
    background: var(--white);
    border: 1px solid var(--gray200);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-width: 320px;
    max-width: 360px;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.ec-testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(10,22,40,0.10);
    border-color: rgba(37,99,235,0.2);
}
.ec-testi-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 4rem;
    color: var(--gray200);
    font-family: Georgia, serif;
    line-height: 1;
    transition: color 0.3s ease;
}
.ec-testi-card:hover::before { color: rgba(37,99,235,0.15); }
.ec-testi-stars { display: flex; gap: 3px; margin-bottom: 0.9rem; }
.ec-testi-stars span { color: var(--saffron); font-size: 1rem; }
.ec-testi-text {
    font-size: 0.88rem;
    color: var(--gray600);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-style: italic;
}
.ec-testi-author { display: flex; align-items: center; gap: 0.75rem; }
.ec-testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.ec-testi-card:hover .ec-testi-avatar { transform: scale(1.08); }
.ec-testi-name { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.ec-testi-class { font-size: 0.74rem; color: var(--gray400); }
.ec-testi-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.5rem;
}
.ec-testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray200);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .25s ease;
}
.ec-testi-dot.active {
    background: var(--orange);
    width: 22px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════
   FREE TEST SECTION
══════════════════════════════════════════ */
.ec-free-test {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}
.ec-free-test::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(37,99,235,.14) 0%, transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(13,148,136,.1) 0%, transparent 45%);
    pointer-events: none;
}
.ec-free-test-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
}
.ec-free-test-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--orange);
    display: block;
    margin-bottom: .6rem;
}
.ec-free-test-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}
.ec-free-test-title em { font-style: italic; color: var(--orange); }
.ec-free-test-sub {
    font-size: .95rem;
    color: rgba(255,255,255,.58);
    line-height: 1.7;
    max-width: 520px;
}
.ec-free-test-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.ec-test-meta-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    font-weight: 500;
}
.ec-test-meta-item strong { color: #fff; font-weight: 700; }
.ec-free-test-cta {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    min-width: 220px;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.ec-free-test-cta:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.22);
}
.ec-free-test-cta .test-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .75rem;
}
.ec-free-test-cta p {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.ec-btn-take-test {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: #fff;
    padding: .85rem 1.75rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s, transform .25s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 6px 20px rgba(37,99,235,.4);
    width: 100%;
}
.ec-btn-take-test:hover {
    opacity: .92;
    transform: translateY(-3px) scale(1.02);
    color: #fff;
}

/* ══════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════ */
.cta-section {
    transition: background 0.3s ease;
}
.btn-cta-main {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease !important;
}
.btn-cta-main:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(37,99,235,.35) !important;
}
.btn-cta-sec {
    transition: transform 0.25s ease !important;
}
.btn-cta-sec:hover {
    transform: translateY(-2px) !important;
}

/* ══════════════════════════════════════════
   REVIEW MODAL
══════════════════════════════════════════ */
.ec-review-modal-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(10,22,40,0.7);
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.25s ease;
}
.ec-review-modal-wrap.open { display: flex; }
.ec-review-modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.ec-review-modal-head {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ec-review-modal-head h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.ec-review-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.ec-review-modal-close:hover { background: rgba(255,255,255,0.2); }
.ec-review-modal-body { padding: 22px; }
.ec-review-field { margin-bottom: 14px; }
.ec-review-lbl {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gray600);
    display: block;
    margin-bottom: 5px;
}
.ec-review-inp {
    width: 100%;
    border: 1px solid var(--gray200);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ec-review-inp:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.ec-review-textarea { resize: vertical; min-height: 80px; }
.ec-star-input { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
.ec-star-input input { display: none; }
.ec-star-input label { font-size: 1.6rem; color: var(--gray200); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.ec-star-input label:hover { transform: scale(1.2); }
.ec-star-input input:checked ~ label,
.ec-star-input label:hover,
.ec-star-input label:hover ~ label { color: var(--saffron); }
.ec-review-success { display: none; text-align: center; padding: 1.5rem; }
.ec-review-success .success-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.ec-review-success p { font-size: 0.9rem; color: var(--gray600); }
.ec-btn-submit-review {
    width: 100%;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    margin-top: 4px;
}
.ec-btn-submit-review:hover { opacity: 0.9; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   SMOOTH SCROLL
══════════════════════════════════════════ */
html { scroll-behavior: smooth; }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ec-stats-inner     { grid-template-columns: repeat(2, 1fr); }
    .ec-faculty-grid    { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .ec-courses-grid    { grid-template-columns: repeat(2, 1fr); }
    .ec-free-test-inner { grid-template-columns: 1fr; }
    .ec-free-test-cta   { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (max 640px)
══════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Ticker */
    .ec-ticker-wrap    { height: 42px; }
    .ec-ticker-label   { padding: 0 0.75rem; font-size: 0.6rem; gap: 5px; }
    .ec-ticker-title   { font-size: 0.76rem; }
    .ec-ticker-more    { padding: 0 0.65rem; font-size: 0.62rem; }
    .ec-ticker-track   { animation-duration: 18s; }
    .ec-ticker-dot     { width: 6px; height: 6px; }
    .ec-ticker-item    { padding: 0 1.2rem; gap: 7px; }
    .ec-ticker-label::after {
        border-top: 21px solid transparent;
        border-bottom: 21px solid transparent;
    }

    /* Stats */
    .ec-stats           { padding: 2.5rem 1.25rem; }
    .ec-stats-inner     { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ec-stat-num        { font-size: 1.8rem; }
    .ec-stat-box        { padding: 1.25rem 0.75rem; border-radius: 12px; }

    /* Faculty */
    .ec-faculty         { padding: 3.5rem 1.25rem; }
    .ec-faculty-grid    { grid-template-columns: 1fr; }
    .ec-faculty-photo   { height: 200px; }

    /* Courses */
    .ec-courses         { padding: 3.5rem 1.25rem; }
    .ec-courses-grid    { grid-template-columns: 1fr; }

    /* Testimonials */
    .ec-testimonials    { padding: 3.5rem 1.25rem; }
    .ec-testi-card      { min-width: 260px; padding: 1.35rem; }

    /* Free Test */
    .ec-free-test       { padding: 3rem 1.25rem; }
    .ec-free-test-meta  { gap: 0.85rem; }
    .ec-test-meta-item  { font-size: .76rem; }

    /* Headings */
    .ec-heading         { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* View All */
    .ec-btn-viewall     { padding: 0.65rem 1.5rem; font-size: 0.85rem; }

    /* Disable heavy hover on touch */
    .ec-faculty-card:hover,
    .ec-course-card:hover,
    .ec-testi-card:hover { transform: none; box-shadow: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 400px)
══════════════════════════════════════════ */
@media (max-width: 400px) {
    .ec-stats-inner     { grid-template-columns: 1fr; }
    .ec-testi-card      { min-width: 90vw; }
    .ec-faculty-photo   { height: 180px; }
    .ec-free-test-cta   { padding: 1.5rem; }
}

/* ══════════════════════════════════════════
   SCROLL-TRIGGERED ANIMATION SCRIPT HELPER
   (Add this <script> to your Blade layout)
══════════════════════════════════════════
<script>
document.addEventListener('DOMContentLoaded', function() {
    const obs = new IntersectionObserver((entries) => {
        entries.forEach(e => {
            if (e.isIntersecting) {
                e.target.classList.add('visible');
                obs.unobserve(e.target);
            }
        });
    }, { threshold: 0.12 });

    document.querySelectorAll('.ec-animate, .ec-animate-left, .ec-animate-right, .ec-animate-scale')
            .forEach(el => obs.observe(el));
});
</script>
══════════════════════════════════════════ */