/* =====================================================
   الدكتور في الفيزياء - Libraries Page
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0b5ed7;
    --primary-dark: #073b8c;
    --navy: #081d3a;
    --text: #182230;
    --muted: #687386;
    --bg: #f5f8fc;
    --white: #ffffff;
    --border: #e6ebf2;
    --success: #16a34a;
    --gold: #f3b51b;
    --shadow: 0 15px 45px rgba(14, 43, 84, 0.09);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

button,
select {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =====================================================
   HEADER
===================================================== */

.main-header {
    height: 84px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(225, 232, 241, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.brand-text span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 11px 15px;
    border-radius: 11px;
    color: #4c596b;
    font-size: 13px;
    font-weight: 700;
    transition: .25s;
}

.main-nav a i {
    margin-left: 5px;
    color: var(--primary);
}

.main-nav a:hover {
    background: #edf5ff;
    color: var(--primary);
}

.header-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(11, 94, 215, .22);
    transition: .25s;
}

.header-search-btn:hover {
    transform: translateY(-2px);
    background: #084eB9;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 530px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(65, 139, 255, .19), transparent 28%),
        radial-gradient(circle at 85% 70%, rgba(243, 181, 27, .09), transparent 25%),
        linear-gradient(125deg, #061a35 0%, #0a3470 52%, #0b5ed7 130%);
    color: white;
}

.hero::before {
    content: "E = mc²    F = ma    v = u + at    λ = h/p";
    position: absolute;
    top: 55px;
    left: -20px;
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 10px;
    opacity: .025;
    transform: rotate(-7deg);
    white-space: nowrap;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
}

.hero-decoration-1 {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -250px;
}

.hero-decoration-2 {
    width: 270px;
    height: 270px;
    right: 42%;
    top: -160px;
}

.hero-container {
    min-height: 530px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 70px;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 65px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #65e692;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: #74b4ff;
}

.hero-content > p {
    max-width: 650px;
    color: rgba(255,255,255,.77);
    line-height: 2;
    font-size: 16px;
    margin-top: 18px;
}

.hero-content > p strong {
    color: white;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition: .25s;
}

.primary-btn {
    background: white;
    color: var(--primary-dark);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.secondary-btn {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.07);
    color: white;
}

.secondary-btn:hover {
    background: rgba(255,255,255,.13);
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 30px;
    color: rgba(255,255,255,.67);
    font-size: 11px;
    font-weight: 700;
}

.hero-features i {
    color: #65e692;
    margin-left: 5px;
}


/* =====================================================
   HERO EGYPT CARD
===================================================== */

.hero-landmark {
    position: relative;
    display: flex;
    justify-content: center;
}

.landmark-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(47, 129, 255, .28);
    filter: blur(70px);
}

.egypt-card {
    width: 360px;
    min-height: 350px;
    position: relative;
    z-index: 2;
    padding: 38px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.13),
        rgba(255,255,255,.045)
    );
    box-shadow: 0 30px 70px rgba(0,0,0,.17);
    backdrop-filter: blur(18px);
}

.egypt-icon {
    width: 67px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    font-size: 27px;
    color: #f8c54c;
    margin-bottom: 28px;
}

.egypt-card > span {
    color: #7db9ff;
    font-size: 12px;
    font-weight: 800;
}

.egypt-card h2 {
    font-size: 27px;
    line-height: 1.55;
    margin-top: 8px;
}

.egypt-line {
    height: 3px;
    width: 55px;
    background: var(--gold);
    border-radius: 20px;
    margin: 20px 0;
}

.egypt-card p {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255,255,255,.67);
}


/* =====================================================
   SEARCH PANEL
===================================================== */

.search-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.search-panel {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 70px rgba(14, 43, 84, .14);
    border: 1px solid rgba(228, 234, 243, .8);
}

.search-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.search-heading-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #eaf3ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.search-heading h2 {
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.search-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #596578;
    margin-bottom: 7px;
}

.filter-group label i {
    color: var(--primary);
    margin-left: 5px;
}

.filter-group select {
    width: 100%;
    height: 49px;
    border: 1px solid #dfe6ef;
    border-radius: 11px;
    padding: 0 13px;
    background: #fbfcfe;
    color: #303b4a;
    outline: none;
    transition: .2s;
}

