* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #f5f5f5;
}

/* شريط أخبار عاجلة */
.breaking-news {
  direction: rtl;
  unicode-bidi: plaintext;
    background: #cc0000;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 10px;
    z-index: 1000;
    position: relative;
    font-size:15px;
    letter-spacing:0.3px;
}

.breaking-text {
    display: inline-block;
    white-space: nowrap;
    direction: rtl;
    animation: scroll 14s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Navbar */
.header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 15px 40px;
  gap: 40px;
}

.logo {
  position: absolute;
  right: 40px;
  z-index: 1001;
}

.logo img {
  width: auto;
  max-height: 40px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  z-index: 999;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #741c7f;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  z-index: 100001;
  position: absolute;
  top: 15px;
  left: 20px;
}

/* Hero Section */

.hero{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    padding:30px 40px;
}

.hero-main{
    position:relative;
}

.hero-main img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    border-radius:5px;
}

.overlay{
    position:absolute;
    bottom:0;
    right:0;
    width:100%;
    padding:30px;
    color:white;
    font-size:28px;
    font-weight:700;
    line-height:1.4;
    background:linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3), transparent);
    border-radius:0 0 5px 5px;
    z-index:2;
}

.hero-main{
    overflow:hidden;
}

.hero-main img{
    transition: transform 0.6s ease;
}

.hero-main:hover img{
    transform:scale(1.04);
}

.hero-side{
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* Small News */

.small-news{
    display:flex;
    gap:10px;
    align-items:center;
    background:white;
    padding:12px;
    border-radius:5px;
    font-weight:bold;
    border-right:5px solid #741c7f;
    cursor:pointer;
    transition:0.3s;
}

.small-news img{
    width:80px;
    height:60px;
    object-fit:cover;
    border-radius:4px;
}

.small-news:hover{
    background:#eee;
}

/* Footer */

/* Footer */

.footer{
    background:#1a1a1a;
    color:#fff;
    padding:18px 12px 10px;
    font-family:'Tahoma', Arial, sans-serif;
    direction:rtl;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:18px;
    align-items: center;
    text-align: center;
}

.footer h4{
    margin:0 0 10px;
    font-size:15px;
    font-weight:700;
}

.footer-links-horizontal{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    list-style:none;
    justify-content:center;
}

.footer-links-horizontal a{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.14);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:12px;
}

.footer-links-horizontal a:hover{
    background:rgba(116,28,127,0.35);
}

.app-buttons{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

.app-buttons a{
    background:#000;
    color:#fff;
    padding:7px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    font-size:13px;
}

.app-buttons a:hover{
    background:#741c7f;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:14px;
}

.social-icons a{
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:13px;
}

.social-icons a:hover{
    color:#741c7f;
}

.legal-links{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    text-align:center;
}

.legal-links a{
    color:white;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
}

.footer .copyright{
    max-width:1200px;
    margin:18px auto 0;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,0.12);
    text-align:center;
    font-size:13px;
    color:#ccc;
}

/* Responsive */

@media (max-width:768px){

  .navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:56px;
    padding:10px 14px;
  }

  .hamburger{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
  }

  .logo{ position:absolute; margin:0 auto; }
  .logo img{ max-height:34px; }

  .nav-links{
    display:none;
    flex-direction:column;
    position:fixed;
    top:56px;
    right:0;
    width:100%;
    height:calc(100vh - 56px);
    overflow-y:auto;
    background:#fff;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    z-index:99999;
    padding:8px 0;
  }

  .nav-links.show,
  .nav-links.is-open{
    display:flex;
  }

  .nav-links a{
    display:block;
    padding:14px 18px;
    border-bottom:1px solid #eee;
  }

  .hero{ grid-template-columns:1fr; }
}

@media (min-width: 992px){
  .nav-links{
    display:flex !important;
    flex-direction:row;
    position:static;
    width:auto;
    background:transparent;
    box-shadow:none;
    height:auto;
    overflow:visible;
    padding:0;
  }

  .nav-links a{
    border-bottom:none;
  }
}

@keyframes fadeUp{
0%{
opacity:0;
transform:translateY(30px);
}
100%{
opacity:1;
transform:translateY(0);
}
}
/* Header احترافي */

.header{
    position:sticky;
    top:0;
    backdrop-filter: blur(6px);
    transition:0.3s;
}

/* تأثير عند المرور */
.nav-links a{
    position:relative;
}

.nav-links a::after{
    content:"";
    position:absolute;
    bottom:-5px;
    right:0;
    width:0;
    height:2px;
    background:#741c7f;
    transition:0.3s;
  

}

.nav-links.is-open {
  display: flex;
  flex-direction: column;
}


