/* Executiveprofile — from ethiopian-executive-profile-redesign */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap");

.ep-root {
    --ep-green-900: #13401a;
    --ep-green-800: #1b5e20;
    --ep-brand: #2e7d32;
    --ep-gold: #f2b632;
    --ep-ink: #142016;
    --ep-ink-2: #3c4a3e;
    --ep-muted: #6a786c;
    --ep-line: #e2eae2;
    --ep-bg-alt: #f4f8f4;
    --ep-max: 1400px;
    --ep-shadow: 0 1px 2px rgba(19, 64, 26, 0.06), 0 8px 28px rgba(19, 64, 26, 0.08);
    --ep-shadow-lg: 0 20px 50px rgba(19, 64, 26, 0.18);
    font-family: Manrope, system-ui, sans-serif;
    color: var(--ep-ink);
}

.ep-wrap {
    max-width: var(--ep-max);
    margin: 0 auto;
    padding: 0 24px;
}

.ep-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ep-brand);
}

.ep-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--ep-gold);
    border-radius: 2px;
}

/* CEO */
.ep-ceo-sec {
    padding: 72px 0 24px;
}

.ep-ceo {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 64px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--ep-shadow);
}

.ep-ceo-photo {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ep-bg-alt);
    position: relative;
}

.ep-ceo-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.ep-ceo-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--ep-brand) 0 50%, var(--ep-gold) 50% 80%, #d6312b 80%);
}

.ep-ceo-name {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    color: var(--ep-green-900);
    line-height: 1.08;
    margin: 14px 0 8px;
}

.ep-ceo-role {
    font-weight: 700;
    color: var(--ep-brand);
    font-size: 17px;
}

.ep-ceo-bio {
    font-size: 18px;
    color: var(--ep-ink-2);
    margin: 22px 0 0;
    max-width: 560px;
    border-left: 3px solid var(--ep-gold);
    padding-left: 20px;
    line-height: 1.6;
}

.ep-ceo-bio p {
    margin: 0 0 0.75rem;
}

.ep-ceo-bio p:last-child {
    margin-bottom: 0;
}

/* Team */
.ep-team-sec {
    padding: 40px 0 72px;
}

.ep-team-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.ep-team-title {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    color: var(--ep-green-900);
    letter-spacing: -0.01em;
    margin: 10px 0 0;
    line-height: 1.15;
}

.ep-team-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ep-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: 999px;
    padding: 0 16px;
    height: 46px;
    min-width: 280px;
}

.ep-search svg {
    width: 18px;
    height: 18px;
    color: var(--ep-muted);
    flex: none;
}

.ep-search input {
    border: 0;
    outline: 0;
    font: 500 15px Manrope, system-ui, sans-serif;
    flex: 1;
    min-width: 0;
    background: transparent;
}

.ep-search:focus-within {
    border-color: var(--ep-brand);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.ep-group {
    margin-bottom: 48px;
}

.ep-group:last-of-type {
    margin-bottom: 24px;
}

.ep-group-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ep-muted);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ep-line);
}

.ep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.ep-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 26px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--ep-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
    cursor: default;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

.ep-card:hover {
    box-shadow: var(--ep-shadow-lg);
    transform: translateY(-3px);
}

.ep-card-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #eef4ee, #d6e6d7);
}

.ep-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.ep-card-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ep-brand) 0 50%, var(--ep-gold) 50% 80%, #d6312b 80%);
}

.ep-mono {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: Fraunces, Georgia, serif;
    font-size: 52px;
    font-weight: 600;
    color: var(--ep-brand);
    background: linear-gradient(160deg, #eef4ee, #d6e6d7);
}

.ep-ceo-photo .ep-mono {
    font-size: 72px;
}

.ep-card-body {
    padding: 10px 6px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ep-card-role {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ep-brand);
    line-height: 1.5;
}

.ep-card-role::before {
    content: "";
    flex: none;
    width: 18px;
    height: 2px;
    background: var(--ep-gold);
    margin-top: 8px;
}

.ep-card-name {
    font-family: Fraunces, Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--ep-green-900);
    line-height: 1.15;
    margin: 0;
}

.ep-card-bio {
    margin-top: 6px;
    font-size: 15px;
    color: var(--ep-ink-2);
    border-left: 3px solid var(--ep-gold);
    padding-left: 14px;
    line-height: 1.65;
}

.ep-card-bio p {
    margin: 0 0 0.65rem;
}

.ep-card-bio p:last-child {
    margin-bottom: 0;
}

.ep-noresult {
    text-align: center;
    color: var(--ep-muted);
    padding: 40px 0;
    margin: 0;
}

/* Modal — title, role, bio only (no image) */
.ep-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ep-modal.is-open {
    display: flex;
}

.ep-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(13, 40, 17, 0.6);
    backdrop-filter: blur(6px);
}

.ep-modal-box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--ep-shadow-lg);
    animation: epModalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

@keyframes epModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ep-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--ep-line);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ep-green-800);
}

.ep-modal-close svg {
    width: 18px;
    height: 18px;
}

.ep-modal-body {
    padding: 40px 36px 36px;
}

.ep-modal-role {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ep-brand);
    line-height: 1.5;
}

.ep-modal-role::before {
    content: "";
    flex: none;
    width: 18px;
    height: 2px;
    background: var(--ep-gold);
    margin-top: 8px;
}

.ep-modal-title {
    font-family: Fraunces, Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--ep-green-900);
    line-height: 1.15;
    margin: 10px 0 6px;
}

.ep-modal-bio {
    margin-top: 22px;
    color: var(--ep-ink-2);
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
}

body.ep-modal-open {
    overflow: hidden;
}

/* Reveal */
.ep-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ep-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 1080px) {
    .ep-ceo {
        grid-template-columns: 300px 1fr;
        gap: 36px;
    }

    /* Tablet: photo left, text right — same card size */
    .ep-card {
        grid-template-columns: 200px 1fr;
        gap: 22px;
    }
}

@media (max-width: 720px) {
    .ep-ceo-sec {
        padding: 40px 0 16px;
    }

    .ep-wrap {
        padding: 0 16px;
    }

    .ep-ceo {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
        border-radius: 22px;
    }

    .ep-ceo-photo {
        aspect-ratio: 1 / 1;
    }

    .ep-team-head {
        align-items: stretch;
    }

    .ep-search {
        min-width: 0;
        width: 100%;
    }

    /* Mobile: photo on top, text below (CEO stack pattern), keep compact card size */
    .ep-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: 18px;
        align-items: stretch;
    }

    .ep-card-photo {
        aspect-ratio: 4 / 5;
        max-width: 200px;
        margin: 0 auto;
    }

    .ep-mono {
        font-size: 32px;
    }

    .ep-card-name {
        font-size: 19px;
    }

    .ep-card-bio {
        font-size: 14px;
    }

    .ep-card-role {
        font-size: 10.5px;
    }

    .ep-card-body {
        padding: 4px 0 0;
    }

    .ep-modal {
        padding: 0;
        align-items: flex-end;
    }

    .ep-modal-box {
        border-radius: 22px 22px 0 0;
        max-height: 92vh;
    }

    .ep-modal-body {
        padding: 28px 24px 32px;
    }

    .ep-modal-title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ep-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ep-modal-box {
        animation: none;
    }
}
