/* =========================================================
   NEXTSTEP AI — UNIVERSITIES
   LIGHT BRAND IDENTITY
   ========================================================= */

:root {
    --uni-bg: #f7fafd;
    --uni-bg-soft: #eef7fc;
    --uni-white: #ffffff;

    --uni-navy: #0f172a;
    --uni-navy-2: #172554;

    --uni-blue: #0284c7;
    --uni-blue-dark: #0369a1;
    --uni-blue-light: #38bdf8;
    --uni-cyan: #22c7e8;
    --uni-mint: #34d399;

    --uni-text: #0f172a;
    --uni-muted: #64748b;
    --uni-muted-light: #94a3b8;

    --uni-border: #e2e8f0;
    --uni-border-blue: rgba(2, 132, 199, .18);

    --uni-shadow:
        0 10px 35px rgba(15, 23, 42, .07);

    --uni-shadow-blue:
        0 15px 40px rgba(2, 132, 199, .13);

    /* الهيدر شفاف بهاي الصفحة (بدون --header-bg)، بنفس
       سلوك صفحة تفاصيل الجامعة — القيمة الافتراضية بـ
       header.css هي transparent. */
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(56, 189, 248, .08),
            transparent 30%
        ),
        var(--uni-bg);

    color: var(--uni-text);

    font-family: "Cairo", sans-serif;

    overflow-x: hidden;
}


/* =========================================================
   HERO
   Fills the remaining viewport height below the fixed header,
   so it's visible in one screen with no extra scroll needed.
   Relies on .header-spacer (from header.css) to push this
   section below the fixed header — no extra padding-top here.
   ========================================================= */
.uni-hero {
    min-height: 100vh;
    padding-top: var(--header-height, 96px);
    box-sizing: border-box;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fbff 52%,
            #eef8fd 100%
        );

    border-bottom:
        1px solid var(--uni-border);
        margin-top: 97px;
}


/* Soft decorative glow */

.uni-hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -130px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(56, 189, 248, .18),
            rgba(56, 189, 248, 0) 70%
        );

    pointer-events: none;

    animation: heroGlow 7s ease-in-out infinite;
}

.uni-hero::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    left: -170px;
    bottom: -200px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(2, 132, 199, .09),
            transparent 70%
        );

    pointer-events: none;
}

@keyframes heroGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: .8;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}


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

.hero-grid {
    position: absolute;

    inset: 0;

    opacity: .45;

    background-image:
        linear-gradient(
            rgba(2, 132, 199, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(2, 132, 199, .045) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );

    pointer-events: none;
}


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

.hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(70px);

    pointer-events: none;
}

.glow-one {
    width: 260px;
    height: 260px;

    right: 35%;
    top: 80px;

    background:
        rgba(56, 189, 248, .09);
}

.glow-two {
    width: 220px;
    height: 220px;

    left: 15%;
    bottom: -80px;

    background:
        rgba(52, 211, 153, .07);
}





/* =========================================================
   FLOATING LOGO
   ========================================================= */

.hero-floating-logo {
    position: absolute;

    left: 7%;
    top: 22%;

    z-index: 4;

    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    /*border: 4px solid #ffffff;*/
  /*  border-radius: 50%;*/
/*
    background: #ffffff;

    box-shadow:
        0 15px 35px rgba(2, 132, 199, .12);
*/
    animation:
        logoFloat 5s ease-in-out infinite;
}

.hero-floating-logo img {
    width: 62%;
    height: 62%;

    object-fit: contain;
}

@keyframes logoFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-14px)
            rotate(4deg);
    }
}




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

.uni-hero-content {
    width: min(650px, 90%);

    margin-right: 8%;

    position: relative;
    z-index: 5;

    animation:
        heroContentIn .8s ease both;
}

@keyframes heroContentIn {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Eyebrow */

.uni-eyebrow {
    width: fit-content;

    padding: 7px 15px;

    display: flex;
    align-items: center;
    gap: 8px;

    border:
        1px solid rgba(2, 132, 199, .18);

    border-radius: 999px;

    color: var(--uni-blue);

    background:
        rgba(2, 132, 199, .055);

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 5px 20px rgba(2, 132, 199, .05);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--uni-mint);

    box-shadow:
        0 0 0 5px rgba(52, 211, 153, .12);

    animation:
        eyebrowPulse 1.8s ease-in-out infinite;
}