.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,94,215,.08);
    background: white;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 12px;
    margin-top: 17px;
}

.search-input {
    height: 51px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #fbfcfe;
    transition: .2s;
}

.search-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,94,215,.08);
    background: white;
}

.search-input i {
    color: #8995a6;
    margin-left: 10px;
}

.search-input input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 13px;
    color: var(--text);
}

.search-btn {
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(11,94,215,.2);
    transition: .25s;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


/* =====================================================
   GOVERNORATE BANNER
===================================================== */

.governorate-banner {
    padding: 45px 0 15px;
}

.landmark-banner {
    min-height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 45px;
    border-radius: 25px;
    color: white;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 25%),
        linear-gradient(120deg, #0b5ed7, #062b61);
    box-shadow: var(--shadow);
}

.landmark-banner::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -50px;
    bottom: -150px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}

.landmark-content {
    position: relative;
    z-index: 2;
}

.landmark-small {
    display: inline-block;
    color: #a9ceff;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 7px;
}

.landmark-content h2 {
    font-size: 25px;
    font-weight: 900;
}

.landmark-content p {
    color: rgba(255,255,255,.68);
    font-size: 12px;
    margin-top: 7px;
}

.landmark-symbol {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.13);
    font-size: 42px;
    color: #ffd35d;
    position: relative;
    z-index: 2;
}


/* =====================================================
   STATS
===================================================== */

.student-stats {
    padding: 25px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.student-stat {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(14,43,84,.045);
}

.student-stat-icon {
    width: 53px;
    height: 53px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eaf3ff;
    color: var(--primary);
    font-size: 20px;
}

.student-stat-icon.success {
    color: var(--success);
    background: #eaf9ef;
}

.student-stat strong {
    display: block;
    color: var(--navy);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

.student-stat span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}


/* =====================================================
   LIBRARIES
===================================================== */

.libraries-section {
    padding: 30px 0 75px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    background: #eaf3ff;
    border-radius: 100px;
    padding: 6px 11px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 28px;
    color: var(--navy);
    font-weight: 900;
}

.section-heading p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.reset-btn {
    border: 1px solid #dfe6ef;
    background: white;
    border-radius: 11px;
    padding: 10px 15px;
    color: #5b6677;
    font-size: 11px;
    font-weight: 700;
    transition: .2s;
}

.reset-btn:hover {
    color: var(--primary);
    border-color: #aacdf8;
}


/* =====================================================
   FIREBASE CARDS
===================================================== */

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.library-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 23px;
    box-shadow: 0 8px 30px rgba(14,43,84,.055);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    animation: cardIn .45s ease both;
}

/* نخفي الصورة القديمة لو app.js لسه بيضيفها */
.library-card > img {
    display: none;
}

.library-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(14,43,84,.12);
    border-color: #bed8fa;
}

.library-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #0b5ed7, #5ba3ff);
}

.library-info h3 {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy);
    margin: 4px 0 16px;
}

.library-info p {
    color: #667386;
    font-size: 12px;
    line-height: 1.9;
    margin: 6px 0;
}

.library-info p i {
    width: 19px;
    color: var(--primary);
}

.available,
.not-available {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 6px 11px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
}

.available {
    background: #e9f9ef;
    color: #15803d;
}

.available::before {
    content: "●";
    margin-left: 6px;
}

.not-available {
    background: #fff1f1;
    color: #c83b3b;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.actions a {
    min-width: 39px;
    height: 39px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f6fa;
    color: #506076;
    font-size: 14px;
    transition: .2s;
}

.actions a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.actions a:first-child {
    color: #159447;
    background: #ebf9f0;
}

.actions a:first-child:hover {
    color: white;
    background: #159447;
}

.details-btn {
    margin-right: auto;
    font-size: 10px !important;
    font-weight: 800;
    color: var(--primary) !important;
    background: #edf5ff !important;
}

.details-btn:hover {
    color: white !important;
    background: var(--primary) !important;
}


/* =====================================================
   LOADING / EMPTY
===================================================== */

