/* Filter Container */
.filter-container {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-container select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    min-width: 200px;
}

.filter-container select:focus {
    outline: none;
    border-color: #007bff;
}

/* Carousel Container */
.videoici-carousel {
    position: relative;
    margin: 20px 0;
}

/* Loading and No Results States */
.videoici-loading,
.videoici-no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Carousel Items */
/* 1. Carousel item: drop the huge bottom margin & shadow */
.owl-carousel .item-video {
    height: auto;
    /* let content decide height */
    border-radius: 8px;
    overflow: hidden;
}

/* 2. Video itself keeps 16:9-ish height */
.owl-carousel .item-video iframe,
.owl-carousel .item-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* modern browsers */
    height: auto;
    display: block;
    border-radius: 16px;
}

.owl-carousel .item-video video {
    object-fit: cover;
}

/* Video Info */
/* -------------  NEW .video-info ------------- */
/* 3. Meta block sits naturally underneath */
.video-info {
    padding: 10px 12px;
    border-radius: 0 0 8px 8px;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
}

.video-info .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Poppins";
    font-weight: 600;
    font-size: 18px;
    line-height: 31px;
    text-align: left;
    color: #000;
}

.video-info .region {
    font-family: "Poppins";
    font-weight: normal;
    font-size: 16px;
    text-align: left;
    color: #000;
    opacity: 0.6;

    margin-top: 3px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .owl-carousel .item-video {
        height: 160px;
        margin-bottom: 50px;
    }

    .video-info .title {
        font-size: 16px;
    }
    .last-section .video-card {
            display: flex;
    }
}

/* Tint the thumbnail */
.vrc-item iframe,
.owl-carousel .item-video iframe {
    position: relative;
}

.vrc-item iframe::before,
.owl-carousel .item-video iframe::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* black overlay */
    z-index: 1;
}

.videoici-filters {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#v-filter-region {
    width: 250px !important;
    height: 40px;
    background: transparent;
    border: 1px solid #00708b;
    backdrop-filter: blur(3px);
    --webkit-backdrop-filter: blur(3px);
    border-radius: 50px;
    margin-left: 10px;
    margin-right: 10px;
    font-family:'Poppins';
    font-weight: 500;
    font-size: 18px;
padding-left: 15px !important;
    text-align: left;
    color: #00708c;
}

#v-filter-thematique {
    width: 240px;
    height: 40px;
    background: transparent;
    border: 1px solid #00708b;
    backdrop-filter: blur(3px);
    --webkit-backdrop-filter: blur(3px);
    /* background-color: rgba(0, 0, 0, 0.15); */
    border-radius: 50px;
    margin-left: 10px;
    margin-right: 10px;
    font-family: Poppins;
    font-weight: 500;
    font-size: 18px;
    /* line-height: 35px; */
    text-align: left;
    color: #00708c;
}

.videoici-carousel .owl-nav-prev {
    background-color: transparent !important;
    color: #00708C !important;
    border: 2px solid #00708C;
    border-radius: 50% !important;
    position: relative;
    left: -60px;
}

.videoici-carousel .owl-nav-next {
    background-color: transparent !important;
    color: #00708C !important;
    border: 2px solid #00708C;
    border-radius: 50% !important;
    position: relative;
    right: -60px;
}

/* Navigation */
.videoici-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.videoici-carousel .owl-nav button {
    background: transparent !important;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: all 0.3s ease;
}

.vrc-wrapper {
    display: flex;
    gap: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.vrc-main {
    flex: 2;
    max-width: 100%;
    height: 450px;

}

.vrc-main iframe,
.vrc-main video {
    width: 100%;
    height: 450px !important;
    height: auto;
    border-radius: 12px;
}

.vrc-item {
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
}

.vrc-item:hover .vrc-title {
    color: #00708b;
}

.vrc-item iframe,
.vrc-item video {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    object-fit: cover;
}

.vrc-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.vrc-title {
    font-family: "Poppins";
    font-weight: 600;
    font-size: 18px;
    line-height: 31px;
    text-align: left;
    color: #000;
}

.vrc-sub {
    font-family: "Poppins";
    font-weight: normal;
    font-size: 16px;
    text-align: left;
    color: #000;
    opacity: 0.6;
}

/* Recent Videos Component - Scrollbar Styles */
.vrc-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 450px;
    overflow-y: hidden;
    /* Hide by default */
    padding-right: 5px;
    transition: overflow-y 0.3s ease;
}

