.navbar {
    background-color: #ffffff; 
    min-height: 80px;
    padding: 7px 20px;
    position:sticky;
    top:0;
    z-index: 999999;
}
.navbar-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* 1. تجهيز جميع روابط شريط التنقل لاستقبال الخط */
.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 5px; 
  color: #333333; /* لون النص الافتراضي (رمادي داكن مريح للعين) */
  transition: color 0.3s ease; /* حركة انسيابية لتغير لون النص */
}


/* 2. إنشاء الخط الانسيابي الافتراضي (مخفي) لجميع الروابط */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px; 
  background-color: #800020; 
  transform: scaleX(0); 
  transform-origin: left; /* اتجاه الحركة من اليمين لليسار */
  transition: transform 0.3s ease-out; /* سرعة الحركة الانسيابية */
}

/* 3. إظهار الخط عند الـ Hover على الروابط العادية */
.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: right;
}



/* 5. إلغاء تأثير الخط الداخلي عند فتح القائمة الفرعية في الموبايل */
.navbar-nav .dropdown-menu .dropdown-item::after {
  display: none !important;
}


.dropdown-menu {
    background-color: #800020;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position:relative !important;
    right:-20%;
}

.dropdown-menu a {
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    color: #800020; 
}

 .dropdown:hover > .dropdown-menu {
    color:#800020;
    font-weight: bold;
    position: absolute !important;
    z-index: 1000000 !important;
    display: block;
    margin-top: 0; 
}

 /* President word */
.president-word{
      display:flex;
      gap:40px;
      flex-wrap: no-wrap;
      direction:rtl;
      padding:30px 25px;
      text-align:right;
      /* background: linear-gradient(135deg, #020617, #0F172A); */
      background: var(--primary-red);
}

.president-img{
    text-align:center;
    width:30%;
}
.president-text{
    width:70%;
    text-align: right;
}

@media (max-width:576px){

  .president-word{
    display:flex;
    flex-direction: column;

  }
  .president-img{
    width:100%;
  }
  .president-text{
    width:100%;
  }

  .stats-section{
    margin-top:0 !important;
  }
  .event-section{
     width:100%;
     height:400px;
     /* padding:40px 25px; */
     margin:0 auto;
     display: flex;
     flex-direction: column;
     gap:10px;
  }
  .event-video{
     width:100%
  }
  #intro_video{
      width:100%;
      height:auto;
  }
  p-about{
      width:100%;
  }
  .map-container{
    width:90%;
    margin-top:-50px;
  }
  
}

 .stats-section {
  /* background: linear-gradient(135deg, #d40000, #8b0000); */
    /* background: linear-gradient(135deg, #0F172A, #1E293B); */
  background: var(--primary-red);
  padding: 45px 20px;
  color: #fff;
  direction: rtl;
}

.stats-section .container {
 background: transparent;
  padding:25px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-box {
  
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 260px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.stat-box:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-box i {
  font-size: 50px;
  margin-bottom: 15px;
  color: #ffd700;
}

.stat-box h2 {
  font-size: 48px;
  margin: 10px 0;
  font-weight: bold;
}

.stat-box p {
  font-size: 20px;
  margin: 0;
}

.map-container {
    width:90%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 50px;
}

/* Tournament */
.tournament-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    transition:0.3s;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    height:100%;
}
.tournament-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,0.15);
}
.tournament-image{
    width:100%;
    height:190px;
    overflow:hidden;
    position:relative;
}
.tournament-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:0.4s;
}

.tournament-status{
    display:inline-block;
    background:#D4AF37;
    color:#000;
    padding:6px 14px;
    border-radius:30px;
    font-size:14px;
    margin-bottom:15px;
    font-weight:bold;
}

.tournament-content h3{
    font-size:22px;
    font-weight:700;
    margin-bottom:15px;
}

.tournament-content p{
    margin-bottom:10px;
    color:#666;
}

.status-badge{
    position:absolute;
    top:20px;
    right:25px;
    padding:10px 12px;
    border-radius:30px;
    font-weight:bold;
    color:#fff;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:8px;
    z-index:10;
}

.status-badge.upcoming{
    background:linear-gradient(45deg,#ff9800,#ffb74d);
    box-shadow:0 0 15px rgba(255,152,0,.5);
}

.status-badge.ongoing{
    background:linear-gradient(45deg,#1565c0,#42a5f5);
    box-shadow:0 0 15px rgba(33,150,243,.5);    
}

.status-badge.finished{
    background:linear-gradient(45deg,#2e7d32,#66bb6a);
    box-shadow:0 0 15px rgba(76,175,80,.5);
}

/* ======================= */

.status-message{
    margin-top:7px;
    border-radius:16px;
    padding:17px;
    display:flex;
    align-items:center;
    gap:15px;
}

.status-message i{
    font-size:28px;
}

.status-message h6{
    margin-bottom:5px;
    font-weight:700;
    color:#333 !important;
}

.status-message small{
    font-size:13px;
}

/* ======================= */

.upcoming-msg{
    background:#fff3e0;
    color:#e65100;
}

.ongoing-msg{
    background:#e3f2fd;
    color:#0d47a1;
}

.finished-msg{
    background:#e8f5e9;
    color:#1b5e20;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  
}

.marquee-text {
  display: inline-block;
  animation: scroll-right 6s linear infinite;
}

@keyframes scroll-right {
  100% { transform: translateX(100%); }
  0% { transform: translateX(-100%); }
}

.swiper-wrapper{
    height:500px;
}
  .swiper-slide{
      width:100%;
      text-align:center;
      display:flex;
      justify-content:center;
      align-items:center;
      background-size:cover;
    
  }
 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps image proportions intact */
  object-position: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background-color: white;
  transition: all 0.3s ease;
}
.swiper-custom-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 25px; /* Adjust distance outside the slider */
}
@media(max-width:575px){
.swiper-pagination-bullet {
    display: none;
}
.swiper {
    width: 100%;
    height: auto; 
    aspect-ratio: 16 / 9; 
  }

  .swiper-wrapper{
    width:100%;
    height:100%;
}
  .swiper-slide {
      display:flex;
      justify-content:center;
      align-items:center;
}
 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
 }
}

/* التعديل المتوافق مع لارافيل باللون الأحمر */
.custom-pagination nav svg {
    display: none; 
}

.custom-pagination .pagination {
    justify-content: center; 
}

.custom-pagination .page-link {
    border-radius: 50% !important; /* تصميم دائري */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: #333333; /* لون النص الافتراضي */
    font-weight: 600;
    border: none !important;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* ظل خفيف خلف الأزرار */
    transition: all 0.3s ease-in-out;
}

/* تأثير المرور بالماوس (Hover) باللون الأحمر */
.custom-pagination .page-link:hover {
    background-color: #dc3545 !important; /* أحمر بووتستراب الأساسي */
    color: #ffffff !important;
    box-shadow: 0 8px 15px rgba(220, 53, 69, 0.3); /* ظل أحمر ناعم */
    transform: translateY(-2px); /* حركة خفيفة للأعلى */
}

/* تخصيص الصفحة الحالية (Active) باللون الأحمر */
.custom-pagination .page-item.active .page-link {
    background-color: #c82333 !important; /* أحمر داكن مميز للزر النشط */
    border-color: #c82333 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 15px rgba(200, 35, 51, 0.4);
}

/* تعطيل الأزرار غير المتاحة */
.custom-pagination .page-item.disabled .page-link {
    box-shadow: none;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}