.loading-state,
.loading,
.empty {
    grid-column: 1 / -1;
    min-height: 250px;
    background: white;
    border: 1px dashed #d8e1ec;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}

.loading-state h3 {
    color: var(--navy);
    margin-top: 15px;
    font-size: 16px;
}

.loading-state p {
    font-size: 11px;
    margin-top: 4px;
}

.loader {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e5edf7;
    border-top-color: var(--primary);
    animation: spin .8s linear infinite;
}


/* =====================================================
   HELP
===================================================== */

.help-section {
    padding: 0 0 70px;
}

.help-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 35px;
    border-radius: 24px;
    background: linear-gradient(120deg, #071d3b, #0b3b78);
    color: white;
    box-shadow: var(--shadow);
}

.help-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    font-size: 25px;
    color: #7fbbff;
}

.help-content {
    flex: 1;
}

.help-content span {
    color: #7fbbff;
    font-size: 10px;
    font-weight: 800;
}

.help-content h2 {
    font-size: 21px;
    margin: 3px 0;
}

.help-content p {
    color: rgba(255,255,255,.62);
    font-size: 11px;
}

.whatsapp-help {
    min-height: 47px;
    padding: 0 20px;
    border-radius: 12px;
    background: #21a955;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    transition: .25s;
}

.whatsapp-help:hover {
    transform: translateY(-3px);
    background: #198b45;
}


/* =====================================================
   FOOTER
===================================================== */

.main-footer {
    background: #06172d;
    color: white;
    padding: 28px 0;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 12px;
}

.footer-brand span {
    font-size: 9px;
    color: rgba(255,255,255,.45);
}

.main-footer p {
    color: rgba(255,255,255,.45);
    font-size: 10px;
}

.footer-social {
    display: flex;
    gap: 7px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.footer-social a:hover {
    background: var(--primary);
}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .main-nav {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .egypt-card {
        width: 330px;
    }

    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 720px) {

    .container {
        width: min(100% - 26px, 1180px);
    }

    .main-header {
        height: 70px;
    }

    .brand img {
        width: 43px;
        height: 43px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text span {
        font-size: 8px;
    }

    .header-search-btn {
        padding: 9px 11px;
        font-size: 0;
    }

    .header-search-btn i {
        font-size: 15px;
    }


    /* HERO */

    .hero {
        min-height: auto;
    }

    .hero-container {
        min-height: auto;
        display: block;
    }

    .hero-content {
        padding: 60px 0 115px;
        text-align: center;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 13px;
        line-height: 1.9;
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
        gap: 12px;
    }

    .hero-landmark {
        display: none;
    }


    /* SEARCH */

    .search-wrapper {
        margin-top: -65px;
    }

    .search-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .search-heading {
        align-items: flex-start;
    }

    .search-heading-icon {
        width: 43px;
        height: 43px;
        flex-shrink: 0;
    }

    .search-heading h2 {
        font-size: 17px;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-btn {
        height: 48px;
    }


    /* LANDMARK */

    .governorate-banner {
        padding-top: 30px;
    }

    .landmark-banner {
        min-height: 160px;
        padding: 25px;
    }

    .landmark-content {
        max-width: 75%;
    }

    .landmark-content h2 {
        font-size: 19px;
    }

    .landmark-content p {
        font-size: 10px;
    }

    .landmark-symbol {
        width: 65px;
        height: 65px;
        border-radius: 18px;
        font-size: 27px;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .student-stat {
        min-height: 85px;
    }


    /* LIBRARIES */

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-card {
        padding: 20px;
    }


    /* HELP */

    .help-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 27px;
    }

    .whatsapp-help {
        width: 100%;
        justify-content: center;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 430px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-features {
        font-size: 9px;
    }

    .landmark-symbol {
        display: none;
    }

    .landmark-content {
        max-width: 100%;
    }

    .actions {
        flex-wrap: wrap;
    }

}

/* =====================================================
   PREMIUM FOOTER
===================================================== */

.premium-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(31, 111, 235, .18),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #041326 0%,
            #071c37 55%,
            #092957 100%
        );

    color: #fff;
    padding: 65px 0 0;
}

.footer-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    left: -220px;
    bottom: -260px;

    border-radius: 50%;

    background: rgba(22, 101, 220, .18);

    filter: blur(80px);

    pointer-events: none;
}


/* MAIN */

.footer-main {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1.45fr
        .7fr
        .9fr
        1.1fr;

    gap: 55px;

    padding-bottom: 50px;
}


/* BRAND */

.footer-logo {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 18px;
}

.footer-logo img {
    width: 62px;
    height: 62px;

    object-fit: contain;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    font-size: 16px;
    font-weight: 900;
}

.footer-logo span {
    margin-top: 2px;

    color: #7db8ff;

    font-size: 10px;
    font-weight: 700;
}

.footer-about > p {
    max-width: 340px;

    color: rgba(255,255,255,.55);

    font-size: 11px;
    line-height: 2;

    margin-bottom: 22px;
}


/* HOTLINE */

.hotline-card {
    width: 260px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 12px 15px;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 15px;

    background: rgba(255,255,255,.055);

    transition: .25s;

    backdrop-filter: blur(10px);
}

.hotline-card:hover {
    transform: translateY(-3px);

    background: rgba(255,255,255,.09);

    border-color: rgba(104, 170, 255, .35);
}

.hotline-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #0b5ed7,
        #247df5
    );

    color: white;
}

