
@keyframes fillTimer {
    0% {
        width: 0%
    }

    to {
        width: 100%
    }
}

@keyframes fillSide3s {
    0% {
        width: 0%
    }

    to {
        width: 100%
    }
}

@keyframes blink {
    0%,
    to {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

@keyframes tickerAnim {
    0% {
        transform: translate3d(0, 0, 0)
    }

    to {
        transform: translate3d(100%, 0, 0)
    }
}

:root {
    --ink: #0B1220;
    --ink-soft: #4A5568;
    --paper: #F1F5F9;
    --paper-card: #FFFFFF;
    --accent: #E11D48;
    --navy: #0F172A;
    --rule: #E2E8F0;
    --font-display: 'Markazi Text', serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;
    --radius: 20px;
    --max: 1280px;
    --slider-height: 480px
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit;
    border: 0;
    background: 0 0;
    cursor: pointer;
    text-align: right
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

.top-bar {
    background: #000;
    color: #e2e8f0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.top-bar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding-top: 4px;
    padding-bottom: 4px
}

.date-time,
.top-right-group {
    display: flex;
    align-items: center;
    gap: 16px
}

.date-time {
    gap: 8px;
    color: #94a3b8
}

.date-time time.live-clock {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, .1);
    padding: 2px 8px;
    border-radius: 4px;
    font-feature-settings: "tnum"
}

.login-btn {
    gap: 6px;
    color: #fff;
    font-weight: 600;
    transition: .2s
}

.login-btn:hover,
.logo span {
    color: var(--accent)
}

.login-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor
}

.login-btn,
.social-links,
.social-links a {
    display: flex;
    align-items: center
}

.social-links {
    gap: 12px
}

.social-links a {
    color: #94a3b8;
    justify-content: center;
    transition: .2s
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-1px)
}

.social-links svg {
    width: 15px;
    height: 15px;
    fill: currentColor
}

.main-header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule)
}

.main-header .wrap {
    justify-content: space-between
}

.logo {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1
}

.ad-banner,
.main-header .wrap,
.navbar .wrap {
    display: flex;
    align-items: center
}

.ad-banner {
    width: 728px;
    height: 90px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    position: relative;
    overflow: hidden
}

.ad-banner::before {
    content: "مساحة إعلانية 728×90";
    font-size: 13px;
    color: #64748b
}

.navbar {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08)
}

.navbar .wrap {
    justify-content: space-between;
    height: 50px
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none
}

.nav-menu::-webkit-scrollbar {
    display: none
}

.nav-menu a {
    color: #e2e8f0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: .2s;
    display: block
}

.nav-menu a.active,
.nav-menu a:hover {
    background: var(--accent);
    color: #fff
}

.nav-actions,
.search-btn {
    display: flex;
    align-items: center
}

.nav-actions {
    gap: 12px;
    padding-right: 10px
}

.search-btn {
    color: #e2e8f0;
    padding: 6px;
    border-radius: 50%;
    transition: .2s
}

.search-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff
}

.h-nav-btn svg,
.search-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor
}

.hero-viewport {
    padding: 20px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 16px;
    height: var(--slider-height)
}

.v-slider-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 15px 35px rgba(15, 23, 42, .12)
}

.v-slides-container {
    height: 100%;
    transition: transform .6s cubic-bezier(.65, 0, .35, 1)
}

.v-slide {
    height: var(--slider-height);
    position: relative;
    display: flex;
    align-items: flex-end;
    margin: 0
}

.h-item-img-wrap img,
.v-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.v-slide img,
.v-slide::after {
    position: absolute;
    inset: 0
}

.v-slide::after {
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, .05)0, rgba(15, 23, 42, .92) 85%)
}

.v-slide figcaption {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    max-width: 620px;
    color: #fff
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 10px
}

.badge .dot {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.2s infinite
}

.v-slide figcaption h2 {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: 8px
}

.v-slide figcaption p {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.v-indicators-bar {
    position: absolute;
    left: 16px;
    top: 16px;
    bottom: 16px;
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10
}

.v-thumb-card {
    position: relative;
    flex: 1;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: background .3s, border-color .3s
}

.v-thumb-card:hover {
    background: rgba(15, 23, 42, .85);
    border-color: rgba(255, 255, 255, .3)
}

.v-thumb-card.active {
    background: rgba(15, 23, 42, .9);
    border-color: var(--accent)
}

.v-thumb-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0
}

