/* =========================================================
   Hero feature cards (CBC aligned / IGCSE ready / Pay your way / Learn anywhere)
   Upload to: public_html/public/assets/css/learnico-features.css
   Must be linked AFTER learnico-nav.css in app/includes/header.php
   ========================================================= */

/* ---- layout: 4 equal cards ---- */
.hero .hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* ---- the card ---- */
.hero .hero-features .hf {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-align: left;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .24);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    animation: hfRise .6s ease both;
}
.hero .hero-features .hf:nth-child(2) { animation-delay: .08s; }
.hero .hero-features .hf:nth-child(3) { animation-delay: .16s; }
.hero .hero-features .hf:nth-child(4) { animation-delay: .24s; }

.hero .hero-features .hf:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, .5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .38), 0 0 0 1px var(--hf-glow);
}

/* ---- the icon badge ---- */
.hero .hero-features .hf i {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0;
    font-size: 23px;
    line-height: 1;
    color: #fff;
    border-radius: 16px;
    background: var(--hf-grad);
    box-shadow: 0 8px 20px var(--hf-glow), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .3s ease;
}
.hero .hero-features .hf:hover i {
    transform: scale(1.1) rotate(-6deg);
}

/* one colour per card so each is instantly recognisable */
.hero .hero-features .hf:nth-child(1) { --hf-grad: linear-gradient(135deg, #34d399, #059669); --hf-glow: rgba(16, 185, 129, .55); }  /* green  - CBC      */
.hero .hero-features .hf:nth-child(2) { --hf-grad: linear-gradient(135deg, #60a5fa, #2563eb); --hf-glow: rgba(59, 130, 246, .55); }  /* blue   - IGCSE    */
.hero .hero-features .hf:nth-child(3) { --hf-grad: linear-gradient(135deg, #fbbf24, #d97706); --hf-glow: rgba(245, 158, 11, .55); }  /* amber  - payments */
.hero .hero-features .hf:nth-child(4) { --hf-grad: linear-gradient(135deg, #c084fc, #7c3aed); --hf-glow: rgba(168, 85, 247, .55); }  /* purple - anywhere */

/* ---- the text ---- */
.hero .hero-features .hf > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    text-align: left;
}
.hero .hero-features .hf b {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.hero .hero-features .hf span {
    display: block;
    margin: 0;
    font-size: .86rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .85);
}

/* ---- tablets: 2 x 2 ---- */
@media (max-width: 1000px) {
    .hero .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- phones: one per row, a little smaller ---- */
@media (max-width: 560px) {
    .hero .hero-features { grid-template-columns: 1fr; gap: 12px; }
    .hero .hero-features .hf { padding: 13px 14px; }
    .hero .hero-features .hf i { flex-basis: 46px; width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
}

@keyframes hfRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* respect people who turn animations off on their device */
@media (prefers-reduced-motion: reduce) {
    .hero .hero-features .hf,
    .hero .hero-features .hf i { animation: none; transition: none; }
}