.hotline-card > div:nth-child(2) {
    display: flex;
    flex: 1;

    flex-direction: column;
}

.hotline-card span {
    color: rgba(255,255,255,.55);

    font-size: 9px;
}

.hotline-card strong {
    font-size: 23px;
    font-weight: 900;

    letter-spacing: 1px;

    direction: ltr;

    text-align: right;
}

.hotline-phone {
    color: #66aaff;
}


/* COLUMNS */

.footer-column h3 {
    position: relative;

    font-size: 13px;
    font-weight: 900;

    margin-bottom: 21px;

    padding-bottom: 11px;
}

.footer-column h3::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 30px;
    height: 2px;

    border-radius: 10px;

    background: #2d84ff;
}

.footer-column > a:not(.playstore-btn) {
    display: block;

    width: fit-content;

    margin: 11px 0;

    color: rgba(255,255,255,.58);

    font-size: 10px;
    font-weight: 600;

    transition: .2s;
}

.footer-column > a:not(.playstore-btn):hover {
    color: white;

    transform: translateX(-4px);
}


/* SOCIAL */

.social-description {
    color: rgba(255,255,255,.48);

    font-size: 10px;
    line-height: 1.8;

    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    align-items: center;

    gap: 9px;
}

.social-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 12px;

    background: rgba(255,255,255,.055);

    transition: .25s;
}

.social-icon img {
    width: 23px;
    height: 23px;

    object-fit: contain;
}

.social-icon:hover {
    transform:
        translateY(-5px)
        scale(1.05);

    background: white;

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.22);
}


/* APP */

.app-column > p {
    color: rgba(255,255,255,.48);

    font-size: 10px;
    line-height: 1.8;

    margin-bottom: 15px;
}

.playstore-btn {
    max-width: 245px;

    min-height: 64px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 13px;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 15px;

    background: rgba(255,255,255,.07);

    transition: .25s;
}

.playstore-btn:hover {
    transform: translateY(-4px);

    background: white;

    color: #071c37;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.2);
}

.playstore-btn img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.playstore-btn div {
    flex: 1;

    display: flex;
    flex-direction: column;
}

.playstore-btn span {
    font-size: 8px;

    opacity: .65;
}

.playstore-btn strong {
    font-size: 14px;
    font-weight: 900;
}

.playstore-btn > i {
    font-size: 10px;

    opacity: .5;
}


/* FOOTER BOTTOM */

.footer-bottom {
    position: relative;
    z-index: 2;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        rgba(255,255,255,.08);
}

.footer-bottom p {
    color: rgba(255,255,255,.38);

    font-size: 9px;
}

.footer-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: rgba(255,255,255,.42);

    font-size: 9px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34,197,94,.1);
}


/* =====================================================
   FOOTER RESPONSIVE
===================================================== */

@media (max-width: 950px) {

    .footer-main {
        grid-template-columns:
            1.3fr 1fr;

        gap: 40px;
    }

}