.v-thumb-title {
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.v-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: 0 0
}

.v-thumb-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent)
}

.v-thumb-card.active .v-thumb-progress-fill {
    animation: fillTimer 4s linear forwards
}

.h-slider-card {
    background: var(--paper-card);
    border-radius: var(--radius);
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
    border: 1px solid var(--rule);
    overflow: hidden;
    height: var(--slider-height);
    position: relative
}

.h-top-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rule)
}

.h-top-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent)
}

.h-slider-card.is-running .h-top-progress-bar {
    animation: fillSide3s 3.5s linear infinite
}

.h-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 2px
}

.h-card-header h3,
.modern-num-box {
    font-weight: 700;
    display: flex;
    align-items: center
}

.h-card-header h3 {
    font-size: 15px;
    color: var(--navy);
    gap: 6px
}

.h-card-header h3::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block
}

.modern-num-box {
    background: #0f172a;
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid #1e293b;
    gap: 4px;
    font-feature-settings: "tnum"
}

.modern-num-box span.active-num {
    color: #fff;
    font-size: 12px;
    font-weight: 800
}

.h-slider-window {
    overflow: hidden;
    flex: 1;
    position: relative;
    border-radius: 12px
}

.h-track {
    display: flex;
    transition: transform .45s cubic-bezier(.25, 1, .5, 1);
    height: 100%
}

.h-slide-item,
.h-slide-item figure {
    height: 100%;
    display: flex;
    flex-direction: column
}

.h-slide-item {
    min-width: 100%
}

.h-slide-item figure {
    margin: 0
}

.h-item-img-wrap {
    height: 75%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: block
}

.h-item-img-wrap img {
    transition: transform .5s ease
}

.h-slide-item:hover .h-item-img-wrap img {
    transform: scale(1.06)
}

.h-item-cat,
.h-item-time {
    position: absolute;
    right: 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2
}

.h-item-cat {
    top: 8px;
    background: rgba(15, 23, 42, .85);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .15)
}

.h-item-time {
    bottom: 8px;
    background: rgba(0, 0, 0, .65);
    color: #e2e8f0;
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 6px
}

.h-item-body {
    height: 25%;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden
}

.h-item-title-link {
    display: block;
    text-decoration: none;
    color: inherit
}

.h-item-title-link:hover .h-item-title {
    color: var(--accent)
}

.h-item-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 2px;
    transition: color .2s
}

.h-item-desc {
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.h-footer-nav,
.h-pro-controls {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.h-footer-nav {
    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px solid var(--rule);
    gap: 8px;
    flex-shrink: 0
}

.h-pro-controls {
    gap: 6px;
    width: 100%
}

.h-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 12px;
    margin: 0;
    background: #f1f5f9;
    color: var(--navy);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    transition: all .2s ease
}

.h-nav-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(225, 29, 72, .25)
}

.h-nav-btn:active {
    transform: translateY(0)
}

.h-nav-btn svg {
    width: 12px;
    height: 12px
}

.h-dots-scroll {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 4px;
    max-width: 130px
}

.h-dots-scroll::-webkit-scrollbar {
    display: none
}

.h-dot-pill {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    flex-shrink: 0
}

.h-dot-pill.active {
    width: 16px;
    border-radius: 10px;
    background: var(--accent)
}


/* =========================================================
   BREAKING NEWS / TICKER
========================================================= */

.ticker-wrap {
    background-color: #0b192c;
    border-radius: 14px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .02);
    display: flex;
    align-items: center;
    border: 1px solid var(--rule)
}

.ticker-label {
    background-color: #dc3545;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
    display: flex;
    align-items: center
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    background-color: #0b192c;
    color: #ffffff !important
}

.ticker-track {
    display: inline-block;
    padding-right: 100%;
    animation: tickerAnim 28s linear infinite;
    will-change: transform;
    background-color: #0b192c;
    color: #ffffff !important
}

.ticker-track:hover {
    animation-play-state: paused
}