@keyframes eyebrowPulse {

    50% {
        transform: scale(1.25);
        box-shadow:
            0 0 0 8px rgba(52, 211, 153, .05);
    }
}

.spark {
    color: var(--uni-blue-light);

    animation:
        sparkFloat 2s ease-in-out infinite;
}

@keyframes sparkFloat {

    50% {
        transform:
            translateY(-3px)
            rotate(15deg);
    }
}


/* Hero title */

.uni-hero h1 {
    margin:
        22px 0 15px;

    color: var(--uni-navy);

    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 1.12;

    font-weight: 900;

    letter-spacing: -2px;
}

.uni-hero h1 span {
    display: inline-block;

    color: transparent;

    background:
        linear-gradient(
            100deg,
            var(--uni-blue-dark),
            var(--uni-blue),
            var(--uni-cyan)
        );

    -webkit-background-clip: text;
    background-clip: text;

    animation:
        titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {

    50% {
        filter:
            drop-shadow(
                0 4px 15px rgba(2, 132, 199, .16)
            );
    }
}


/* Hero paragraph */

.uni-hero p {
    max-width: 570px;

    margin: 0 0 26px;

    color: var(--uni-muted);

    font-size: 16px;

    line-height: 2;
}

.uni-hero p strong {
    color: var(--uni-blue);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-hero-box {
    height: 60px;

    max-width: 560px;

    padding: 5px;

    display: flex;
    align-items: center;

    border:
        1px solid #d9e7f0;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .06);

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.search-hero-box:focus-within {
    border-color:
        rgba(2, 132, 199, .45);

    box-shadow:
        0 12px 40px rgba(2, 132, 199, .12);

    transform: translateY(-1px);
}

.search-hero-box svg {
    width: 21px;
    height: 21px;

    margin:
        0 15px;

    stroke:
        var(--uni-blue);

    fill: none;

    flex-shrink: 0;
}

.search-hero-box input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    color: var(--uni-navy);

    background: transparent;

    font-family: inherit;
    font-size: 14px;
}

.search-hero-box input::placeholder {
    color: #94a3b8;
}

.search-hero-box button {
    height: 48px;

    padding:
        0 28px;

    border: 0;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--uni-blue-dark),
            var(--uni-blue),
            var(--uni-cyan)
        );

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(2, 132, 199, .18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.search-hero-box button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 28px rgba(2, 132, 199, .28);
}


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

.hero-mini-stats {
    margin-top: 32px;

    display: flex;
    align-items: center;

    gap: 24px;
}

.hero-stat {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.hero-stat strong {
    color: var(--uni-blue);

    font-family: "Poppins", sans-serif;

    font-size: 20px;
    font-weight: 800;
}

.hero-stat span {
    color: var(--uni-muted);

    font-size: 10px;
    font-weight: 600;
}

.stat-line {
    width: 1px;
    height: 34px;

    background:
        #dbe5ed;
}


/* =========================================================
   MAP
   ========================================================= */

.hero-map {
    position: absolute;

    width: 650px;
    height: 520px;

    right: 1%;
    top: 65px;

    z-index: 2;

    opacity: .9;

    animation:
        mapFloat 6s ease-in-out infinite;
}

@keyframes mapFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.hero-map svg {
    width: 100%;
    height: 100%;
}


/* Palestine shape */

.map-outline {
    fill:
        rgba(2, 132, 199, .025);

    stroke:
        rgba(2, 132, 199, .15);

    stroke-width: 2;
}


/* Journey */

.journey-path {
    fill: none;

    stroke:
        var(--uni-blue-light);

    stroke-width: 3;

    stroke-linecap: round;

    stroke-dasharray:
        8 9;

    filter:
        drop-shadow(
            0 0 5px rgba(2, 132, 199, .25)
        );

    animation:
        journeyMove 4s linear infinite;
}

@keyframes journeyMove {

    to {
        stroke-dashoffset: -68;
    }
}


/* Points */

.map-point {
    fill:
        #ffffff;

    stroke:
        var(--uni-blue);

    stroke-width: 3;

    filter:
        drop-shadow(
            0 0 5px rgba(2, 132, 199, .3)
        );

    animation:
        pointPulse 2.2s ease-in-out infinite;
}

@keyframes pointPulse {

    50% {
        transform:
            scale(1.35);
        transform-origin: center;
    }
}


/* Destination */

.destination {
    fill: #ffffff;

    stroke:
        var(--uni-blue);

    stroke-width: 4;

    filter:
        drop-shadow(
            0 0 10px rgba(2, 132, 199, .35)
        );
}

.destination-pulse {
    fill: none;

    stroke:
        var(--uni-cyan);

    stroke-width: 2;

    animation:
        destinationPulse 2s infinite;
}

@keyframes destinationPulse {

    from {
        opacity: .7;
        r: 11;
    }

    to {
        opacity: 0;
        r: 30;
    }
}


/* Map labels */

.map-label {
    position: absolute;

    color:
        #334155;

    font-size: 12px;
    font-weight: 800;

    background:
        rgba(255, 255, 255, .82);

    padding:
        3px 8px;

    border-radius: 7px;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, .05);
}

.label-tulkarm {
    bottom: 65px;
    left: 160px;
}

.label-hebron {
    bottom: 160px;
    left: 250px;
}

.label-jerusalem {
    bottom: 245px;
    left: 320px;
}

.label-ramallah {
    bottom: 330px;
    left: 405px;
}

.label-nablus {
    top: 115px;
    right: 100px;
}


/* Destination label */

.destination-label {
    position: absolute;

    top: 28px;
    right: 45px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    color:
        var(--uni-blue-dark);

    font-size: 12px;
    font-weight: 800;
}

.destination-label i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--uni-cyan);

    box-shadow:
        0 0 0 6px rgba(34, 199, 232, .1);

    animation:
        destinationDot 1.7s infinite;
}

