/* =========================================================
   Al Mehdi Terbiya Center — Design System
   Deep teal identity, warm gold accents, calm educational tone.

   Typography:
   - English: Inter
   - Afaan Oromoo: Inter
   - Amharic: Noto Sans Ethiopic
   - Arabic readiness: handled through future font extension
   ========================================================= */


/* =========================================================
   ROOT / DESIGN TOKENS
   ========================================================= */

:root {
    /* ---------------------------------------------------------
       Brand
       --------------------------------------------------------- */
    --color-teal: #00616e;
    --color-teal-dark: #004d56;
    --color-teal-tint: #e6f1f2;

    --color-gold: #f5a623;
    --color-gold-dark: #eaa000;

    --color-slate: #111827;
    --color-bg: #f8fafa;
    --color-white: #ffffff;

    --color-border: #e3e9ea;

    --color-success: #1f8a4c;
    --color-danger: #c0392b;


    /* ---------------------------------------------------------
       Typography
       ---------------------------------------------------------

       English / Afaan Oromoo
       Both use Latin characters and Inter is the preferred UI font.
       --------------------------------------------------------- */

    --font-latin:
        'Inter',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;


    /* ---------------------------------------------------------
       Amharic / Ethiopic
       --------------------------------------------------------- */

    --font-ethiopic:
        'Noto Sans Ethiopic',
        'Noto Sans',
        sans-serif;


    /* ---------------------------------------------------------
       General multilingual fallback
       --------------------------------------------------------- */

    --font-body:
        'Inter',
        'Noto Sans Ethiopic',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;

    --font-display:
        'Inter',
        'Noto Sans Ethiopic',
        system-ui,
        -apple-system,
        sans-serif;

    --font-ui:
        'Inter',
        'Noto Sans Ethiopic',
        system-ui,
        -apple-system,
        sans-serif;


    /* ---------------------------------------------------------
       Layout
       --------------------------------------------------------- */

    --container-max: 1200px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm:
        0 2px 8px rgba(17, 24, 39, 0.06);

    --shadow-md:
        0 12px 32px rgba(0, 77, 86, 0.12);

    --header-height: 108px;

    --transition: 200ms ease;


    /* ---------------------------------------------------------
       Shared brand hero treatment
       --------------------------------------------------------- */

    --brand-teal-gradient:
        linear-gradient(
            155deg,
            var(--color-teal-dark) 0%,
            var(--color-teal) 55%,
            #003941 100%
        );

    --brand-pattern-svg:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23F5A623' stroke-width='1'%3E%3Crect x='10' y='10' width='60' height='60'/%3E%3Cpolygon points='40,0 80,40 40,80 0,40'/%3E%3C/g%3E%3C/svg%3E");
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);

    /*
     * Prevent mobile browsers from unexpectedly enlarging text.
     */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   LANGUAGE-AWARE TYPOGRAPHY
   ========================================================= */

/*
 * English
 */
html[lang="en"] body {
    font-family: var(--font-latin);
}


/*
 * Afaan Oromoo
 *
 * Afaan Oromoo normally uses Latin characters, therefore
 * Inter remains the primary font.
 */
html[lang="om"] body {
    font-family: var(--font-latin);
}


/*
 * Amharic
 *
 * Noto Sans Ethiopic becomes the primary font.
 */
html[lang="am"] body {
    font-family: var(--font-ethiopic);
}


/*
 * Generic fallback if lang is not present.
 */
body {
    margin: 0;

    font-family: var(--font-body);
    font-size: 1rem;

    color: var(--color-slate);
    background: var(--color-bg);

    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/*
 * Amharic needs more vertical breathing room.
 */
html[lang="am"] body {
    line-height: 1.8;
}


/* =========================================================
   SITE-WIDE BRAND WASH
   ========================================================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    opacity: 0.9;

    background: var(--brand-teal-gradient);

    pointer-events: none;
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    opacity: 0.1;

    background-image: var(--brand-pattern-svg);
    background-size: 80px 80px;

    pointer-events: none;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);

    font-weight: 700;

    line-height: 1.3;

    margin: 0 0 0.6em;

    color: var(--color-teal-dark);
}


/*
 * Desktop / general sizes
 */

h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

h4 {
    font-size: 1.05rem;
}

h5 {
    font-size: 1rem;
}


/*
 * Amharic heading typography
 */

html[lang="am"] h1,
html[lang="am"] h2,
html[lang="am"] h3,
html[lang="am"] h4,
html[lang="am"] h5 {
    font-family: var(--font-ethiopic);

    line-height: 1.45;

    /*
     * Do not use negative letter spacing with Ethiopic.
     */
    letter-spacing: 0;
}


/* =========================================================
   PARAGRAPHS / TEXT
   ========================================================= */

p {
    margin: 0 0 1em;

    font-size: 1rem;

    line-height: 1.65;
}


/*
 * Amharic paragraph spacing
 */

html[lang="am"] p {
    line-height: 1.85;
}


/*
 * Useful utility text sizes
 */

.text-small {
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-caption {
    font-size: 0.8125rem;
    line-height: 1.5;
}

html[lang="am"] .text-small {
    line-height: 1.75;
}

html[lang="am"] .text-caption {
    line-height: 1.7;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: var(--color-teal);
    text-decoration: none;
}


/* =========================================================
   MEDIA
   ========================================================= */

img {
    max-width: 100%;
    display: block;
}

ul {
    padding-left: 1.2em;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container-max);

    margin: 0 auto;

    padding: 0 20px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 64px 0;
    /* Without this, a plain .section (about.php/services.php/faq.php/
       contact.php/404.php gutters, and anywhere else that isn't
       explicitly --teal or --cream) is transparent and lets the fixed
       body::before/::after brand wash show through at full strength —
       which on 404.php in particular made the heading and body text
       nearly the same tone as the background behind it. .section--teal
       and .section--cream (below) still win via source order. */
    background: var(--color-bg);
}

.section--tight {
    padding: 40px 0;
}


/* =========================================================
   TEAL SECTION
   ========================================================= */

.section--teal {
    position: relative;

    overflow: hidden;

    background: var(--brand-teal-gradient);

    color: #eaf5f6;
}

.section--teal::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.14;

    background-image: var(--brand-pattern-svg);
    background-size: 80px 80px;

    pointer-events: none;

    -webkit-mask-image:
        radial-gradient(
            ellipse 90% 90% at 50% 40%,
            #000 40%,
            transparent 100%
        );

    mask-image:
        radial-gradient(
            ellipse 90% 90% at 50% 40%,
            #000 40%,
            transparent 100%
        );
}

.section--teal > .container {
    position: relative;
}

.section--teal h2,
.section--teal h3 {
    color: #ffffff;
}


/* =========================================================
   CREAM SECTION
   ========================================================= */

