:root {
 
    --neon: #f4bf35;
}

/* ===== Title ===== */
h2 {
    margin-top: 50px;
    color: var(--neon);
    animation: fadeInDown 1s ease-out;
    text-align: center;
}
 h2{
        font-size:34px;
        font-weight:800;
     }


h2::after {
    content: "";
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #3e3e3e, transparent);
    display: block;
    margin: 15px auto;
    border-radius: 20px;
}


 @media (min-width:991px){
  .video-slider{
    display:grid;
    grid-template-columns:repeat(4,1fr); 
    gap:1rem;
  }
}
 @media (min-width:1200px){
  .video-slider{
    display:grid;
    grid-template-columns:repeat(5,1fr); 
    gap:1rem;
  }
}

 @media (max-width:991px){
 
 
 
.video-slider{
    display:grid;
    grid-template-columns:repeat(3,1fr); 
     justify-content: center;
    margin: 0;
    }

}
 @media (max-width:600px){
 
 
 
.video-slider{
    display:grid;
    grid-template-columns:repeat(2,1fr); 
     justify-content: center;
    margin: 0;
    }

}
 
.video-card img{
  width: 200px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .video-card img{
  width: 180px;
  border-radius: 10px;
  height: 100%;
}
}
  
.video-card h6{
color: white;
text-align: center;
}


/* ===== عناوین===== */
.section-header{
   display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
  position:relative;
  margin-left: 50px;
  margin-right: 50px;
}
@media (max-width:768px){
.section-header{
     margin-left: 10px;
  margin-right: 10px;
}
}
 

 .section-header h2{
  margin:0;
  padding-left:15px;
  position:relative;
  z-index:1;
  font-size:16px;
  color:white;
}

@media (min-width:769px){
    .section-header{
  
  margin-left: 90px;
  margin-right: 100px;
}
  }

 .see-all{
  position:relative;
  z-index:1;
  color:#ffffff;
  text-decoration:none;
  font-weight:bold;
  transition:0.3s;
  color: #f4bf35;
}

.see-all:hover{
  color:#00d4ff;
}


@media (max-width: 769px){
    .video-slider{
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .video-slider a{
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .video-card{
        margin: 0 auto;
    }
}


  @media (max-width:375px){
 
 
 
.video-slider{
    display:grid;
    grid-template-columns:repeat(1,1fr); 
    gap:1rem;
    justify-content: center;
    margin: 0;
    }
     
.video-card img{
  width: 100%;
  border-radius: 10px;
}

}


.dropdown-menu {
  text-align: center;
  
}




/* ===== Pagination ===== */
.pagination {
    gap: 8px;
}

.pagination .page-link {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: 12px;
    padding: 8px 14px;
    transition: 0.3s;
    min-width: 40px;
    text-align: center;
}
.pagination .page-link:hover {
    background: rgba(0,255,213,0.1);
    border-color: var(--neon);
    color: var(--neon);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,213,0.2);
}

.pagination .page-item.active .page-link {
    background: var(--neon);
    color: black;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0,255,213,0.5);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255,255,255,0.03);
}

.pagination .page-item:hover {
    transform: scale(1.05);
}

/* ===== Custom Dropdown ===== */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000; /* 🔥 مهم */
        animation: fadeIn 1s ease forwards;

}

.dm {
    z-index: 1001; /* 🔥 بالاتر از کارت‌ها */
}

.dropdown-btn {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.dropdown-btn:hover {
    border-color: var(--neon);
    box-shadow: 0 0 10px rgba(0,255,213,0.3);
}

/* dropdown menu */
.dm {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);

    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;

    padding: 8px;
    min-width: 120px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    opacity: 0;
    pointer-events: none;

    transition: 0.25s;
    
}

.dm.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.dm a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.25s;
}

.dm a:hover {
    color: var(--neon);
    border-color: var(--neon);
    background: rgba(0,255,213,0.1);
    transform: translateY(-2px);
}

.dropdown-menu {
    max-height: 250px; /* ارتفاع دلخواه */
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f4bf35;
}
hr{
  margin: 0;
}
.dm{
  background-color:rgba(0, 0, 0, 0.673) ;
}