/* EthioSchool landing page - product tour player and modern feature cards */

:root {
    --es-green: #078930;
    --es-yellow: #fcdd09;
    --es-red: #da121a;
    --es-blue: #0f47af;
    --es-ink: #10233f;
    --es-text: #3d4852;
    --es-muted: #5f6b7a;
    --es-card: #ffffff;
    --es-line: #e3e8ef;
}

.es-section-sub {
    margin: 8px auto 0;
    max-width: 640px;
    color: var(--es-muted);
    font-size: 17px;
}

/* ---------- Product tour player ---------- */
.es-tour {
    position: relative;
    max-width: 1080px;
    margin: 30px auto 0;
    border-radius: 18px;
    overflow: hidden;
    background: #0c1c33;
    box-shadow: 0 24px 60px rgba(16, 35, 63, 0.28);
    outline: none;
}
.es-tour::before {
    /* tibeb-style top edge in flag colours */
    content: "";
    position: absolute;
    z-index: 3;
    left: 0; right: 0; top: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--es-green) 0 33.3%, var(--es-yellow) 33.3% 66.6%, var(--es-red) 66.6% 100%);
}
.es-tour:focus-visible { box-shadow: 0 0 0 3px var(--es-yellow), 0 24px 60px rgba(16, 35, 63, 0.28); }

.es-tour-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.es-tour-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.es-tour-slide.is-active { opacity: 1; z-index: 1; }
.es-tour-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
}
.es-tour.is-playing .es-tour-slide.is-active img { animation: es-kenburns 6s ease-out forwards; }
@keyframes es-kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.06) translate(-1%, -1%); }
}
.es-tour-slide figcaption {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(88%, 820px);
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(8, 18, 34, 0.82);
    backdrop-filter: blur(6px);
    text-align: center;
    color: #fff;
}
.es-cap-en { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; }
.es-cap-am { display: block; margin-top: 4px; font-size: 16px; color: var(--es-yellow); font-family: "Nyala", "Ebrima", "Noto Sans Ethiopic", sans-serif; }

.es-tour-big-play {
    position: absolute;
    z-index: 2;
    left: 50%; top: 42%;
    transform: translate(-50%, -50%);
    width: 86px; height: 86px;
    border: 0;
    border-radius: 50%;
    background: var(--es-yellow);
    color: var(--es-ink);
    font-size: 30px;
    padding-left: 6px;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(252, 221, 9, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, opacity 0.3s ease;
}
.es-tour-big-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.es-tour.is-playing .es-tour-big-play { opacity: 0; pointer-events: none; }

.es-tour-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #0c1c33;
    color: #fff;
}
.es-tour-btn {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}
.es-tour-btn:hover, .es-tour-btn:focus-visible { background: rgba(255, 255, 255, 0.24); outline: none; }
.es-tour-toggle { background: var(--es-yellow); color: var(--es-ink); }
.es-tour-toggle:hover, .es-tour-toggle:focus-visible { background: #ffe94d; }
.es-tour-progress { flex: 1 1 auto; display: flex; gap: 6px; }
.es-tour-seg {
    flex: 1 1 0;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
}
.es-tour-seg span { display: block; height: 100%; width: 0; background: var(--es-yellow); }
.es-tour-time { flex: 0 0 auto; font-size: 14px; font-variant-numeric: tabular-nums; color: #d8e0ea; min-width: 92px; text-align: right; }

@media (max-width: 767px) {
    .es-tour { border-radius: 12px; }
    .es-tour-slide figcaption { bottom: 10px; padding: 8px 12px; }
    .es-cap-en { font-size: 14px; }
    .es-cap-am { font-size: 13px; }
    .es-tour-big-play { width: 64px; height: 64px; font-size: 22px; }
    .es-tour-time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .es-tour.is-playing .es-tour-slide.is-active img { animation: none; }
    .es-tour-slide { transition: none; }
}

/* ---------- Modern feature cards ---------- */
.es-features { background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%); }
.es-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 36px;
}
.es-feature-card {
    position: relative;
    padding: 26px 24px 24px;
    border-radius: 16px;
    background: var(--es-card);
    border: 1px solid var(--es-line);
    box-shadow: 0 4px 14px rgba(16, 35, 63, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.es-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 35, 63, 0.12);
    border-color: transparent;
}
.es-feature-card::after {
    content: "";
    position: absolute;
    left: 24px; right: 24px; bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.es-feature-card:hover::after { transform: scaleX(1); }
.es-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    border-radius: 14px;
    font-size: 23px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 18px var(--accent-shadow);
}
.es-accent-green  { --accent: linear-gradient(135deg, #0a9a3a, #06702a); --accent-shadow: rgba(7, 137, 48, 0.28); }
.es-accent-blue   { --accent: linear-gradient(135deg, #1a5fd6, #0f3f9a); --accent-shadow: rgba(15, 71, 175, 0.28); }
.es-accent-red    { --accent: linear-gradient(135deg, #e0262e, #a80e15); --accent-shadow: rgba(218, 18, 26, 0.26); }
.es-accent-yellow { --accent: linear-gradient(135deg, #f5b800, #c98a00); --accent-shadow: rgba(201, 138, 0, 0.3); }
.es-feature-title {
    margin: 18px 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--es-ink);
    line-height: 1.3;
}
.es-feature-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--es-text); }

.es-more {
    margin-top: 44px;
    padding: 26px 28px;
    border-radius: 16px;
    background: var(--es-ink);
    color: #fff;
}
.es-more-title { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #fff; }
.es-more-title span { color: var(--es-yellow); font-weight: 600; }
.es-more-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.es-more-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    color: #f1f4f8;
}
.es-more-list li i { color: var(--es-yellow); }

@media (max-width: 575px) {
    .es-feature-grid { grid-template-columns: 1fr; }
    .es-more { padding: 20px 16px; }
}

/* only the current step's caption is visible during the crossfade */
.es-tour-slide figcaption { transition: opacity 0.25s ease; }
.es-tour-slide:not(.is-active) figcaption { opacity: 0; }
.es-tour-slide.is-active figcaption { transition-delay: 0.35s; }

/* remove the old theme's bullet dots inside the chips */
.es-more-list li::before, .es-more-list li:before { content: none !important; display: none !important; }
.es-more-list li { padding-left: 14px !important; margin: 0 !important; }

/* Phones: caption sits in its own strip under the picture instead of covering it */
@media (max-width: 767px) {
    .es-tour-stage { aspect-ratio: auto; height: calc((min(100vw, 1080px) - 30px) * 9 / 16 + 96px); }
    .es-tour-slide img { height: calc(100% - 96px); }
    .es-tour-slide figcaption {
        left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 96px;
        transform: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #0c1c33;
        backdrop-filter: none;
    }
    .es-tour-big-play { top: calc((100% - 96px) / 2); }
}
