.slider-container {
    width: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    border-radius: 15px;
    background-color: #111;
    border: 1px solid var(--lgray);
}

@media (max-width: 991.98px) {
    .slider-wrapper {
        height: 450px;
    }
}

@media (max-width: 767.98px) {
    .slider-wrapper {
        height: 320px;
        border-radius: 12px;
    }
}

.slider-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    opacity: 0;
    transition: opacity 700ms ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 6000ms cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active img {
    transform: scale(1.07);
}

/* Fallback for no-images state */
.slide.no-images {
    background: linear-gradient(135deg, var(--tc1, #082491), var(--ltc1, #61BDE1));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Bottom-Aligned Overlay */
.slide-overlay {
    position: absolute;
    left: 0;
    bottom: 30px;
    width: 100%;
    padding: 80px 40px 40px;
    box-sizing: border-box;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.caption-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    padding: 24px 32px;
    color: var(--white, #fff);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 700ms cubic-bezier(0.25, 1, 0.5, 1), opacity 700ms ease;
}

.slide.active .caption-container {
    transform: translateY(0);
    opacity: 1;
}

.caption-container h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    color: var(--white, #fff);
}

.caption-container p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 767.98px) {
    .slide-overlay {
        padding: 40px 20px 20px;
    }

    .caption-container {
        padding: 16px 20px;
        border-radius: 10px;
        transform: translateY(20px);
    }

    .caption-container h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .caption-container p {
        font-size: 13px;
    }
}

/* Arrow Navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
}

.slider-wrapper:hover .slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow.prev {
    left: 24px;
}

.slider-arrow.next {
    right: 24px;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.slider-arrow i {
    font-size: 18px;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .slider-arrow {
        width: 42px;
        height: 42px;
        opacity: 0.85;
        pointer-events: auto;
    }

    .slider-arrow.prev {
        left: 12px;
    }

    .slider-arrow.next {
        right: 12px;
    }

    .slider-arrow i {
        font-size: 14px;
    }
}

/* Dots Navigation */
.slider-dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    max-width: 85%;
    border-radius: 24px;
    padding: 8px 16px;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.slider-dots::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--ltc1, #61BDE1);
}

.grid-items {
    display: flex;
    flex-direction: column;
    align-items: normal;
    gap: 30px;
}

.row-itms {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: normal;
    gap: 10px;
}


.row-itms img {
    width: 100%;
    height: auto;
}

.table {
    width: 100%;
}

.home-tournament {
    display: flex;
    flex-direction: column;
    align-items: normal;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: normal;
    width: 100%;
    gap: 5px;
}

.home-coordinators {
    background-color: var(--elgray);
    border-top: 1px solid var(--lgray);
    border-bottom: 1px solid var(--lgray);
}

.video-gallery-sec {
    padding: 40px 0;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.video-grid .iframe-container {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease;
    overflow: hidden;
}

.video-grid .iframe-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.iframe-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid var(--lgray);
}

.iframe-container video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid var(--lgray);
    object-fit: contain;
    background: #000;
}

@media (max-width: 767.98px) {
    .slider-dots-container {
        bottom: 16px;
        padding: 6px 12px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 16px;
    }

    .row-itms {
        gap: 5px;
    }
}