.ticker-item {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff !important;
    background-color: #0b192c;
    padding: 0 20px
}

.ticker-item::after {
    content: "•";
    color: var(--accent);
    margin-right: 20px
}


/* =========================================================
   SECTION HEADERS
========================================================= */

.sec-header,
.sec-title {
    display: flex;
    align-items: center
}

.sec-header {
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rule);
    position: relative
}

.sec-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--accent)
}

.sec-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    gap: 8px
}

.sec-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: .2s
}

.sec-link:hover {
    opacity: .8
}

.news-grid-section {
    margin-bottom: 36px
}

.main-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}


/* =========================================================
   ARTICLE CARD
   الصورة أولاً ثم محتوى الخبر
========================================================= */

.news-card {
    background: var(--paper-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--rule);
    transition: transform .3s, box-shadow .3s;
    margin: 0
}

.news-card > figure {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06)
}

.news-card-image {
    display: block;
    width: 100%;
    order: 1
}

.news-card-image img,
.news-card > figure > a > img {
    display: block;
    height: 170px;
    width: 100%;
    object-fit: cover
}

.news-card > figure > figcaption {
    order: 2;
    display: flex;
    flex-direction: column;
    padding: 16px;
    flex: 1
}

.news-meta {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    gap: 10px
}

.news-meta .category {
    color: var(--accent)
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 8px
}

.news-card-excerpt {
    font-size: 12.5px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar-widget {
    background: var(--paper-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--rule);
    margin-bottom: 20px
}

.trending-list {
    list-style: none
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--rule)
}

.trending-item:last-child {
    border-bottom: none
}

.trending-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: #cbd5e1;
    line-height: 1;
    width: 24px
}

.trending-item:nth-child(-n+3) .trending-num {
    color: var(--accent)
}

.trending-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    transition: .2s
}

.trending-text:hover {
    color: var(--accent)
}


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

.media-section {
    background: var(--navy);
    color: #fff;
    padding: 36px 0;
    margin-bottom: 36px;
    border-radius: var(--radius)
}

.footer-brand .logo,
.footer-links a:hover,
.media-section .sec-title {
    color: #fff
}

.media-section .sec-header::after {
    background: var(--accent)
}

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    margin: 0
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: .3s
}

.video-card:hover img {
    opacity: .6;
    transform: scale(1.03)
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(225, 29, 72, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, .4)
}

.play-icon::after {
    content: "";
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
    margin-right: -2px
}

.video-card figcaption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .9)0, transparent 100%)
}

.video-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3
}


/* =========================================================
   OPINION
========================================================= */

.opinion-section {
    margin-bottom: 36px
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.opinion-card {
    background: var(--paper-card);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--rule);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--paper)
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy)
}

.author-title {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
    display: block
}

.article-quote {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25
}


/* =========================================================
   FOOTER
   مهم: لا نستخدم footer بشكل عام حتى لا يؤثر على
   footer.news-meta داخل كروت الأخبار
========================================================= */

body > footer {
    background: #050b14;
    color: #94a3b8;
    padding-top: 48px;
    border-top: 3px solid var(--accent)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.footer-desc {
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.6;
    color: #64748b
}

.footer-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px
}

.footer-links {
    list-style: none
}

.footer-links a {
    font-size: 13px;
    transition: .2s
}

.footer-links,
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.newsletter-input {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 12.5px
}

.newsletter-btn {
    background: var(--accent);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-align: center
}

.footer-bottom {
    padding: 20px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b
}


/* =========================================================
   SLIDER BUTTON ADJUSTMENTS
========================================================= */

#hPrevBtn {
    margin-bottom: 12px;
    margin-right: 12px
}

