:root {
  --hero-bg: url("./images/hero.png");
  --gold: #c9a84c;
  --crimson: #8b1a1a;
  --crimson-light: #c0392b;
  --deep-dark: #0d0a04;
  --dark-brown: #1a1208;
  --sand: #f9f8f6;
  --sand-light: #fcfaf6;
  --warm-white: #faf9f8;
  --text-dark: #1a1208;
  --text-muted: #6b5a2e;
  --bg-card: rgba(250, 250, 248, 0.92);
  --shadow-gold: 0 4px 30px rgba(79, 211, 108, 0.25);
  /* Light mode */
  --page-bg: #f4f3f0;
  --section-bg: #f8f7f5;
  --section-alt-bg: #f9f8f5;
  --card-bg: #556B2F;
  --card-border: #2f336b;
  --text-primary: #556B2F;
  --text-secondary: #f7f7f7;
  --text-muted-var: #0c0c0c;
  --nav-bg: rgba(255, 255, 255, 0.97);
  --nav-border: #556B2F;
  --footer-bg: #1a1208;
  --stats-bg: rgba(201, 168, 76, 0.08);
  --ticker-bg: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  --modal-bg: #556B2F;
  --shadow-soft: 0 2px 20px rgba(53, 156, 75, 0.15);
}

[data-theme="dark"] {
  --page-bg: #030307;
  --section-bg: #0d0a04;
  --section-alt-bg: #110c02;
  --card-bg: #556B2F;
  --card-border: #212619;
  --text-primary: #f8f7f4;
  --text-secondary: rgba(248, 247, 245, 0.8);
  --text-muted-var: rgba(255, 255, 254, 0.55);
  --nav-bg: rgba(255, 255, 255, 0.97);
  --nav-border: rgba(245, 212, 123, 0.4);
  --footer-bg: #0d0a04;
  --stats-bg: rgba(245, 212, 121, 0.07);
  --modal-bg: #556B2F;
  --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}



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

/* DESKTOP (992px and up) */
@media (min-width: 992px) {
  .desktop-nav    { display: flex; }
  .mobile-controls { display: none; }
}



/* Very small phones */
@media (max-width: 380px) {
  .nav-logo span { font-size: 0.8rem; }
  .cart-btn i    { font-size: 1.1rem; }
}


/* ---------- CART BUTTON ---------- */
/* Cart Button - Premium Design */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #c9a84c, #f4e4c1, #c9a84c) !important;
  background-size: 200% 200% !important;
  color: #1a1100 !important;
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.55), 0 4px 15px rgba(201, 168, 76, 0.3), inset 0 1px 0 rgba(255,255,255,0.4) !important;
}

.cart-btn-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.cart-btn-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: cartSheen 2.8s ease infinite;
  pointer-events: none;
}



.cart-btn .fa-shopping-cart {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cart-btn:hover {
  background: linear-gradient(135deg, #e8c05a, #fffbe6, #e8c05a) !important;
  background-size: 200% 200% !important;
  transform: scale(1.08) translateY(-2px) !important;
  box-shadow: 0 0 40px rgba(244,228,193,0.9), 0 8px 28px rgba(201,168,76,0.6), inset 0 1px 0 rgba(255,255,255,0.5) !important;
  color: #0d0900 !important;
}

.cart-btn:hover .fa-shopping-cart {
  transform: rotate(-12deg) scale(1.2);
}

.cart-btn.active {
  background: linear-gradient(135deg, #e8c05a, #fff8e7, #e8c05a) !important;
  background-size: 200% 200% !important;
  box-shadow: 0 0 28px rgba(244,228,193,0.85), 0 5px 18px rgba(201,168,76,0.45) !important;
}

/* Cart Count Badge */
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 10;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  border: 1.5px solid #1a1100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: badgePop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transition: transform 0.2s ease;
}

.cart-count:not(:empty)::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  border: 2px solid rgba(255, 80, 80, 0.5);
  animation: badgeRing 1.8s ease-out infinite;
}

@keyframes badgePop {
  0%   { transform: scale(0) rotate(-20deg); }
  60%  { transform: scale(1.3) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes badgeRing {
  0%   { opacity: 0.7; transform: scale(1); }
  80%  { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}

@keyframes pulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
/* ---------- LANGUAGE SELECT ---------- */
.lang-wrapper {
  position: relative;
  display: inline-block;
}

.lang-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--gold);
  pointer-events: none;
}

.lang-select {
  padding: 7px 34px 7px 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 25px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(4px);
}

.lang-select:hover,
.lang-select:focus {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.35);
}

[data-theme="dark"] .lang-select {
  background: rgba(0, 0, 0, 0.4);
}

/* ---------- THEME SWITCH ---------- */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 28px;
  flex-shrink: 0;
  /* REMOVED the broken margin-top:-58px */
  margin: 0;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: var(--gold);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: background-color 0.4s;
}

