/* YouTube Videos Carousel - 2e8c5c14 */

.ytc-2e8c5c14-wrapper {
    position: relative;
    width: 100%;
    font-family: 'Roboto', 'Arial', sans-serif;
}

/* Loading */
.ytc-2e8c5c14-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
}

.ytc-2e8c5c14-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e5e5;
    border-top-color: #ff0000;
    border-radius: 50%;
    animation: ytc-2e8c5c14-spin 0.7s linear infinite;
}

@keyframes ytc-2e8c5c14-spin {
    to { transform: rotate(360deg); }
}

.ytc-2e8c5c14-loading p {
    margin: 0;
    font-size: 13px;
    color: #606060;
}

/* Error */
.ytc-2e8c5c14-error {
    padding: 20px;
    background: #fef7f7;
    border: 1px solid #fce8e8;
    border-radius: 12px;
    color: #cc0000;
    text-align: center;
    font-size: 14px;
}

/* Placeholder */
.ytc-2e8c5c14-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    gap: 16px;
    text-align: center;
}

.ytc-2e8c5c14-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #606060;
    max-width: 400px;
}

/* Carousel Container */
.ytc-2e8c5c14-carousel-container {
    position: relative;
    padding: 0 44px;
}

/* No arrows — remove side padding */
.ytc-2e8c5c14-carousel-container.ytc-2e8c5c14-no-arrows {
    padding: 0;
}

.ytc-2e8c5c14-swiper {
    overflow: hidden;
}

/* Card - YouTube Style */
.ytc-2e8c5c14-card {
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ytc-2e8c5c14-card:hover {
    opacity: 0.92;
}

/* Thumbnail */
.ytc-2e8c5c14-thumbnail-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #0f0f0f;
    border-radius: 12px;
}

.ytc-2e8c5c14-thumbnail-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ytc-2e8c5c14-card:hover .ytc-2e8c5c14-thumbnail-wrap img {
    transform: scale(1.03);
}

/* Play Button - Always Visible */
.ytc-2e8c5c14-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
    padding: 0;
    opacity: 1;
}

.ytc-2e8c5c14-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.85);
}

.ytc-2e8c5c14-play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
    pointer-events: none;
}

/* Iframe embed */
.ytc-2e8c5c14-iframe-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border-radius: inherit;
    overflow: hidden;
}

.ytc-2e8c5c14-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Card Content - YouTube Style */
.ytc-2e8c5c14-card-content {
    padding: 10px 0;
}

.ytc-2e8c5c14-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #0f0f0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.ytc-2e8c5c14-date {
    margin: 0;
    font-size: 12px;
    color: #606060;
    font-weight: 400;
    line-height: 1.4;
}

/* Navigation Arrows - YouTube Style */
.ytc-2e8c5c14-arrow {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0f0f0f;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ytc-2e8c5c14-arrow:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    background-color: #f2f2f2;
}

.ytc-2e8c5c14-arrow-prev {
    left: 0;
}

.ytc-2e8c5c14-arrow-next {
    right: 0;
}

/* Pagination Dots
   Swiper's bundle adds `swiper-pagination-horizontal` to our element which forces
   `position: absolute` + `bottom: 8px`. We force it back to static block so the
   spacing / alignment / margin controls actually work. All bullet styling is
   done with regular properties (not CSS variables) because Elementor's selectors
   need to win over Swiper's rules — using direct properties + !important via
   the controls is the most reliable path. */
.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination,
.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-horizontal,
.ytc-2e8c5c14-wrapper .swiper-horizontal > .ytc-2e8c5c14-pagination {
    position: static;
    bottom: auto;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    line-height: 1;
    transform: none;
}

.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cccccc;
    opacity: 1;
    margin: 0 4px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.2s ease;
}

.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination .swiper-pagination-bullet-active {
    background: #ff0000;
    opacity: 1;
}

/* Dynamic bullets — Swiper adds a class to the container and scales the side
   bullets via transform. We just keep its behavior; the scaling is visual only,
   so dot size still respects our width/height. */
.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic {
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
    /* Width is set inline by Swiper based on bullet size — leave it alone. */
}

.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transform: scale(0.33);
    position: relative;
}

.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
    transform: scale(1);
}

.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev,
.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(0.66);
}

.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev,
.ytc-2e8c5c14-wrapper .ytc-2e8c5c14-pagination.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
    transform: scale(0.33);
}

/* Hide content area when no title/date */
.ytc-2e8c5c14-card-content:empty {
    display: none;
}

/* Responsive */
@media (max-width: 767px) {
    .ytc-2e8c5c14-carousel-container {
        padding: 0 34px;
    }

    .ytc-2e8c5c14-carousel-container.ytc-2e8c5c14-no-arrows {
        padding: 0;
    }

    .ytc-2e8c5c14-arrow {
        width: 32px;
        height: 32px;
    }

    .ytc-2e8c5c14-title {
        font-size: 13px;
    }
}