/* === Video Banners Styling === */
/* Professional video banner support with your brand colors */

.hero-video-slide {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #07111f;
}

.hero-video-player {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-video-embed {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.hero-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 148, 210, 0.15), rgba(141, 198, 63, 0.12));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.hero-video-slide:hover .hero-video-overlay {
    opacity: 1;
}

.hero-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-decoration: none;
}

/* Responsive video banners */
@media (max-width: 1200px) {

    .hero-video-slide,
    .hero-video-player,
    .hero-video-embed iframe {
        min-height: 500px;
    }
}

@media (max-width: 767px) {

    .hero-video-slide,
    .hero-video-player,
    .hero-video-embed iframe {
        min-height: 280px;
    }

    .hero-slide {
        min-height: 280px;
    }
}

/* Banner carousel indicators with brand colors */
.hero-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.65rem;
    z-index: 10;
}

.hero-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicators button.active {
    background: linear-gradient(135deg, #1d94d2, #8dc63f);
    border-color: #ffffff;
    width: 32px;
    border-radius: 999px;
}

.hero-indicators button:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Banner carousel navigation controls */
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.hero-control:hover {
    background: rgba(29, 148, 210, 0.85);
    border-color: #1d94d2;
    transform: translateY(-50%) scale(1.08);
}

.hero-control span {
    font-size: 1.4rem;
}

.hero-control.carousel-control-prev {
    left: 1.5rem;
}

.hero-control.carousel-control-next {
    right: 1.5rem;
}

/* Hero shade overlay for better text contrast */
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent, rgba(0, 0, 0, 0.2));
    z-index: 0;
}

/* Admin form styling for video banner uploads */
.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-check+label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-check:checked+label {
    background: linear-gradient(135deg, #1d94d2, #8dc63f) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(29, 148, 210, 0.25) !important;
}

#image-section,
#video-section {
    transition: display 0.3s ease;
    padding: 1.5rem;
    background: rgba(29, 148, 210, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(29, 148, 210, 0.1);
}

.form-text {
    color: #6c7d8d;
    font-size: 0.875rem;
}

/* Video preview styling */
.video-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(20, 55, 90, 0.12);
    margin-top: 0.75rem;
}

.video-preview video {
    width: 100%;
    height: auto;
    display: block;
}

/* Admin table styling for banner management */
.admin-action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    color: #6c7d8d;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-icon-action:hover {
    background: rgba(29, 148, 210, 0.1);
    color: #1d94d2;
}

.admin-icon-action.is-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-info {
    background: rgba(29, 148, 210, 0.15);
    color: #1d94d2;
}

.badge-secondary {
    background: rgba(108, 125, 141, 0.15);
    color: #6c7d8d;
}

/* Responsive adjustments for video banners */
@media (max-width: 992px) {
    .hero-control {
        width: 48px;
        height: 48px;
    }

    .hero-control span {
        font-size: 1.2rem;
    }

    .hero-control.carousel-control-prev {
        left: 1rem;
    }

    .hero-control.carousel-control-next {
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-control {
        width: 42px;
        height: 42px;
        border-width: 1.5px;
    }

    .hero-control span {
        font-size: 1rem;
    }

    .hero-control.carousel-control-prev {
        left: 0.75rem;
    }

    .hero-control.carousel-control-next {
        right: 0.75rem;
    }

    .hero-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .hero-indicators button {
        width: 10px;
        height: 10px;
    }

    .hero-indicators button.active {
        width: 28px;
    }
}

/* Animation for video play button overlay (if needed) */
@keyframes videoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.video-play-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.video-play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    backdrop-filter: blur(8px);
    animation: videoPulse 2s infinite;
}

/* Brand color accents for buttons in admin forms */
.btn-dark {
    background: #1d2b38;
    border-color: #1d2b38;
    transition: all 0.2s ease;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #1d94d2, #8dc63f);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(29, 148, 210, 0.25);
}

.form-control:focus {
    border-color: rgba(29, 148, 210, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(29, 148, 210, 0.15);
}

/* Additional styling for better banner form UX */
.form-label {
    font-weight: 600;
    color: #1d2b38;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d7e2ec;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:hover {
    border-color: rgba(29, 148, 210, 0.3);
}