/* Home premium landing */

body.home-page,
.hp-wrap,
.hp-wrap h1,
.hp-wrap h2,
.hp-wrap h3,
.hp-wrap p,
.hp-wrap a,
.hp-wrap button,
.hp-wrap input {
    font-family: 'Cairo', 'PNU', sans-serif !important;
}

body.home-page {
    background: var(--background);
}

.hp-wrap {
    overflow-x: hidden;
}

.hp-section {
    padding: 5.5rem 0;
}

.hp-section--alt {
    background: #fff;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.hp-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hp-lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 42rem;
    line-height: 1.8;
}

.hp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hp-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ── About the platform ── */
.hp-about__grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 2.4rem 3rem;
    align-items: center;
    margin-bottom: 2.4rem;
}

.hp-about__identity {
    background: linear-gradient(165deg, #0f2918 0%, #14532d 58%, #1b7a4a 100%);
    color: #fff;
    border-radius: 28px;
    padding: 2rem 1.6rem 1.85rem;
    text-align: center;
    box-shadow: 0 22px 44px rgba(15, 61, 27, 0.16);
}

.hp-about__republic {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.7;
    color: #c8efd0;
    margin-bottom: 1.15rem;
}

.hp-about__marks {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.hp-about__marks img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fff;
    border-radius: 20px;
    padding: 8px;
}

.hp-about__ministry {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 0.25rem;
    color: #fff;
}

.hp-about__platform {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(244, 255, 247, 0.82);
    line-height: 1.6;
}

.hp-about__text {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.95;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: justify;
}

.hp-about__text:last-of-type {
    margin-bottom: 0;
}

.hp-about__pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hp-about__pillar {
    background: #f4f8f5;
    border: 1px solid rgba(21, 87, 36, 0.08);
    border-radius: 22px;
    padding: 1.25rem 1.2rem 1.3rem;
}

.hp-about__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #14532d;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.hp-about__pillar h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.hp-about__pillar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.75;
}

.hp-about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .hp-about__grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
    .hp-about__pillars {
        grid-template-columns: 1fr;
    }
}

/* ── Hero (slider photos + textes d'origine) ── */
.hp-hero {
    position: relative;
    min-height: 100vh;
    padding: 10.5rem 0 6rem;
    background: #0f3d1b;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hp-hero__slider {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin: 0;
}

.hp-hero__slider .carousel-inner,
.hp-hero__slider .carousel-item {
    height: 100%;
}

.hp-hero__slider .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100% !important;
}

.hp-hero__slider .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 61, 27, 0.45) 0%, rgba(0, 0, 0, 0.58) 100%);
    z-index: 1;
}

.hp-hero__slider .carousel-control-prev,
.hp-hero__slider .carousel-control-next {
    z-index: 3;
    width: 6%;
}

.hp-hero__dots {
    z-index: 3;
    margin-bottom: 1.4rem;
}

.hp-hero__dots [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
}

.hp-hero__dots .active {
    background: #fff;
    transform: scale(1.15);
}

.hp-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 920px;
}

.hp-hero__content .hp-search,
.hp-hero__content a {
    pointer-events: auto;
}

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.hp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.hp-hero h1 #heroDynamicHighlight {
    display: block;
    color: #c8efd0;
}

.hp-hero__subtitle {
    font-size: 1.12rem;
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.85;
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hp-search {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    max-width: 640px;
    text-align: right;
}

.hp-search__icon {
    color: var(--primary);
    font-size: 1.2rem;
    padding-inline-start: 0.85rem;
}

.hp-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    min-width: 0;
    padding: 0.85rem 0.4rem;
}

.hp-search__input:focus {
    outline: none;
}

.hp-search__btn {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    white-space: nowrap;
}

.hp-search__btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.hp-suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #fff;
    color: var(--text);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(15, 61, 27, 0.16);
    overflow: hidden;
    display: none;
    z-index: 5;
    text-align: right;
}