.slider i { font-size: 12px; }
.sun  { color: #ffd43b; }
.moon { color: #ffffff; }

.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

/* ---------- GAMES / NEWS PAGE OVERRIDE ---------- */


/* ===== PAGES ===== */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 60px;
}
.page.active {
  display: block;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  max-width: 100%;
  height: auto;
}

/* Light mode hero overlay — softer */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(248, 246, 244, 0.55) 0%,
    rgba(245, 230, 180, 0.3) 40%,
    rgba(252, 252, 251, 0.6) 100%
  );
  backdrop-filter: brightness(1.05);
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(13, 10, 4, 0.72) 0%,
    rgba(26, 14, 0, 0.55) 40%,
    rgba(13, 10, 4, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 820px;
  padding: 40px 30px;
  animation: fadeInUp 1s ease-out;
  background: rgba(245, 245, 245, 0.18);
  border: 1px solid rgba(134, 225, 97, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero-content {
  background: rgba(13, 10, 4, 0.45);
  border-color: rgba(155, 231, 101, 0.35);
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.3),
    rgba(201, 168, 76, 0.1)
  );
  border: 1px solid rgba(201, 168, 76, 0.6);
  color: var(--gold);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

[data-theme="dark"] .hero-badge {
  color: var(--gold);
}

.hero-title {
  font-family: "Amiri", serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.3;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: none;
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(
    135deg,
    #fdf5e6 20%,
    var(--gold) 55%,
    var(--gold) 90%
  );
  -webkit-background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--crimson);
  font-weight: 800;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.4s both;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
}

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

[data-theme="dark"] .hero-subtitle {
  color: var(--gold);
  text-shadow: none;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 30px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-dark);
  padding: 13px 32px;
  border: none;
  border-radius: 30px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.65);
}

.btn-secondary {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  padding: 13px 32px;
  border: 2px solid var(--gold);
  border-radius: 30px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="dark"] .btn-secondary {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.22);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-down svg {
  width: 22px;
  fill: var(--gold);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 auto 40px;
  max-width: 400px;
  padding: 0 30px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-icon {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 50px 40px;
  background: var(--section-bg);
  transition: background 0.3s;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: "Amiri", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  background:  var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

[data-theme="dark"] .section-title h2 {
  background: var(--gold);
  -webkit-background-clip: text;
}

.section-title p {
  color: var(--text-muted-var);
  font-size: 1rem;
}

/* ===== ABOUT CARDS ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px 26px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent);
  border-radius: 0 18px 0 90px;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.2);
}

.about-card .icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  display: block;
}

.about-card h3 {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
[data-theme="dark"] .about-card h3 {
  color: var(--gold);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.85;
}

/* ===== FACEBOOK SECTION ===== */
.fb-section {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), var(--card-bg));
  border: 1px solid rgba(24, 119, 242, 0.3);
  border-radius: 22px;
  padding: 45px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.fb-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1877f2, #0a5db5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 22px;
  box-shadow: 0 6px 25px rgba(24, 119, 242, 0.35);
}

.fb-section h3 {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
[data-theme="dark"] .fb-section h3 {
  color: var(--gold);
}

.fb-section p {
  color: var(--text-muted-var);
  margin-bottom: 28px;
  line-height: 1.75;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1877f2, #0a5db5);
  color: white;
  padding: 14px 34px;
  border-radius: 32px;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.4);
}

.fb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(24, 119, 242, 0.55);
}

/* ===== NEWS TICKER ===== */
.news-ticker {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  padding: 8px 0;
  overflow: hidden;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}
.ticker-dot {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--stats-bg);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 32px 20px;
  text-align: center;
  border-left: 1px solid rgba(201, 168, 76, 0.15);
  transition: background 0.25s;
}