.vrc-wrapper:hover .vrc-list {
    overflow-y: auto;
    /* Show on hover */
}

/* Custom scrollbar styling */
.vrc-list::-webkit-scrollbar {
    width: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vrc-wrapper:hover .vrc-list::-webkit-scrollbar {
    opacity: 1;
}

.vrc-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.vrc-list::-webkit-scrollbar-thumb {
    background: rgba(0, 112, 140, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.vrc-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 112, 140, 0.6);
}

/* Firefox scrollbar */
.vrc-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 112, 140, 0.3) transparent;
}

.vrc-wrapper:hover .vrc-list {
    scrollbar-color: rgba(0, 112, 140, 0.3) transparent;
}

/* Responsive styles for Owl Carousel */
@media (max-width: 1200px) {
    .owl-carousel .item-video {
        margin: 0 10px;
    }

    .videoici-carousel .owl-nav button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .owl-carousel .item-video {
        margin: 0 8px;
    }

    .videoici-carousel .owl-nav {
        display: none;
        /* Hide navigation on smaller screens */
    }

    /* Adjust carousel item spacing */
    .owl-carousel .owl-stage-outer {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .owl-carousel .item-video {
        margin: 0 5px;
        height: auto;
    }

    .owl-carousel .item-video iframe,
    .owl-carousel .item-video video {
        aspect-ratio: 16/9;
        height: auto;
    }

    .video-info {
        padding: 8px 10px;
    }

    .video-info .title {
        font-size: 16px;
        line-height: 24px;
    }

    .video-info .region {
        font-size: 14px;
    }

    /* Filter dropdowns */
    .videoici-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #v-filter-region,
    #v-filter-thematique {
        width: 280px;
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .owl-carousel .item-video {
        margin: 0 3px;
    }

    .video-info .title {
        font-size: 14px;
        line-height: 20px;
    }

    .video-info .region {
        font-size: 12px;
    }

    #v-filter-region,
    #v-filter-thematique {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px;
    }
}

/* Responsive styles for videoici_recent component */
@media (max-width: 1200px) {
    .vrc-wrapper {
        gap: 15px;
    }

    .vrc-main,
    .vrc-main iframe,
    .vrc-main video {
        height: 400px !important;
    }

    .vrc-list {
        max-height: 400px;
    }
}

@media (max-width: 992px) {
    .vrc-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .vrc-main,
    .vrc-main iframe,
    .vrc-main video {
        height: 350px !important;
        width: 100%;
    }

    .vrc-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        height: auto;
        gap: 15px;
        padding-bottom: 10px;
    }

    .vrc-item {
        flex: 0 0 auto;
        width: 200px;
        flex-direction: column;
    }

    .vrc-item iframe,
    .vrc-item video {
        width: 200px;
        height: 120px;
    }

    .vrc-meta {
        width: 100%;
    }

    /* Adjust scrollbar for horizontal layout */
    .vrc-list::-webkit-scrollbar {
        height: 6px;
        width: auto;
    }

    .vrc-wrapper:hover .vrc-list::-webkit-scrollbar {
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .vrc-main,
    .vrc-main iframe,
    .vrc-main video {
        height: 300px !important;
    }

    .vrc-list {
        gap: 12px;
    }

    .vrc-item {
        width: 180px;
    }

    .vrc-item iframe,
    .vrc-item video {
        width: 180px;
        height: 110px;
    }

    .vrc-title {
        font-size: 16px;
        line-height: 22px;
    }

    .vrc-sub {
        font-size: 14px;
    }
}