.hp-suggest.is-open {
    display: block;
}

.hp-suggest__group {
    padding: 0.65rem 0.4rem;
}

.hp-suggest__label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
    padding: 0.25rem 0.9rem;
}

.hp-suggest a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
}

.hp-suggest a:hover,
.hp-suggest a:focus {
    background: #f3f8f4;
    color: var(--primary);
}

.hp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hp-hero .yc-btn {
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
}

.hp-hero .yc-btn--solid {
    background: #fff;
    color: var(--primary);
}

.hp-hero .yc-btn--solid:hover {
    background: #eef7f0;
    color: var(--primary-dark);
}

.hp-hero .yc-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hp-hero .yc-btn--ghost:hover {
    background: #fff;
    color: var(--primary);
}

.hp-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.45rem;
    padding: 0.55rem 0.95rem 0.55rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 28, 14, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.hp-hero-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #86efac;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.65);
    animation: hp-live-dot 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes hp-live-dot {
    0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(134, 239, 172, 0); }
    100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

.hp-hero-live__cell {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.hp-hero-live__cell strong {
    font-size: 1.15rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1;
}

.hp-hero-live__cell span {
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.78);
}

.hp-hero-live__sep {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 575.98px) {
    .hp-hero-live {
        gap: 0.55rem;
        padding: 0.48rem 0.75rem;
    }
    .hp-hero-live__cell strong { font-size: 1rem; }
    .hp-hero-live__cell span { font-size: 0.72rem; }
}

/* ── Stats ── */
.hp-stats {
    margin-top: -3.2rem;
    position: relative;
    z-index: 3;
    padding-bottom: 1rem;
}

.hp-stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    background: #fff;
    border-radius: 28px;
    padding: 1.4rem;
    box-shadow: 0 24px 60px rgba(15, 61, 27, 0.1);
}

.hp-stat {
    text-align: center;
    padding: 0.8rem 0.4rem;
    min-width: 0;
}

.hp-stat__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.7rem;
    border-radius: 14px;
    background: rgba(21, 87, 36, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hp-stat__value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1.15;
}

.hp-stat__label {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.86rem;
}

/* ── Categories ── */
.hp-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.hp-cat {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(15, 61, 27, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 210px;
}

.hp-cat:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(15, 61, 27, 0.1);
    color: inherit;
}

.hp-cat__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(21, 87, 36, 0.12), rgba(31, 174, 102, 0.12));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: transform 0.35s ease;
}

.hp-cat:hover .hp-cat__icon {
    transform: rotate(-8deg) scale(1.06);
}

.hp-cat h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.hp-cat p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}

.hp-cat__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.88rem;
}

.hp-cat__arrow {
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.3s ease;
}

.hp-cat:hover .hp-cat__arrow {
    opacity: 1;
    transform: none;
}

/* ── Horizon of youth fields ── */
.hp-horizon-section {
    overflow: hidden;
}

.hp-horizon__intro {
    margin-bottom: 1.7rem;
}

.hp-horizon {
    display: flex;
    height: 520px;
    gap: 0.55rem;
    border-radius: 30px;
    overflow: hidden;
    background: #0e1c14;
    padding: 0.55rem;
    box-shadow: 0 28px 56px rgba(8, 26, 14, 0.16);
}

.hp-horizon__col {
    position: relative;
    flex: 0.72;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    transition: flex 0.55s cubic-bezier(.22, .8, .24, 1);
}

.hp-horizon__col.is-active {
    flex: 3.35;
}

.hp-horizon__col img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.35) saturate(0.8) brightness(0.72);
    transform: scale(1.08);
    transition: transform 0.7s ease, filter 0.45s ease;
}

.hp-horizon__col.is-active img {
    filter: none;
    transform: scale(1.04);
}

.hp-horizon__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 12, 0.08) 0%, rgba(8, 18, 12, 0.78) 100%);
}