@keyframes destinationDot {

    50% {
        box-shadow:
            0 0 0 10px rgba(34, 199, 232, .04);
    }
}


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

.uni-main {
    position: relative;

    padding:
        75px 0 100px;

    background:
        linear-gradient(
            180deg,
            #f8fbfd 0%,
            #ffffff 35%,
            #f8fbfd 100%
        );
}

.universities-section {
    width:
        min(1250px, 92%);

    margin:
        auto;
}


/* =========================================================
   SECTION HEAD
   ========================================================= */

.section-head {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.section-kicker {
    color:
        var(--uni-blue);

    font-size: 12px;
    font-weight: 800;
}

.section-head h2 {
    margin:
        7px 0;

    color:
        var(--uni-navy);

    font-size: 30px;
    line-height: 1.4;

    font-weight: 900;
}

.section-head h2 span {
    color:
        var(--uni-blue);
}

.section-head p {
    margin: 0;

    color:
        var(--uni-muted);

    font-size: 13px;
}

.results-count-box {
    min-width: 150px;

    padding:
        14px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

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

    border-radius: 14px;

    background:
        #ffffff;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, .04);
}

.results-count-box strong {
    color:
        var(--uni-blue);

    font-family:
        "Poppins", sans-serif;
}


/* =========================================================
   FILTERS
   ========================================================= */

.uni-filter-wrapper {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 25px;
}

.uni-filter-chips {
    flex: 1;

    display: flex;

    gap: 9px;

    overflow-x: auto;

    scrollbar-width: none;
}

.uni-filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex:
        0 0 auto;

    padding:
        10px 21px;

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

    border-radius:
        10px;

    color:
        var(--uni-muted);

    background:
        #ffffff;

    font-family:
        inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        .25s ease;
}

.filter-chip:hover {
    color:
        var(--uni-blue);

    border-color:
        rgba(2, 132, 199, .3);

    transform:
        translateY(-1px);
}

