.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  flex-wrap: wrap; /* Optional: for small screens */
}

.carousel-title {
  flex: 1;
  font-weight: bold;
  margin: 0;
}

.video-category {
    width: 100%; 
    float: left; 
    box-sizing: border-box; 
    padding:0px;
}

.video-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top:10px;
    padding-left:20px;
}

.video-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 20px;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}
.video-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.aspect-ratio img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.custom-rated-profile{
    width:15%;
    float:left;
    padding-top:10px;
}
.custom-rated-profile img{
    width:50px;
    height:50px;
    border-radius:50%;
}
.custom-rated-description{
    width:85%;
    float:left;
    padding-top:5px;
}

.video-card-1, .video-card-2, .video-card-3, .video-card-4, .video-card-5, .video-card-6, .video-card-7, .video-card-8, .video-card-9, .video-card-10, .video-card-11, .video-card-12 {
  flex: 0 0 calc(33.33% - 20px);
  scroll-snap-align: start;
  margin-bottom:0px;
}

.video-card-1 .aspect-ratio, .video-card-2 .aspect-ratio, .video-card-3 .aspect-ratio, .video-card-4 .aspect-ratio, .video-card-5 .aspect-ratio, .video-card-6 .aspect-ratio, .video-card-7 .aspect-ratio, .video-card-8 .aspect-ratio, .video-card-9 .aspect-ratio, .video-card-10 .aspect-ratio, .video-card-11 .aspect-ratio, .video-card-12 .aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
    overflow: hidden;
    border-radius: 8px;
}

.video-card-1 .aspect-ratio img, .video-card-2 .aspect-ratio img, .video-card-3 .aspect-ratio img, .video-card-4 .aspect-ratio img, .video-card-5 .aspect-ratio img, .video-card-6 .aspect-ratio img, .video-card-7 .aspect-ratio img, .video-card-8 .aspect-ratio img, .video-card-9 .aspect-ratio img, .video-card-10 .aspect-ratio img, .video-card-11 .aspect-ratio img, .video-card-12 .aspect-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* icons */
.video-card-1 i, .video-card-2 i, .video-card-3 i, .video-card-4 i, .video-card-5 i, .video-card-6 i, .video-card-7 i, .video-card-8 i, .video-card-9 i, .video-card-10 i, .video-card-11 i, .video-card-12 i{
    color:#7f00ff;
}
body.dark-mode .video-card-1 i, body.dark-mode .video-card-2 i, body.dark-mode .video-card-3 i, body.dark-mode .video-card-4 i, body.dark-mode .video-card-5 i, body.dark-mode .video-card-6 i, body.dark-mode .video-card-7 i, body.dark-mode .video-card-8 i, body.dark-mode .video-card-9 i, body.dark-mode .video-card-10 i, body.dark-mode .video-card-11 i, body.dark-mode .video-card-12 i{
    color:#00c6ff;
}

/* arrow */
.carousel-arrow {
    background: #ededed;
    color: #7f00ff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

body.dark-mode .carousel-arrow {
    background:#333;
    color:#00c6ff;
}

body.dark-mode .carousel-arrow:hover {
    background: linear-gradient(to right, #7f00ff, #00c6ff);
    color:#fff;
}

.carousel-arrow:hover{
    background: linear-gradient(to right, #7f00ff, #00c6ff);
    color:#fff;
}
.carousel-arrow:focus{
    background: linear-gradient(to right, #7f00ff, #00c6ff);
    color:#fff;
}

/* responsive */
@media screen and (max-width: 1024px) {
  .video-card-1, .video-card-2, .video-card-3, .video-card-4, .video-card-5, .video-card-6, .video-card-7, .video-card-8, .video-card-9, .video-card-10, .video-card-11, .video-card-12 {
    flex: 0 0 calc(50% - 20px);
  }
  .video-carousel-wrapper{
      padding:0px;
  }
  .carousel-header{
      padding:0px;
  }
  .custom-rated-profile{
      width:17%;
  }
  
  .custom-rated-description{
      width:83%;
  }
}

@media screen and (min-width: 641px) and (max-width: 1023px){
    .custom-rated-profile{
      width:20%;
    }
    .custom-rated-description{
      width:80%;
    }
}

@media screen and (max-width: 640px) {
  .video-card-1, .video-card-2, .video-card-3, .video-card-4, .video-card-5, .video-card-6, .video-card-7, .video-card-8, .video-card-9, .video-card-10, .video-card-11, .video-card-12 {
    flex: 0 0 100%;
  }
  .video-carousel-wrapper{
      padding:0px;
  }
  .carousel-header{
      padding:0px;
  }
  
  .custom-rated-profile{
      width:17%;
  }
  
  .custom-rated-description{
      width:83%;
  }
  
}