:root {
  --brand-primary: #0ea5e9;
  --brand-secondary: #f59e0b;
  --bg-outer: #050914;
  --bg-inner: #0c1424;
  --card: #0f1b32;
  --card-contrast: #131f36;
  --text-primary: #e5e7eb;
  --text-muted: #b5bdcf;
  --heading: #f8fafc;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: "Cairo", sans-serif;
  background: radial-gradient(circle at 20% 20%, #0c1a31 0, #050914 35%, #03060f 80%);
  color: var(--text-primary);
  line-height: 1.7;
}

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

a:hover {
  color: var(--brand-secondary);
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 50px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  margin-bottom: 20px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), transparent);
  opacity: 0.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--brand-secondary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lead {
  font-size: 18px;
  color: var(--text-primary);
}

.glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.primary-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  color: #0b0f1b;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}

.primary-btn:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
  color: #0b0f1b;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.ghost-btn:hover {
  border-color: var(--brand-primary);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-custom {
  background: rgba(12, 18, 36, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 18px 0;
  box-shadow: var(--shadow);
  padding: 10px 16px;
}

.navbar-custom .navbar-brand img {
  height: 74px;
}

.navbar-custom .nav-link {
  color: var(--text-primary);
  font-weight: 700;
  transition: color var(--transition), opacity var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active,
.navbar-custom .nav-link.show {
  color: var(--brand-primary);
}

.navbar-toggler {
  border: 1px solid var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 40%),
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.14), transparent 35%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-row {
  align-items: center;
  row-gap: 24px;
}

.hero-card {
  padding: 24px;
  text-align: center;
  background: linear-gradient(140deg, rgba(15, 27, 50, 0.9), rgba(12, 20, 36, 0.9));
}

.hero-card img {
  width: 240px;
  margin: 0 auto 14px;
}

.hero-card p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.tab-news .nav {
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tab-news .nav.nav-pills .nav-link {
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--card-contrast);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.tab-news .nav.nav-pills .nav-link:hover,
.tab-news .nav.nav-pills .nav-link.active {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  color: #0b0f1b;
  transform: translateY(-1px);
}

.statistics {
  padding: 20px 0 10px;
}

.statistics .category-title {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--heading);
}

.statistics .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.statistics .stat-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.statistics .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  display: grid;
  place-items: center;
  color: #0b0f1b;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
}

.statistics .stat-label {
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}

.statistics .stat-count {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
}

.statistics .toggleItems {
  margin: 26px auto 0;
  display: block;
}

#news-slider {
  padding: 60px 0 30px;
}

.post-slide {
  background: var(--card);
  margin: 0 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.post-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.post-img img,
.post-img iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.over-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.post-img:hover .over-layer {
  opacity: 1;
}

.over-layer .text {
  color: #fff;
  font-weight: 700;
}

.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #0b0f1b;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-content {
  padding: 18px;
}

.post-title a {
  color: var(--heading);
  font-size: 20px;
  font-weight: 800;
}

.post-description {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-date {
  color: var(--text-muted);
  font-size: 14px;
  display: block;
  margin-bottom: 16px;
}

.read-more {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition);
  text-transform: none;
  font-weight: 800;
}

.read-more:hover {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  color: #0b0f1b;
  border-color: transparent;
}

.owl-carousel .owl-prev,
.owl-carousel .owl-next {
  width: 44px;
  height: 44px;
  display: grid !important;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary)) !important;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: var(--shadow);
}

.owl-carousel .owl-prev i,
.owl-carousel .owl-next i {
  color: #0b0f1b;
}

.owl-carousel .owl-prev {
  right: -55px;
}

.owl-carousel .owl-next {
  left: -55px;
}

.news-section .top-bar {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow);
}

.news-section .top-bar input,
.news-section .top-bar select {
  background: var(--card-contrast);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.news-section select {
  appearance: none;
  padding-left: 34px;
  background-image: url("../img/arrow-down-sign-to-navigate.png");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 14px;
}

.form-control:focus,
.form-select:focus,
.page-link:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.pagination .page-link {
  background: var(--card-contrast);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.pagination .page-link:hover,
.pagination .page-link.active {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-color: transparent;
  color: #0b0f1b;
}

.tab-news .tab-content {
  padding: 22px 18px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.tn-news {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tn-img {
  width: 140px;
  flex-shrink: 0;
  height: 100%;
}

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

.tn-title {
  padding: 10px 14px;
}

.tn-title a {
  color: var(--heading);
  font-weight: 700;
}

.top-news {
  padding: 30px 0 10px;
}

.top-news .tn-title a {
  display: block;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
}

.header .logo {
  width: max-content;
  margin: 0 auto;
}

.owl-header {
  padding: 40px 0 10px;
  text-align: center;
}

#header-slider .item {
  opacity: 0.45;
  transition: 0.4s ease all;
  transform: scale(0.9);
  position: relative;
}

#header-slider .active.center .item,
#header-slider .center .item {
  opacity: 1;
  transform: scale(1);
}

#header-slider .item img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.owl-header .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.owl-header .overlay .text {
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
}

.footer {
  background: rgba(12, 18, 36, 0.95);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 40px;
}

.footer .logo img {
  width: 200px;
}

.footer p,
.footer span,
.footer a {
  color: var(--text-muted);
}

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

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

.footer .links a:hover {
  color: var(--heading);
}

.footer ul.d-flex {
  display: flex;
  gap: 12px;
  padding: 0;
}

.footer ul.d-flex li {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.footer ul.d-flex li a i {
  color: #0b0f1b;
  font-size: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  transition: transform var(--transition);
}

.article-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.article-image {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-fluid {
  border-radius: var(--radius-md);
}

.video iframe {
  width: 100%;
  border-radius: var(--radius-md);
  min-height: 240px;
}

@media (max-width: 1200px) {
  .owl-carousel .owl-prev {
    right: -20px;
  }

  .owl-carousel .owl-next {
    left: -20px;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 50px 0 20px;
  }

  .hero-card {
    margin-top: 12px;
  }

  .navbar-custom {
    border-radius: var(--radius-md);
  }

  .hero-card img {
    width: 180px;
  }

  .hero-actions {
    gap: 10px;
  }

  .owl-carousel .owl-prev,
  .owl-carousel .owl-next {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 22px;
  }

  .post-img {
    height: 190px;
  }

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

  .statistics .stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}