.nav-links a:hover::after{
    width:100%;
}

/* Social bar */

.top-social{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:28px;
    background:#f3f3f3;
    padding:8px 0;
    font-size:14px;
}

.top-social a{
    display:flex;
    align-items:center;
    gap:6px;
    text-decoration:none;
    color:#444;
    font-weight:600;
    transition:0.25s;
}

.top-social a:hover{
    color:#741c7f;
}

/* ألوان الأيقونات */

.top-social i.fa-telegram{
    color:#229ED9;
}

.top-social i.fa-x-twitter{
    color:#000;
}

.top-social i.fa-facebook-f{
    color:#1877F2;
}

/* ============================= */
/* News Sections (CNN Style) */
/* ============================= */

.news-section{
    max-width:1200px;
    margin:40px auto;
    padding:0 40px;
}

/* عنوان القسم */

.section-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:20px;
    position:relative;
}

.section-title::after{
    content:"";
    position:absolute;
    bottom:-6px;
    right:0;
    width:60px;
    height:3px;
    background:#cc0000;
}

/* حاوية السلايدر */

.section-wrapper{
    position:relative;
    width:100%;
}

/* grid الأخبار */

.section-grid{
    display:flex;
    gap:20px;
}

/* slider */

.slider{
    overflow-x:auto;
    scroll-behavior:smooth;
}

.slider::-webkit-scrollbar{
    display:none;
}

/* بطاقات الأخبار */

.section-card{
    min-width:260px;
    background:white;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    transition:0.3s;
}

.section-card:hover{
    transform:translateY(-5px);
}

/* صورة الخبر */

.section-card img{
    width:100%;
    height:150px;
    object-fit:cover;
    transition:0.4s;
}

/* Hover Zoom */

.section-card:hover img{
    transform:scale(1.08);
}

.section-card h3{
    padding:12px;
    font-size:15px;
    line-height:1.5;
}

/* أزرار السلايدر */

.scroll-btn{
    position:absolute;
    top:35%;
    background:white;
    border:none;
    font-size:28px;
    cursor:pointer;
    width:40px;
    height:40px;
    border-radius:50%;
    box-shadow:0 2px 10px rgba(0,0,0,0.2);
    z-index:10;
}

.scroll-btn.right{
    right:-20px;
}

.scroll-btn.left{
    left:-20px;
}

/* Breaking News blinking */

.blink{
    animation:blink 1s infinite;
}

@keyframes blink{
    0%{opacity:1}
    50%{opacity:0.5}
    100%{opacity:1}
}
/* Header fade on scroll (mobile effect) */

.header{
transition:all 0.35s ease;
}

.header.scrolled{
background:rgba(255,255,255,0.85);
backdrop-filter:blur(10px);
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.header.scrolled .navbar{
padding:10px 40px;
}

.header.scrolled .logo img{
max-height:34px;
}

/* ============================= */
/* Video Section (CNN Style) */
/* ============================= */

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
}

.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-section{
background:#111;
color:white;
padding:50px 40px;
margin-top:40px;
}

.video-title{
font-size:24px;
font-weight:700;
margin-bottom:25px;
}

.video-layout{
display:grid;
grid-template-columns:2fr 1fr;
gap:25px;
}

.video-main video{
width:100%;
border-radius:6px;
}

.video-side{
display:flex;
flex-direction:column;
gap:15px;
}

.video-card{
display:flex;
gap:10px;
cursor:pointer;
}

.video-card img{
width:120px;
height:70px;
object-fit:cover;
border-radius:4px;
}

.video-card h4{
font-size:14px;
line-height:1.4;
color:#eee;
}

.video-card:hover h4{
color:white;
}

.video-main-player{
  width:100%;
  border-radius:8px;
  display:block;
}

.video-main-title{
  margin-top:12px;
  font-size:18px;
  font-weight:700;
  color:#fff;
  line-height:1.4;
}

.video-main-body{
  margin-top:8px;
  color:#ccc;
  line-height:1.7;
  font-size:14px;
}

@media (max-width:768px){

.footer-container{
grid-template-columns:1fr;
gap:20px;
text-align:center;
}

.footer-links-horizontal{
justify-content:center;
}

.app-buttons{
justify-content:center;
}

}
/* ============================= */
/* HERO MOBILE FIX */
/* ============================= */

