.noxx-video-slider-widget {
    padding: 40px 0;
}

.noxx-video-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.noxx-video-slider-title {
    color: #12153A;
    font-family: "Open Sans", sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.noxx-video-slider-expand {
    color: #2BADFF;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.noxx-video-slider-expand:hover {
    color: #1a8cd8;
}

.noxx-video-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.noxx-slider-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.noxx-slider-nav:hover {
    background: #2BADFF;
    color: white;
}

.noxx-video-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.noxx-video-slider::-webkit-scrollbar {
    display: none;
}

.noxx-video-slide {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 15px);
    background: white;
    border-radius: 20px;
    box-shadow: 20px 20px 100px rgba(44, 60, 80, 0.1);
    overflow: hidden;
}

.noxx-video-wrapper {
    position: relative;
}

.noxx-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.noxx-video-content {
    padding: 20px;
}

.noxx-video-tags {
    display: flex;
    gap: 10px;
}

.noxx-video-tag {
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.noxx-video-title {
    color: #12153A;
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.noxx-video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.noxx-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.noxx-video-date {
    color: #4D5F6F;
    font-size: 14px;
}

.noxx-video-description {
    color: #4D5F6F;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.noxx-video-link {
    color: #12153A;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

/* Expanded state */
.noxx-video-slider-widget.expanded .noxx-video-slider {
    flex-wrap: wrap;
    justify-content: center;
}

.noxx-video-slider-widget.expanded .noxx-slider-nav {
    display: none;
}

.noxx-video-slider-widget.expanded .noxx-video-slider-expand {
    display: none;
}

.noxx-video-slider-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

button.noxx-video-slider-expand {
    text-shadow: none !important;
    color: #2BADFF !important;
    font-family: Poppins !important;
    font-size: 21px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
}

html body h2.noxx-video-slider-title {
    color: #12153A;
    text-align: center;
    font-feature-settings: 'liga' off;
    font-family: "Open Sans";
    font-size: 56px;
    font-style: normal;
    font-weight: 800;
    line-height: 60px;
    letter-spacing: -1.5px;
    padding-bottom: 60px;
}

html body .noxx-video-slider-header {
    margin: auto;
    margin-bottom: 20px;
}

html body .noxx-video-slider {
    gap: 15px;
}

html body button.noxx-slider-nav.prev, html body button.noxx-slider-nav.next {
    border-radius: 50%;
    background: #2BADFF;
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 15px;
    text-shadow: none;
    box-shadow: none;
    position: absolute;
    transition: scale 0.3s ease;
    border: none;
}

html body button.noxx-slider-nav.prev {
    left: -30px;
}

html body button.noxx-slider-nav.next {
    right: -30px;
}

html body button.noxx-slider-nav.prev:Hover, html body button.noxx-slider-nav.next:Hover {
    scale: 1.1;
}

.noxx-video-wrapper {
    position: relative;
    height: 315px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.noxx-video-wrapper-inner {
    width: 100%;
    height: 100%;
    pointer-events: none;
    margin: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.noxx-video-wrapper iframe {
    pointer-events: none;
    width: 140% !important;
    height: 140% !important;
    border: none;
    position: absolute;
    max-width: initial !important;
    margin: auto !important;
    top: initial;
    left: initial;
}
.noxx-video-meta {
    position: absolute;
    width: 80px;
    height: 80px;
    right: 50px;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.35));
    bottom: -50px;
}
.noxx-video-meta img {
    width: 100%;
    height: 100%;
}

/* Grid Mode Styles */
.noxx-video-slider-widget[data-display-mode="grid"] .noxx-video-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: visible;
}

/* Hide additional items instead of using overflow */
.noxx-video-slider-widget[data-display-mode="grid"] .noxx-video-slide {
    display: none;
}

/* Show only first two items on desktop */
.noxx-video-slider-widget[data-display-mode="grid"] .noxx-video-slide:nth-child(-n+2) {
    display: block;
}

/* Show all items when expanded */
.noxx-video-slider-widget[data-display-mode="grid"].expanded .noxx-video-slide {
    display: block;
}

@media (max-width: 767px) {
    .noxx-video-slider-widget[data-display-mode="grid"] .noxx-video-slider {
        grid-template-columns: 1fr;
    }
    
    /* Show only first item on mobile */
    .noxx-video-slider-widget[data-display-mode="grid"] .noxx-video-slide {
        display: none;
    }
    .noxx-video-slider-widget[data-display-mode="grid"] .noxx-video-slide:first-child {
        display: block;
    }
}

/* Image Mode Styles */
.noxx-video-wrapper-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
a.noxx-video-link {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
a.noxx-video-link h3.noxx-video-title {
    color: #12153A !important;
    font-family: "Open Sans" !important;
    font-size: 26px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 150% !important;
    margin: auto;
}
span.noxx-video-date {
    color: #635BFF !important;
    font-family: Poppins !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    margin: auto !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    display: flex !important;
}
p.noxx-video-description {
    color: #4D5F6F;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}
.noxx-video-wrapper {
    margin: 20px auto;
}
.noxx-video-tags {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    grid-gap: 5px;
}
span.noxx-video-tag {
    background: transparent;
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
.noxx-video-slide {
    border-radius: 20px;
    background: #FFF;
    box-shadow: 20px 20px 100px 0px rgba(44, 60, 80, 0.10);
    padding: 40px 20px;
}
.noxx-video-wrapper-inner img {
    width: auto;
    min-width: 100%;
    height: auto;
    min-height: 100%;
    max-width: initial;
    object-fit: cover;
}
span.noxx-video-tag {
    border-radius: 16px;
    background: #F9F5FF;
}
.noxx-video-slide {
    width: 100%;
}

@media (max-width: 767px) {
    html body h2.noxx-video-slider-title {
        font-size: 36px;
        line-height: 1.2em;
    }
    button.noxx-video-slider-expand {
        font-size: 16px !important;
    }
    a.noxx-video-link h3.noxx-video-title {
        font-size: 23px !important;
        line-height: 140% !important;
    }
    .noxx-video-meta {
        right: 20px;
        bottom: -20px;
    }
    .noxx-video-wrapper {
        border-radius: 6px;
        overflow: hidden;
    }
    .noxx-video-slide {
        max-width: 95%;
        margin: auto;
    }
}