@media (max-width: 576px) {

    .vrc-main,
    .vrc-main iframe,
    .vrc-main video {
        height: 250px !important;
    }

    .vrc-list {
        gap: 10px;
    }

    .vrc-item {
        width: 150px;
    }

    .vrc-item iframe,
    .vrc-item video {
        width: 150px;
        height: 90px;
    }

    .vrc-title {
        font-size: 14px;
        line-height: 18px;
    }

    .vrc-sub {
        font-size: 12px;
    }

    .vrc-meta {
        padding: 5px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {

    .vrc-main,
    .vrc-main iframe,
    .vrc-main video {
        height: 200px !important;
    }

    .vrc-item {
        width: 130px;
    }

    .vrc-item iframe,
    .vrc-item video {
        width: 130px;
        height: 80px;
    }

    .vrc-title {
        font-size: 12px;
        line-height: 16px;
    }

    .vrc-sub {
        font-size: 11px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .vrc-list {
        overflow-y: auto;
        /* Always show scrollbar on touch devices */
    }

    .videoici-carousel .owl-nav {
        display: flex;
        /* Show navigation on touch devices */
    }

    .vrc-list::-webkit-scrollbar {
        opacity: 1;
        /* Always show scrollbar on touch devices */
    }
}

/* High-resolution displays */
@media (min-resolution: 2dppx) {

    .videoici-carousel .owl-nav button,
    .vrc-item iframe,
    .vrc-item video {
        border-width: 0.5px;
        /* Thinner borders for retina */
    }
}


/* --- Main Section Styling --- */



/* Ensure content is above the overlay */
.last-section .container {
    position: relative;
    z-index: 2;
}

/* --- Left Column Styling --- */
.last-section .left-content .tag {
    display: inline-block;
    background-color: #00708C;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.last-section .left-content .description {
    font-family: 'Poppins';
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    text-align: left;
    color: #fff;

    max-width: 500px;
}

/* --- Right Column (Scrollable List) Styling --- */
.last-section .video-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
}

.last-section .video-card {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.last-section .video-card:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.last-section .video-card img {
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.last-section h5 {
    margin-bottom: 0.25rem;
    margin-left: 20px;
    font-family: 'Poppins';
    font-weight: 600;
    font-size: 20px;
    line-height: 25px;
    text-align: left;
    color: #fff !important;

}

.video-part span {
    margin-left: 20px !important;
    font-family: 'Poppins';
    font-weight: normal;
    font-size: 15px;
    text-align: left;
    color: #f7f7f7 !important;
    opacity: 0.6 !important;
}

/* --- Custom Scrollbar Styling --- */
.last-section .video-list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.last-section .video-list-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.last-section .video-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.last-section .video-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* --- Owl Carousel Navigation Styling --- */
.last-section .owl-carousel .owl-nav button.owl-next,
.last-section .owl-carousel .owl-nav button.owl-prev {
    font-size: 2.5rem !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.2) !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.last-section .owl-carousel .owl-nav button.owl-next:hover,
.last-section .owl-carousel .owl-nav button.owl-prev:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}

.last-section .owl-carousel .owl-nav button.owl-prev {
    left: -20px;
}

.last-section .owl-carousel .owl-nav button.owl-next {
    right: -20px;
}

@media (max-width: 768px) {
    .last-section .owl-carousel .owl-nav button.owl-prev {
        left: 5px;
    }

    .last-section .owl-carousel .owl-nav button.owl-next {
        right: 5px;
    }
}

.video-height-css {
    height: 110px;
}


.video-height-css iframe {
    height: 110px;
    border-radius: 16px;
}

.last-section .owl-dots span {
    width: 20px !important;
    height: 3px !important;
    margin: 3px 3px !important;
    border-radius: 16px;

}

.page-id-7082 .page-header__container {
    display: none !important;
}

.page-id-7065 .page-header__container {
    display: none !important;
}

.page-id-7061 .page-header__container {
    display: none !important;
}

.elementor-page-7054 .page-header__container {
    display: none !important;
}

.ytp-show-cards-title {
    display: none !important;
}

.videoici-carousel {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

.videoici-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
    z-index: 8;
    /* Behind navigation */
}

.owl-stage-outer {
    position: relative;
    z-index: 1 !important;
}

.videoici-carousel .owl-nav {
    display: flex !important;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
    z-index: 10 !important;
    /* Above gradient */
}

.videoici-carousel .owl-nav button {
    pointer-events: all;
    z-index: 11 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    color: #00708C !important;
    border: 2px solid #00708C !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    margin: 0;
}

.videoici-carousel .owl-nav .owl-prev {
    position: absolute;
    left: -50px;
}

.videoici-carousel .owl-nav .owl-next {
    position: absolute;
    right: -50px;
}

.videoici-carousel .owl-nav button:hover {
    background-color: #00708C !important;
    color: white !important;
}

.videoici-carousel .owl-dots .active span {
        width: 25px !important;
    background: #00708c !important;
    height: 3px !important;
}
.videoici-carousel .owl-dots span{
        width: 25px !important;
    height: 3px !important;
}
.videoici-carousel .owl-dots  {
        text-align-last: center !important;
        display: block !important;

}
.videoici-carousel .owl-stage-outer {
    padding: 0 !important;
}