
/* ============================================================
   LOCAL CSS — Tailwind Replacement
   المنصة الإخبارية
   بدون Tailwind CSS
   ============================================================ */

:root {
    --ink: #0B1220;
    --ink-soft: #4A5568;
    --paper: #F1F5F9;
    --paper-card: #FFFFFF;
    --accent: #E11D48;
    --navy: #0F172A;
    --rule: #E2E8F0;

    --brand-50: #fff1f2;
    --brand-100: #ffe4e6;
    --brand-200: #fecdd3;
    --brand-300: #fda4af;
    --brand-400: #fb7185;
    --brand-500: #f43f5e;
    --brand-600: #e11d48;
    --brand-700: #be123c;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --emerald-400: #34d399;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --rose-600: #e11d48;

    --font-display: 'Cairo', serif;
    --font-body: 'Cairo', sans-serif;

    --radius: 20px;
    --max: 1280px;
    --slider-height: 480px;
}


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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--slate-50);
    color: #1e293b;
}

img {
    max-width: 100%;
}

button,
input {
    font-family: inherit;
}

a {
    color: inherit;
}


/* ============================================================
   PAGE
   ============================================================ */

.page-home {
    width: 100%;
    min-height: 100vh;
    background: var(--slate-50);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.home-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

.section-space {
    margin-top: 24px;
}


/* ============================================================
   GRID SYSTEM
   ============================================================ */

.grid {
    display: grid;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.col-8 {
    grid-column: span 8;
}

.col-4 {
    grid-column: span 4;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}


/* ============================================================
   FLEX
   ============================================================ */

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}


/* ============================================================
   SPACING
   ============================================================ */

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-6 {
    padding: 24px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.py-6 {
    padding-top: 24px;
    padding-bottom: 24px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.text-xs {
    font-size: 12px;
}

.text-sm {
    font-size: 14px;
}

.text-base {
    font-size: 16px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-2xl {
    font-size: 24px;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-extrabold {
    font-weight: 800;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #fff;
}

.text-slate-300 {
    color: var(--slate-300);
}

.text-slate-400 {
    color: var(--slate-400);
}

.text-slate-500 {
    color: var(--slate-500);
}

.text-slate-600 {
    color: var(--slate-600);
}

.text-slate-700 {
    color: var(--slate-700);
}

.text-slate-800 {
    color: var(--slate-800);
}

.text-slate-900 {
    color: var(--slate-900);
}

.text-brand-400 {
    color: var(--brand-400);
}

.text-brand-500 {
    color: var(--brand-500);
}

.text-brand-600 {
    color: var(--brand-600);
}

.text-brand-700 {
    color: var(--brand-700);
}

.text-emerald-400 {
    color: var(--emerald-400);
}

.text-emerald-600 {
    color: var(--emerald-600);
}

.text-emerald-700 {
    color: var(--emerald-700);
}

.text-rose-600 {
    color: var(--rose-600);
}


/* ============================================================
   BACKGROUNDS
   ============================================================ */

.bg-white {
    background: #fff;
}

.bg-slate-50 {
    background: var(--slate-50);
}

.bg-slate-100 {
    background: var(--slate-100);
}

.bg-slate-200 {
    background: var(--slate-200);
}

.bg-slate-300 {
    background: var(--slate-300);
}

.bg-slate-700 {
    background: var(--slate-700);
}

.bg-slate-800 {
    background: var(--slate-800);
}

.bg-slate-900 {
    background: var(--slate-900);
}

.bg-brand-50 {
    background: var(--brand-50);
}

.bg-brand-600 {
    background: var(--brand-600);
}

.bg-emerald-50 {
    background: #ecfdf5;
}


/* ============================================================
   BORDERS
   ============================================================ */

.border {
    border: 1px solid;
}

.border-0 {
    border: 0;
}

.border-slate-100 {
    border-color: #f1f5f9;
}

.border-slate-200 {
    border-color: var(--slate-200);
}

.border-slate-300 {
    border-color: var(--slate-300);
}

.border-slate-400 {
    border-color: #94a3b8;
}

.border-slate-700 {
    border-color: var(--slate-700);
}

.border-r-2 {
    border-right: 2px solid;
}

.border-r-4 {
    border-right: 4px solid;
}

.border-b-2 {
    border-bottom: 2px solid;
}

.border-b {
    border-bottom: 1px solid;
}

.border-brand-200 {
    border-color: var(--brand-200);
}

.border-brand-500 {
    border-color: var(--brand-500);
}


/* ============================================================
   RADIUS
   ============================================================ */

.rounded {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 6px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.rounded-full {
    border-radius: 9999px;
}


/* ============================================================
   WIDTH / HEIGHT
   ============================================================ */

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-8 {
    width: 32px;
}

.h-8 {
    height: 32px;
}

.w-10 {
    width: 40px;
}

.h-10 {
    height: 40px;
}

.w-12 {
    width: 48px;
}

.h-12 {
    height: 48px;
}

.h-28 {
    height: 112px;
}

.h-40 {
    height: 160px;
}

.h-64 {
    height: 256px;
}

.min-h-screen {
    min-height: 100vh;
}

.min-h-220 {
    min-height: 220px;
}


/* ============================================================
   POSITION
   ============================================================ */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    inset: 0;
}

.top-3 {
    top: 12px;
}

.left-3 {
    left: 12px;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}


/* ============================================================
   OBJECT / OVERFLOW
   ============================================================ */

.object-cover {
    object-fit: cover;
}

.overflow-hidden {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.shrink-0 {
    flex-shrink: 0;
}


/* ============================================================
   TEXT LINE CLAMP
   ============================================================ */

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}


/* ============================================================
   TRANSITIONS
   ============================================================ */

.transition {
    transition: all .3s ease;
}

.transition-fast {
    transition: all .2s ease;
}

.transition-image {
    transition: transform .5s ease;
}


/* ============================================================
   STANDARD NEWS CARD
   ============================================================ */

.standard-news-card {
    background: #fff;
    border: 2px solid var(--slate-200);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .3s ease;
    cursor: pointer;
    text-decoration: none;
}

.standard-news-card:hover {
    border-color: var(--brand-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(225,29,72,.15);
}

.standard-news-card img {
    transition: transform .3s ease;
}

.standard-news-card:hover img {
    transform: scale(1.1);
}


/* ============================================================
   WIREFRAME
   ============================================================ */

.wireframe-box {
    border: 2px solid #d4d5d4cb;
    border-radius: 16px;
    transition: all .3s ease;
}

.wireframe-box-sm {
    border: 2px solid #334155;
    border-radius: 12px;
    transition: all .3s ease;
}

.wireframe-box:hover,
.wireframe-box-sm:hover {
    box-shadow:
        0 10px 25px -5px rgba(0,0,0,.1),
        0 8px 10px -6px rgba(0,0,0,.1);
    border-color: var(--brand-600);
}


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

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


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

.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;
}

.v-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.v-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    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;
}

.v-slide figcaption h2 {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 800;
}

.v-slide figcaption h2 a {
    color: #fff;
    text-decoration: none;
}

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


/* ============================================================
   BRAND BADGE
   ============================================================ */

.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;
}


/* ============================================================
   HERO THUMBNAILS
   ============================================================ */

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

.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);
}

.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;
}

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

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

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


