.custom-slider {
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    margin: 10px 0;
  }
  
  .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .slider-header h2{
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
    padding: 0;
  }

  .slider-header .header{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: baseline;
    margin-bottom: 32px;
  }
  
  .slider-arrows {
    display: flex;
    gap: 46px;
    justify-content: space-between;
  }
  
  .slider-arrows button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
  }
  
  .slider-arrows button:hover {
    background-color: #005f8d;
  }
  
  .slider-container {
    overflow: hidden;
    position: relative;
    margin: 10px 0;
  }
  
  .slider-track {
    display: flex;
    gap: 10px; /* Gap of 10px between the items */
    transition: transform 0.3s ease-in-out;
  }
  
  .slider-item {
    flex: 1 0 calc(20% - 10px); /* Inactive items are 20% width minus the gap */
    box-sizing: border-box;
    text-align: center;
    border-radius: 10px;
    transition: flex 0.3s ease-in-out, height 0.3s ease-in-out;
    max-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: gray;
    color: white;
    line-height: 0;
    }
  
  .slider-item.active {
    flex: 1 0 calc(25% - 10px); /* Active item is 25% width minus the gap */
    background: gray;
    color: white;
    max-height: initial;
  }

  .slider-item.active .actions{
    padding: 16px 24px;
  }

  .slider-item.active .actions h2 {
    font-weight: 600;
    font-size: 14px;
    text-align: left;
  }
  
  .thumbnail img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 16/11;
    border-radius: 16px 16px 0 0;
  }
  
  .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #172233;
    border-radius:0 0 8px 8px;
    padding: 12px 24px;
  }

  .slider-item.active .text{
    font-weight: 600;
    font-size: 16px;
    text-align: left;
  }
  
  .text{
    font-weight: 600;
    font-size: 12px;
    text-align: left;
  }

  .actions text {
    font-weight: 600;
    font-size: 14px!important;
    text-align: left;
  }
  
  .actions a{
    text-decoration: none;
  }
  
  .play-action{
    display: flex;
    flex-direction: column;
  }

  
  .play{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #60c7ce;
    margin: 1px 0;
    font-size: 12px;
    font-weight: 600;
  }


  .slider-item.active .play{
    font-size: 16px;
  }

  @media (min-width: 1128px) and (max-width: 1382px) {

    .slider-item {
      flex: 1 0 calc(25% - 10px); /* Inactive items are 20% width minus the gap */
      box-sizing: border-box;
      text-align: center;
      border-radius: 10px;
      transition: flex 0.3s ease-in-out, height 0.3s ease-in-out;
      max-height: 160px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: gray;
      color: white;
      line-height: 0;
      }
    
    .slider-item.active {
      flex: 1 0 calc(30% - 10px); /* Active item is 25% width minus the gap */
      background: gray;
      color: white;
      max-height: initial;
    }
  }


  @media (min-width: 966px) and (max-width: 1128px) {

    .slider-item {
      flex: 1 0 calc(30% - 10px); /* Inactive items are 20% width minus the gap */
      box-sizing: border-box;
      text-align: center;
      border-radius: 10px;
      transition: flex 0.3s ease-in-out, height 0.3s ease-in-out;
      max-height: 160px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: gray;
      color: white;
      line-height: 0;
      }
    
    .slider-item.active {
      flex: 1 0 calc(35% - 10px); /* Active item is 25% width minus the gap */
      background: gray;
      color: white;
      max-height: initial;
    }


    .actions {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      background: #172233;
      border-radius: 0 0 8px 8px;
      flex-direction: column;
      gap: 20px;
      padding: 14px 12px;
    }
  }
  

/* Mobile-specific styles */
@media (max-width: 966px) {

  .slider-track {
    display: flex;
    flex-direction: column; /* Stack items vertically for better control */
    align-items: center; /* Center the active item */
    gap: 0; /* Remove gaps between items */
  }

  .slider-item {
    flex: 0 0 0%; /* Inactive items have no size */
    opacity: 0; /* Hide inactive items */
    max-height: 0; /* Prevent height overflow */
    overflow: hidden; /* Hide content of inactive items */
    transition: flex 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
  }

  .slider-item.active {
    flex: 1 0 100%; /* Active item takes full width */
    opacity: 1; /* Make active item visible */
    max-height: none; /* Allow height to adjust automatically */
  }

  .slider-container {
    overflow: hidden; /* Ensure only active content is visible */
    height: auto; /* Adjust container height dynamically based on content */
    min-height: 350px;
  }

  .slider-header h2 {
    font-size: 24px; /* Adjust font size for mobile */
    text-align: center; /* Center-align header for mobile */
  }

  .slider-arrows {
    justify-content: center; /* Center navigation arrows */
    gap: 20px;
    margin-top: 10px; /* Add spacing for better visibility */
  }

  .slider-arrows button {
    font-size: 14px;
    padding: 8px 12px;
  }

  .actions {
    padding: 16px; /* Maintain consistent spacing */
  }

  .play {
    font-size: 14px; /* Scale font size for mobile */
  }
}

.slider-arrows img {
  transition: fill 0.3s ease, cursor 0.3s ease;
}

.slider-arrows img:hover {
  fill: none; /* Ensure hover effect works only when the button is active */
}