.hp-horizon__slim {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 0.35rem;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.hp-horizon__slim small {
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.hp-horizon__slim strong {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hp-horizon__wide {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 1.6rem 1.7rem 1.5rem;
    max-width: 28rem;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
}

.hp-horizon__col.is-active .hp-horizon__slim {
    opacity: 0;
    pointer-events: none;
}

.hp-horizon__col.is-active .hp-horizon__wide {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.hp-horizon__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}

.hp-horizon__num {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #c8efd0;
    margin-bottom: 0.4rem;
}

.hp-horizon__wide h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: #fff;
}

.hp-horizon__wide p {
    margin: 0 0 1rem;
    color: rgba(244, 255, 247, 0.88);
    font-weight: 600;
    line-height: 1.7;
}

.hp-horizon__go {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    color: #c8efd0;
}

.hp-horizon__go em {
    font-style: normal;
    background: #fff;
    color: #081a0e;
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
}

.hp-horizon__pager {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.hp-horizon__pager span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(21, 87, 36, 0.22);
}

.hp-horizon__pager span.is-active {
    width: 22px;
    background: var(--primary);
}

@media (max-width: 991.98px) {
    .hp-horizon-section {
        overflow: visible;
    }
    .hp-horizon {
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.75rem;
        background: transparent;
        padding: 0.15rem 0 0.4rem;
        border-radius: 0;
        box-shadow: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0.25rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
    }
    .hp-horizon::-webkit-scrollbar {
        display: none;
    }
    .hp-horizon__col,
    .hp-horizon__col.is-active {
        flex: 0 0 min(86vw, 340px);
        width: min(86vw, 340px);
        height: 360px;
        min-height: 360px;
        max-height: 360px;
        transition: none;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .hp-horizon__col img,
    .hp-horizon__col.is-active img {
        filter: none;
        transform: none;
    }
    .hp-horizon__slim {
        display: none;
    }
    .hp-horizon__wide {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        padding: 1.25rem 1.15rem 1.2rem;
        max-width: none;
    }
    .hp-horizon__icon {
        width: 38px;
        height: 38px;
        margin-bottom: 0.5rem;
    }
    .hp-horizon__wide h3 {
        font-size: 1.35rem;
    }
    .hp-horizon__wide p {
        font-size: 0.92rem;
        margin-bottom: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hp-horizon__go {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 575.98px) {
    .hp-horizon__col,
    .hp-horizon__col.is-active {
        flex-basis: 82vw;
        width: 82vw;
        height: 340px;
        min-height: 340px;
        max-height: 340px;
    }
}

/* ── Map ── */
.hp-map {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 61, 27, 0.08);
}

#hp-algeria-map {
    height: 520px;
    width: 100%;
    background: #f3f8f4;
    direction: ltr;
    cursor: pointer;
}

#hp-algeria-map .leaflet-container {
    font-family: 'Cairo', 'PNU', sans-serif;
}

.hp-leaflet-tooltip {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 61, 27, 0.16);
    padding: 0.7rem 0.9rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    direction: rtl;
    text-align: right;
}

.hp-leaflet-tooltip strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ── Activities timeline ── */
.hp-timeline {
    display: grid;
    gap: 1rem;
}

.hp-act {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 1.2rem;
    align-items: center;
    background: #fff;
    border-radius: 22px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 61, 27, 0.05);
}

.hp-act__date {
    background: rgba(21, 87, 36, 0.08);
    color: var(--primary);
    border-radius: 16px;
    text-align: center;
    padding: 0.7rem 0.4rem;
    font-weight: 800;
}

.hp-act__date small {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
}

.hp-act h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.hp-act__meta {
    color: var(--muted);
    font-size: 0.86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* ── Institutions mosaic ── */
.hp-insts-section {
    position: relative;
    overflow: hidden;
    background-color: #f4f8f5;
}

.hp-insts-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(244, 248, 245, 0.9) 0%, rgba(244, 248, 245, 0.82) 55%, rgba(244, 248, 245, 0.88) 100%),
        var(--hp-insts-bg);
    background-size: cover;
    background-position: center;
}