.section--cream {
    background: var(--color-teal-tint);
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    text-align: center;

    max-width: 720px;

    margin: 0 auto 40px;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: inline-block;

    color: var(--color-gold-dark);

    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    font-size: 0.8rem;

    line-height: 1.4;

    margin-bottom: 0.6em;
}


/*
 * Amharic should not be forced into uppercase.
 */

html[lang="am"] .eyebrow {
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.6;
}


/* =========================================================
   SKIP LINK
   ========================================================= */

.skip-link {
    position: absolute;

    left: -9999px;
    top: 0;

    background: var(--color-teal-dark);
    color: #fff;

    padding: 12px 20px;

    z-index: 1000;

    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 28px;

    min-height: 48px;

    border-radius: 999px;

    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;

    line-height: 1.3;

    border: 2px solid transparent;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}


/*
 * Amharic buttons
 */

html[lang="am"] .btn {
    font-family: var(--font-ethiopic);
    line-height: 1.45;
}


/* Primary */

.btn-primary {
    background: var(--color-gold);

    color: var(--color-teal-dark);

    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-gold-dark);
}


/* Outline */

.btn-outline {
    background: transparent;

    border-color: currentColor;

    color: inherit;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* Teal */

.btn-teal {
    background: var(--color-teal);

    color: #fff;
}

.btn-teal:hover {
    background: var(--color-teal-dark);
}


.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   TOP UTILITY BAR
   ========================================================= */

.topbar {
    background: var(--color-teal-dark);

    color: #d9ecee;

    font-family: var(--font-ui);

    font-size: 0.85rem;

    line-height: 1.5;
}

html[lang="am"] .topbar {
    font-family: var(--font-ethiopic);

    line-height: 1.7;
}

.topbar .container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding-top: 8px;
    padding-bottom: 8px;

    flex-wrap: wrap;
}

.topbar__links {
    display: flex;

    align-items: center;

    gap: 18px;
}

.topbar a {
    color: #d9ecee;
}

.topbar a:hover {
    color: var(--color-gold);
}

.topbar__icon {
    display: inline-block;

    width: 16px;
    height: 16px;

    vertical-align: -3px;

    margin-inline-end: 4px;
}


/* =========================================================
   LANGUAGE SELECT
   ========================================================= */

.lang-select-form {
    display: inline-flex;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;

    background:
        rgba(255, 255, 255, 0.12)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        no-repeat
        right 8px center / 14px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    color: #fff;

    font-family: var(--font-ui);

    font-weight: 600;

    font-size: 0.85rem;

    padding: 5px 26px 5px 10px;

    border-radius: 6px;

    cursor: pointer;
}

html[lang="am"] .lang-select {
    font-family: var(--font-ethiopic);
}

.lang-select option {
    color: var(--color-slate);
}

.lang-select:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}


/* Footer language */

.footer-grid .lang-select-form {
    margin-top: 4px;
}

.footer-grid .lang-select {
    background-color: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    background: var(--color-white);

    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-top: 14px;
    padding-bottom: 14px;

    gap: 16px;
}

.site-header__left {
    display: flex;

    align-items: center;

    gap: 16px;
}


/* =========================================================
   COMPACT LANGUAGE SELECT
   ========================================================= */

.lang-select--compact {
    background:
        var(--color-teal-tint)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004d56' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        no-repeat
        right 8px center / 12px;

    border: 1px solid var(--color-border);

    color: var(--color-teal-dark);

    width: 66px;

    padding: 7px 22px 7px 12px;

    border-radius: 999px;

    flex-shrink: 0;
}

.lang-select--compact:hover {
    background-color: #dcebec;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--color-teal-dark);
}

.brand__mark {
    height: 44px;

    width: auto;

    flex-shrink: 0;

    object-fit: contain;
}

.brand__text {
    line-height: 1.25;
}

.brand__name {
    font-family: var(--font-display);

    font-weight: 750;

    font-size: 1.05rem;

    line-height: 1.25;

    display: block;
}

.brand__tagline {
    font-size: 0.72rem;

    line-height: 1.4;

    color: var(--color-gold-dark);

    font-weight: 600;
}

html[lang="am"] .brand__name {
    font-family: var(--font-ethiopic);

    font-size: 1rem;

    line-height: 1.4;
}

html[lang="am"] .brand__tagline {
    line-height: 1.6;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-nav__list {
    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;

    padding: 0;
    margin: 0;
}

.main-nav__list a {
    color: var(--color-slate);

    font-family: var(--font-ui);

    font-size: 0.95rem;

    font-weight: 600;

    line-height: 1.4;

    padding: 8px 2px;

    position: relative;
}

html[lang="am"] .main-nav__list a {
    font-family: var(--font-ethiopic);

    font-size: 0.95rem;

    line-height: 1.6;
}

.main-nav__list a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--color-gold);

    transform: scaleX(0);

    transition: transform var(--transition);
}

.main-nav__list a:hover::after,
.main-nav__list a[aria-current="page"]::after {
    transform: scaleX(1);
}

.main-nav__list a[aria-current="page"] {
    color: var(--color-teal-dark);
}

.header-actions {
    display: flex;

    align-items: center;

    gap: 14px;
}


/* =========================================================
   NAV TOGGLE
   ========================================================= */

.nav-toggle {
    display: none;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    width: 44px;
    height: 44px;

    border-radius: var(--radius-sm);

    border: 1px solid var(--color-border);

    background: var(--color-white);

    cursor: pointer;
}

.nav-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--color-teal-dark);

    margin: 0 auto;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 80px 0 96px;

    color: #fff;
}

.hero__grid {
    position: relative;

    display: grid;

    gap: 44px;

    align-items: center;
}

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 0.95fr 1.05fr;

        gap: 56px;
    }
}

.hero__eyebrow {
    color: #ffd489;
}

.hero__headline {
    color: #fff;

    max-width: 20ch;

    font-size: clamp(2rem, 4.4vw, 3.4rem);

    line-height: 1.18;

    letter-spacing: -0.02em;
}


/*
 * Amharic hero heading
 */

html[lang="am"] .hero__headline {
    font-family: var(--font-ethiopic);

    max-width: 100%;

    font-size: clamp(1.8rem, 4.2vw, 3rem);

    line-height: 1.4;

    letter-spacing: 0;
}


.hero__sub {
    font-size: 1.08rem;

    line-height: 1.7;

    color: #dff1f2;

    max-width: 52ch;
}

html[lang="am"] .hero__sub {
    font-family: var(--font-ethiopic);

    font-size: 1.02rem;

    line-height: 1.85;

    max-width: 100%;
}


.hero__cta {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}

/* =========================================================
   HERO BADGES
   ========================================================= */

.hero__badges {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    list-style: none;

    padding: 0;

    margin: 24px 0 4px;
}

.hero__badges li {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.25);

    padding: 8px 14px 8px 8px;

    border-radius: 999px;

    font-size: 0.82rem;

    font-weight: 700;

    line-height: 1.4;

    backdrop-filter: blur(4px);
}

