/**
 * Banner Component Styles - Swiper.js Implementation
 * 
 * Styles for the banner carousel system using Swiper.js with dynamic color customization.
 * 
 * Note: Text colors (hero-title, hero-subtitle) and background colors are applied 
 * via inline styles in the PHP templates to support per-banner customization.
 * Background can be either an image OR a solid color, not both.
 * This file contains only base styles and positioning rules.
 */

/* ============================================
   Swiper Container
   ============================================ */

/**
 * Base swiper container styles
 */
.banner-swiper {
    width: 100%;
    height: auto;
    position: relative;
}

/* ============================================
   Banner Content Positioning
   ============================================ */

/**
 * Ensure banner content is properly positioned
 */
.banner-swiper .swiper-slide .row {
    position: relative;
}

.banner-swiper .swiper-slide .container {
    position: relative;
}

/* ============================================
   Banner Text Styles
   ============================================ */

/**
 * Base styles for banner title and subtitle.
 * Color is applied inline via PHP for dynamic customization.
 * 
 * Text color default: #ffffff (white)
 * Text shadow removed for cleaner look
 */
.banner-swiper .hero-title,
.banner-swiper .hero-subtitle {
    /* Smooth color transitions when colors change */
    transition: color 0.3s ease;
}

.banner-swiper .hero-title {
    font-weight: 700;
    line-height: 1.2;
}

.banner-swiper .hero-subtitle {
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   Swiper Slide Positioning
   ============================================ */

/**
 * Swiper slides use flexbox for perfect vertical and horizontal centering
 */
.banner-swiper .swiper-slide {
    position: relative;
    min-height: 500px; /* Minimum height for banners */
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * Ensure container and row maintain full width within flex context
 */
.banner-swiper .swiper-slide .container,
.banner-swiper .swiper-slide > div {
    width: 100%;
}

/* ============================================
   Swiper Navigation Buttons
   ============================================ */

/**
 * Custom styling for navigation arrows
 */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after {
    font-size: 20px;
}

/* ============================================
   Swiper Pagination
   ============================================ */

/**
 * Custom styling for pagination bullets
 */
.banner-swiper .swiper-pagination {
    bottom: 20px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ffffff;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .banner-swiper .swiper-slide {
        min-height: 300px;
    }
    
    .banner-swiper .swiper-button-prev,
    .banner-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .banner-swiper .swiper-button-prev::after,
    .banner-swiper .swiper-button-next::after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .banner-swiper .swiper-slide {
        min-height: 250px;
    }
    
    .banner-swiper .swiper-button-prev,
    .banner-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    
    .banner-swiper .swiper-button-prev::after,
    .banner-swiper .swiper-button-next::after {
        font-size: 14px;
    }
}