/* ============================================================
   SIDE SLIDER
   ============================================================ */

.h-slider-card {
    background: #fff;
    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 {
    font-size: 15px;
    color: var(--navy);
    gap: 6px;
    display: flex;
    align-items: center;
    margin: 0;
}

.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;
}

.modern-num-box .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 {
    min-width: 100%;
    height: 100%;
}

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

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

.h-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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;
    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;
}

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

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

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

.h-item-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin: 0 0 2px;
}

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

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

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

.h-pro-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

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

.h-nav-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

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

.h-dot-pill {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    flex-shrink: 0;
}

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


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

.ticker-wrap {
    background: #0b192c;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid var(--rule);
}

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

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

.ticker-track {
    display: inline-block;
    padding-right: 100%;
    animation: tickerAnim 28s linear infinite;
    background: #0b192c;
    color: #fff;
}

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

.ticker-item {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    padding: 0 20px;
}

.ticker-item a {
    color: #fff;
    text-decoration: none;
}

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


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

.home-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.home-section-header h2 {
    font-weight: 900;
    font-size: 24px;
    color: #0f172a;
    border-right: 4px solid var(--brand-600);
    padding-right: 12px;
    margin: 0;
}

.home-section-header .line {
    height: 2px;
    background: #cbd5e1;
    flex-grow: 1;
    border-radius: 999px;
}