html[lang="am"] .hero__badges li {
    font-family: var(--font-ethiopic);

    line-height: 1.6;
}

.hero__badge-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: var(--color-gold);

    color: var(--color-teal-dark);

    flex-shrink: 0;
}

.hero__badge-icon svg {
    width: 13px;
    height: 13px;
}


/* =========================================================
   HERO MEDIA
   ========================================================= */

.hero__media {
    position: relative;
}

.hero__media-frame {
    position: relative;

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35);

    border:
        3px solid rgba(245, 166, 35, 0.55);

    background: rgba(255, 255, 255, 0.06);

    line-height: 0;
}

.hero__media::before {
    content: "";

    position: absolute;

    inset: -18px -18px auto auto;

    width: 100px;
    height: 100px;

    background:
        radial-gradient(
            circle,
            rgba(245, 166, 35, 0.4),
            transparent 70%
        );

    z-index: -1;

    display: none;
}

@media (min-width: 900px) {
    .hero__media {
        order: -1;
    }

    .hero__media::before {
        display: block;
    }
}

.hero__video {
    display: block;

    width: 100%;

    height: auto;

    max-height: 70vh;
}


/* =========================================================
   FEATURE / VALUE PROP GRID
   ========================================================= */

.grid {
    display: grid;

    gap: 24px;
}

.grid--4 {
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
}

.grid--3 {
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));
}

.grid--2 {
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--color-white);

    border-radius: var(--radius-md);

    padding: 28px;

    box-shadow: var(--shadow-sm);

    border: 1px solid var(--color-border);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

    color: var(--color-slate);

    font-family: var(--font-body);
}

.card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

.card h2,
.card h3 {
    line-height: 1.35;
}

.card p {
    font-size: 0.98rem;

    line-height: 1.65;
}

html[lang="am"] .card h2,
html[lang="am"] .card h3 {
    font-family: var(--font-ethiopic);

    line-height: 1.5;
}

html[lang="am"] .card p {
    font-family: var(--font-ethiopic);

    line-height: 1.8;
}


/* =========================================================
   CARD ICON
   ========================================================= */

.card__icon {
    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: var(--color-teal-tint);

    color: var(--color-teal);

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
}

.card__icon svg {
    width: 26px;
    height: 26px;
}

.card--gold-icon .card__icon {
    background: #fef3e1;

    color: var(--color-gold-dark);
}


/* =========================================================
   CARD ICON + TITLE ROW
   ========================================================= */

.card-icon-row {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 14px;
}

.card-icon-row .card__icon {
    margin-bottom: 0;

    flex-shrink: 0;
}

.card-icon-row h2,
.card-icon-row h3 {
    margin-bottom: 0;
}

.card--center {
    text-align: center;
}

.card--center .program-card__actions {
    justify-content: center;
}


/* =========================================================
   READ MORE
   ========================================================= */

.readmore__toggle {
    display: block;

    background: none;

    border: none;

    padding: 0;

    margin-top: 4px;

    color: var(--color-teal);

    font-weight: 700;

    font-size: 0.9rem;

    line-height: 1.5;

    cursor: pointer;
}

.readmore__toggle:hover {
    text-decoration: underline;
}


/* =========================================================
   PROGRAM CARDS
   ========================================================= */

.program-card {
    display: flex;

    flex-direction: column;

    height: 100%;
}

.program-card__desc {
    flex-grow: 1;

    color: #4b5563;
}

.program-card__actions {
    display: flex;

    gap: 12px;

    margin-top: 16px;

    flex-wrap: wrap;
}

.program-card__link {
    font-weight: 700;

    color: var(--color-teal);
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-block;

    padding: 4px 12px;

    border-radius: 999px;

    background: var(--color-teal-tint);

    color: var(--color-teal-dark);

    font-size: 0.75rem;

    font-weight: 700;

    line-height: 1.5;
}

.badge--icon {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.badge--icon svg {
    width: 14px;
    height: 14px;

    flex-shrink: 0;
}


/* =========================================================
   PROGRAM QUICK-JUMP NAV
   ========================================================= */

.program-jumpnav {
    position: sticky;

    top: var(--header-height);

    z-index: 90;

    background: var(--color-white);

    border-bottom: 1px solid var(--color-border);

    box-shadow: var(--shadow-sm);
}

.program-jumpnav__list {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding: 14px 20px;

    scrollbar-width: thin;
}

.program-jumpnav__item {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 18px;

    border-radius: 999px;

    background: var(--color-teal-tint);

    color: var(--color-teal-dark);

    font-weight: 700;

    font-size: 0.85rem;

    line-height: 1.5;

    white-space: nowrap;

    flex-shrink: 0;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

html[lang="am"] .program-jumpnav__item {
    font-family: var(--font-ethiopic);

    line-height: 1.6;
}

.program-jumpnav__item:hover,
.program-jumpnav__item:focus-visible {
    background: var(--color-teal);

    color: #fff;

    transform: translateY(-2px);
}

.program-jumpnav__icon {
    width: 18px;
    height: 18px;

    display: flex;

    flex-shrink: 0;
}

.program-jumpnav__icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 599px) {
    .program-jumpnav__list {
        padding: 12px 16px;
    }
}


/* =========================================================
   PROGRAM DETAIL
   ========================================================= */

.program-detail-list {
    display: grid;

    gap: 32px;
}

.program-detail {
    padding: 40px;

    scroll-margin-top:
        calc(var(--header-height) + 64px);
}

@media (max-width: 599px) {
    .program-detail {
        padding: 26px 20px;
    }
}

.program-detail__header {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 14px;
}

.program-detail__icon-wrap {
    position: relative;
}

.program-detail__icon {
    width: 84px;
    height: 84px;

    border-radius: 22px;

    margin-bottom: 0;

    box-shadow:
        0 0 0 6px rgba(245, 166, 35, 0.14);
}

.program-detail__icon svg {
    width: 40px;
    height: 40px;
}

.program-detail__index {
    position: absolute;

    top: -8px;
    right: -8px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: var(--color-gold);

    color: var(--color-teal-dark);

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: var(--font-display);

    font-weight: 800;

    font-size: 0.7rem;

    border: 2px solid var(--color-teal-dark);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25);
}

.program-detail__heading h2 {
    margin-bottom: 10px;
}

.program-detail__badges {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 8px;
}

.program-detail__desc {
    margin-top: 28px;

    font-size: 1.02rem;

    line-height: 1.7;
}

.program-detail__desc h3 {
    text-align: center;
}

html[lang="am"] .program-detail__desc {
    line-height: 1.85;
}


/* =========================================================
   INFO LIST
   ========================================================= */

.info-list {
    display: grid;

    gap: 20px;

    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));

    margin: 28px 0 0;

    padding: 0;

    list-style: none;
}

