/* ============================= */
/*         Banner Section        */
/* ============================= */

.banner-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
    z-index: 100;
    background-color: #f8f9fa;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================= */
/*         Banner Slides         */
/* ============================= */

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide.fade-out {
    opacity: 0;
    z-index: 1;
}

/* Image Styling */
.banner-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;
    object-position: center;

    display: block;
}

/* ============================= */
/*        Donate Button          */
/* ============================= */

.banner-donate-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-family: 'Anton', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
    z-index: 200;
}

.banner-donate-btn:hover {
    background: linear-gradient(135deg, #1a4480, #2c5aa0);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

.banner-donate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* ============================= */
/*     Large Screen Optimization */
/* ============================= */

@media (min-width: 1400px) {
    .banner-section {
        height: 700px;
    }

    .banner-slide img {
        max-width: 100%;
        max-height: 100%;
    }
}

/* ============================= */
/*        Tablet & Mobile        */
/* ============================= */

@media (max-width: 768px) {

    .banner-section {
        height: 320px;
    }

    .banner-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .banner-slide img {
        max-width: 95%;
        max-height: 95%;
    }

    .banner-donate-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 16px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {

    .banner-section {
        height: 260px;
    }

    .banner-slide img {
        max-width: 95%;
        max-height: 95%;
    }

    .banner-donate-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 14px;
        letter-spacing: 0.8px;
    }
}

/* ============================= */
/*          Animations           */
/* ============================= */

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes crossFade {
    0% { opacity: 0; }
    15% { opacity: 0; }
    50% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

.banner-slide.fade-in {
    animation: fadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide.fade-out {
    animation: fadeOut 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide.crossfade {
    animation: crossFade 15s ease-in-out;
}