.filter-chip.active {
    color:
        #ffffff;

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

    background:
        var(--uni-blue);

    box-shadow:
        0 6px 18px rgba(2, 132, 199, .16);
}

.filter-arrow {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

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

    border-radius: 10px;

    color:
        var(--uni-blue);

    background:
        #ffffff;

    cursor: pointer;

    transition: .25s;
}

.filter-arrow:hover {
    color: #ffffff;

    background:
        var(--uni-blue);

    border-color:
        var(--uni-blue);
}


/* =========================================================
   UNIVERSITY CAROUSEL
   ========================================================= */

.uni-carousel-wrapper {
    position: relative;
}

.uni-carousel {
    display: grid;

    grid-auto-flow: column;

    grid-auto-columns:
        calc((100% - 48px) / 4);

    gap: 16px;

    overflow-x: auto;

    padding:
        8px 5px 24px;

    scroll-snap-type:
        x mandatory;

    scrollbar-width: none;
}

.uni-carousel::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   UNIVERSITY CARD
   ========================================================= */

.uni-card {
    min-width: 0;

    position: relative;

    overflow: hidden;

    scroll-snap-align: start;

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

    border-radius: 17px;

    background:
        #ffffff;

    box-shadow:
        0 7px 25px rgba(15, 23, 42, .055);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

    animation:
        cardIn .6s both;
}

@keyframes cardIn {

    from {
        opacity: 0;
        transform:
            translateY(20px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

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

    border-color:
        rgba(2, 132, 199, .28);

    box-shadow:
        var(--uni-shadow-blue);
}


/* Card image */

.uni-image {
    height: 185px;

    position: relative;

    overflow: hidden;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #dff4fc,
            #eef8fd
        );
}

.uni-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, .18),
            transparent 60%
        );

    pointer-events: none;
}

.uni-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .6s ease;
}

.uni-card:hover
.uni-image img {
    transform:
        scale(1.07);
}


/* Heart */

.uni-heart {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(255,255,255,.8);

    border-radius: 50%;

    color:
        #475569;

    background:
        rgba(255,255,255,.9);

    box-shadow:
        0 5px 15px rgba(15,23,42,.08);

    cursor: pointer;

    transition:
        .25s;
}

.uni-heart:hover {
    transform:
        scale(1.08);

    color:
        #ef476f;
}

.uni-heart.liked {
    color:
        #ef476f;
}


/* Logo */

.uni-logo {
    position: absolute;

    top: 141px;
    right: 17px;

    z-index: 6;

    width: 68px;
    height: 68px;

    display: grid;

    place-items: center;

    border:
        4px solid #ffffff;

    border-radius: 50%;

    color:
        var(--uni-blue);

    background:
        #ffffff;

    box-shadow:
        0 7px 22px rgba(15,23,42,.13);

    font-family:
        "Poppins", sans-serif;

    font-size: 19px;
    font-weight: 800;

    overflow: hidden;
}

.uni-logo-img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* Card body */

.uni-card-body {
    padding:
        34px 18px 17px;
}

.uni-card h3 {
    margin:
        0 0 3px;

    color:
        var(--uni-navy);

    font-size: 16px;

    font-weight: 800;

    line-height: 1.6;
}

.uni-location {
    color:
        var(--uni-muted);

    font-size: 11px;

    font-weight: 600;
}

.uni-card-btn {
    width: 100%;

    height: 41px;

    margin-top: 15px;

    border:
        1px solid #dbe5ec;

    border-radius: 10px;

    color:
        var(--uni-blue);

    background:
        #f8fafc;

    font-family:
        inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        .25s ease;
}

.uni-card-btn:hover {
    color:
        #ffffff;

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

    background:
        var(--uni-blue);

    box-shadow:
        0 7px 18px rgba(2,132,199,.15);
}


/* =========================================================
   QUICK VIEW BUTTON (on image hover)
   ========================================================= */

.uni-quickview-btn {
    position: absolute;

    left: 50%;
    bottom: 16px;

    z-index: 7;

    transform:
        translate(-50%, 14px);

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        9px 18px;

    border: 0;

    border-radius: 999px;

    color:
        var(--uni-navy);

    background:
        #ffffff;

    font-family:
        inherit;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    cursor: pointer;

    opacity: 0;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, .18);

    transition:
        opacity .3s ease,
        transform .3s ease,
        background .25s ease,
        color .25s ease;
}

