/* public/css/banner.css */

/* Banner Section */
.banner {
    width: 100%;
    padding: 40px 0;
    position: relative;
}

/* Banner Rows Container */
.banner-rows-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: transform 0.5s ease;
}

/* Banner Row */
.banner-row {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-row:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Banner Content - Flex layout */
.banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    margin-left: 2em;
    margin-right: 2em;
}

.banner-row:nth-child(even) .banner-content {
    flex-direction: row-reverse;
}

/* Image Column */
.column-image {
    flex: 0 0 50%;
    min-width: 0;
}

/* Image Gallery - Simple video-like transitions */
.image-gallery {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--dark);
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-image.active {
    opacity: 1;
}

/* Text Column */
.column-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content {
    transition: transform 0.3s ease;
}

.banner-row:hover .text-content {
    transform: scale(1.02);
}

.title {
    font-size: var(--font-size-large);
    font-weight: 700;
    color: var(--light);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

.banner-row:hover .title {
    transform: scale(1.03);
}

.title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-top: 10px;
    transition: width 0.3s ease;
}

.banner-row:hover .title::after {
    width: 80px;
}

.long {
    margin-bottom: 25px;
}

.banner-row:hover .long {
    transform: scale(1.01);
}

/* Link Button */
.link-container {
    display: inline-block;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-family: var(--font-family);
    cursor: pointer;
}

.banner-row:hover .info-link {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--light);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateX(-5px);
}

/* Banner Pagination */
.banner-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-dots {
    display: flex;
    gap: 12px;
}

.pagination-dot {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-dot.active {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-dot-visual {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pagination-dot.active .pagination-dot-visual {
    background: var(--primary);
    transform: scale(1.2);
}

.pagination-dot:hover .pagination-dot-visual {
    background: var(--primary);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-content {
        gap: 30px;
        padding: 25px;
    }
    
    .image-gallery {
        height: 250px;
    }
    
    .long {
        line-clamp: 6;
        -webkit-line-clamp: 6;
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .banner {
        padding: 20px 0;
    }
    
    .banner-rows-container {
        gap: 30px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }
    
    .banner-row:nth-child(even) .banner-content {
        flex-direction: column;
    }
    
    /* Mobile - Responsive image height */
    .column-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .image-gallery {
        height: 50vh;
        max-height: 300px;
        min-height: 200px;
    }
    
    /* Text adjustments */
    .column-text {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .title::after {
        margin: 10px auto 0;
    }
    
    .info-link {
        align-self: center;
    }
    
    .long {
        /* text-align: center; */
        line-clamp: 8;
        -webkit-line-clamp: 8;
    }
    
    /* Pagination adjustments */
    .banner-pagination {
        margin-top: 30px;
        padding-top: 15px;
    }
    
    .pagination-dot {
        width: 28px;
        height: 28px;
    }
    
    .pagination-dot-visual {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 16px;
        gap: 20px;
    }
    
    .image-gallery {
        height: 45vh;
        max-height: 250px;
        min-height: 180px;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    .long {
        font-size: var(--font-size-small);
        line-clamp: 10;
        -webkit-line-clamp: 10;
    }
    
    .info-link {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .pagination-dot {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility */
.banner-row:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.pagination-dot:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}