:root{
  --page-bg:#e5e7eb;
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --text:#0f172a;
  --muted:#6b7280;
  --border:rgba(15,23,42,.10);
  --primary:#dc3545;
  --primary-2:#b91c1c;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --btn-soft: rgba(220,53,69,.10);
  --btn-soft-border: rgba(220,53,69,.35);
}

html[data-theme="dark"]{
  --page-bg:#0a1220;
  --surface:#0f172a;
  --surface-2:#111c33;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(229,231,235,.12);
  --primary:#ef4444;
  --primary-2:#dc2626;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --btn-soft: rgba(239,68,68,.14);
  --btn-soft-border: rgba(239,68,68,.40);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--page-bg);
  color:var(--text);
}

.page-bg{
  background:transparent;
}

.app-header{
  background:#ffffff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:30;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-weight:800;
  font-size:22px;
}

.brand-mark{
  width:170px;
  height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:0;
  background:transparent;
  border:none;
  overflow:hidden;
}
.brand-logo-img{
  width:170px;
  height:auto;
  object-fit:contain;
  display:block;
}

.header-meta{
  border-bottom:1px solid var(--border);
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
.meta-link{
  color:var(--muted);
  text-decoration:none;
}
.meta-link:hover{
  color:var(--primary);
}
.header-main{
  border-bottom:1px solid var(--border);
}
.header-actions{
  white-space:nowrap;
}
.header-search-wrap{
  flex:1;
  max-width:620px;
}
.header-chip{
  height:38px;
  border-radius:10px;
  border:1px solid var(--btn-soft-border);
  background:var(--btn-soft);
  color:var(--primary-2);
  font-weight:900;
  white-space:nowrap;
}
.header-chip:hover{
  background:rgba(220,53,69,.2);
  color:var(--primary-2);
}
html[data-theme="dark"] .header-chip:hover{
  background:rgba(239,68,68,.22);
}

.header-nav{
  white-space:nowrap;
}
.header-top{
  flex-wrap:nowrap;
}
.header-right{
  white-space:nowrap;
  gap:2px;
}
.header-lang{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:var(--text);
  font-size:14px;
  align-self:flex-end;
  text-align:right;
}

.btn-lang{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
  padding:0 14px;
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
}
.btn-lang:hover{
  border-color:rgba(0,0,0,.25);
}
html[data-theme="dark"] .btn-lang:hover{
  border-color:rgba(255,255,255,.22);
}
.header-nav-row{
  white-space:nowrap;
  padding-top:8px;
}

.header-link{
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
  font-size:14px;
  padding:6px 6px;
  border-radius:10px;
}
.header-link:hover{
  color:var(--text);
  background:rgba(0,0,0,.05);
}
html[data-theme="dark"] .header-link:hover{
  background:rgba(255,255,255,.06);
}

.btn-theme-toggle{
  width:42px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
}
.btn-theme-toggle:hover{
  border-color:rgba(0,0,0,.25);
}
html[data-theme="dark"] .btn-theme-toggle:hover{
  border-color:rgba(255,255,255,.22);
}

.header-search{
  min-width:260px;
  max-width:480px;
  flex:1;
}
.header-search .btn-search{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  width:46px;
  border-radius:10px;
}
.header-search .btn-search:hover{
  background:var(--primary-2);
  border-color:var(--primary-2);
}
.header-search input::placeholder{
  color:var(--muted) !important;
}
.header-search .input-group-text{
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--muted);
}
.header-search .form-control{
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--text);
  box-shadow:none;
}
.header-search .form-control::placeholder{
  color:var(--muted);
}

@media (max-width: 991.98px){
  .header-top,
  .header-main{
    flex-wrap:wrap;
  }
  .header-search-wrap{
    max-width:none;
    width:100%;
  }
  .header-actions{
    width:100%;
    justify-content:flex-end;
  }
  .header-chip{
    display:none;
  }
}