/* ============================================================
   ADS
   ============================================================ */

.ad-banner {
    position: relative;
    padding: 24px;
    text-align: center;
    background: #f1f5f9;
    border: 2px dashed #94a3b8;
    overflow: hidden;
    cursor: pointer;
}

.ad-banner:hover {
    background: #e2e8f0;
}

.ad-banner p {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 4px;
}

.ad-banner h3 {
    font-size: 18px;
    font-weight: 900;
    color: #334155;
    margin: 0;
}

.ad-banner span {
    display: inline-block;
    margin-top: 8px;
    color: var(--brand-600);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}


/* ============================================================
   VIDEO SECTION
   ============================================================ */

.video-section {
    background: #0f172a;
    color: #fff;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
}

.video-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card {
    border: 2px solid #334155;
    border-radius: 12px;
    background: rgba(30,41,59,.8);
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-icon {
    width: 48px;
    height: 48px;
    background: rgba(225,29,72,.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


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

.sidebar-card {
    background: #fff;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
    font-weight: 900;
    font-size: 18px;
    margin: 0;
}

.trending-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    text-decoration: none;
}

.trending-number {
    font-size: 24px;
    font-weight: 900;
    color: #cbd5e1;
}

.trending-item:hover .trending-number {
    color: var(--brand-600);
}


/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter {
    margin-top: 24px;
    background: #0f172a;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.newsletter input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 12px;
}

.newsletter button {
    width: 100%;
    margin-top: 8px;
    background: var(--brand-600);
    color: #fff;
    border: 0;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.newsletter button:hover {
    background: var(--brand-700);
}

.newsletter-msg {
    color: #34d399;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.hidden {
    display: none !important;
}


/* ============================================================
   SHORTS
   ============================================================ */

.shorts-section {
    background: #fff;
    padding: 24px;
    position: relative;
}

.shorts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.shorts-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shorts-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-600);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.short-card {
    position: relative;
    height: 256px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.short-card:hover img {
    transform: scale(1.1);
}

.short-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.8),
            transparent 65%
        );
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.short-views {
    background: rgba(225,29,72,.9);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    width: max-content;
    font-weight: 700;
}

.short-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}


/* ============================================================
   VIDEO MODAL
   ============================================================ */

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.video-modal-box {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    position: relative;
    border: 1px solid #334155;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1e293b;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    z-index: 10;
    cursor: pointer;
}

.video-modal-close:hover {
    background: var(--brand-600);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ============================================================
   KEYFRAMES
   ============================================================ */

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

    100% {
        width: 100%;
    }
}

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

    100% {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

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

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


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}


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