.info-item {
    display: flex;

    gap: 14px;

    align-items: flex-start;
}

.info-item__icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--color-teal-tint);

    color: var(--color-teal);
}

.info-item__icon svg {
    width: 20px;
    height: 20px;
}

.info-item h3 {
    font-size: 0.95rem;

    margin-bottom: 4px;
}

.info-item p {
    margin: 0;

    font-size: 0.92rem;

    line-height: 1.65;
}

html[lang="am"] .info-item h3 {
    font-family: var(--font-ethiopic);

    line-height: 1.55;
}

html[lang="am"] .info-item p {
    font-family: var(--font-ethiopic);

    line-height: 1.8;
}

.card--teal .info-item__icon {
    background: rgba(255, 255, 255, 0.16);

    color: var(--color-gold);
}


/* =========================================================
   PROGRAM DETAIL FOOTER
   ========================================================= */

.program-detail__footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 32px;

    padding-top: 28px;

    border-top:
        1px solid rgba(255, 255, 255, 0.18);
}

.program-detail__footer-note {
    font-size: 0.85rem;

    color: #b7d8da;

    margin: 0;

    line-height: 1.6;
}

html[lang="am"] .program-detail__footer-note {
    line-height: 1.75;
}


/* =========================================================
   CARD TEAL
   ========================================================= */

.card--teal {
    position: relative;

    overflow: hidden;
}

.card.card--teal {
    background: var(--brand-teal-gradient);

    border-color:
        rgba(255, 255, 255, 0.18);
}

.card--teal::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.14;

    background-image: var(--brand-pattern-svg);

    background-size: 80px 80px;

    pointer-events: none;
}

.card--teal > * {
    position: relative;
}

.card--teal h2,
.card--teal h3 {
    color: #ffffff;
}

.card--teal p {
    color: #dff1f2;
}

.card--teal .form-hint {
    color: #b7d8da;
}

.card--teal .card__icon {
    background: rgba(255, 255, 255, 0.16);

    color: var(--color-gold);
}

.card--teal .readmore__toggle {
    color: var(--color-gold);
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    display: grid;

    gap: 14px;
}

.faq-item {
    background: #fff;

    border:
        1px solid var(--color-border, #e5e7eb);

    border-radius: 14px;

    padding: 4px 24px;

    box-shadow: var(--shadow-sm);
}

.faq-item__question {
    list-style: none;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 18px 0;

    font-family: var(--font-ui);

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.5;

    color: var(--color-teal-dark);

    cursor: pointer;
}

html[lang="am"] .faq-item__question {
    font-family: var(--font-ethiopic);

    line-height: 1.7;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: '+';

    flex-shrink: 0;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: var(--color-teal-tint);

    color: var(--color-teal-dark);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.1rem;

    transition: transform var(--transition);
}

.faq-item[open] .faq-item__question::after {
    content: '\2212';
}

.faq-item__answer {
    color: #4b5563;

    padding: 0 0 20px;

    font-size: 0.98rem;

    line-height: 1.7;
}

html[lang="am"] .faq-item__answer {
    font-family: var(--font-ethiopic);

    line-height: 1.85;
}


/* =========================================================
   COURSES BANNER
   ========================================================= */

.courses-banner__title-wrap {
    text-align: center;

    margin-bottom: 36px;
}

.courses-banner__title {
    display: inline-block;

    padding: 14px 36px;

    border:
        2px solid var(--color-teal);

    border-radius: 999px;

    color: var(--color-teal-dark);

    font-weight: 800;

    font-size: 1.1rem;

    line-height: 1.5;

    letter-spacing: 0.01em;
}

html[lang="am"] .courses-banner__title {
    font-family: var(--font-ethiopic);

    line-height: 1.6;

    letter-spacing: 0;
}

.courses-banner__list {
    list-style: none;

    margin: 0 auto;

    padding: 0;

    max-width: 720px;

    display: grid;

    grid-template-columns: 1fr;

    gap: 18px 32px;
}

@media (min-width: 600px) {
    .courses-banner__list {
        grid-template-columns: 1fr 1fr;
    }
}

.courses-banner__list li {
    display: flex;

    align-items: center;

    gap: 14px;

    color: var(--color-teal-dark);

    font-weight: 700;

    font-size: 1.05rem;

    line-height: 1.55;
}

html[lang="am"] .courses-banner__list li {
    font-family: var(--font-ethiopic);

    line-height: 1.75;
}

.courses-banner__arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: var(--color-teal);

    color: #fff;

    flex-shrink: 0;
}

.courses-banner__arrow svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   INSTALL APP SECTION
   ========================================================= */

.install-app-section__grid {
    display: grid;

    gap: 40px;

    align-items: center;
}

@media (min-width: 900px) {
    .install-app-section__grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.install-app-section__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 18px;

    border:
        1.5px solid rgba(255, 255, 255, 0.5);

    border-radius: 999px;

    /* This section is .section--teal (dark gradient) — the previous
       dark-teal-on-dark-teal text/border here was effectively
       invisible (~0.75:1 contrast). Gold matches the eyebrow color
       used on every other teal section sitewide. */
    color: #ffd489;

    font-weight: 700;

    font-size: 0.78rem;

    line-height: 1.5;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    margin-bottom: 18px;
}

html[lang="am"] .install-app-section__eyebrow {
    font-family: var(--font-ethiopic);

    text-transform: none;

    letter-spacing: 0;

    line-height: 1.65;
}

.install-app-section__eyebrow svg {
    width: 14px;
    height: 14px;
}

.install-app-section__actions {
    margin-top: 28px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 16px;
}

.install-app-section__note {
    font-size: 0.85rem;

    /* Same dark-on-dark-teal issue as the eyebrow above — matches the
       light body-text color used elsewhere on .section--teal. */
    color: #dff1f2;

    margin-top: 16px;

    max-width: 44ch;

    line-height: 1.6;
}

html[lang="am"] .install-app-section__note {
    line-height: 1.75;
}

.install-app-section__already {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    /* var(--color-success) (dark green) was ~1.6:1 against the teal
       section background — white keeps the "already installed" state
       clearly legible and consistent with this section's other text. */
    color: #ffffff;

    font-weight: 700;

    line-height: 1.5;
}

html[lang="am"] .install-app-section__already {
    line-height: 1.7;
}

.install-app-section__already svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   PHONE MOCKUP
   ========================================================= */

.phone-mockup {
    width: 220px;

    margin: 0 auto;

    border-radius: 36px;

    border: 10px solid var(--color-teal-dark);

    background: var(--color-teal-dark);

    box-shadow: var(--shadow-md);

    overflow: hidden;
}

.phone-mockup__notch {
    width: 56px;

    height: 5px;

    background:
        rgba(255, 255, 255, 0.3);

    border-radius: 4px;

    margin: 8px auto;
}