.ad-strip{
  background:#5b5b5b;
  color:#fff;
  border-radius:6px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:10px 0;
}
.ad-strip-text{
  font-weight:700;
  font-size:12px;
  opacity:.95;
}

.content-grid{
  padding-bottom:20px;
}

.section-title{
  font-weight:900;
  font-size:20px;
  color:var(--text);
  gap:10px;
  margin:18px 0 12px;
}
.section-title i{
  color:var(--primary);
}
.title-link{
  color:inherit;
  text-decoration:none;
}
.title-link:hover{
  color:var(--primary);
  text-decoration:underline;
}
.section-link{
  font-weight:inherit;
}

/* Featured cards */
.featuredSwiper{
  padding-bottom:8px;
  width:100%;
}
.hero-card{
  position:relative;
  width:100%;
  border-radius:14px;
  overflow:hidden;
  height:260px;
  background:var(--surface-2);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
}
.hero-overlay{
  position:absolute;
  inset:0;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  background:linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.75) 88%);
  color:#fff;
}
.hero-badge{
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background:rgba(239,68,68,.92);
}
.hero-title{
  font-size:18px;
  font-weight:900;
  line-height:1.25;
  margin:0;
}
.hero-desc{
  margin:0;
  font-size:13px;
  line-height:1.6;
  opacity:.95;
}
.hero-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:12.5px;
  font-weight:700;
  opacity:.95;
}
.hero-meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.country-flag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

/* Issues under slider */
.issues-section{
  margin-bottom:8px;
}
.issues-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:14px;
}
.issue-card{
  position:relative;
  display:block;
  border-radius:12px;
  overflow:hidden;
  min-height:140px;
  border:1px solid var(--border);
  text-decoration:none;
  background:var(--surface-2);
}
.issue-img{
  width:100%;
  height:100%;
  min-height:140px;
  object-fit:cover;
  display:block;
}
.issue-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.72) 100%);
}
.issue-label{
  position:absolute;
  right:10px;
  left:10px;
  bottom:10px;
  z-index:1;
  color:#fff;
  font-size:15px;
  font-weight:900;
  line-height:1.3;
  background:var(--primary);
  padding:6px 10px;
  border-radius:8px;
  width:max-content;
  max-width:calc(100% - 20px);
}

/* News list */
.news-list{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:6px 14px 10px;
}
.news-item{
  display:flex;
  flex-direction:row-reverse;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px dashed var(--border);
}
.news-thumb{
  width:205px;
  height:135px;
  border-radius:14px;
  object-fit:cover;
  background:rgba(0,0,0,.06);
}
.news-body{
  padding-top:4px;
}
.news-title{
  font-size:17px;
  font-weight:900;
  margin:0 0 6px;
  line-height:1.4;
}
.news-summary{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.6;
  display:-webkit-box;
  line-clamp:2;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.news-meta{
  color:var(--muted);
  display:flex;
  gap:14px;
  font-size:13px;
  font-weight:700;
  flex-wrap:wrap;
}
.news-cat{
  color:var(--primary);
}
.news-meta .country-flag{
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--text);
}

.more-wrap{
  display:flex;
  justify-content:center;
  margin:14px 0 6px;
}
.btn-more{
  background:var(--primary);
  color:#fff;
  font-weight:900;
  padding:10px 28px;
  border-radius:10px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.05);
}
.btn-more:hover{
  background:var(--primary-2);
  color:#fff;
}

.btn-primary-soft{
  background:var(--btn-soft);
  border:1px solid var(--btn-soft-border);
  color:var(--primary-2);
  font-weight:900;
}
.btn-primary-soft:hover{
  background:rgba(220,53,69,.20);
  color:var(--primary-2);
}
html[data-theme="dark"] .btn-primary-soft:hover{
  background:rgba(239,68,68,.22);
}