@media (max-width: 1024px) {

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

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

    .col-8,
    .col-4 {
        grid-column: span 12;
    }

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


@media (max-width: 768px) {

    .home-main {
        padding: 16px 12px;
    }

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

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

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

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

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

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

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

    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .home-section-header h2 {
        font-size: 20px;
    }

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

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

    .video-section,
    .shorts-section {
        padding: 16px;
    }
}


@media (min-width: 640px) and (max-width: 767px) {

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

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




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

    * {
        font-family: 'Cairo', sans-serif;
    }

    .wireframe-box {
        border: 2px solid #d4d5d4cb;
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .wireframe-box-sm {
        border: 2px solid #334155;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .wireframe-box:hover,
    .wireframe-box-sm:hover {
        box-shadow:
            0 10px 25px -5px rgba(0, 0, 0, 0.1),
            0 8px 10px -6px rgba(0, 0, 0, 0.1);
        border-color: #e11d48;
    }

    .standard-news-card {
        background-color: #ffffff;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .standard-news-card:hover {
        border-color: #e11d48;
        transform: translateY(-2px);
        box-shadow:
            0 10px 20px -5px rgba(225, 29, 72, 0.15);
    }

    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: #94a3b8;
        border-radius: 8px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }


    /* =========================================================
       KEYFRAMES & HERO GRID
       ========================================================= */

    @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)
        }
    }

    .hero-viewport {
        padding: 0;
    }

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


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

    .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;
    }

    .v-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
    }

    .v-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        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: 28px;
        line-height: 1.25;
        margin-bottom: 8px;
        font-weight: 800;
    }

    .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;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .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;
    }


    /* =========================================================
       SIDE SLIDER
       ========================================================= */

    .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: 70%;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        display: block;
    }

    .h-item-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        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: 30%;
        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: 16px;
        font-weight: 700;
        line-height: 1.25;
        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;
        fill: currentColor;
    }

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

    .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-wrap {
        background-color: #0b192c;
        border-radius: 14px;
        margin-bottom: 0;
        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;
    }


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

    @media (max-width: 1024px) {

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

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

    @media (max-width: 768px) {

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

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

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

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

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

        .h-slider-card {
            height: auto;
            min-height: 440px;
            padding: 16px;
        }
    }
 /* مساحة عرض الفيديو */
    #shorts-section .home-shorts-viewer {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        min-height: 650px;
        border-radius: 18px;
        background: #09090b;
        color: #fff;
    }

    /* الخلفية الضبابية */
    #shorts-section .home-shorts-blur-background {
        position: absolute;
        inset: -30px;
        z-index: -2;
        background-color: #18181b;
        background-position: center;
        background-size: cover;
        filter: blur(24px);
        transform: scale(1.12);
        opacity: 0.75;
        transition: background-image 0.2s ease;
    }

    /* طبقة لتوضيح الفيديو والنص */
    #shorts-section .home-shorts-viewer-overlay {
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.68)
        );
    }

    #shorts-section .home-shorts-viewer-content {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 18px;
    }

    #shorts-section .home-shorts-viewer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    #shorts-section .home-shorts-back-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 14px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 10px;
        color: #fff;
        background: rgba(0, 0, 0, 0.45);
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    #shorts-section .home-shorts-back-button:hover {
        background: #dc2626;
    }

    #shorts-section .home-shorts-viewer-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 9px;
        color: #fff;
        background: #e11d48;
        font-size: 12px;
        font-weight: 800;
    }

    #shorts-section .home-shorts-viewer-title {
        width: 100%;
        max-width: 480px;
        margin: 0;
        color: #fff;
        text-align: center;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.8;
    }

    /* إطار الفيديو العمودي */
    #shorts-section .home-shorts-video-frame {
        width: min(100%, 380px);
        aspect-ratio: 9 / 16;
        max-height: 72vh;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 16px;
        background: #000;
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    }

    #shorts-section .home-shorts-video {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 16;
        object-fit: contain;
        background: #000;
    }

    #shorts-section .home-shorts-viewer-error {
        width: 100%;
        max-width: 380px;
        margin: 0;
        padding: 12px;
        border: 1px solid rgba(248, 113, 113, 0.35);
        border-radius: 10px;
        background: rgba(127, 29, 29, 0.8);
        color: #fecaca;
        font-size: 13px;
        text-align: center;
        line-height: 1.8;
    }

    @media (max-width: 640px) {
        #shorts-section .home-shorts-viewer {
            min-height: 0;
            border-radius: 14px;
        }

        #shorts-section .home-shorts-viewer-content {
            padding: 12px;
        }

        #shorts-section .home-shorts-video-frame {
            width: min(100%, 330px);
            max-height: 68vh;
        }
    }
/* =====================================================
   FIX: HOMEPAGE VERTICAL SCROLL
===================================================== */

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.homepage-top-ad-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 110px;
    overflow: visible;
    margin: 0;
    padding: 0;
}

.homepage-top-ad-container .home-top-cinematic-ad {
    width: 100%;
    max-width: 100%;
    height: 110px;
    min-height: 110px;
}