.phone-mockup__bar {
    background: var(--color-teal);

    color: #fff;

    text-align: center;

    font-size: 0.72rem;

    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 0.02em;

    padding: 10px 8px;
}

.phone-mockup__screen {
    background: var(--color-white);

    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 32px 20px 40px;
}

.phone-mockup__icon {
    width: 72px;
    height: 72px;

    border-radius: 20px;

    box-shadow: var(--shadow-sm);
}

.phone-mockup__name {
    font-weight: 800;

    line-height: 1.4;

    color: var(--color-teal-dark);

    text-align: center;
}

.phone-mockup__hint {
    font-size: 0.78rem;

    line-height: 1.5;

    color: #6b7280;

    text-align: center;
}

html[lang="am"] .phone-mockup__name,
html[lang="am"] .phone-mockup__hint {
    font-family: var(--font-ethiopic);
}

html[lang="am"] .phone-mockup__name {
    line-height: 1.6;
}

html[lang="am"] .phone-mockup__hint {
    line-height: 1.7;
}


/* =========================================================
   HIGHLIGHTS LIST
   ========================================================= */

.highlights-list {
    list-style: none;

    margin: 0 auto;

    padding: 0;

    max-width: 820px;

    display: grid;

    grid-template-columns: 1fr;

    gap: 18px 28px;
}

@media (min-width: 700px) {
    .highlights-list {
        grid-template-columns: 1fr 1fr;
    }
}

.highlights-list__item {
    display: flex;

    align-items: center;

    gap: 16px;
}

.highlights-list__num {
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: var(--color-gold);

    color: var(--color-teal-dark);

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 800;

    font-size: 0.95rem;

    font-family: var(--font-display);

    box-shadow:
        0 6px 16px rgba(245, 166, 35, 0.35);
}

.highlights-list__pill {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-grow: 1;

    background:
        rgba(255, 255, 255, 0.1);

    border:
        1px solid rgba(255, 255, 255, 0.25);

    color: #fff;

    font-weight: 700;

    padding: 12px 20px;

    border-radius: 999px;

    line-height: 1.5;

    backdrop-filter: blur(4px);
}

html[lang="am"] .highlights-list__pill {
    font-family: var(--font-ethiopic);

    line-height: 1.7;
}

.highlights-list__icon {
    display: flex;

    width: 20px;
    height: 20px;

    color: var(--color-gold);

    flex-shrink: 0;
}

.highlights-list__icon svg {
    width: 100%;
    height: 100%;
}


/* Light variant */

.highlights-list--light .highlights-list__pill {
    background: var(--color-white);

    border-color: var(--color-border);

    color: var(--color-slate);

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   SCHEDULE
   ========================================================= */

.schedule-card {
    background: var(--color-white);

    border-radius: var(--radius-lg);

    padding: 32px;

    text-align: center;

    box-shadow: var(--shadow-sm);

    border-top:
        4px solid var(--color-gold);
}

.schedule-card__lines {
    font-size: 1.4rem;

    font-weight: 700;

    line-height: 1.5;

    color: var(--color-teal-dark);

    margin: 14px 0;
}

.schedule-card__lines span {
    display: block;
}

.schedule-card p {
    color: var(--color-slate);
}

.schedule-flex {
    grid-column: 1 / -1;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px dashed rgba(255, 255, 255, 0.4);

    border-radius: var(--radius-lg);

    padding: 28px;

    text-align: center;
}


/* =========================================================
   CTA BAND
   ========================================================= */

.cta-band {
    background:
        linear-gradient(
            120deg,
            var(--color-gold),
            var(--color-gold-dark)
        );

    color: var(--color-teal-dark);

    text-align: center;

    border-radius: var(--radius-lg);

    padding: 48px 32px;
}

.cta-band p {
    color: var(--color-teal-dark);
}

.cta-band h2 {
    color: var(--color-teal-dark);
}

.cta-band .btn-teal {
    background: var(--color-teal-dark);
}

.cta-band .btn-teal:hover {
    background: #003941;
}


/* =========================================================
   STATS
   ========================================================= */

.stat-tile {
    text-align: center;
}

.stat-tile__icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid rgba(255, 255, 255, 0.3);

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--color-gold);
}

.stat-tile__icon svg {
    width: 28px;
    height: 28px;
}

.stat-tile__value {
    font-size: 2.4rem;

    font-weight: 800;

    color: #fff;

    font-family: var(--font-display);

    line-height: 1.1;
}

.stat-tile__label {
    color: #dff1f2;

    font-weight: 600;

    font-size: 0.9rem;

    margin-top: 6px;

    line-height: 1.5;
}

html[lang="am"] .stat-tile__label {
    font-family: var(--font-ethiopic);

    line-height: 1.7;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial-card {
    position: relative;

    background: var(--color-white);

    border-radius: var(--radius-lg);

    border-top:
        4px solid var(--color-gold);

    padding: 44px 30px 30px;

    box-shadow: var(--shadow-sm);

    margin: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    height: 100%;

    color: var(--color-slate);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-md);
}

.testimonial-card__quote-icon {
    width: 40px;
    height: 40px;

    color: var(--color-gold);

    opacity: 0.9;

    margin-bottom: 14px;
}

.testimonial-card__quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-card blockquote {
    margin: 0 0 24px;

    font-style: italic;

    font-size: 1.02rem;

    line-height: 1.7;

    color: #374151;

    flex-grow: 1;
}

html[lang="am"] .testimonial-card blockquote {
    font-family: var(--font-ethiopic);

    line-height: 1.85;
}

.testimonial-card figcaption {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: var(--color-teal-tint);

    color: var(--color-teal);

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-bottom: 12px;

    border:
        3px solid var(--color-gold);

    box-shadow:
        0 4px 12px rgba(245, 166, 35, 0.25);
}

.testimonial-card__avatar svg {
    width: 28px;
    height: 28px;
}

.testimonial-card__name {
    display: block;

    font-weight: 700;

    line-height: 1.5;

    color: var(--color-teal-dark);
}

.testimonial-card__role {
    display: block;

    font-size: 0.8rem;

    line-height: 1.5;

    color: #6b7280;

    margin-top: 2px;
}

/* =========================================================
   Leadership / team section — reusable via
   includes/sections/team-section.php, so this one definition
   covers every page that includes it.
   ========================================================= */
.team-tier-title {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gold-dark);
}
.team-grid { margin-bottom: 56px; }
.team-grid:last-of-type { margin-bottom: 0; }