.hp-insts-section .container {
    position: relative;
    z-index: 1;
}

.hp-insts__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1.25rem;
    margin-bottom: 1.4rem;
}

.hp-insts__head-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hp-insts__count {
    background: #fff;
    border-radius: 18px;
    padding: 0.7rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 61, 27, 0.06);
    line-height: 1.2;
}

.hp-insts__count strong {
    display: block;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.hp-insts__count span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-insts__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.hp-inst-chip {
    border: 1px solid rgba(21, 87, 36, 0.14);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 800;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hp-inst-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hp-inst-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.hp-insts__mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 1rem;
}

.hp-insts__mosaic.is-filtered {
    grid-auto-rows: 230px;
}

.hp-inst-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    text-decoration: none;
    color: #fff !important;
    isolation: isolate;
    min-height: 0;
    background: #0c2814;
    background-image: var(--hp-inst-photo);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 32px rgba(15, 61, 27, 0.1);
}

.hp-inst-card:hover {
    color: #fff !important;
}

.hp-inst-card--xl {
    grid-column: span 2;
    grid-row: span 2;
}

.hp-insts__mosaic.is-filtered .hp-inst-card--xl {
    grid-column: auto;
    grid-row: auto;
}

.hp-inst-card.is-hidden {
    display: none;
}

.hp-inst-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.6s ease;
}

.hp-inst-card:hover img {
    transform: scale(1.12);
}

.hp-inst-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(6, 20, 11, 0.92) 0%, rgba(6, 20, 11, 0.35) 52%, rgba(6, 20, 11, 0.12) 100%);
}

.hp-inst-card--xl .hp-inst-card__shade {
    background: linear-gradient(to top, rgba(6, 20, 11, 0.9) 0%, rgba(6, 20, 11, 0.28) 58%, rgba(6, 20, 11, 0.08) 100%);
}

.hp-inst-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.05rem 1.1rem;
}

.hp-inst-card--xl .hp-inst-card__content {
    padding: 1.5rem 1.4rem 1.5rem;
}

.hp-inst-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.hp-inst-card__ribbon,
.hp-inst-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: #fff;
}

.hp-inst-card__ribbon {
    background: #1FAE66;
}

.hp-inst-card__chip {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hp-inst-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 0.25rem;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hp-inst-card--xl h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.hp-inst-card__place,
.hp-inst-card__excerpt,
.hp-inst-card__foot {
    color: #f4fff7 !important;
}

.hp-inst-card__place {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    opacity: 0.95;
}

.hp-inst-card__excerpt {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.85rem;
    max-width: 34rem;
}

.hp-inst-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
}

.hp-inst-card__go {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.85;
}

.hp-inst-card:hover .hp-inst-card__go {
    opacity: 1;
}

.hp-insts__empty {
    text-align: center;
    color: var(--muted);
    font-weight: 700;
    padding: 1.5rem 0 0;
}

.hp-inst-track {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hp-inst {
    min-width: 280px;
    max-width: 300px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 61, 27, 0.06);
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hp-inst:hover {
    transform: translateY(-6px);
    color: inherit;
}

.hp-inst img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.hp-inst__body {
    padding: 1rem 1.1rem 1.2rem;
}

.hp-inst h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

/* ── CTA ── */
.hp-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-color: #081a0e;
    background-image: var(--hp-cta-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 48px rgba(8, 26, 14, 0.22);
}

.hp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(to left,
            rgba(6, 20, 11, 0.92) 0%,
            rgba(6, 20, 11, 0.78) 42%,
            rgba(6, 20, 11, 0.42) 72%,
            rgba(6, 20, 11, 0.22) 100%);
}