@media (max-width: 600px) {

    .premium-footer {
        padding-top: 45px;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-about {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-about > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hotline-card {
        width: 100%;

        max-width: 320px;

        margin: auto;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h3::after {
        right: 50%;

        transform: translateX(50%);
    }

    .footer-column > a:not(.playstore-btn) {
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .playstore-btn {
        margin: auto;
    }

    .footer-bottom {
        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding: 20px 0;
    }

}
/* =====================================================
   FLOATING HOTLINE
===================================================== */

.floating-hotline {
    position: fixed;

    left: 25px;
    bottom: 25px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 155px;

    padding: 10px 15px 10px 11px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #0b5ed7,
            #06439b
        );

    border: 1px solid
        rgba(255,255,255,.15);

    border-radius: 18px;

    box-shadow:
        0 15px 40px
        rgba(4, 41, 94, .35);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    animation:
        hotlineFloat 3s
        ease-in-out infinite;
}


/* PHONE */

.floating-phone-icon {
    position: relative;

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(255,255,255,.15);

    font-size: 17px;
}


/* دائرة نبض */

.floating-phone-icon::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 13px;

    border: 2px solid
        rgba(255,255,255,.45);

    animation:
        hotlinePulse 2s
        infinite;
}


/* TEXT */

.floating-hotline-text {
    display: flex;
    flex-direction: column;

    line-height: 1.25;
}

.floating-hotline-text span {
    font-size: 9px;

    color:
        rgba(255,255,255,.7);
}

.floating-hotline-text strong {
    font-size: 21px;

    font-weight: 900;

    letter-spacing: 1px;

    direction: ltr;
}


/* HOVER */

.floating-hotline:hover {
    transform:
        translateY(-5px)
        scale(1.03);

    box-shadow:
        0 20px 50px
        rgba(4, 41, 94, .45);
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes hotlineFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

}


@keyframes hotlinePulse {

    0% {
        transform: scale(1);
        opacity: .7;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .floating-hotline {

        left: 14px;
        bottom: 14px;

        min-width: auto;

        padding: 7px;

        border-radius: 50%;

    }


    .floating-phone-icon {

        width: 49px;
        height: 49px;

        border-radius: 50%;

        font-size: 18px;

    }


    .floating-phone-icon::before {

        border-radius: 50%;

    }


    .floating-hotline-text {

        display: none;

    }

}
/* =========================================
   GOVERNORATE LANDMARKS
========================================= */

.landmark-symbol {
    width: 180px;
    height: 110px;

    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.landmark-symbol * {
    box-sizing: border-box;
}


/* ===== Default ===== */

.egypt-landmark {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background: rgba(255,255,255,.10);

    font-size: 32px;
}


/* =========================================
   CAIRO
========================================= */

.cairo-landmark {
    position: relative;

    width: 160px;
    height: 100px;
}


/* Cairo Tower */

.tower {
    position: absolute;

    bottom: 0;
    right: 72px;

    width: 13px;
    height: 76px;

    background: rgba(255,255,255,.92);

    clip-path: polygon(
        35% 0,
        65% 0,
        100% 100%,
        0 100%
    );
}

.tower::before {
    content: "";

    position: absolute;

    top: 10px;
    left: -10px;

    width: 33px;
    height: 18px;

    border: 3px solid white;

    border-radius: 50%;
}

.tower span {
    position: absolute;

    top: -13px;
    left: 5px;

    width: 3px;
    height: 16px;

    background: white;
}


/* Buildings */

.building {
    position: absolute;

    bottom: 0;

    background: rgba(255,255,255,.18);

    border-radius: 4px 4px 0 0;
}

.b1 {
    right: 15px;

    width: 32px;
    height: 42px;
}

.b2 {
    right: 112px;

    width: 28px;
    height: 55px;
}

.b3 {
    right: 140px;

    width: 18px;
    height: 31px;
}


/* =========================================
   GIZA
========================================= */

.giza-landmark {
    position: relative;

    width: 170px;
    height: 100px;
}

.pyramid {
    position: absolute;

    bottom: 0;

    width: 0;
    height: 0;

    border-left-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;

    border-left-color: transparent;
    border-right-color: transparent;

    border-bottom-color:
        rgba(255,255,255,.92);
}

.pyramid-big {
    right: 45px;

    border-left-width: 53px;
    border-right-width: 53px;
    border-bottom-width: 80px;
}

.pyramid-small {
    right: 5px;

    border-left-width: 35px;
    border-right-width: 35px;
    border-bottom-width: 52px;

    border-bottom-color:
        rgba(255,255,255,.32);
}

.giza-landmark .sun {
    position: absolute;

    top: 5px;
    left: 10px;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.25);
}


/* =========================================
   ALEXANDRIA
========================================= */

.alex-landmark {
    position: relative;

    width: 170px;
    height: 100px;
}

.lighthouse {
    position: absolute;

    right: 70px;
    bottom: 18px;

    width: 30px;
    height: 63px;

    background:
        rgba(255,255,255,.9);

    clip-path:
        polygon(
            25% 0,
            75% 0,
            100% 100%,
            0 100%
        );
}

.lighthouse::before {
    content: "";

    position: absolute;

    top: 10px;
    right: 7px;

    width: 16px;
    height: 10px;

    background: #1266c4;

    border-radius: 2px;
}

.lighthouse span {
    position: absolute;

    top: -10px;
    right: 7px;

    width: 16px;
    height: 10px;

    background: white;

    border-radius: 8px 8px 2px 2px;
}

.alex-sun {
    position: absolute;

    top: 5px;
    left: 25px;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.25);
}


/* Sea */

.sea {
    position: absolute;

    bottom: 2px;
    right: 0;

    width: 100%;
}

.sea span {
    display: block;

    width: 100%;
    height: 3px;

    margin-top: 5px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.35);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .landmark-symbol {
        width: 140px;
        height: 90px;

        transform: scale(.85);
    }

}
/* =========================================
   أزرار كارت السنتر - واضحة للطالب
========================================= */

.student-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8edf4;
}