/* Sidebar */
.sidebar{
  background:transparent;
}
.sidebar-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:14px 0;
  border-bottom:1px dashed var(--border);
}
.sidebar-thumb{
  width:190px;
  height:125px;
  border-radius:14px;
  object-fit:cover;
  background:rgba(0,0,0,.06);
}
.sidebar-body{
  padding-top:3px;
  flex:1;
}
.sidebar-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.sidebar-cat{
  color:var(--primary);
}
.sidebar-meta .country-flag{
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--text);
}
.sidebar-title{
  margin:8px 0 6px;
  font-size:15.5px;
  line-height:1.4;
  font-weight:900;
}
.sidebar-time{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.sidebar-cta{
  margin-top:16px;
}

/* Coverage News widget */
.coverage-list{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:8px 12px;
}
.coverage-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom:1px dashed var(--border);
}
.coverage-item:last-child{
  border-bottom:none;
}
.coverage-thumb{
  width:115px;
  height:78px;
  border-radius:10px;
  object-fit:cover;
  background:rgba(0,0,0,.06);
}
.coverage-thumb-sm{
  width:88px;
  height:62px;
  border-radius:9px;
}
.coverage-body{
  flex:1;
}
.coverage-title{
  margin:0 0 6px;
  font-size:14px;
  line-height:1.4;
  font-weight:900;
  color:var(--text);
}
.coverage-time{
  color:var(--muted);
  font-size:12.5px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:6px;
}
.coverage-time .country-flag{
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--text);
  font-size:11.5px;
  padding:2px 7px;
}

