:root {
  --primary-color: #5d7dff;
  --dark-bg: #0b0c1e;
  --card-bg: #1c1d32;
  --header-bg: #1c1d32;
  --text-color: #e3e7ff;
  --text-secondary: #c0c9ff;
  --border-color: #2e2f66;
}
/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- هذا هو السطر الوحيد الذي تم تعديله --- */
html, body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--dark-bg) !important; /* تم إضافة !important هنا */
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4, .logo {
  font-family: 'Bungee', sans-serif;
  color: var(--text-color);
  line-height: 1.3;
  letter-spacing: 1px;
  overflow-wrap: break-word;
}
p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
  color: #a3b3ff;
  text-shadow: 0 0 8px var(--primary-color);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
/* ========== Header & Navigation ========== */
.site-header {
  background-color: rgba(28, 29, 50, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.9rem; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  padding: 12px 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-links a:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  text-shadow: none;
}
.nav-links a.active {
  color: var(--primary-color);
  background-color: transparent;
}
.hamburger { display: none; cursor: pointer; }
.hamburger div { width: 25px; height: 3px; background-color: var(--text-color); margin: 5px; transition: all 0.3s ease; }
/* ========== Page & Section General Styles ========== */
.section-heading-v2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 35px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border-color);
}
.trending-section {
  background-color: var(--header-bg);
  padding: 70px 0;
}
.content-section {
  padding: 70px 0;
}
/* ========== Homepage Specific Sections ========== */
.hero-v2-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  height: 500px;
  padding: 70px 0;
}
.hero-v2-main {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.hero-v2-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-v2-main:hover img { transform: scale(1.05); }
.hero-v2-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(11, 12, 30, 0.95), transparent);
}
.hero-v2-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  padding: 6px 18px;
  border-radius: 5px;
  font-weight: 800;
  margin-bottom: 15px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}
.hero-v2-overlay h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 2px 2px 12px #000;
  margin: 0;
}
.hero-v2-sub {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-v2-sub-item {
  display: block;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.hero-v2-sub-item:hover { transform: translateY(-5px); }
.hero-v2-sub-item h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}
.hero-v2-sub-item:hover h3 { color: var(--primary-color); }
.hero-v2-sub-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}
/* Trending Scroll */
.trending-scroll {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding-bottom: 25px;
}
.trending-scroll::-webkit-scrollbar { height: 8px; }
.trending-scroll::-webkit-scrollbar-track { background: var(--dark-bg); }
.trending-scroll::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
.trending-item {
  flex: 0 0 200px;
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
}
.trending-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.trending-item:hover img { transform: scale(1.05); }
.trending-item span {
  font-family: 'Bungee', sans-serif;
  font-size: 1.1rem;
}

/* ========== Weekly Poll Section (NEW) ========== */
/* This section replaces the old "Video Section" */
.weekly-poll {
  padding: 70px 0;
  text-align: center;
  background-color: var(--header-bg); /* Using your existing background color for consistency */
}
.weekly-poll .poll-question {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.poll-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.poll-option {
  background-color: var(--card-bg); /* Using your card background color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color); /* Using your border color */
  transition: all 0.3s ease;
  cursor: pointer;
}
.poll-option:hover {
  border-color: var(--primary-color);
  background-color: #2a2c3a;
}
.poll-option input[type="radio"] {
  display: none;
}
.poll-option label {
  font-size: 1.1rem;
  color: var(--text-color);
  cursor: pointer;
  display: block;
  width: 100%;
}
.poll-button {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  font-family: 'Bungee', sans-serif; /* Using your heading font */
  font-weight: bold;
  color: var(--dark-bg);
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
.poll-button:hover {
  background-color: #a3b3ff;
}

/* ========== Other Pages & Footer ========== */
.page-header{
  text-align:center;
  padding: 60px 20px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}
.article-content{
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}
/* Back to Blog Button Style */
.back-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  font-family: 'Bungee', sans-serif;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.back-btn:hover {
  background-color: #a3b3ff;
  transform: translateY(-2px);
}
.site-footer{
  background-color: var(--header-bg);
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}
.footer-nav a{
  margin: 0 15px;
  color: var(--text-secondary);
}
.copyright{
  color: var(--text-secondary);
  font-size: .9rem;
}
/* ========== Responsive Design ========== */
@media screen and (max-width: 768px) {
    /* --- إعدادات قائمة التنقل (الهامبرغر) --- */
    .nav-links {
        position: absolute;
        right: 0;
        top: 65px;
        background-color: var(--header-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform .5s ease-in;
    }
    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 22px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .hamburger {
        display: block;
    }
    .nav-active {
        transform: translateX(0);
    }

    /* --- تعديلات إضافية للهاتف --- */

    /* 1. تصغير أحجام العناوين العامة */
    h1 { font-size: 2.2rem; }
    h2, .section-heading-v2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    /* 2. تعديل النص فوق الصورة الرئيسية */
    .hero-v2-overlay {
        padding: 20px;
    }
    .hero-v2-overlay h2 {
      font-size: 1.6rem;
      line-height: 1.2;
      letter-spacing: normal;
    }

    /* --- تعديلات أخرى --- */
    .hero-v2-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    /* 3. تصغير خط سؤال الاستطلاع على الهاتف */
    .weekly-poll .poll-question {
        font-size: 1rem;
    }
}
/* Animation for Nav Links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}
/* =================================== */
/* FIX FOR TRENDING NOW CARDS         */
/* =================================== */

.trending-card {
    position: relative; /* This is essential for positioning the title */
    overflow: hidden;   /* This hides any part of the image that overflows the box */
    border-radius: 8px; /* Optional: adds rounded corners */
    display: block;
    aspect-ratio: 16 / 9; /* This forces the box to a 16:9 ratio */
}

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* THIS IS THE MAGIC! It makes the image fill the container without distortion */
    transition: transform 0.3s ease;
}

.trending-card:hover img {
    transform: scale(1.1); /* Adds a nice zoom effect on hover */
}

.trending-card .trending-title {
    /* Positioning the text over the image */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    
    /* Styling the text to be consistent */
    font-family: 'Bungee', sans-serif; /* Using the same font as your logo */
    font-size: 1.1rem;  /* Unified font size */
    color: #ffffff;
    text-align: center;
    text-transform: uppercase; /* Makes all text uppercase like the others */
    letter-spacing: 1px;
    
    /* Adding a background gradient for readability */
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 20px 10px 10px 10px;
    margin: 0;
}