/* كل زر */

.student-action-btn {
    min-height: 58px;
    padding: 10px 12px;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 14px;
    text-decoration: none;

    transition: 0.2s ease;
}


/* الأيقونة */

.student-action-btn > i {
    font-size: 19px;
}


/* الكلام */

.student-action-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.5;
}

.student-action-btn strong {
    font-family: "Cairo", sans-serif;
    font-size: 11px;
    font-weight: 900;
}

.student-action-btn small {
    font-family: "Cairo", sans-serif;
    font-size: 8px;
    opacity: 0.8;
    direction: ltr;
}


/* =========================================
   اتصال - أخضر واضح
========================================= */

.student-actions .call-btn {
    background: #16a85a !important;
    color: #ffffff !important;
    border: 1px solid #16a85a !important;

    box-shadow: 0 7px 18px rgba(22, 168, 90, 0.20);
}

.student-actions .call-btn:hover {
    background: #118b49 !important;
    transform: translateY(-2px);
}


/* =========================================
   Google Maps
========================================= */

.student-actions .map-btn {
    background: #eaf9f0 !important;
    color: #12864a !important;
    border: 1px solid #bfe9d0 !important;
}

.student-actions .map-btn:hover {
    background: #dff5e8 !important;
    transform: translateY(-2px);
}


/* =========================================
   تفاصيل السنتر
========================================= */

.student-actions .details-btn {
    grid-column: 1 / -1;

    background: #edf5ff !important;
    color: #0866d9 !important;
    border: 1px solid #c8dfff !important;

    min-height: 55px;
}

.student-actions .details-btn:hover {
    background: #0866d9 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* =========================================
   الموبايل
========================================= */

@media (max-width: 600px) {

    .student-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .student-action-btn {
        min-height: 56px;
        padding: 9px;
    }

    .student-action-btn > i {
        font-size: 18px;
    }

    .student-action-btn strong {
        font-size: 10px;
    }

    .student-action-btn small {
        font-size: 7px;
    }

}
/* =========================================
   أزرار السنتر - تصميم واضح جدًا
========================================= */

.student-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    margin-top: 20px !important;
    padding-top: 16px !important;

    border-top: 1px solid #e8edf4;
}


/* كل زر بعرض الكارت */

.student-actions .student-action-btn {
    width: 100% !important;
    min-height: 66px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 14px !important;

    padding: 11px 16px !important;

    border-radius: 15px !important;

    text-align: right !important;
}