#hNextBtn {
    margin-bottom: 12px;
    margin-left: 12px
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:1024px) {

    .ad-banner {
        display: none
    }

    .hero-grid {
        grid-template-columns: 1fr;
        height: auto
    }

    .h-slider-card,
    .v-slide,
    .v-slider-frame {
        height: 420px
    }

    .main-layout {
        grid-template-columns: 1fr
    }

    .video-grid {
        grid-template-columns: 1fr 1fr
    }

    .video-card:first-child {
        grid-column: span 2
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}


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

@media (max-width:768px) {

    .wrap {
        padding: 0 12px
    }

    .top-bar .wrap {
        flex-direction: column;
        gap: 6px;
        text-align: center
    }

    .top-right-group {
        width: 100%;
        justify-content: space-between
    }

    .social-links {
        justify-content: center;
        width: 100%;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, .05)
    }

    .main-header {
        padding: 12px 0
    }

    .logo {
        font-size: 32px
    }

    .hero-viewport {
        padding: 12px 0
    }

    .v-slide,
    .v-slider-frame {
        height: 380px
    }

    .v-slide figcaption {
        padding: 16px 16px 70px
    }

    .v-slide figcaption h2 {
        font-size: 22px
    }

    .v-slide figcaption p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2
    }

    .v-indicators-bar {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        height: 50px;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none
    }

    .v-indicators-bar::-webkit-scrollbar {
        display: none
    }

    .v-thumb-card {
        min-width: 140px;
        flex: 0 0 auto;
        padding: 4px
    }

    .v-thumb-img {
        width: 32px;
        height: 32px
    }

    .v-thumb-title {
        font-size: 10px
    }

    .h-slider-card {
        height: auto;
        min-height: 440px;
        padding: 16px
    }

    .h-item-img-wrap {
        height: 240px
    }

    .h-item-title {
        font-size: 18px
    }

    .ticker-wrap {
        margin-bottom: 16px
    }

    .ticker-label {
        font-size: 11px;
        padding: 8px 12px
    }

    .ticker-item {
        font-size: 12px
    }

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

    .news-card-image img,
    .news-card > figure > a > img {
        height: 160px
    }

    .news-card-title {
        font-size: 18px
    }

    .media-section {
        padding: 24px 0;
        border-radius: 12px;
        margin-bottom: 24px
    }

    .video-grid {
        grid-template-columns: 1fr
    }

    .video-card:first-child {
        grid-column: span 1
    }

    .footer-grid,
    .opinion-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .footer-grid {
        gap: 24px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center
    }

    #hPrevBtn {
        margin-bottom: 12px;
        margin-right: 12px
    }

    #hNextBtn {
        margin-bottom: 12px;
        margin-left: 12px
    }
}

/* =========================================================
   HOME — أهم الأخبار + الأخبار الرائجة
   ========================================================= */

.home-top-news {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 20px 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;

    direction: ltr;
}


/* =========================================================
   MAIN NEWS AREA
   ========================================================= */

.main-news-area {
    direction: rtl;
    min-width: 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.main-news-area .section-title,
.trending-sidebar .section-title {
    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 18px;
    padding-bottom: 10px;

    border-bottom: 2px solid #0b192c;
}

.main-news-area .section-title::after,
.trending-sidebar .section-title::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -2px;

    width: 75px;
    height: 3px;

    background: #dc3545;
}