.stat-item:hover {
  background: rgba(201, 168, 76, 0.08);
}
.stat-item:last-child {
  border-left: none;
}

.stat-num {
  font-size: 2.3rem;
  font-weight: 900;
  background:  var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

[data-theme="dark"] .stat-num {
  background: var(--gold);
  -webkit-background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted-var);
  margin-top: 5px;
}

/* ===== GAMES PAGE ===== */
#games-page {
  background: var(--page-bg);
}

/* .games-hero {
  text-align: center;
  padding: 65px 30px 45px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

.games-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    rgba(201, 168, 76, 0.1) 0%,
    transparent 70%
  );
} */

.games-hero {
  background: linear-gradient(135deg, var(--crimson, #8b1a1a) 0%, #5a0e0e 55%, #1a0800 100%);
  padding: 70px 24px 55px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.games-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.07'%3E%3Cpolygon points='30 0 60 30 30 60 0 30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.games-hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
    position: relative;
    z-index: 2;
    font-family: "Amiri", serif;
    background: linear-gradient(135deg, var(--white), var(--gold), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--gold);
}

[data-theme="dark"] .games-hero h1 {
  background: var(--gold);
  -webkit-background-clip: text;
}

.games-hero p {
  color: white;
  font-size: 1.05rem;
  position: relative;
}

/* ===== GAMES GRID ===== */
.games-section {
  padding: 55px 30px 90px;
  background: var(--section-bg);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.22);
}

.game-card-header {
  height: 185px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card-header .bg-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-header .main-icon {
  font-size: 5rem;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}
.game-card:hover .main-icon {
  transform: scale(1.12);
}

.game-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 3;
}
.badge-physical {
  background: linear-gradient(135deg, var(--crimson), #a52a2a);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-digital {
  background: linear-gradient(135deg, #1a6b3c, #145a32);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-card-body {
  padding: 22px 22px 16px;
}

.game-number {
  font-size: 0.75rem;
  color: white;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.game-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
}

.game-desc {
  font-size: 0.88rem;
  color: white;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 16px;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  background: rgba(201, 168, 76, 0.04);
}

.game-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}
[data-theme="dark"] .game-price {
  color: #ffffff;
}
.game-price span {
  font-size: 0.75rem;
  color:  #fcfaf6;
  font-weight: 400;
}

.btn-game {
  background: var(--gold);
  color: var(--deep-dark);
  border: none;
  padding: 9px 22px;
  border-radius: 22px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-game:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.5);
}

/* Game card themes */
.theme-1 {
  background: linear-gradient(135deg, #1a0e00, #3d1f00);
}
.theme-2 {
  background: linear-gradient(135deg, #0a1628, #1a3a6b);
}
.theme-3 {
  background: linear-gradient(135deg, #0d1a0d, #1a3a1a);
}
.theme-4 {
  background: linear-gradient(135deg, #1a0808, #3d1010);
}
.theme-5 {
  background: linear-gradient(135deg, #1a1408, #3d3010);
}
.theme-6 {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3d);
}
.theme-7 {
  background: linear-gradient(135deg, #1a0e14, #3d1a2a);
}
.theme-8 {
  background: linear-gradient(135deg, #0d1a14, #1a3a28);
}
.theme-9 {
  background: linear-gradient(135deg, #160a00, #3d2000);
}
.theme-10 {
  background: linear-gradient(135deg, #0a1a1a, #0d3d3d);
}

.geo-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(201, 168, 76, 0.3) 10px,
    rgba(201, 168, 76, 0.3) 11px
  );
}

/* ===== FOOTER ===== */
footer {
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid rgba(201, 168, 76, 0.3);
  padding: 45px;
  text-align: center;
  color: #1a1208;
  backdrop-filter: blur(16px);
  box-shadow: 0 -2px 30px rgba(201, 168, 76, 0.1);
}

.footer-logo {
  font-family: "Amiri", serif;
  font-size: 1.9rem;
  background: linear-gradient(135deg, var(--gold), #a07830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

footer p {
  color: #555;
  font-size: 0.85rem;
}

.footer-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 15px auto;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--modal-bg);
  border: 1px solid var(--gold);
  border-radius: 22px;
  padding: 24px 20px;
  max-width: 450px;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  animation: modalIn 0.3s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide scrollbar for webkit browsers */
.modal::-webkit-scrollbar {
  display: none;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(201, 168, 76, 0.3);
}

.modal h3 {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
[data-theme="dark"] .modal h3 {
  color: var(--gold);
}
.modal p {
  color: white;
  line-height: 1.5;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.modal .modal-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #cf9545;
  margin: 10px 0;
}
[data-theme="dark"] .modal .modal-price {
  color: #cf9545;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section {
    padding: 60px 22px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    min-width: 120px;
  }
  .hero-content {
    padding: 30px 20px;
  }
  footer {
    padding: 35px 22px;
  }
}

@media (max-width: 480px) {
  
  .hero-content{
    width:90%;
  }
}

/* ===== PROMO IMAGES SECTION ===== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.promo-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--gold);
  box-shadow: 0 16px 50px rgba(201, 168, 76, 0.25);
}

.promo-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.promo-card:hover img {
  transform: scale(1.04);
}

.promo-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(
    to top,
    rgba(13, 10, 4, 0.88) 0%,
    transparent 100%
  );
}

.promo-card-label {
  display: inline-block;
  background: var(--gold);
  color: var(--deep-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.promo-card-title {
  font-family: "Amiri", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.input-field {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #444;
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: gold;
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.confirm-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  box-shadow: 0 4px 20px gold;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.confirm-btn:hover {
  transform: scale(1.03);
}

.success-message {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #1e3d2f;
  color: #2ecc71;
  border: 1px solid #2ecc71;
  animation: fadeIn .3s ease-in-out;
}

.error-message {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #3d1e1e;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

@keyframes fadeIn {
  from {opacity:0; transform:translateY(8px);}
  to {opacity:1; transform:translateY(0);}
}
.icon {
  font-size: 40px;
  color: rgb(255, 255, 254); /* Olive Green */
  margin-bottom: 15px;
}

.section-main-icon {
  color: rgb(255, 255, 253);
  margin-left: 8px;
}

/* optional hover effect */
.about-card:hover .icon {
  color: rgb(251, 251, 249);
  transform: scale(1.1);
  transition: 0.3s ease;
}
/* ===== SPONSORS SECTION ===== */
.sponsors-section {
  text-align: center;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
}

.sponsor-item {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.sponsor-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.sponsor-item img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

@media (max-width: 600px) {
  .sponsors-grid {
    gap: 20px;
  }
  .sponsor-item img {
    width: 100px;
    height: 100px;
  }
}

/* ===== GAME CARD IMAGE ===== */
.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
}
.game-card-header {
  position: relative;
  overflow: hidden;
}

/* ===== SOCIAL LINKS GRID ===== */
.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.social-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.fb-color {
  background: linear-gradient(135deg, #1877f2, #0a5dc2) !important;
}

.ig-color {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
}

.tt-color {
  background: linear-gradient(135deg, #010101, #69C9D0) !important;
}

/* ===== FOOTER SOCIAL ICONS ===== */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

.social-icon.fb  { background: #1877f2; }
.social-icon.ig  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.tt  { background: #010101; }

/* ===== SOCIAL SECTION ICONS ===== */
.social-section-icons {
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}

.social-section-icons .social-icon {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

/* ===== PREMIUM CART PAGE AESTHETICS ===== */
.cart-hero {
    background: linear-gradient(135deg, #2a2a2a, var(--black));
    padding: 140px 20px 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.empty-cart-state {
  display: flex;
  justify-content: flex-start;
  padding-top: 40px;
}

.policy-box {
  background: #ffffff;
  padding: 26px;
  border-radius: 14px;
  max-width: 1300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gold);
}
[data-theme="dark"] .policy-box {
  background: rgba(26,18,8,0.92);
  border-color: rgba(201,168,76,0.4);
}

.policy-header {
  font-size: 23px;
  margin-bottom: 16px;
  color: var(--gold);
  text-align: right;
  direction: rtl;
  font-weight: 700;
}

.policy-text {
  text-align: right;
  direction: rtl;
  line-height: 1.9;
  font-size: 16px;
  color: #444;
  margin: 0;
}
[data-theme="dark"] .policy-text {
  color:white;
}

.cart-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.07'%3E%3Cpolygon points='30 0 60 30 30 60 0 30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cart-hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    position: relative;
    z-index: 2;
    font-family: "Amiri", serif;
    background: linear-gradient(135deg, var(--white), var(--gold), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--gold);
     
}

.cart-section {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

.cart-item {
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.cart-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--gold);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.25);
}

.cart-item-img {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cart-item:hover .cart-item-img img {
    transform: scale(1.1);
}

.cart-item-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: "Cairo", sans-serif;
    color: var(--text-color);
}

.cart-item-info p {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.3rem;
}

.remove-btn {
    background: linear-gradient(135deg, var(--gold), #b38b1d);
    color: white;
    border: 1.5px solid rgba(255, 68, 68, 0.2);
    padding: 12px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-family: inherit;
}

.remove-btn:hover {
    background: #ff4444;
    color: white;
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.cart-summary {
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--gold);
    border-radius: 32px;
    padding: 40px;
    position: sticky;
    top: 100px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.cart-summary h3 {
    margin-bottom: 35px;
    font-size: 2rem;
    color: var(--gold);
    font-family: "Amiri", serif;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 18px;
    letter-spacing: 1px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.summary-total {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed var(--gold);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

#checkout-phone {
    width: 100%;
    padding: 18px;
    margin: 30px 0;
    border: 2px solid var(--gold);
    border-radius: 18px;
    background: var(--white);
    color: var(--black);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

#checkout-phone:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* #checkout-btn {
    width: 100%;
    padding: 20px;
    border-radius: 18px;
    font-size: 1.3rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--gold), #b38b1d);
    color: var(--deep-dark);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} */
.checkout-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold), #b38b1d);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(139,26,26,0.3);
  letter-spacing: 0.5px;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,26,26,0.45);
  background: linear-gradient(135deg, var(--gold), #b38b1d);
}

.cart-empty {
    text-align: center;
    padding: 140px 20px;
}

.cart-empty i {
    font-size: 6rem;
    color: var(--gold);
    margin-bottom: 35px;
    opacity: 0.4;
    display: block;
}

/* ===== FULL SITE RESPONSIVENESS ===== */
@media (max-width: 1100px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
        max-width: 500px;
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    nav { height: 80px; padding: 0 20px; z-index: 10001; }
    
    .menu-toggle {
        display: block;
        order: 3;
    }

    .promo-grid, .about-grid, .games-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .cart-hero h1 { font-size: 2.5rem; }
    .cart-summary { padding: 25px; }
    .cart-item { padding: 20px; }
}

/* =========================================================
   NEWS PAGE STYLES
   ========================================================= */

/* Hero */
.news-page-hero {
  background: linear-gradient(135deg, var(--crimson) 0%, #5a0e0e 55%, #1a0800 100%);
  padding: 70px 24px 55px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.07'%3E%3Cpolygon points='30 0 60 30 30 60 0 30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.news-hero-content { position: relative; }
.news-page-hero h1 {
  font-family: "Amiri", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 10px;
}
.news-page-hero h1 span { color: var(--gold); }
.news-hero-line { width: 70px; height: 3px; background: var(--gold); margin: 14px auto; border-radius: 2px; }
.news-page-hero p { color: rgba(255,255,255,.72); font-size: 1rem; }

/* Filter bar */
.news-filter-bar {
  background: var(--section-bg);
  border-bottom: 1px solid rgba(201,168,76,.18);
  padding: 18px 24px;
  position: sticky; top: 70px; z-index: 50;
  backdrop-filter: blur(12px);
}
.news-filter-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.news-section-title {
  font-size: 1.15rem; font-weight: 700; color: var(--crimson);
}
[data-theme="dark"] .news-section-title { color: var(--gold); }

.news-search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 2px solid rgba(201,168,76,.25);
  border-radius: 28px; padding: 7px 16px;
  transition: border-color .2s;
}
.news-search-box:focus-within { border-color: var(--gold); }
.news-search-box i { color: var(--gold); font-size: .85rem; }
.news-search-box input {
  border: none; outline: none;
  font-family: "Cairo", sans-serif; font-size: .88rem;
  background: transparent; color: var(--text-primary);
  width: 200px;
}
.news-search-box input::placeholder { color: var(--text-muted-var); opacity: .6; }

/* Container */
.news-page-container {
  max-width: 1100px; margin: 0 auto; padding: 40px 20px 70px;
}

/* Grid */
.news-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Card */
.news-card-item {
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  animation: newsCardFadeUp .45s ease both;
}
.news-card-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 40px rgba(139,26,26,.16);
  border-color: rgba(201,168,76,.45);
}
@keyframes newsCardFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card media */
.news-card-media {
  position: relative; height: 200px;
  background: #f0ede6; overflow: hidden;
}
.news-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.news-card-item:hover .news-card-media img { transform: scale(1.06); }
.news-card-no-img {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(139,26,26,.08));
  font-size: 3.5rem; color: var(--gold);
}
.news-media-count {
  position: absolute; bottom: 9px; left: 9px;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: .73rem; padding: 3px 10px; border-radius: 20px;
}
.news-video-badge {
  position: absolute; top: 9px; right: 9px;
  background: var(--crimson); color: #fff;
  font-size: .73rem; padding: 3px 10px; border-radius: 20px;
}

/* Card body */
.news-card-body { padding: 18px 20px 20px; }
.news-card-date {
  font-size: .76rem; color: white;
  font-weight: 400;
  margin-bottom: 7px; display: flex; align-items: center; gap: 5px;
}
.news-card-date i { color: white; }
.news-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--gold); margin-bottom: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-desc {
  font-size: .85rem; color: white;
  font-weight: 400;
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid rgba(201,168,76,.14);
}
.news-read-more {
  background: var(--crimson); color: #fff;
  border: none; border-radius: 20px; padding: 6px 16px;
  font-family: "Cairo", sans-serif; font-size: .8rem;
  cursor: pointer; transition: background .2s;
}
.news-read-more:hover { background: #6e1212; }
.news-card-meta-count { font-size: .74rem; color: #bbb; }

/* Loading / empty */
.news-loading { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.news-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid rgba(201,168,76,.2); border-top-color: var(--gold);
  animation: newsSpin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes newsSpin { to { transform: rotate(360deg); } }
.news-empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.news-empty-state i { font-size: 3.5rem; color: #ccc; display: block; margin-bottom: 12px; }

/* ── NEWS DETAIL MODAL ── */
.news-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  z-index: 6000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.news-modal-overlay.open { opacity: 1; pointer-events: all; }
.news-modal-box {
  background: var(--modal-bg, #fff);
  border-radius: 20px; max-width: 800px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(30px); transition: transform .3s;
  border: 1px solid rgba(201,168,76,.25);
  scrollbar-width: none; /* Firefox */
}
.news-modal-overlay.open .news-modal-box { transform: translateY(0); }

.news-modal-close {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.news-modal-close:hover { background: var(--crimson); }

/* gallery */
.news-modal-gallery {
  background: #111; min-height: 50px;
  border-radius: 20px 20px 0 0; overflow: hidden;
}
.news-modal-gallery img,
.news-modal-gallery video {
  width: 100%; max-height: 400px; object-fit: contain;
  display: block; background: #111;
}
.news-modal-thumbs {
  display: flex; gap: 8px; padding: 10px;
  background: #0d0a04; overflow-x: auto;
}
.news-modal-thumbs .nm-thumb {
  width: 72px; height: 52px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color .2s;
}
.news-modal-thumbs .nm-thumb.active { border-color: var(--gold); }
.news-modal-thumbs .nm-thumb img,
.news-modal-thumbs .nm-thumb video { width: 100%; height: 100%; object-fit: cover; }

.news-modal-body { padding: 26px 28px 30px; }
.news-modal-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.news-modal-title {
  font-family: "Amiri", serif;
  font-size: 1.6rem; color: var(--crimson);
  line-height: 1.45; margin-bottom: 16px;
}
[data-theme="dark"] .news-modal-title { color: var(--gold); }
.news-modal-desc {
  font-size: .95rem; line-height: 1.9;
  color: var(--text-primary); white-space: pre-wrap;
}

/* Dark-mode news card */
[data-theme="dark"] .news-card-item { background: var(--card-bg, #1a1208); }
[data-theme="dark"] .news-card-title { color: #f0ece3; }
[data-theme="dark"] .news-card-desc  { color: rgba(240,236,227,.65); }

/* Responsive */
@media (max-width: 640px) {
  .news-grid-layout { grid-template-columns: 1fr; }
  .news-filter-inner { flex-direction: column; align-items: flex-start; }
  .news-search-box input { width: 160px; }
}

/* ── Footer: always white like the navbar ── */
[data-theme="dark"] footer {
  background: rgba(5, 5, 5, 0.97) !important;
  border-top: 2px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="dark"] footer p {
  color: #e6e3e3 !important;
}