.uni-quickview-btn svg {
    width: 15px;
    height: 15px;

    stroke:
        currentColor;

    fill: none;

    flex-shrink: 0;
}

.uni-card:hover .uni-quickview-btn {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

.uni-quickview-btn:hover {
    color:
        #ffffff;

    background:
        var(--uni-blue);
}


/* =========================================================
   QUICK VIEW MODAL
   ========================================================= */

.uni-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(15, 23, 42, .55);

    backdrop-filter:
        blur(4px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.uni-modal-overlay.open {
    opacity: 1;

    visibility: visible;
}

.uni-modal-box {
    width:
        min(480px, 100%);

    max-height: 88vh;

    overflow-y: auto;

    position: relative;

    border-radius: 22px;

    background:
        #ffffff;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .25);

    transform:
        translateY(18px)
        scale(.97);

    transition:
        transform .3s ease;
}

.uni-modal-overlay.open .uni-modal-box {
    transform:
        translateY(0)
        scale(1);
}

.uni-modal-close {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 5;

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 50%;

    color:
        var(--uni-navy);

    background:
        rgba(255, 255, 255, .92);

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(15, 23, 42, .15);

    transition:
        .2s ease;
}

.uni-modal-close:hover {
    color:
        #ffffff;

    background:
        var(--uni-blue);
}

.uni-modal-cover {
    height: 170px;

    position: relative;

    overflow: hidden;

    border-radius:
        22px 22px 0 0;

    background:
        linear-gradient(
            135deg,
            #dff4fc,
            #eef8fd
        );
}

.uni-modal-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.uni-modal-cover::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, .25),
            transparent 55%
        );
}

.uni-modal-logo {
    position: absolute;

    bottom: -26px;
    right: 20px;

    z-index: 6;

    width: 60px;
    height: 60px;

    display: grid;

    place-items: center;

    border:
        4px solid #ffffff;

    border-radius: 50%;

    color:
        var(--uni-blue);

    background:
        #ffffff;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, .15);

    font-family:
        "Poppins", sans-serif;

    font-size: 17px;
    font-weight: 800;

    overflow: hidden;
}

.uni-modal-logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.uni-modal-body {
    padding:
        40px 24px 26px;
}

.uni-modal-body h3 {
    margin: 0 0 6px;

    color:
        var(--uni-navy);

    font-size: 19px;

    font-weight: 900;
}

.uni-modal-location {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color:
        var(--uni-muted);

    font-size: 12px;

    font-weight: 600;
}

.uni-modal-location svg {
    width: 14px;
    height: 14px;

    stroke:
        var(--uni-blue);

    fill: none;

    flex-shrink: 0;
}

.uni-modal-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin: 20px 0;
}

.uni-modal-stat {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 3px;

    padding:
        13px 8px;

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

    border-radius: 13px;

    background:
        #f8fbfd;
}

.uni-modal-stat b {
    color:
        var(--uni-blue);

    font-family:
        "Poppins", sans-serif;

    font-size: 17px;

    font-weight: 800;
}

.uni-modal-stat span {
    color:
        var(--uni-muted);

    font-size: 10px;

    font-weight: 700;
}

.uni-modal-desc {
    margin: 0 0 22px;

    color:
        var(--uni-muted);

    font-size: 13px;

    line-height: 1.9;
}

.uni-modal-more-btn {
    width: 100%;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--uni-blue-dark),
            var(--uni-blue),
            var(--uni-cyan)
        );

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 8px 22px rgba(2, 132, 199, .2);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.uni-modal-more-btn:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 28px rgba(2, 132, 199, .3);
}

@media (max-width: 600px) {

    .uni-quickview-btn {
        opacity: 1;

        transform:
            translate(-50%, 0);

        padding:
            7px 14px;

        font-size: 10px;
    }
}
@media (max-width: 850px) {
    .hero-floating-logo {
        display: none;
    }
}

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