.hp-cta__body {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    padding: 2.8rem 2.5rem;
}

.hp-cta__kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

.hp-cta__title {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hp-cta__text {
    max-width: 34rem;
    margin-bottom: 1.4rem;
    color: #f4fff7 !important;
    font-size: 1.05rem;
    line-height: 1.85;
    font-weight: 600;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: #081a0e !important;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.85rem 1.45rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hp-cta__btn:hover {
    background: #f3fff6;
    color: #081a0e !important;
}

/* ── National solidarity banner ── */
.hp-sos {
    position: relative;
    isolation: isolate;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: flex-end;
    padding: 4.5rem 0 3.4rem;
    background-color: #1c0a08;
    background-image: var(--hp-sos-image);
    background-size: cover;
    background-position: center 30%;
    color: #fff;
    overflow: hidden;
}

.hp-sos::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(105deg, rgba(28, 8, 6, 0.88) 0%, rgba(28, 8, 6, 0.42) 48%, rgba(20, 83, 45, 0.28) 100%),
        linear-gradient(180deg, rgba(28, 8, 6, 0.15) 0%, rgba(28, 8, 6, 0.72) 100%);
}

.hp-sos__glow {
    position: absolute;
    inset: auto -10% -30% auto;
    width: 55%;
    height: 70%;
    z-index: 0;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.28), transparent 64%);
    pointer-events: none;
}

.hp-sos__inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
}

.hp-sos__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.12);
    border: 1px solid rgba(253, 186, 116, 0.45);
    color: #fed7aa;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.hp-sos__pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.65);
    animation: yc-sos-pulse 1.6s ease-out infinite;
}

@keyframes yc-sos-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.hp-sos__title {
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 1rem;
    color: #fff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hp-sos__text {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.95;
    color: rgba(255, 247, 237, 0.92);
    margin-bottom: 1.35rem;
    text-align: justify;
    text-justify: inter-word;
}

.hp-sos__crises {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0;
    margin: 0 0 1.6rem;
}

.hp-sos__crises li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
    font-size: 0.88rem;
}

.hp-sos__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.85rem;
}

