/* Base Styles with Montserrat font */
.custom-banner,
.custom-banner-title,
.custom-banner-description,
.custom-banner-button,
.custom-banner-terms {
    font-family: 'Montserrat', sans-serif;
}

/* Banner Container */
.custom-banner {
    position: relative;
    width: 100%;
    background-color: #0a1e3a;
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.custom-banner-inner {
    position: relative;
    padding: 30px;
    z-index: 2;
}

.custom-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.custom-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.custom-banner-title {
    font-size: 36px;
    font-weight: 900; /* Extra bold */
    margin: 0 0 10px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.custom-banner-description {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 20px 0;
    color: #e0e0e0;
    max-width: 70%;
}

.custom-banner-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important; /* Force no underline */
    font-weight: 600;
    font-size: 16px;
    color: #ffffff !important; /* Force white text */
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.custom-banner-button:hover,
.custom-banner-button:focus,
.custom-banner-button:active {
    opacity: 0.9;
    color: #ffffff !important; /* Keep text white on all states */
    text-decoration: none !important; /* Keep no underline on all states */
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.custom-banner-terms {
    font-size: 12px;
    color: #aaa;
    margin-top: 20px;
    font-weight: 400;
}

.custom-banner-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    max-width: 150px;
    max-height: 60px;
    z-index: 2;
}

/* Slider Container */
.custom-banners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 15px;
}

.custom-banners-slider-inner {
    position: relative;
    width: 100%;
}

/* Slides */
.custom-banner-slide {
    position: absolute;
    top: 0;
    left: 100%; /* Start offscreen */
    width: 100%;
    display: none;
}

.custom-banner-slide.active {
    position: relative;
    left: 0;
    display: block;
}

/* Ensure banner inside slides have proper styling */
.custom-banner-slide .custom-banner {
    border-radius: 0;
    margin-bottom: 0;
}

/* Pagination Dots */
.banner-pagination {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0 auto;
    width: auto;
    padding: 0 30px;
}

.banner-pagination .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-pagination .dot.active {
    background-color: #fff;
}

/* For single banners with T&C text */
.custom-banner-terms + .banner-pagination {
    bottom: 40px; /* Move higher when terms are present */
}

/* Banner Error Message */
.banner-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-banner-inner {
        padding: 20px;
    }
    
    .custom-banner-title {
        font-size: 22px;
    }
    
    .custom-banner-description {
        font-size: 14px;
        max-width: 100%;
    }
    
    .custom-banner-button {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .custom-banner-logo {
        max-width: 100px;
        bottom: 20px;
        right: 20px;
    }
    
    .banner-pagination {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .custom-banner,
    .custom-banners-slider {
        border-radius: 10px;
    }
    
    .custom-banner-inner {
        padding: 15px;
    }
    
    .custom-banner-title {
        font-size: 18px;
    }
    
    .custom-banner-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .custom-banner-button {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .custom-banner-logo {
        max-width: 80px;
        bottom: 15px;
        right: 15px;
    }
    
    .custom-banner-terms {
        font-size: 10px;
    }
    
    .banner-pagination .dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
}

/* Print styles */
@media print {
    .custom-banners-slider,
    .custom-banner {
        background-color: #fff !important;
        color: #000 !important;
        border: 1px solid #ddd;
    }
    
    .custom-banner-overlay {
        display: none !important;
    }
    
    .custom-banner-title,
    .custom-banner-description {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .custom-banner-button {
        border: 1px solid #000;
        color: #000 !important;
        background: none !important;
        box-shadow: none !important;
    }
    
    .banner-pagination {
        display: none !important;
    }
}