.main-news-area .section-title h2,
.trending-sidebar .section-title h2 {
    margin: 0;

    color: #0b192c;

    font-family: "Markazi Text", serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================================
   MAIN NEWS GRID
   ========================================================= */

.main-news-grid {
    display: grid;

    grid-template-rows: auto auto;

    gap: 16px;
}


/* =========================================================
   TOP LARGE NEWS — رقم 2
   ========================================================= */

.main-news-top {
    position: relative;

    width: 100%;
    overflow: hidden;

    background: #0b192c;
}

.main-news-top a {
    position: relative;

    display: block;

    color: inherit;
    text-decoration: none;
}

.main-news-top img {
    display: block;

    width: 100%;
    height: 390px;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.main-news-top:hover img {
    transform: scale(1.025);
}


/* تدرج أسفل الصورة */

.main-news-top a::after {
    content: "";

    position: absolute;
    inset: 35% 0 0;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(11, 25, 44, 0.15) 25%,
        rgba(11, 25, 44, 0.92) 100%
    );

    pointer-events: none;
}


/* محتوى الخبر الرئيسي */

.main-news-content {
    position: absolute;

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

    z-index: 2;

    padding: 25px 28px 24px;

    color: #ffffff;
}

.main-news-content .news-category {
    display: inline-block;

    margin-bottom: 8px;
    padding: 3px 10px;

    background: #dc3545;

    color: #ffffff;

    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.main-news-content h3 {
    max-width: 850px;

    margin: 0;

    color: #ffffff;

    font-family: "Markazi Text", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.main-news-content p {
    max-width: 750px;

    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   BOTTOM ROW — 5 / 4 / 3
   ========================================================= */

.main-news-bottom {
    display: grid;

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

    gap: 16px;

    direction: ltr;
}


/* =========================================================
   SMALL NEWS CARDS
   ========================================================= */

.main-news-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
}

.main-news-card a {
    display: block;

    color: inherit;
    text-decoration: none;
}

.main-news-card img {
    display: block;

    width: 100%;
    height: 175px;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.main-news-card:hover img {
    transform: scale(1.035);
}

.main-news-card-content {
    padding: 12px 14px 15px;

    direction: rtl;
}

.main-news-card-content .news-category {
    display: inline-block;

    margin-bottom: 6px;

    color: #dc3545;

    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.main-news-card-content h3 {
    margin: 0;

    color: #0b192c;

    font-family: "Markazi Text", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   TRENDING SIDEBAR
   ========================================================= */

.trending-sidebar {
    direction: rtl;
    min-width: 0;

    padding-right: 18px;

    border-right: 1px solid #e5e7eb;
}


/* =========================================================
   TRENDING LIST
   ========================================================= */

.trending-list {
    display: flex;
    flex-direction: column;

    gap: 0;
}


/* =========================================================
   TRENDING ITEM
   ========================================================= */

.trending-item {
    padding: 13px 0;

    border-bottom: 1px solid #e5e7eb;
}

.trending-item:first-child {
    padding-top: 0;
}

.trending-item:last-child {
    border-bottom: 0;
}

.trending-item a {
    display: grid;

    grid-template-columns: 105px minmax(0, 1fr);

    gap: 12px;

    align-items: start;

    color: inherit;
    text-decoration: none;
}

.trending-item img {
    display: block;

    width: 105px;
    height: 78px;

    object-fit: cover;
}

.trending-content {
    min-width: 0;
}

.trending-content .news-category {
    display: block;

    margin-bottom: 3px;

    color: #dc3545;

    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 10px;
    font-weight: 600;
}
.trending-content h3 {
    margin: 0;
    color: #0b192c;
    font-family: "Markazi Text", serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;

    /* البديل الحديث والمعياري لإزالة التنبيه وتثبيت العرض */
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-box-orient: vertical;
    box-orient: vertical;

    /* دعم تحديد عدد الأسطر (3 أسطر) مع وبدون البادئة */
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* =========================================================
   HOVER
   ========================================================= */

.main-news-card:hover h3,
.trending-item:hover h3 {
    color: #dc3545;
}

.trending-item:hover img {
    opacity: 0.9;
}


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

@media (max-width: 1100px) {

    .home-top-news {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 18px;
    }

    .main-news-top img {
        height: 340px;
    }

    .main-news-content h3 {
        font-size: 29px;
    }

    .main-news-card img {
        height: 155px;
    }

}


@media (max-width: 850px) {

    .home-top-news {
        grid-template-columns: 1fr;

        padding-right: 15px;
        padding-left: 15px;
    }

    .trending-sidebar {
        padding-right: 0;

        border-right: 0;
        border-top: 1px solid #e5e7eb;

        padding-top: 25px;
    }

}


@media (max-width: 600px) {

    .main-news-top img {
        height: 280px;
    }

    .main-news-content {
        padding: 18px;
    }

    .main-news-content h3 {
        font-size: 25px;
    }

    .main-news-content p {
        display: none;
    }

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

    .main-news-card {
        display: grid;
        grid-template-columns: 130px 1fr;
    }

    .main-news-card img {
        width: 130px;
        height: 110px;
    }

    .main-news-card-content {
        padding: 10px 12px;
    }

    .main-news-card-content h3 {
        font-size: 19px;
    }

    .trending-item a {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .trending-item img {
        width: 95px;
        height: 72px;
    }

}

/* تفاعل روابط أقسام الفوتر */

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links li a:hover {
    color: #E11D48;
    transform: translateX(-3px);
}

.footer-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}