.hp-sos-cta {
    --cta-shift: 0;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.35rem;
    padding: 0.7rem 1.15rem 0.7rem 1rem;
    border-radius: 22px;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.hp-sos-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
    transform: translateX(120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.hp-sos-cta:hover {
    transform: translateY(-3px);
}

.hp-sos-cta:hover::after {
    transform: translateX(-120%);
}

.hp-sos-cta:focus-visible {
    outline: 3px solid rgba(253, 186, 116, 0.75);
    outline-offset: 3px;
}

.hp-sos-cta__icon {
    flex: 0 0 auto;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.hp-sos-cta__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    text-align: right;
}

.hp-sos-cta__copy strong {
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
}

.hp-sos-cta__copy small {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.78;
}

.hp-sos-cta__arrow {
    margin-right: auto;
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.hp-sos-cta:hover .hp-sos-cta__arrow {
    transform: translateX(-4px);
}

.hp-sos-cta--primary {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 46%, #ffedd5 100%);
    color: #7f1d1d !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 237, 213, 0.7);
}

.hp-sos-cta--primary .hp-sos-cta__icon {
    background: linear-gradient(160deg, #f97316, #dc2626);
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
    animation: yc-sos-heart 1.8s ease-in-out infinite;
}

.hp-sos-cta--primary:hover {
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.hp-sos-cta--track {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(14px);
}

.hp-sos-cta--track .hp-sos-cta__icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(254, 215, 170, 0.4);
    color: #fed7aa;
}

.hp-sos-cta--track:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(254, 215, 170, 0.7);
}

@keyframes yc-sos-heart {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.08); }
}

.hp-empty {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

@media (max-width: 1199.98px) {
    .hp-stats__grid { grid-template-columns: repeat(3, 1fr); }
    .hp-cats { grid-template-columns: repeat(2, 1fr); }
    .hp-insts__mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 991.98px) {
    .hp-sos {
        min-height: 520px;
        padding: 3.2rem 0 2.4rem;
    }
    .hp-sos__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hp-sos-cta {
        width: 100%;
    }
    .hp-hero {
        min-height: 100dvh;
        min-height: 100svh;
        padding: calc(5.2rem + env(safe-area-inset-top, 0px)) 1rem 5.5rem;
        align-items: flex-end;
    }
    .hp-hero__slider .carousel-control-prev,
    .hp-hero__slider .carousel-control-next {
        display: none;
    }
    .hp-hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
        margin-bottom: 0.6rem;
    }
    .hp-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hp-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hp-hero__actions .yc-btn {
        width: 100%;
        padding: 0.85rem 1rem;
    }
    .hp-act { grid-template-columns: 90px 1fr; }
    .hp-act .yc-btn { grid-column: 1 / -1; }
    .hp-insts__mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }
    .hp-inst-card--xl {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 280px;
    }
    .hp-stats {
        margin-top: -1.25rem;
        padding-inline: 0.85rem;
        z-index: 5;
    }
    .hp-stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        padding: 0.75rem;
        border-radius: 22px;
    }
    .hp-stat {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        text-align: right;
        background: #f3f8f4;
        border-radius: 16px;
        padding: 0.7rem 0.65rem;
        min-width: 0;
    }
    .hp-stat:last-child {
        grid-column: 1 / -1;
    }
    .hp-stat__icon {
        width: 38px;
        height: 38px;
        margin: 0;
        flex-shrink: 0;
        font-size: 1.05rem;
    }
    .hp-stat__copy {
        min-width: 0;
        flex: 1;
    }
    .hp-stat__value {
        font-size: clamp(1.05rem, 4.6vw, 1.45rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hp-stat__label {
        font-size: 0.72rem;
        line-height: 1.3;
    }
}

@media (max-width: 767.98px) {
    .hp-section { padding: 2.6rem 0; }
    .hp-cats { grid-template-columns: 1fr; }
    .hp-cat {
        min-height: 0;
        border-radius: 22px;
    }
    .hp-search {
        flex-wrap: nowrap;
        border-radius: 18px;
        width: 100%;
        max-width: none;
    }
    .hp-search__btn {
        width: auto;
        padding: 0.7rem 1rem;
        border-radius: 14px;
    }
    .hp-search__input {
        font-size: 0.92rem;
        padding: 0.7rem 0.3rem;
    }
    #hp-algeria-map { height: 320px; border-radius: 18px; }
    .hp-cta {
        min-height: 0;
        border-radius: 22px;
        background-position: 30% center;
    }
    .hp-cta::before {
        background: linear-gradient(to bottom,
            rgba(6, 20, 11, 0.92) 0%,
            rgba(6, 20, 11, 0.82) 62%,
            rgba(6, 20, 11, 0.55) 100%);
    }
    .hp-cta__body { padding: 1.6rem 1.2rem 1.9rem; max-width: none; }
    .hp-cat__arrow { opacity: 1; transform: none; }
    .hp-insts__mosaic,
    .hp-insts__mosaic.is-filtered {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }
    .hp-inst-card--xl {
        grid-column: auto;
        grid-row: auto;
        min-height: 280px;
    }
    .hp-insts__chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
    .hp-inst-chip { flex-shrink: 0; }
    .hp-insts__head-actions { width: 100%; }
    .hp-insts__count { flex: 1; }
    .hp-inst { min-width: 78vw; }
    .hp-map { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-reveal {
        opacity: 1;
        transform: none;
    }
    .hp-inst-card img,
    .hp-inst-card:hover img,
    .hp-horizon__col,
    .hp-horizon__col img,
    .hp-hero-live__dot {
        transform: none;
        animation: none;
        transition: none;
    }
}
