/* Banner Section - Grid Layout */
/* Nota: O grid principal está definido em .banner-section mais abaixo */

.banner-main-slider {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.banner-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 400px;
}

.banner-side-item {
    flex: 1;
    height: 196px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-side-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-side-item:empty::before {
    content: 'Banner Lateral';
    color: #999;
    font-size: 14px;
    text-align: center;
}

.banner-sidebar:empty {
    display: none;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-nav-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-nav-btn i {
    font-size: 24px;
    color: #ee4d2d;
}

.banner-nav-btn.prev {
    left: 16px;
}

.banner-nav-btn.next {
    right: 16px;
}

.banner-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.banner-indicator.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* Responsive Banner */
@media (max-width: 768px) {
    .banner-container {
        grid-template-columns: 1fr;
    }

    .banner-main-slider {
        min-height: 250px;
    }

    .banner-carousel {
        min-height: 250px;
    }

    .banner-sidebar {
        flex-direction: row;
        min-height: 150px;
    }

    .banner-nav-btn {
        width: 36px;
        height: 36px;
    }

    .banner-nav-btn i {
        font-size: 20px;
    }

    .banner-nav-btn.prev,
    .banner-nav.prev {
        left: 8px;
    }

    .banner-nav-btn.next,
    .banner-nav.next {
        right: 8px;
    }
}

/* Side Banners */
.side-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 300px;
}

.side-banner {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 146px;
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-banner a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.side-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-banner-placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.side-banner-placeholder:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Banner Nav Alternative Classes */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-nav i {
    font-size: 20px;
    color: #ee4d2d;
}

.banner-nav.prev {
    left: 16px;
}

.banner-nav.next {
    right: 16px;
}

/* Banner Section Layout for index2.php */
.banner-section {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.banner-section > .banner-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.banner-section .banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 4px;
    overflow: hidden;
}

/* Posicionar botões de navegação dentro do banner-container */
.banner-section .banner-nav {
    z-index: 20;
}

.banner-section .banner-nav.prev {
    left: 10px;
}

.banner-section .banner-nav.next {
    right: 10px;
}

.banner-section .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-section .banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-section .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #1a1a1a;
}

.banner-section .banner-slide a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.banner-section .banner-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

@media (max-width: 768px) {
    .banner-section {
        grid-template-columns: 1fr;
    }

    .side-banners {
        flex-direction: row;
        height: 150px;
    }

    .banner-section > .banner-container,
    .banner-section .banner-slider {
        min-height: 200px;
    }

    .banner-nav {
        width: 32px;
        height: 32px;
    }

    .banner-nav i {
        font-size: 16px;
    }
}