.team-card {
    text-align: center;
    padding-top: 66px;
    position: relative;
    overflow: visible;
}
.team-card__photo-wrap {
    position: absolute;
    top: -54px;
    left: 50%;
    transform: translateX(-50%);
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-teal));
    box-shadow: var(--shadow-md);
}
.team-card__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-white);
    background: var(--color-teal-tint);
}
.team-card__photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
}
.team-card__photo--fallback svg { width: 46%; height: 46%; }
.team-card__title-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--color-teal-dark);
    color: var(--color-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.team-card__name { margin: 12px 0 4px; }
.team-card__role {
    display: inline-block;
    color: var(--color-teal-dark);
    background: var(--color-teal-tint);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.team-card__bio { color: #4b5563; font-size: 0.92rem; text-align: left; }
.team-card__quote {
    margin: 16px 0 0;
    padding: 12px 14px;
    text-align: left;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-teal-dark);
    background: var(--color-teal-tint);
    border-left: 3px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[dir="rtl"] .team-card__quote { border-left: none; border-right: 3px solid var(--color-gold); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--color-teal-dark);

    color: #cbd5d1;

    padding: 56px 0 24px;
}

.site-footer a {
    color: #cbd5d1;
}

.site-footer a:hover {
    color: var(--color-gold);
}

.footer-grid {
    display: grid;

    gap: 32px;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    margin-bottom: 32px;
}

.footer-grid h4 {
    color: #fff;

    font-size: 1rem;

    line-height: 1.5;

    margin-bottom: 14px;
}

.footer-grid ul {
    list-style: none;

    padding: 0;

    margin: 0;
}

.footer-grid li {
    margin-bottom: 10px;

    line-height: 1.6;
}

html[lang="am"] .footer-grid li {
    line-height: 1.8;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
}

.footer-social {
    display: flex;

    gap: 12px;

    margin-top: 14px;
}

.footer-social a {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    display: flex;

    align-items: center;
    justify-content: center;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.12);

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    font-size: 0.85rem;

    line-height: 1.6;
}

html[lang="am"] .footer-bottom {
    line-height: 1.8;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;

    font-family: var(--font-ui);

    font-size: 0.95rem;

    font-weight: 700;

    line-height: 1.45;

    margin-bottom: 7px;

    color: var(--color-teal-dark);
}

html[lang="am"] .form-label {
    font-family: var(--font-ethiopic);

    line-height: 1.65;
}

.form-label .required {
    color: var(--color-danger);

    margin-inline-start: 3px;
}

.form-hint {
    font-size: 0.85rem;

    line-height: 1.6;

    color: #6b7280;

    margin-top: 4px;
}

.form-error {
    font-size: 0.85rem;

    line-height: 1.6;

    color: var(--color-danger);

    margin-top: 4px;
}

html[lang="am"] .form-hint,
html[lang="am"] .form-error {
    line-height: 1.75;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control {
    width: 100%;

    padding: 13px 16px;

    min-height: 50px;

    border-radius: 12px;

    border:
        1.5px solid var(--color-border);

    font-family: var(--font-ui);

    font-size: 1rem;

    line-height: 1.5;

    background: var(--color-white);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


/*
 * Amharic input fields
 */

html[lang="am"] .form-control {
    font-family: var(--font-ethiopic);

    line-height: 1.7;
}


textarea.form-control {
    min-height: 120px;
}

.form-control:focus {
    border-color: var(--color-teal);

    box-shadow:
        0 0 0 3px rgba(0, 97, 110, 0.15);

    outline: none;
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}


/* =========================================================
   FORM CONTROL ICON
   ========================================================= */

.form-control-icon {
    position: relative;
}

.form-control-icon .form-control {
    padding-left: 46px;
}

.form-control-icon__icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    width: 18px;
    height: 18px;

    color: var(--color-teal);

    pointer-events: none;
}

.form-control-icon__icon svg {
    width: 100%;
    height: 100%;
}


/* =========================================================
   FORM ROW
   ========================================================= */

.form-row {
    display: grid;

    gap: 18px;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
}


/* =========================================================
   CHOICE GRID
   ========================================================= */

.choice-grid {
    display: grid;

    gap: 14px;

    grid-template-columns:
        repeat(auto-fit, minmax(140px, 1fr));
}

.choice-card {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 16px;

    border:
        1.5px solid var(--color-border);

    border-radius: 12px;

    cursor: pointer;

    background: var(--color-white);

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.choice-card:hover {
    border-color: var(--color-teal);
}

.choice-card:has(input:checked) {
    border-color: var(--color-teal);

    background: var(--color-teal-tint);

    box-shadow:
        0 4px 14px rgba(0, 97, 110, 0.12);
}

.choice-card input {
    margin-top: 3px;

    accent-color: var(--color-teal);
}

html[lang="am"] .choice-card {
    line-height: 1.7;
}


/* =========================================================
   REGISTRATION CALLOUT
   ========================================================= */

.register-callout {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    background: var(--color-teal-tint);

    border:
        1px solid rgba(0, 97, 110, 0.15);

    border-radius: var(--radius-md);

    padding: 16px 18px;

    margin-bottom: 28px;
}

.register-callout__icon {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    background: var(--color-teal);

    color: #fff;

    display: flex;

    align-items: center;
    justify-content: center;
}

.register-callout__icon svg {
    width: 20px;
    height: 20px;
}

.register-callout strong {
    display: block;

    color: var(--color-teal-dark);

    margin-bottom: 2px;

    line-height: 1.5;
}

.register-callout p {
    margin: 0;

    color: #4b5563;

    font-size: 0.9rem;

    line-height: 1.6;
}

html[lang="am"] .register-callout strong,
html[lang="am"] .register-callout p {
    line-height: 1.75;
}


/* =========================================================
   HONEYPOT FIELD
   ========================================================= */

.hp-field {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* =========================================================
   STEPPER
   ========================================================= */

.stepper-progress {
    display: flex;

    justify-content: space-between;

    margin-bottom: 40px;

    counter-reset: step;

    list-style: none;

    padding: 0;

    gap: 4px;
}

.stepper-progress li {
    flex: 1;

    text-align: center;

    font-size: 0.8rem;

    font-weight: 700;

    line-height: 1.5;

    color: #9aa5a6;

    position: relative;
}

.stepper-progress li::before {
    counter-increment: step;

    content: counter(step);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #e5eaea;

    color: #6b7280;

    margin: 0 auto 8px;

    font-family: var(--font-ui);
}

.stepper-progress li.is-active {
    color: var(--color-teal-dark);
}

.stepper-progress li.is-active::before,
.stepper-progress li.is-done::before {
    background: var(--color-gold);

    color: var(--color-teal-dark);
}

html[lang="am"] .stepper-progress li {
    line-height: 1.7;
}


/* =========================================================
   FORM STEPS
   ========================================================= */

.form-step {
    display: none;
}

.form-step.is-active {
    display: block;

    animation:
        fadeIn 250ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;

        transform: translateY(6px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.no-js .form-step {
    display: block;
}

.no-js .stepper-progress {
    display: none;
}

.no-js .stepper-nav {
    display: none;
}


/* =========================================================
   STEPPER NAV
   ========================================================= */

.stepper-nav {
    display: flex;

    justify-content: space-between;

    margin-top: 32px;

    gap: 12px;
}

@media (max-width: 560px) {
    .stepper-nav {
        flex-direction: column-reverse;
    }

    .stepper-nav .btn {
        width: 100%;
    }
}


/* =========================================================
   REVIEW BLOCK
   ========================================================= */

.review-block {
    border-bottom:
        1px solid var(--color-border);

    padding: 16px 0;
}

.review-block:last-child {
    border-bottom: none;
}

.review-block dt {
    font-weight: 700;

    color: var(--color-teal-dark);

    font-size: 0.85rem;

    line-height: 1.5;

    text-transform: uppercase;

    letter-spacing: 0.03em;
}

html[lang="am"] .review-block dt {
    font-family: var(--font-ethiopic);

    text-transform: none;

    letter-spacing: 0;

    line-height: 1.7;
}

.review-block dd {
    margin: 4px 0 0;

    line-height: 1.6;
}

html[lang="am"] .review-block dd {
    line-height: 1.8;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    border-radius: var(--radius-sm);

    padding: 16px 20px;

    margin-bottom: 24px;

    font-weight: 600;

    line-height: 1.6;
}

.alert-success {
    background: #e6f6ec;

    color: var(--color-success);

    border:
        1px solid #b7e3c6;
}

.alert-error {
    background: #fbe9e7;

    color: var(--color-danger);

    border:
        1px solid #f2c2bb;
}

html[lang="am"] .alert {
    line-height: 1.8;
}


/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.form-panel {
    background: var(--color-white);

    border-radius: var(--radius-lg);

    padding: 36px;

    box-shadow: var(--shadow-md);

    color: var(--color-slate);
}

@media (max-width: 599px) {
    .form-panel {
        padding: 24px 18px;
    }
}

.section--teal .form-panel h1,
.section--teal .form-panel h2,
.section--teal .form-panel h3,
.section--teal .success-panel h1,
.section--teal .success-panel h2,
.section--teal .success-panel h3,
.section--teal .card:not(.card--teal) h1,
.section--teal .card:not(.card--teal) h2,
.section--teal .card:not(.card--teal) h3 {
    color: var(--color-teal-dark);
}


.success-panel {
    max-width: 620px;

    margin: 0 auto;

    text-align: center;

    background: var(--color-white);

    border-radius: var(--radius-lg);

    padding: 48px 32px;

    box-shadow: var(--shadow-md);

    color: var(--color-slate);
}

.success-check {
    width: 96px;
    height: 96px;

    margin: 0 auto 24px;
}

.success-check circle {
    stroke: var(--color-success);

    stroke-width: 4;

    fill: none;

    stroke-dasharray: 166;

    stroke-dashoffset: 166;

    animation:
        draw 700ms ease forwards;
}

.success-check path {
    stroke: var(--color-success);

    stroke-width: 4;

    fill: none;

    stroke-linecap: round;

    stroke-linejoin: round;

    stroke-dasharray: 48;

    stroke-dashoffset: 48;

    animation:
        draw 400ms 600ms ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-ref {
    display: inline-block;

    background: var(--color-teal-tint);

    color: var(--color-teal-dark);

    font-weight: 700;

    padding: 8px 18px;

    border-radius: 999px;

    margin: 12px 0 20px;

    letter-spacing: 0.03em;
}

.success-actions {
    display: flex;

    gap: 14px;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 24px;
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
    display: grid;

    gap: 32px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-list {
    list-style: none;

    padding: 0;

    margin: 0;

    display: grid;

    gap: 16px;
}

.contact-info-list li {
    display: flex;

    align-items: center;

    gap: 14px;
}

.contact-info-list .card__icon {
    margin-bottom: 0;
}


/* =========================================================
   UTILITIES
   ========================================================= */

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.visually-hidden {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   MOBILE NAVIGATION DRAWER
   ========================================================= */

@media (max-width: 899px) {

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;

        inset: 0 0 0 auto;

        width: min(320px, 86vw);

        background: var(--color-white);

        box-shadow:
            -8px 0 24px rgba(0, 0, 0, 0.15);

        transform: translateX(100%);

        transition:
            transform 260ms ease;

        padding: 90px 28px 28px;

        overflow-y: auto;

        z-index: 99;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav__list {
        flex-direction: column;

        align-items: flex-start;

        gap: 4px;
    }

    .main-nav__list a:not(.btn) {
        display: block;

        padding: 13px 4px;

        width: 100%;

        font-size: 1rem;

        line-height: 1.5;
    }

    html[lang="am"] .main-nav__list a:not(.btn) {
        font-family: var(--font-ethiopic);

        line-height: 1.7;
    }

    .header-actions {
        width: 100%;

        margin: 8px 0;
    }

    .header-actions .btn-primary {
        width: 100%;

        justify-content: center;

        padding: 12px 18px;
    }


    /* ---------------------------------------------------------
       Mobile language row
       --------------------------------------------------------- */

    .main-nav__lang {
        width: 100%;

        margin-top: 12px;

        padding-top: 16px;

        border-top:
            1px solid var(--color-border);
    }

    .main-nav__lang .lang-select-form {
        display: flex;

        width: 100%;

        align-items: center;

        justify-content: space-between;
    }

    .main-nav__lang .lang-select-form label {
        position: static;

        width: auto;
        height: auto;

        padding: 0;

        margin: 0;

        overflow: visible;

        clip: auto;

        white-space: normal;

        font-weight: 700;

        font-size: 0.9rem;

        line-height: 1.5;

        color: var(--color-teal-dark);
    }

    html[lang="am"] .main-nav__lang .lang-select-form label {
        font-family: var(--font-ethiopic);

        line-height: 1.7;
    }


    /* ---------------------------------------------------------
       Navigation backdrop
       --------------------------------------------------------- */

    .nav-backdrop {
        position: fixed;

        inset: 0;

        background:
            rgba(17, 24, 39, 0.4);

        opacity: 0;

        pointer-events: none;

        transition:
            opacity 260ms ease;

        z-index: 98;
    }

    .nav-backdrop.is-open {
        opacity: 1;

        pointer-events: auto;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 599px) {

    .section {
        padding: 48px 0;
    }

    .hero {
        padding: 56px 0 64px;
    }


    /* ---------------------------------------------------------
       Mobile typography
       --------------------------------------------------------- */

    body {
        font-size: 16px;
    }

    h1 {
        font-size:
            clamp(
                1.9rem,
                8vw,
                2.5rem
            );
    }

    h2 {
        font-size:
            clamp(
                1.5rem,
                6vw,
                2rem
            );
    }

    h3 {
        font-size: 1.2rem;
    }


    /* ---------------------------------------------------------
       Amharic mobile typography
       --------------------------------------------------------- */

    html[lang="am"] h1 {
        font-size:
            clamp(
                1.8rem,
                7.5vw,
                2.4rem
            );

        line-height: 1.45;
    }

    html[lang="am"] h2 {
        font-size:
            clamp(
                1.45rem,
                6vw,
                1.9rem
            );

        line-height: 1.5;
    }

    html[lang="am"] h3 {
        line-height: 1.55;
    }

    html[lang="am"] p {
        line-height: 1.85;
    }


    /* ---------------------------------------------------------
       Stepper
       --------------------------------------------------------- */

    .stepper-progress li span.step-label-text {
        display: none;
    }


    /* ---------------------------------------------------------
       Header
       --------------------------------------------------------- */

    .site-header__left {
        gap: 8px;
    }

    .brand__tagline {
        display: none;
    }


    /* ---------------------------------------------------------
       Buttons
       --------------------------------------------------------- */

    .btn {
        min-height: 48px;

        padding:
            12px 22px;

        font-size: 0.98rem;
    }

    html[lang="am"] .btn {
        line-height: 1.5;
    }
}


/* =========================================================
   VERY NARROW DEVICES
   ========================================================= */

@media (max-width: 400px) {

    .brand__name {
        font-size: 0.95rem;
    }

    html[lang="am"] .brand__name {
        font-size: 0.92rem;

        line-height: 1.35;
    }
}


/* =========================================================
   SMALL TOPBAR DEVICES
   ========================================================= */

@media (max-width: 480px) {

    .topbar__secondary {
        display: none;
    }

    .install-banner {
        flex-wrap: wrap;
    }

    .install-banner__actions {
        width: 100%;

        justify-content: flex-end;
    }
}


/* =========================================================
   PAGE LOADER
   ========================================================= */

.page-loader {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--color-bg);

    opacity: 1;

    transition:
        opacity 260ms ease;
}

.page-loader[hidden] {
    display: none;
}

.page-loader.is-leaving {
    opacity: 0;

    pointer-events: none;
}

.page-loader__spinner {
    position: relative;

    display: block;

    width: 72px;
    height: 72px;
}

.page-loader__ring {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    border:
        4px solid var(--color-teal-tint);

    border-top-color:
        var(--color-teal);

    border-right-color:
        var(--color-gold);

    animation:
        pageLoaderSpin 850ms linear infinite;
}

.page-loader__mark {
    position: absolute;

    inset: 18px;

    width: 36px;
    height: 36px;

    object-fit: contain;

    animation:
        pageLoaderPulse 1400ms ease-in-out infinite;
}

@keyframes pageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pageLoaderPulse {
    0%,
    100% {
        opacity: 0.55;

        transform: scale(0.92);
    }

    50% {
        opacity: 1;

        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .page-loader__ring {
        animation: none;
    }

    .page-loader__mark {
        animation: none;
    }
}


/* =========================================================
   PWA INSTALL BANNER
   ========================================================= */

.install-banner {
    position: fixed;

    left: 16px;
    right: 16px;
    bottom: 16px;

    max-width: 460px;

    margin: 0 auto;

    background: var(--color-white);

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-md);

    padding: 14px 16px;

    display: flex;

    align-items: center;

    gap: 12px;

    z-index: 200;

    animation:
        installBannerIn 320ms ease;
}

.install-banner[hidden] {
    display: none;
}

.install-banner img {
    border-radius: 10px;

    flex-shrink: 0;
}

.install-banner__text {
    flex-grow: 1;

    display: flex;

    flex-direction: column;

    font-size: 0.85rem;

    line-height: 1.6;
}

.install-banner__text strong {
    color: var(--color-teal-dark);
}

.install-banner__actions {
    display: flex;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;
}

.install-banner__dismiss {
    background: none;

    border: none;

    font-size: 1.3rem;

    line-height: 1;

    color: #9aa5a6;

    cursor: pointer;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.install-banner__dismiss:hover {
    color: var(--color-slate);
}

@keyframes installBannerIn {
    from {
        opacity: 0;

        transform: translateY(16px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   RTL READINESS
   ========================================================= */

[dir="rtl"] .hero__cta,
[dir="rtl"] .topbar__links {
    flex-direction: row-reverse;
}

/* =========================================================
   PAGES DROPDOWN — SINGLE SOURCE OF TRUTH
   ========================================================= */

.main-nav__dropdown {
    position: relative;
}

/* Trigger */
.main-nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: inherit;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

/* Arrow */
.dropdown-arrow {
    font-size: 0.75em;
    line-height: 1;

    transition: transform 0.2s ease;
}

.main-nav__dropdown:hover .dropdown-arrow,
.main-nav__dropdown:focus-within .dropdown-arrow,
.main-nav__dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.main-nav__dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 220px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: #ffffff;

    border: 1px solid rgba(0, 77, 86, 0.10);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 77, 86, 0.14),
        0 5px 15px rgba(0, 0, 0, 0.06);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;

    z-index: 1000;
}

/*
 * IMPORTANT:
 * Do NOT use pointer-events: none here.
 * It can cause the menu to disappear while moving
 * the mouse from "Pages" to an item.
 */

/* Open on hover, keyboard focus, or JS .is-open */
.main-nav__dropdown:hover .main-nav__dropdown-menu,
.main-nav__dropdown:focus-within .main-nav__dropdown-menu,
.main-nav__dropdown.is-open .main-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
   MENU ITEMS
   ========================================================= */

.main-nav__dropdown-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-nav__dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 11px;

    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    padding: 9px 11px;

    border-radius: 9px;

    color: var(--color-teal-dark, #004d56);

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.main-nav__dropdown-menu a:hover,
.main-nav__dropdown-menu a:focus-visible {
    background: #eef7f7;
    color: var(--color-teal, #00616e);

    outline: none;
}


/* =========================================================
   ICON
   ========================================================= */

.dropdown-icon {
    flex: 0 0 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 8px;

    background: #e8f3f4;
    color: var(--color-teal, #00616e);

    font-size: 0.9rem;
    font-weight: 700;
}

.main-nav__dropdown-menu a:hover .dropdown-icon,
.main-nav__dropdown-menu a:focus-visible .dropdown-icon {
    background: var(--color-teal, #00616e);
    color: #ffffff;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.main-nav__dropdown-divider {
    height: 1px;

    margin: 5px 7px;

    background: rgba(0, 77, 86, 0.09);
}


/* =========================================================
   AMHARIC
   ========================================================= */

html[lang="am"] .main-nav__dropdown-menu a {
    font-family: var(--font-ethiopic);
    line-height: 1.7;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .main-nav__dropdown-menu {
        position: static;

        width: 100%;

        margin-top: 8px;

        box-shadow: none;

        transform: none;

        display: none;

        opacity: 1;
        visibility: visible;
    }

    .main-nav__dropdown.is-open .main-nav__dropdown-menu {
        display: block;
    }

    .main-nav__dropdown:hover .main-nav__dropdown-menu {
        display: none;
    }

    .main-nav__dropdown.is-open:hover .main-nav__dropdown-menu {
        display: block;
    }
}