/* ============================================
   إيجاز برس - نسخة جديدة
   Modern Arabic News Site Design System
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #111827;
  /* Dark almost black for primary text/headers */
  --primary-light: #1f2937;
  --accent: #E31837;
  /* Trustworthy news red for accents */
  --accent-hover: #b91c1c;
  --gold: #f5a623;
  --gold-hover: #e09000;
  --bg: #f9fafb;
  /* Very light cool gray for page bg */
  --bg-white: #ffffff;
  --bg-dark: #111827;
  --text: #374151;
  /* Softer dark gray for body text */
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius: 4px;
  /* Sharper corners for a newspaper/magazine feel */
  --radius-sm: 2px;
  --transition: all 0.2s ease-in-out;
  --font: 'Tajawal', sans-serif;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.4;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--bg-dark);
  padding: 6px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-date i {
  color: var(--gold);
}

.top-social {
  text-align: left;
}

.top-social a {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.top-social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.main-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.header-logo {
  text-align: center;
  display: flex;
  align-items: center;
}

.header-logo img {
  max-height: 50px;
  margin: 12px 0;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.02);
}

.mobile-menu-btn,
.search-toggle-btn {
  background: transparent;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover,
.search-toggle-btn:hover {
  background: var(--bg);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 90%;
  max-width: 600px;
  position: relative;
}

.search-overlay form {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  overflow: hidden;
}

.search-overlay input {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-family: var(--font);
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-overlay button[type="submit"] {
  padding: 16px 24px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-overlay button[type="submit"]:hover {
  background: var(--accent-hover);
}

.search-close {
  position: absolute;
  top: -60px;
  left: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-close:hover {
  color: #fff;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: transparent;
  border: none;
  position: static;
  box-shadow: none;
  height: 100%;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  height: 100%;
}

.nav-list>li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-list>li>a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  margin: 0 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
}

.nav-list>li>a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.nav-list>li>a:hover {
  color: var(--accent);
  background: rgba(220, 53, 69, 0.05);
  /* very subtle accent tint */
}

.nav-list>li>a:hover::after,
.nav-list>li>a.active::after {
  width: 60%;
  opacity: 1;
}

.nav-list>li>a.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-list>li>a i {
  margin-left: 6px;
  font-size: 0.95em;
  color: var(--accent);
}

/* Dropdown */
.has-dropdown:hover .dropdown-menu-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Add an invisible bridge so hover doesn't break */
.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.dropdown-menu-nav {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.dropdown-menu-nav li {
  margin-bottom: 4px;
}

.dropdown-menu-nav li:last-child {
  margin-bottom: 0;
}

.dropdown-menu-nav li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-menu-nav li a:hover {
  background: var(--bg);
  color: var(--accent);
  padding-right: 22px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--primary);
  z-index: 2001;
  transition: var(--transition);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header img {
  max-height: 36px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;
  padding: 10px 0;
}

.mobile-menu-list li a {
  display: block;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.mobile-menu-list li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  padding-right: 30px;
}

.mobile-menu-list li a i {
  margin-left: 8px;
  color: var(--accent);
}

.mobile-dropdown-menu {
  display: none;
  list-style: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.1);
}

.mobile-has-dropdown.active .mobile-dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-dropdown-menu li a {
  padding-right: 40px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mobile-has-dropdown>a i.fa-chevron-down {
  transition: transform 0.3s ease;
}

.mobile-has-dropdown.active>a i.fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-menu-social {
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 4px;
  transition: var(--transition);
}

.mobile-menu-social a:hover {
  background: var(--accent);
  color: #fff;
}

/* (Breaking News CSS removed) */

/* ===== MAIN CONTENT ===== */
.site-main {
  min-height: 60vh;
}

/* Section styling */
.section-block {
  padding: 30px 0;
}

.section-block.alt-bg {
  background: var(--bg-white);
}

.section-block.dark-bg {
  background: var(--bg-dark);
  color: #fff;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

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

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.section-header h2 a {
  color: var(--primary);
}

.section-header h2 a:hover {
  color: var(--accent);
}

.section-header .more-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.section-header .more-link:hover {
  color: var(--gold);
}

.dark-bg .section-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dark-bg .section-header::after {
  background: var(--gold);
}

.dark-bg .section-header h2,
.dark-bg .section-header h2 a {
  color: #fff;
}

/* ===== HERO SLIDER ===== */
.hero-section {
  background: var(--bg-dark);
  padding: 10px 0 0;
}

.hero-swiper {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 100% !important;
  /* Fix Webkit Border Radius clipping issues on transforms */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.hero-swiper .swiper-wrapper {
  height: 100% !important;
}

@media (min-width: 992px) {
  .hero-section .row {
    min-height: 480px;
  }
}

@media (max-width: 991.98px) {
  .hero-section .row {
    min-height: 400px;
  }

  .hero-swiper {
    min-height: 350px;
  }
}

.main-slider-card {
  position: relative;
  margin: 0;
  border-radius: 0;
  height: 100% !important;
  min-height: 100%;
}

.main-slider-card .img-wrapper {
  height: 100% !important;
  aspect-ratio: auto;
  margin-bottom: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.main-slider-card .img-wrapper img {
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 10s ease;
  display: block;
}

.hero-swiper .swiper-slide-active .img-wrapper img {
  transform: scale(1.05);
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 40px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news-card .slider-cat {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: auto !important;
  z-index: 3;
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .slider-caption {
    padding: 30px 15px 20px;
  }

  .news-card .slider-cat {
    top: 15px;
    right: 15px;
    bottom: auto !important;
    font-size: 0.75rem;
    padding: 3px 10px;
  }

  .slider-date {
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
    /* Stacks nicely if space gets too tight */
  }

  .slider-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  /* Simplify arrows to not obscure text */
  .main-slider .slider-nav-btn {
    width: 35px !important;
    height: 35px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .main-slider .slider-nav-btn::after {
    font-size: 1rem !important;
  }

  .main-slider .slider-nav-btn.next {
    left: 10px !important;
  }

  .main-slider .slider-nav-btn.prev {
    right: 10px !important;
  }
}

.slider-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Slider Navigation (Glassmorphism) */
.slider-nav-btn {
  width: 45px !important;
  height: 45px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.slider-nav-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: scale(1.1);
}

.slider-nav-btn::after {
  font-size: 1.2rem !important;
  font-weight: bold;
}

.slider-nav-btn.next {
  left: 20px !important;
  right: auto !important;
}

.slider-nav-btn.prev {
  right: 20px !important;
  left: auto !important;
}

.hero-swiper .swiper-pagination-bullet,
.main-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active,
.main-slider .swiper-pagination-bullet-active {
  background: #0d6efd;
  /* Blue */
  opacity: 1;
}

/* ===== NEWS CARDS (Clean Magazine Style) ===== */
.news-card {
  background: transparent;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-2px);
}

.news-card .card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

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

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

.news-card .card-cat {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-card .card-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover .card-title {
  color: var(--accent);
}

.news-card .card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-card .card-date i {
  margin-left: 4px;
}

/* Card variations */
.news-card-horizontal {
  flex-direction: row;
}

.news-card-horizontal .card-img {
  width: 120px;
  min-width: 120px;
  aspect-ratio: auto;
}

.news-card-horizontal .card-title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
}

/* Large card */
.news-card-large .card-img {
  aspect-ratio: 16/10;
}

.news-card-large .card-title {
  font-size: 1.35rem;
  line-height: 1.6;
}

/* ===== ARTICLE CARDS ===== */
.art-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.art-card .writer-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 10px;
}

.art-card .writer-name {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.art-card .art-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card:hover .art-title {
  color: var(--accent);
}

/* ===== VIDEO CARD ===== */
.video-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card .card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: var(--transition);
}

.video-card:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

.video-card .card-body {
  padding: 14px;
}

.video-card .card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SHARE BUTTONS ===== */
.bottom-share-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.bottom-share-bar .share-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.share-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bottom-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  font-size: 1.1rem;
}

.bottom-share-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: #fff;
}

.btn-facebook {
  background: #1877f2;
}

.btn-twitter {
  background: #000;
}

.btn-whatsapp {
  background: #25d366;
}

.btn-telegram {
  background: #0088cc;
}

.btn-copy {
  background: var(--text-muted);
}

@media (max-width: 767.98px) {
  .bottom-share-bar {
    padding: 15px;
  }

  .share-btns {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .bottom-share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
    flex: 0 0 auto;
    min-width: auto;
  }

  .bottom-share-btn i {
    margin: 0;
  }
}

.share-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.share-btns a:hover {
  transform: translateY(-3px);
}

.share-btns .fb {
  background: #1877f2;
}

.share-btns .tw {
  background: #1da1f2;
}

.share-btns .wa {
  background: #25d366;
}

.share-btns .tg {
  background: #0088cc;
}

/* ===== NEWS DETAIL PAGE ===== */
.news-detail-page {
  padding: 30px 0;
}

.news-detail-container {
  max-width: 850px;
  margin: 0 auto;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.breadcrumb-bar a {
  color: var(--accent);
}

.breadcrumb-bar .sep {
  color: var(--text-muted);
}

.news-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--text);
}

.news-detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.news-detail-meta .meta-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.news-detail-meta .share-btns {
  align-self: flex-end;
  width: auto !important;
  margin-top: 5px;
}

.news-detail-meta .meta-info .cat-badge {
  background: var(--accent);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.news-detail-meta .meta-info .source-badge {
  background: var(--bg);
  color: var(--text-light);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
}

.news-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.news-detail-image img {
  width: 100%;
  display: block;
}

.news-detail-image .img-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px;
  background: var(--bg);
}

.news-detail-body {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.news-detail-body p {
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.news-detail-body img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* Writer section in article page */
.writer-info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.writer-info-box img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.writer-info-box .writer-details .name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.writer-info-box .writer-details .art-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== CATEGORY / LIST PAGE ===== */
.list-page {
  padding: 30px 0;
}

.cat-news-card {
  display: flex;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.cat-news-card:hover {
  transform: translateY(-2px);
}

.cat-news-card .card-img {
  width: 280px;
  min-width: 280px;
  overflow: hidden;
  border-radius: var(--radius);
}

.cat-news-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.cat-news-card .card-content {
  padding: 18px;
  flex: 1;
}

.cat-news-card .card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text);
}

.cat-news-card:hover .card-content h3 {
  color: var(--accent);
}

.cat-news-card .card-content .date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cat-news-card .card-content .summary {
  font-size: 0.88rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== PAGINATION ===== */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 30px 0;
}

.pagination-bar a,
.pagination-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.pagination-bar a {
  background: var(--bg-white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.pagination-bar a:hover {
  background: var(--accent);
  color: #fff;
}

.pagination-bar span.current {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.pagination-bar .nav-arrow {
  background: var(--primary);
  color: #fff;
}

.pagination-bar .nav-arrow:hover {
  background: var(--accent);
}

.pagination-bar .nav-arrow.disabled {
  background: var(--bg);
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== POLL ===== */
.poll-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 30px 0;
  text-align: center;
}

.poll-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
}

.poll-card .poll-label {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.poll-card .poll-question {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.poll-card .poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: var(--transition);
}

.poll-card .poll-option:hover {
  background: rgba(255, 255, 255, 0.12);
}

.poll-card .poll-option input[type="radio"] {
  accent-color: var(--gold);
}

.poll-card .poll-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.poll-card .btn-vote,
.poll-card .btn-result {
  padding: 8px 24px;
  border-radius: 25px;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.poll-card .btn-vote {
  background: var(--gold);
  color: var(--primary);
}

.poll-card .btn-vote:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.poll-card .btn-result {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.poll-card .btn-result:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 0;
}

.footer-brand img {
  max-height: 45px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-social h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: 6px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  margin-left: 8px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--gold);
  margin-right: 4px;
}

/* ===== ENGLISH SECTION ===== */
.english-section {
  direction: ltr;
  text-align: left;
}

.english-section .card-title {
  text-align: left;
  direction: ltr;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-swiper .swiper-slide {
    height: 300px;
  }

  .hero-swiper .slide-title {
    font-size: 1.1rem;
  }

  .cat-news-card {
    flex-direction: column;
  }

  .cat-news-card .card-img {
    width: 100%;
    min-width: auto;
    aspect-ratio: 16/9;
  }

  .news-detail-body {
    padding: 20px;
  }

  .news-detail-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .hero-swiper .swiper-slide {
    height: 220px;
  }

  .hero-swiper .slide-title {
    font-size: 0.95rem;
  }

  .hero-swiper .slide-overlay {
    padding: 30px 15px 15px;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .news-detail-title {
    font-size: 1.15rem;
  }

  .news-detail-body p {
    font-size: 0.95rem;
  }

  .news-detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar {
    display: none;
  }
}

/* ===== MOBILE TABS BAR ===== */
.mobile-tabs-bar {
  display: none;
  background: var(--bg-white);
  border-bottom: 2px solid var(--border);
  padding: 0;
  position: sticky;
  top: 74px;
  z-index: 999;
}

.mobile-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

.mobile-tab i {
  margin-left: 6px;
  font-size: 0.85rem;
}

.mobile-tab.active {
  color: var(--accent);
}

.mobile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.mobile-tab-content {
  display: block;
}

@media (max-width: 991.98px) {
  .mobile-tabs-bar {
    display: flex;
  }

  .mobile-tab-content {
    display: none;
  }

  .mobile-tab-content.active {
    display: block;
  }
}

/* Hide the latest-news tab on large screens (only for mobile tabs) */
@media (min-width: 992px) {
  #latestTab {
    display: none;
  }
}

/* ===== LATEST NEWS FEED (Tab 2) ===== */
.latest-news-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-feed-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background 0.2s ease;
  align-items: flex-start;
}

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

.latest-feed-item:last-child {
  border-bottom: none;
}

.latest-feed-item:hover {
  background: var(--bg);
}

.latest-feed-item .feed-img {
  width: 110px;
  min-width: 110px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.latest-feed-item .feed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.latest-feed-item:hover .feed-img img {
  transform: scale(1.05);
}

.latest-feed-item .feed-content {
  flex: 1;
  min-width: 0;
}

.latest-feed-item .feed-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.latest-feed-item .feed-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-feed-item:hover .feed-title {
  color: var(--accent);
}

.latest-feed-item .feed-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.latest-feed-item .feed-time i {
  margin-left: 4px;
}

@media (max-width: 575.98px) {
  .latest-feed-item .feed-img {
    width: 90px;
    min-width: 90px;
    height: 68px;
  }

  .latest-feed-item .feed-title {
    font-size: 0.88rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.mb-grid {
  margin-bottom: 18px;
}

.text-gold {
  color: var(--gold);
}

.bg-section {
  background: var(--bg);
}

/* Loading shimmer */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

/* Smooth page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== NEWS/ARTICLE DETAIL TITLE ===== */
.news-detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 15px;
}

@media (max-width: 767.98px) {
  .news-detail-title {
    font-size: 1.4rem;
  }
}

/* ===== CONTAINER WIDTH LIMIT FOR LARGE SCREENS ===== */
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .container-fluid {
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 10px;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: -40px;
    right: 0;
  }
}

/* ============================================
   DARK MODE
   ============================================ */

/* --- Dark Mode Toggle Button --- */
.dark-mode-btn {
  background: transparent;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dark-mode-btn:hover {
  background: var(--bg);
  color: var(--accent);
  transform: translateY(-2px);
}

.dark-mode-btn i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-btn.active i {
  transform: rotate(360deg);
}

.header-search-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --primary: #e5e7eb;
  --primary-light: #d1d5db;
  --bg: #0f172a;
  --bg-white: #1e293b;
  --bg-dark: #020617;
  --text: #d1d5db;
  --text-light: #9ca3af;
  --text-muted: #6b7280;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* --- Body Transition --- */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Header --- */
[data-theme="dark"] .main-header {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-menu-btn,
[data-theme="dark"] .search-toggle-btn,
[data-theme="dark"] .dark-mode-btn {
  color: #e5e7eb;
}

[data-theme="dark"] .mobile-menu-btn:hover,
[data-theme="dark"] .search-toggle-btn:hover,
[data-theme="dark"] .dark-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

/* --- Navigation --- */
[data-theme="dark"] .nav-list>li>a {
  color: #d1d5db;
}

[data-theme="dark"] .nav-list>li>a:hover {
  color: var(--accent);
  background: rgba(220, 53, 69, 0.1);
}

[data-theme="dark"] .nav-list>li>a.active {
  color: var(--accent);
}

/* --- Dropdown --- */
[data-theme="dark"] .dropdown-menu-nav {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-menu-nav li a {
  color: #d1d5db;
}

[data-theme="dark"] .dropdown-menu-nav li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

/* --- News Cards --- */
[data-theme="dark"] .news-card .card-title {
  color: #e5e7eb;
}

[data-theme="dark"] .news-card:hover .card-title {
  color: var(--accent);
}

/* --- Art Cards --- */
[data-theme="dark"] .art-card {
  background: #1e293b;
}

[data-theme="dark"] .art-card .art-title {
  color: #d1d5db;
}

/* --- Video Cards --- */
[data-theme="dark"] .video-card {
  background: #1e293b;
}

[data-theme="dark"] .video-card .card-title {
  color: #d1d5db;
}

/* --- News Detail --- */
[data-theme="dark"] .news-detail-body {
  background: #1e293b;
}

[data-theme="dark"] .news-detail-title {
  color: #e5e7eb;
}

[data-theme="dark"] .news-detail-image .img-caption {
  background: #1e293b;
  color: #9ca3af;
}

[data-theme="dark"] .news-detail-meta .meta-info .source-badge {
  background: #334155;
  color: #9ca3af;
}

/* --- Category Cards --- */
[data-theme="dark"] .cat-news-card .card-content h3 {
  color: #d1d5db;
}

[data-theme="dark"] .cat-news-card:hover .card-content h3 {
  color: var(--accent);
}

/* --- Writer Info --- */
[data-theme="dark"] .writer-info-box {
  background: #1e293b;
}

/* --- Share Bar --- */
[data-theme="dark"] .bottom-share-bar {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .bottom-share-bar .share-title {
  color: #e5e7eb;
}

/* --- Contact Form --- */
[data-theme="dark"] .contact-form {
  background: #1e293b;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: #0f172a;
  border-color: #334155;
  color: #d1d5db;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.15);
}

/* --- Pagination --- */
[data-theme="dark"] .pagination-bar a {
  background: #1e293b;
  color: #d1d5db;
}

[data-theme="dark"] .pagination-bar a:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Section Headers --- */
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header h2 a {
  color: #e5e7eb;
}

/* --- Mobile Tabs --- */
[data-theme="dark"] .mobile-tabs-bar {
  background: #1e293b;
  border-bottom-color: #334155;
}

/* --- Latest Feed --- */
[data-theme="dark"] .latest-feed-item .feed-title {
  color: #e5e7eb;
}

[data-theme="dark"] .latest-feed-item:hover .feed-title {
  color: var(--accent);
}

[data-theme="dark"] .latest-feed-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Sidebar --- */
[data-theme="dark"] .sidebar .widget {
  background: #1e293b;
}

/* --- Breadcrumb --- */
[data-theme="dark"] .breadcrumb-bar {
  color: #9ca3af;
}

/* --- Mobile Menu (already dark, minimal changes) --- */
[data-theme="dark"] .mobile-menu {
  background: #020617;
}

/* ============================================
   BREAKING NEWS BOTTOM BAR
   ============================================ */
.breaking-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  box-shadow: 0 -4px 20px rgba(185, 28, 28, 0.4);
  animation: breakingSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes breakingSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.breaking-bottom-inner {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 4px;
  white-space: nowrap;
  animation: breakingPulse 2s ease-in-out infinite;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.breaking-label i {
  color: #fbbf24;
  font-size: 0.9rem;
}

@keyframes breakingPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.breaking-text-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 30px;
}

.breaking-text-item {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.breaking-text-item.active {
  opacity: 1;
  transform: translateY(0);
}

.breaking-text-item.exit {
  opacity: 0;
  transform: translateY(-20px);
}

.breaking-close-btn {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.breaking-close-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  transform: rotate(90deg);
}

/* Dark mode */
[data-theme="dark"] .breaking-bottom-bar {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  box-shadow: 0 -4px 20px rgba(127, 29, 29, 0.5);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  .breaking-bottom-inner {
    padding: 16px 14px;
    gap: 10px;
  }

  .breaking-label {
    font-size: 0.9rem;
    padding: 6px 14px;
    align-self: flex-start;
    margin-top: 2px;
  }

  .breaking-text-wrapper {
    min-height: auto;
  }

  .breaking-text-item {
    font-size: 1.05rem;
    white-space: normal;
    line-height: 1.6;
    position: relative;
    display: none;
  }

  .breaking-text-item.active {
    display: block;
    opacity: 1;
    transform: none;
  }

  .breaking-close-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    align-self: flex-start;
    margin-top: 2px;
  }
}

/* Add bottom padding to footer so bar doesn't cover content */
body:has(.breaking-bottom-bar) .site-footer {
  padding-bottom: 60px;
}