@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=arrow_forward');

.youtube-carousel-widget * {
    margin: 10;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

.youtube-carousel-widget {
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-carousel-widget-container {
    background-color: #fff;
    border-radius: 8px
}

.youtube-carousel-widget-title  {
    margin: 15px;
    font-size: 32px;
    padding: 10px; 
}

.youtube-carousel-widget-subtitle  {
    margin: 15px; 
    font-size: 20px 
}

.youtube-carousel-widget-card-wrapper {
    max-width: 1600px;
    margin: 0 60px 35px;
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-item {
    list-style: none;
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-item .youtube-carousel-widget-card-link {
    user-select: none;
    display: block;
    background: #d6d6d6;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-item .youtube-carousel-widget-card-link:hover {
    border-color: #5372f0
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-link .youtube-carousel-widget-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-link .badge {
    color: #5372F0;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 16px 0 18px;
    background: #DDE4FF;
    width: fit-content;
    border-radius: 50px;
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-link .youtube-carousel-widget-card-title {
    font-size: 1.19rem;
    color: #000;
    font-weight: 600px;
}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-link .youtube-carousel-widget-card-button {
    height: 35px;
    width: 35px;
    color: #5372F0;
    border-radius: 50%;
    margin: 30px 0 5px;
    background: none;
    cursor: pointer;
    border: 2px solid #5372F0;
    transition: 0.4s ease;

}

.youtube-carousel-widget-card-list .youtube-carousel-widget-card-link:hover .youtube-carousel-widget-card-button {
    color: #fff;
    background: #5372F0;
}

.youtube-carousel-widget-card-wrapper .swiper-pagination-bullet {
    height: 10px;
    width: 10px;
    opacity: 0.5;
    background: #5372F0;
}

/* Ensure the container allows left alignment in non-swiper mode */
.youtube-carousel-widget.non-swiper-mode .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the left */
    gap: 30px; /* Add spacing between items */
    align-items: flex-start; /* Ensure items align at the top */
    padding: 0; /* Remove any extra padding */
}


.youtube-carousel-widget-card-wrapper .swiper-pagination-bullet-active {
    opacity: 1,
}

.youtube-carousel-widget-card-wrapper .swiper-slide-button {
    color: #5372F0;
    margin-top: -35px;
}

/* Styles for fewer than 3 items */
.youtube-carousel-widget-card-list.non-swiper-mode {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the left */
    gap: 30px; /* Add spacing between items */
    align-items: flex-start; /* Ensure items align at the top */
}

.youtube-carousel-widget-card-list.non-swiper-mode .youtube-carousel-widget-card-item {
    max-width: 400px; /* Set max width for items */
    margin: 30px; /* Add margin around items */
}

@media screen and (max-width: 768px) {
    .youtube-carousel-widget-card-wrapper {
        margin: 0 10px 25px
    }
}