/* الأيقونة */

.student-actions .student-action-btn > i {
    width: 42px !important;
    height: 42px !important;

    flex-shrink: 0;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 12px !important;

    font-size: 19px !important;
}


/* النص */

.student-actions .student-action-btn span {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    flex: 1;
}


.student-actions .student-action-btn strong {
    font-size: 13px !important;
    font-weight: 900 !important;
}


.student-actions .student-action-btn small {
    margin-top: 2px;

    font-size: 10px !important;
    font-weight: 600;

    opacity: .8;
}


/* =========================
   اتصال
========================= */

.student-actions .call-btn {
    background: #16a85a !important;
    color: #fff !important;

    border: none !important;

    box-shadow:
        0 8px 20px rgba(22,168,90,.18) !important;
}


.student-actions .call-btn > i {
    background: rgba(255,255,255,.16) !important;
    color: white !important;
}


.student-actions .call-btn small {
    color: white !important;
}


/* =========================
   Google Maps
========================= */

.student-actions .map-btn {
    background: #effaf3 !important;
    color: #13894b !important;

    border: 1px solid #c9edd7 !important;
}


.student-actions .map-btn > i {
    background: #d9f4e4 !important;
    color: #11934e !important;
}


/* =========================
   التفاصيل
========================= */

.student-actions .details-btn {
    background: #eef5ff !important;
    color: #0868d8 !important;

    border: 1px solid #d5e5fa !important;
}


.student-actions .details-btn > i {
    background: #dcecff !important;
    color: #0868d8 !important;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .student-actions .student-action-btn {
        min-height: 62px !important;
        padding: 10px 13px !important;
    }

    .student-actions .student-action-btn > i {
        width: 39px !important;
        height: 39px !important;
    }

    .student-actions .student-action-btn strong {
        font-size: 12px !important;
    }

}
.student-actions .details-btn {
    width: 100% !important;
    min-height: 62px !important;

    background: #0868d8 !important;
    color: #fff !important;

    border: none !important;
    border-radius: 15px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;

    box-shadow: 0 8px 20px rgba(8, 104, 216, .18) !important;
}

.student-actions .details-btn > i {
    color: #fff !important;
    font-size: 20px !important;
}

.student-actions .details-btn span {
    align-items: flex-start !important;
}

.student-actions .details-btn strong {
    color: #fff !important;
    font-size: 13px !important;
}

.student-actions .details-btn small {
    color: rgba(255,255,255,.8) !important;
    font-size: 9px !important;
}


#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;

    width: 0%;
    height: 5px;

background: #1670e8;

    z-index: 999999;

    border-radius: 0 5px 5px 0;

box-shadow: 0 0 8px rgba(22, 112, 232, 0.6);}
/* =========================================
   BACK TO TOP
========================================= */

#backToTop {
    position: fixed;
    bottom: 22px;
    left: 18px;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: #1670e8;
    color: #fff;

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99990;

    box-shadow: 0 8px 25px rgba(22,112,232,.30);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition: .25s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:active {
    transform: scale(.92);
}
/* =========================================
   CLEAR SEARCH BUTTON
========================================= */

.search-input {
    position: relative;
}

.clear-search {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%) scale(.8);

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: #eef5ff;
    color: #1670e8;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .2s ease;
}

.clear-search.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%) scale(1);
}

.clear-search:active {
    background: #dcecff;
}
/* =========================================
   SKELETON LOADING
========================================= */

.skeleton-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 22px;
    min-height: 220px;
    overflow: hidden;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9eef5;
    border-radius: 8px;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;

    transform: translateX(-100%);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.75),
        transparent
    );

    animation: skeletonLoading 1.2s infinite;
}

.skeleton-title {
    width: 55%;
    height: 22px;
    margin-bottom: 22px;
}

.skeleton-line {
    width: 100%;
    height: 13px;
    margin-bottom: 14px;
}

.skeleton-line.short {
    width: 70%;
}

.skeleton-button {
    width: 100%;
    height: 48px;
    margin-top: 28px;
    border-radius: 12px;
}

@keyframes skeletonLoading {

    100% {
        transform: translateX(100%);
    }

}