.carousel-btn {
    position: absolute;

    top: 43%;

    z-index: 20;

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

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

    border-radius: 50%;

    color:
        var(--uni-blue);

    background:
        rgba(255,255,255,.96);

    box-shadow:
        0 8px 25px rgba(15,23,42,.1);

    cursor: pointer;

    font-size: 20px;

    transition:
        .25s;
}

.carousel-btn:hover {
    color:
        #ffffff;

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

    background:
        var(--uni-blue);

    transform:
        scale(1.07);
}

.carousel-prev {
    right: -22px;
}

.carousel-next {
    left: -22px;
}


/* =========================================================
   DOTS
   ========================================================= */

.carousel-dots {
    display: flex;

    justify-content: center;

    gap: 6px;

    margin:
        2px 0 35px;
}

.carousel-dot {
    width: 7px;
    height: 7px;

    border-radius: 20px;

    background:
        #cbd5e1;

    transition:
        .3s ease;
}

.carousel-dot.active {
    width: 24px;

    background:
        var(--uni-blue);
}


/* =========================================================
   SPECIALIZATIONS
   ========================================================= */

.specializations {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    overflow: hidden;

    margin:
        25px 0 65px;

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

    border-radius: 18px;

    background:
        #ffffff;

    box-shadow:
        0 6px 25px rgba(15,23,42,.035);
}

.specialization-item {
    min-height: 105px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color:
        var(--uni-muted);

    border-left:
        1px solid #edf2f5;

    transition:
        .3s ease;
}

.specialization-item:last-child {
    border-left: 0;
}

.specialization-item:hover {
    color:
        var(--uni-navy);

    background:
        #f7fbfd;
}

.special-icon {
    color:
        var(--uni-blue);

    font-size: 26px;

    transition:
        .3s ease;
}

.specialization-item:hover
.special-icon {
    transform:
        translateY(-4px)
        scale(1.12);

    filter:
        drop-shadow(
            0 5px 8px rgba(2,132,199,.18)
        );
}


/* =========================================================
   BOTTOM CONTENT
   ========================================================= */

.bottom-content {
    display: grid;

    grid-template-columns:
        1.45fr 1fr;

    gap: 30px;
}


/* =========================================================
   SECTION SMALL HEAD
   ========================================================= */

.section-small-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.section-small-head span {
    color:
        var(--uni-blue);

    font-size: 11px;

    font-weight: 800;
}

.section-small-head h2 {
    margin:
        3px 0 0;

    color:
        var(--uni-navy);

    font-size: 24px;

    font-weight: 900;
}

.section-small-head > a {
    color:
        var(--uni-blue);

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   ARTICLES
   ========================================================= */

.articles-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px;
}

.article-card {
    min-height: 285px;

    padding: 19px;

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

    border-radius: 16px;

    background:
        #ffffff;

    box-shadow:
        0 6px 20px rgba(15,23,42,.035);

    transition:
        .3s ease;
}

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

    border-color:
        rgba(2,132,199,.22);

    box-shadow:
        0 13px 30px rgba(2,132,199,.08);
}

.article-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 13px;

    font-size: 21px;
}

.article-icon.blue {
    color:
        #2563eb;

    background:
        #eff6ff;
}

.article-icon.cyan {
    color:
        #0284c7;

    background:
        #e0f2fe;
}

.article-icon.purple {
    color:
        #7c3aed;

    background:
        #f3e8ff;
}

.article-card > span {
    color:
        var(--uni-blue);

    font-size: 10px;

    font-weight: 800;
}

.article-card h3 {
    margin:
        8px 0;

    color:
        var(--uni-navy);

    font-size: 14px;

    line-height: 1.7;
}

.article-card p {
    color:
        var(--uni-muted);

    font-size: 11px;

    line-height: 1.9;
}

.article-card a {
    color:
        var(--uni-blue);

    text-decoration: none;

    font-size: 10px;

    font-weight: 800;
}


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

.faq-section {
    padding-right:
        25px;

    border-right:
        1px solid #edf2f5;
}

