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

.site-header {
    width: 100%;
}


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

.site-header .top-bar {
    width: 100%;
}

.site-header .top-bar > .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================================
   DATE / TIME / LOGIN
   ========================================================= */

.site-header .top-right-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-header .date-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .date-time time {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.site-header .live-clock {
    direction: ltr;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   LOGIN
   ========================================================= */

.site-header .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .login-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}


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

.site-header .social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.site-header .social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}


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

.site-header .main-header {
    width: 100%;
}

.site-header .main-header > .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


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

.site-header .logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-header .logo img {
    display: block;
    width: 200px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   ADVERTISEMENT
   ========================================================= */

.site-header .ad-banner {
    flex: 1 1 auto;
    min-height: 90px;
}


/* =========================================================
   TICKER & NAVIGATION BUTTONS
   ========================================================= */

/* مسافة للهامش السفلي والجانب الأيمن لزر السابق */
#hPrevBtn {
    margin-bottom: 12px;
    margin-right: 12px;
}

/* مسافة للهامش السفلي والجانب الأيسر لزر التالي */
#hNextBtn {
    margin-bottom: 12px;
    margin-left: 12px;
}

/* تخصيص شريط الأخبار العاجلة */
.ticker-wrap {
    margin-top: 25px; /* مسافة علوية لتنزيل الشريط أسفل الهيدر */
    background-color: #0b192c; /* خلفية كحلية للشريط */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* كلمة عاجل بخلفية حمراء ونص أبيض */
.ticker-label {
    background-color: #dc3545; /* لون أحمر */
    color: #ffffff !important;  /* لون نص أبيض */
    padding: 8px 16px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
}

/* الأخبار داخل عاجل باللون الأبيض وخلفية كحلية */
.ticker-content,
.ticker-track,
.ticker-item {
    background-color: #0b192c; /* خلفية كحلية */
    color: #ffffff !important; /* نص أبيض */
}


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

@media (max-width: 768px) {

    .site-header .top-bar > .wrap {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header .top-right-group {
        width: 100%;
        justify-content: center;
    }

    .site-header .social-links {
        justify-content: center;
        width: 100%;
    }

    .site-header .main-header > .wrap {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-header .ad-banner {
        width: 100%;
        min-height: 60px;
    }

    .site-header .logo img {
        width: 180px;
        max-height: 90px;
    }

    .ticker-wrap {
        margin-top: 15px; /* ضبط المسافة للشاشات الصغيرة */
    }
}


@media (max-width: 480px) {

    .site-header .top-right-group {
        flex-direction: column;
        gap: 10px;
    }

    .site-header .date-time {
        gap: 8px;
    }

    .site-header .logo img {
        width: 160px;
        max-height: 80px;
    }

}