/* ============================================
   features.css — EduCoach Features Page
   Matches home.css color pattern exactly
   ============================================ */

/* ---------- HERO ---------- */
.feat-hero {
    background: #f5f0e8;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.feat-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.feat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e2d9cc;
    color: #666;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}
.feat-hero-badge span { color: #e8651a; }

.feat-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #0a1628;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
}
.feat-hero-title em {
    font-style: italic;
    color: #e8651a;
}

.feat-hero-sub {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 460px;
}

.feat-hero-nums {
    display: flex;
    gap: 2.5rem;
}
.feat-hero-nums strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0a1628;
    line-height: 1;
    margin-bottom: .2rem;
}
.feat-hero-nums span {
    font-size: .78rem;
    color: #94a3b8;
}

/* Right side mini feature list */
.feat-hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(10,22,40,.1);
    border: 1px solid #e8e0d5;
}
.feat-hero-card-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94a3b8;
    margin-bottom: 1.1rem;
}
.feat-hero-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem .9rem;
    border-radius: 12px;
    margin-bottom: .5rem;
    transition: background .18s;
}
.feat-hero-item:hover { background: #f8fafc; }
.feat-hero-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.feat-hero-item-text {
    font-size: .86rem;
    font-weight: 600;
    color: #0a1628;
}
.feat-hero-item-check {
    margin-left: auto;
    color: #16a34a;
    font-size: 1rem;
}

/* ---------- MAIN FEATURES SECTION ---------- */
.feat-main {
    background: #fff;
    padding: 5rem 2rem;
}
.feat-main-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.feat-main-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.feat-main-header .ec-subtext {
    margin: 0 auto;
    max-width: 540px;
}

/* Grid */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Card */
.feat-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    border: 1px solid #e8e0d5;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    animation: featCardIn .4s ease both;
    position: relative;
    overflow: hidden;
}
.feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8651a, #c0501a);
    opacity: 0;
    transition: opacity .25s;
}
.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(10,22,40,.1);
    background: #fff;
}
.feat-card:hover::before { opacity: 1; }

@keyframes featCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.feat-grid .feat-card:nth-child(1) { animation-delay: .04s; }
.feat-grid .feat-card:nth-child(2) { animation-delay: .08s; }
.feat-grid .feat-card:nth-child(3) { animation-delay: .12s; }
.feat-grid .feat-card:nth-child(4) { animation-delay: .16s; }
.feat-grid .feat-card:nth-child(5) { animation-delay: .20s; }
.feat-grid .feat-card:nth-child(6) { animation-delay: .24s; }

.feat-card-emoji {
    font-size: 2.2rem;
    margin-bottom: 1.1rem;
    display: block;
    line-height: 1;
}
.feat-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: .6rem;
    line-height: 1.3;
}
.feat-card-desc {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.feat-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.feat-card-list li {
    font-size: .78rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.feat-card-list li::before {
    content: '✓';
    color: #e8651a;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

/* ---------- HOW IT WORKS STRIP ---------- */
.feat-how {
    background: #f5f0e8;
    padding: 5rem 2rem;
}
.feat-how-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.feat-how-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.feat-how-header .ec-subtext { margin: 0 auto; max-width: 500px; }

.feat-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
/* connecting line */
.feat-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #e8651a, #c0501a);
    opacity: .25;
    z-index: 0;
}
.feat-step {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: featCardIn .4s ease both;
}
.feat-step:nth-child(1) { animation-delay: .05s; }
.feat-step:nth-child(2) { animation-delay: .12s; }
.feat-step:nth-child(3) { animation-delay: .19s; }
.feat-step:nth-child(4) { animation-delay: .26s; }

.feat-step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    box-shadow: 0 6px 18px rgba(232,101,26,.3);
}
.feat-step-title {
    font-size: .95rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: .4rem;
}
.feat-step-desc {
    font-size: .8rem;
    color: #64748b;
    line-height: 1.65;
}

/* ---------- CTA ---------- */
.feat-cta {
    background: #0a1628;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.feat-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(232,101,26,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(13,148,136,.08) 0%, transparent 45%);
    pointer-events: none;
}
.feat-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
}
.feat-cta-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #e8651a;
    display: block;
    margin-bottom: .75rem;
}
.feat-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .9rem;
    letter-spacing: -.02em;
}
.feat-cta-title em { font-style: italic; color: #e8651a; }
.feat-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.55);
    line-height: 1.75;
    margin-bottom: 2rem;
}
.feat-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.feat-btn-orange {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #e8651a;
    color: #fff;
    padding: .9rem 2rem;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s, transform .18s;
    box-shadow: 0 6px 20px rgba(232,101,26,.35);
}
.feat-btn-orange:hover {
    background: #c0501a;
    transform: translateY(-2px);
    color: #fff;
}
.feat-btn-white {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,.25);
    color: #fff;
    padding: .9rem 2rem;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s, background .18s;
}
.feat-btn-white:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.07);
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .feat-grid  { grid-template-columns: repeat(2, 1fr); }
    .feat-steps { grid-template-columns: repeat(2, 1fr); }
    .feat-steps::before { display: none; }
    .feat-hero-inner { grid-template-columns: 1fr; }
    .feat-hero-card  { display: none; }
}
@media (max-width: 640px) {
    .feat-grid  { grid-template-columns: 1fr; }
    .feat-steps { grid-template-columns: 1fr 1fr; }
    .feat-hero-nums { gap: 1.5rem; }
}
@media (max-width: 400px) {
    .feat-steps { grid-template-columns: 1fr; }
}