@media (max-width:768px){

.hero{
    grid-template-columns:1fr;
    gap:20px;
    padding:20px;
}

/* الخبر الرئيسي */
.hero-main img{
    height:auto;
}

.overlay{
    font-size:20px;
    padding:18px;
}

/* الأخبار الجانبية */

.hero-side{
    gap:12px;
}

.small-news{
    display:flex;
    gap:12px;
    align-items:center;
    padding:10px;
    border-right:4px solid #741c7f;
}

.small-news img{
    width:90px;
    height:65px;
    border-radius:4px;
}

.small-news h4{
    font-size:14px;
    line-height:1.4;
    font-weight:700;
}

/* الفيديو أيضاً يتعدل */

.video-layout{
    grid-template-columns:1fr;
}

.video-card img{
    width:110px;
    height:65px;
}

}

/* ============================= */
/* HERO PROFESSIONAL LOOK */
/* ============================= */

.small-news{
transition:all .25s ease;
}

.small-news:hover{
background:#f7f7f7;
transform:translateX(-5px);
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.small-news img{
transition:transform 0.3s ease;
}

.small-news:hover img{
transform:scale(1.05);
}

body.menu-open{
  overflow:hidden;
}

/* ✅ Header always above content */
.header{
  position: sticky;
  top: 0;
  z-index: 100000;
  background: #fff;
}

/* ✅ Hamburger always visible */
.hamburger{
  position: relative;
  z-index: 100001;
  background: transparent;
  border: 0;
  color: #111;          /* لون ثابت */
}

.hamburger i{
  color: inherit;
  font-size: 26px;
}

/* ✅ even when scrolled */
.header.scrolled .hamburger,
.header.scrolled .hamburger i{
  color:#111 !important;
}
/* ============================= */
/* FIX: Video sizing */
/* ============================= */

.video-main-player,
.video-main video,
.card-video,
.article-video,
.article-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #000;
}

.video-card img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.video-main-card {
  width: 100%;
  overflow: hidden;
}

.article-media:empty {
  display: none;
}

/* الخبر النصي بدون صورة */
.hero-main:not(:has(img)) {
  min-height: 220px;
  background: #1a1a1a;
  border-radius: 5px;
  display: flex;
  align-items: end;
}

.section-card {
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.section-card h3 {
  padding: 12px;
}

/* ============================= */
/* CNN-like News Grid (under hero only) */
/* ============================= */

.news-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px 40px;
  max-width:1200px;
  margin:0 auto;
}

.news-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:14px;
  align-items:center;
  background:#fff;
  border-bottom:1px solid #e5e5e5;
  cursor:pointer;
  transition:0.25s ease;
  padding:12px 0;
}

.news-row:hover{
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.news-row-content{
  padding:18px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:right;
}

.news-row-category{
  font-size:14px;
  color:#a0a0a0;
  margin-bottom:10px;
}

.news-row-title{
  font-size:18px;
  line-height:1.7;
  color:#111;
  margin:0;
  font-weight:700;
}


.news-row-image{
width:140px;
height:90px;
overflow:hidden;
border-radius:4px;
flex-shrink:0;
}

.news-row-image img{
width:100%;
height:100%;
object-fit:cover;
}

/* موبايل */
@media (max-width:768px){
  .news-grid{
    padding:14px 10px;
    gap:8px;
  }

  .news-row{
    grid-template-columns: 120px 1fr;
    gap:10px;
    align-items:center;
    padding:10px 0;
  }

  .news-row-content{
    padding:0;
  }

  .news-row-title{
    font-size:15px;
    line-height:1.6;
    margin:0;
  }

  .news-row-category{
    font-size:12px;
    margin-bottom:6px;
  }

  .news-row-image{
    width:120px;
    height:78px;
    min-height:unset;
    overflow:hidden;
    border-radius:4px;
  }

  .news-row-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
}
.news-row{
  direction:rtl;
}

.news-row-content{
  text-align:right;
}

.legal-links{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    text-align:center;
}

.legal-links a{
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

/* ===== Extra footer shrink ===== */

.footer{
    padding:14px 10px 8px !important;
}

.footer-container{
    gap:14px !important;
}

.footer h4{
    font-size:14px !important;
    margin-bottom:8px !important;
}

.footer-links-horizontal a{
    padding:5px 9px !important;
    font-size:11.5px !important;
}

.app-buttons a{
    padding:6px 12px !important;
    font-size:12px !important;
}

.social-icons{
    gap:12px !important;
}

.social-icons a{
    font-size:12px !important;
}

.legal-links{
    gap:10px !important;
}

.legal-links a{
    font-size:12px !important;
}

.footer .copyright{
    font-size:12px !important;
    margin-top:14px !important;
}

/* Move hamburger to the left */

.hamburger{
    left:20px !important;
    right:auto !important;
}

@media (max-width:768px){

  .navbar{
    position: relative;
    justify-content: center !important;
  }

  .logo{
    position: static;
    margin: 0 auto;
  }

  .hamburger{
    position: absolute !important;
    left: 12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}