/* Videos + galleries row */
.media-row{
  background:transparent;
}
.media-widget,
.gallery-widget{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
}
.media-main,
.gallery-main{
  display:block;
  position:relative;
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
}
.media-main-img,
.gallery-main-img{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  display:block;
}
.media-main::after,
.gallery-main::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.72) 100%);
}
.media-main-title,
.gallery-main-title{
  position:absolute;
  right:12px;
  left:12px;
  bottom:10px;
  z-index:1;
  color:#fff;
  font-size:15px;
  font-weight:900;
  line-height:1.35;
}
.play-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:1;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(220,53,69,.92);
  color:#fff;
}
.media-list{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
.media-item{
  text-decoration:none;
  border:1px solid transparent;
  border-radius:10px;
  padding:4px;
  transition:border-color .2s ease, background-color .2s ease;
}
.media-thumb{
  width:100%;
  aspect-ratio:16 / 10;
  object-fit:cover;
  border-radius:10px;
  display:block;
}
.media-item-title{
  display:block;
  margin-top:6px;
  color:var(--text);
  font-weight:800;
  font-size:13px;
  line-height:1.35;
}
.media-item:hover,
.media-item.is-active{
  border-color:var(--primary);
  background:var(--surface-2);
}
.gallery-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
.gallery-item{
  display:block;
  border-radius:10px;
  overflow:hidden;
  border:2px solid transparent;
  transition:border-color .2s ease;
}
.gallery-item img{
  width:100%;
  aspect-ratio:16 / 10;
  object-fit:cover;
  display:block;
}
.gallery-item-title{
  display:block;
  margin-top:6px;
  color:var(--text);
  font-weight:800;
  font-size:12px;
  line-height:1.35;
}
.gallery-item:hover,
.gallery-item.is-active{
  border-color:var(--primary);
}

.gallery-pagination{
  position:absolute;
  right:0 !important;
  left:0 !important;
  bottom:8px !important;
  z-index:2;
}
.gallery-pagination .swiper-pagination-bullet{
  background:#fff;
  opacity:.65;
}
.gallery-pagination .swiper-pagination-bullet-active{
  background:var(--primary);
  opacity:1;
}

/* Writers widget */
.writers-widget{
  background:transparent;
}
.writers-list{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:8px 14px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.writer-item{
  display:block;
  padding:8px;
  border:1px dashed var(--border);
  border-radius:12px;
}
.writer-thumb{
  width:100%;
  aspect-ratio:3 / 2;
  height:auto;
  border-radius:10px;
  object-fit:cover;
  background:rgba(0,0,0,.06);
  margin-bottom:10px;
}
.writer-body{
  flex:1;
}
.writer-title{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.4;
  font-weight:900;
  color:var(--text);
}
.writer-meta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}
.writer-author{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.writer-avatar{
  width:24px;
  height:24px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid var(--border);
}
.article-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid var(--btn-soft-border);
  background:var(--btn-soft);
  color:var(--primary-2);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

/* Latest by category widgets */
.latest-categories{
  background:transparent;
}
.latest-categories-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.latest-category-widget{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
}
.latest-widget-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.latest-see-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid var(--btn-soft-border);
  background:var(--btn-soft);
  color:var(--primary-2);
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.latest-see-all:hover{
  background:rgba(220,53,69,.2);
  color:var(--primary-2);
}
html[data-theme="dark"] .latest-see-all:hover{
  background:rgba(239,68,68,.22);
}
.latest-widget-title{
  margin:0 0 10px;
  font-size:15px;
  font-weight:900;
  color:var(--text);
  padding-bottom:8px;
  border-bottom:1px solid var(--border);
  width:100%;
}
.latest-widget-item{
  display:block;
  text-decoration:none;
  color:var(--text);
  padding:8px;
  border:1px dashed var(--border);
  border-radius:10px;
  background:var(--surface-2);
  min-height:100%;
}
.latest-widget-item:hover{
  color:var(--primary);
}
.latest-item-thumb{
  width:100%;
  aspect-ratio:16 / 10;
  object-fit:cover;
  border-radius:8px;
  display:block;
  margin-bottom:8px;
}
.latest-item-title{
  display:block;
  font-size:13px;
  line-height:1.45;
  font-weight:800;
  color:var(--text);
  margin-bottom:6px;
}
.latest-item-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:11.5px;
  font-weight:700;
}
.latest-item-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.latestCategorySwiper{
  padding-bottom:24px;
}
.latestCategorySwiper .swiper-pagination{
  bottom:0 !important;
}
.latestCategorySwiper .swiper-pagination-bullet{
  background:var(--muted);
  opacity:.5;
}
.latestCategorySwiper .swiper-pagination-bullet-active{
  background:var(--primary);
  opacity:1;
}

/* Footer */
.app-footer{
  margin-top:14px;
  background:var(--surface);
  border-top:1px solid var(--border);
}
.footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.brand-footer{
  font-size:26px;
  font-weight:900;
}
.footer-muted{
  margin-top:4px;
  color:var(--muted);
  font-weight:700;
}
.footer-social a{
  display:inline-flex;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  margin-left:10px;
}
.footer-social a:hover{
  border-color:rgba(0,0,0,.25);
}
html[data-theme="dark"] .footer-social a:hover{
  border-color:rgba(255,255,255,.22);
}
.footer-divider{
  border-top:1px solid var(--border);
  opacity:1;
}
.footer-heading{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.pill-red{
  background:var(--primary);
  color:#fff;
  font-weight:900;
  padding:8px 16px;
  border-radius:999px;
}
.footer-links{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.footer-links a{
  color:var(--muted);
  font-weight:800;
  text-decoration:none;
}
.footer-links a:hover{
  color:var(--text);
}
.footer-bottom{
  margin-top:18px;
  color:var(--muted);
  font-weight:800;
}

/* Swiper buttons */
.swiper-button-next,
.swiper-button-prev{
  color:var(--text);
  top:50%;
  bottom:auto;
  transform: translateY(-50%);
}
.swiper-button-prev{
  left:0;
  right:auto;
}
.swiper-button-next{
  right:0;
  left:auto;
}

@media (max-width: 991.98px){
  .hero-card{ height:240px; }
  .featuredSwiper{ height:240px; }
  .header-search{ min-width:220px; }
  .issues-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .news-thumb{
    width:165px;
    height:110px;
  }
  .sidebar-thumb{
    width:150px;
    height:96px;
  }
  .writers-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .media-list,
  .gallery-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px){
  .writers-list{
    grid-template-columns:1fr;
  }
}

@media (max-width: 575.98px){
  .issues-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