@media (max-width: 768px) {

    .skeleton-card {
        min-height: 200px;
        padding: 18px;
    }

}
/* =========================================
   HERO DOCTOR BACKGROUND
========================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-doctor-bg {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 48%;
    height: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    pointer-events: none;
    z-index: 0;
}

.hero-doctor-bg img {
    width: 100%;
    max-width: 720px;
    height: auto;

    object-fit: contain;
    object-position: bottom center;

    opacity: 0.22;

    filter:
        drop-shadow(0 20px 35px rgba(0, 0, 0, 0.12));
}

/* خلي محتوى الهيرو فوق الصورة */
.hero-container {
    position: relative;
    z-index: 2;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero-doctor-bg {
        width: 100%;
        height: 70%;

        left: 0;
        bottom: 0;

        justify-content: center;
    }

    .hero-doctor-bg img {
        width: 125%;
        max-width: none;

        opacity: 0.12;
    }

}
/* =========================================
   Doctor Background - Libraries Page
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(3, 18, 39, 0.96) 0%,
            rgba(4, 31, 65, 0.88) 42%,
            rgba(4, 31, 65, 0.35) 70%,
            rgba(4, 31, 65, 0.08) 100%
        ),
        url("../icon/1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 2;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero::before {

        background-image:
            linear-gradient(
                180deg,
                rgba(3, 18, 39, 0.30) 0%,
                rgba(3, 18, 39, 0.65) 48%,
                rgba(3, 18, 39, 0.96) 100%
            ),
            url("../icon/1.png");

        background-position: center top;
    }

}
/* =========================================
   Doctor Background - Libraries
========================================= */

.hero {
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(3, 18, 39, 0.96) 0%,
            rgba(4, 31, 65, 0.88) 42%,
            rgba(4, 31, 65, 0.35) 70%,
            rgba(4, 31, 65, 0.08) 100%
        ),
        url("../icon/1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
    pointer-events: none;
}

/* المحتوى فوق الصورة */
.hero-container {
    position: relative;
    z-index: 2;
}

/* المعادلات فوق الخلفية */
.hero::before {
    z-index: 1;
}


/* الموبايل */
@media (max-width: 768px) {

    .hero::after {
        background-image:
            linear-gradient(
                180deg,
                rgba(3, 18, 39, 0.30) 0%,
                rgba(3, 18, 39, 0.65) 48%,
                rgba(3, 18, 39, 0.96) 100%
            ),
            url("../icon/1.png");

        background-position: center top;
    }

}
/* =========================================
   PREMIUM MOBILE NAV - LIBRARIES
========================================= */

@media (max-width: 720px) {

    .main-header {
        height: auto;
        background: rgba(255,255,255,.98);
    }

    .header-container {
        height: auto;
        min-height: 70px;

        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;

        gap: 0;

        padding-top: 5px;
        padding-bottom: 9px;
    }

    /* شريط التنقل */
    .main-nav {
        order: 3;

        display: flex;
        width: 100%;

        margin-top: 6px;
        padding: 4px;

        gap: 3px;

        background: #f4f7fb;
        border: 1px solid #e8eef6;
        border-radius: 13px;
    }

    .main-nav a {
        flex: 1;

        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 36px;
        padding: 5px 3px;

        border-radius: 9px;

        font-size: 10px;
        font-weight: 800;

        color: #647187;

        white-space: nowrap;
    }

    /* نخفي الأيقونات داخل الشريط */
    .main-nav a i {
        display: none;
    }

    /* أماكن البيع هي الصفحة الحالية */
    .main-nav a:nth-child(2) {
        background: #fff;
        color: #0b5ed7;

        box-shadow:
            0 3px 12px rgba(11,94,215,.10);
    }

    .main-nav a:active {
        transform: scale(.97);
    }
}
/* =========================================
   LIBRARIES MOBILE HERO FIX
========================================= */

@media (max-width: 720px) {

    .hero-content {
        padding: 45px 0 105px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.25;
        letter-spacing: -1px;
    }

    .hero-badge {
        margin-bottom: 16px;
    }

    .hero-content > p {
        margin-top: 16px;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .hero-features {
        margin-top: 24px;
    }

}