.question-icon {
    width: 30px;
    height: 30px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(2,132,199,.2);

    border-radius: 50%;

    color:
        var(--uni-blue);

    background:
        #eff9fd;

    font-family:
        "Poppins", sans-serif;

    font-weight: 700;
}

.faq-list {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.faq-item {
    overflow: hidden;

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

    border-radius: 13px;

    background:
        #ffffff;

    transition:
        .3s;
}

.faq-item:hover {
    border-color:
        rgba(2,132,199,.2);
}

.faq-question {
    width: 100%;

    padding:
        16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border: 0;

    color:
        var(--uni-navy);

    background:
        transparent;

    font-family:
        inherit;

    font-size: 11px;

    font-weight: 700;

    text-align: right;

    cursor: pointer;
}

.faq-question b {
    flex-shrink: 0;

    color:
        var(--uni-blue);

    transition:
        .3s;
}

.faq-item.active
.faq-question b {
    transform:
        rotate(180deg);
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition:
        max-height .4s ease;
}

.faq-answer p {
    margin: 0;

    padding:
        0 16px 17px;

    color:
        var(--uni-muted);

    font-size: 10.5px;

    line-height: 1.9;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    width: 100%;

    grid-column: 1 / -1;

    padding:
        60px 20px;

    text-align: center;

    border:
        1px dashed #d7e3ea;

    border-radius: 18px;

    background:
        #ffffff;
}

.empty-state > div {
    color:
        var(--uni-blue);

    font-size: 35px;
}

.empty-state h3 {
    margin:
        10px 0 5px;

    color:
        var(--uni-navy);
}

.empty-state p {
    margin: 0;

    color:
        var(--uni-muted);

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .hero-map {
        right: -120px;
        opacity: .45;
    }

    .uni-hero-content {
        margin-right: 6%;
    }

    .uni-carousel {
        grid-auto-columns:
            calc((100% - 32px) / 3);
    }

    .specializations {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .specialization-item:nth-child(3) {
        border-left: 0;
    }
}


@media (max-width: 850px) {

    .hero-map {
        right: -240px;
        opacity: .2;
    }

    .uni-hero-content {
        margin:
            auto;
    }

    .uni-hero h1 {
        font-size: 46px;
    }

    .bottom-content {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding-right: 0;

        border-right: 0;
    }

    .uni-carousel {
        grid-auto-columns:
            calc((100% - 16px) / 2);
    }
}


@media (max-width: 600px) {

    .uni-hero-content {
        width: 90%;
    }

    .uni-hero h1 {
        font-size: 38px;

        letter-spacing:
            -1px;
    }

    .uni-hero p {
        font-size: 13px;
    }

    .search-hero-box {
        height: 55px;
    }

    .search-hero-box button {
        height: 45px;

        padding:
            0 20px;
    }

    .hero-mini-stats {
        gap: 12px;
    }

    .hero-stat strong {
        font-size: 17px;
    }

    .hero-stat span {
        font-size: 9px;
    }

    .section-head {
        flex-direction: column;

        align-items: flex-start;
    }

    .section-head h2 {
        font-size: 25px;
    }

    .results-count-box {
        width: 100%;
    }

    .uni-carousel {
        grid-auto-columns:
            84%;
    }

    .carousel-btn {
        display: none;
    }

    .specializations {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .specialization-item:nth-child(3) {
        border-left:
            1px solid #edf2f5;
    }

    .articles-grid {
        grid-template-columns:
            1fr;
    }

    .article-card {
        min-height: auto;
    }

    .faq-section {
        margin-top: 15px;
    }
}
.popover-wrapper {
  position: relative;
  display: inline-flex;
}

.soon-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

/* مخفية في البداية */
.soon-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);

  background: #173873;
  color: #ffffff;

  padding: 7px 14px;
  border-radius: 8px;

  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

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

  z-index: 1000;
}

/* السهم */
.soon-popover::after {
  content: "";

  position: absolute;
  top: 100%;
  left: 50%;

  transform: translateX(-50%);

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #173873;
}

/* تظهر عند الضغط */
.popover-wrapper.active .soon-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}