/* ====================================================================
 * Background Image Slider - Main Banner (Education Meeting Template)
 * File: assets/css/flex-slider.css
 * ==================================================================== */
.main-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}
.bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.bg-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: bgSlideShow 40s infinite;
    transform: scale(1.05);
}

/* 14 items, slot = 40s / 14 = 2.857s each — delay evenly spaced */
.bg-slider-item:nth-child(1)  { animation-delay: 0s;      }  /* pic1  */
.bg-slider-item:nth-child(2)  { animation-delay: 2.857s;  }  /* pic2  */
.bg-slider-item:nth-child(3)  { animation-delay: 5.714s;  }  /* pic3  */
.bg-slider-item:nth-child(4)  { animation-delay: 8.571s;  }  /* pic4  */
.bg-slider-item:nth-child(5)  { animation-delay: 11.429s; }  /* pic5  */
.bg-slider-item:nth-child(6)  { animation-delay: 14.286s; }  /* pic7  */
.bg-slider-item:nth-child(7)  { animation-delay: 17.143s; }  /* pic8  */
.bg-slider-item:nth-child(8)  { animation-delay: 20s;     }  /* pic9  */
.bg-slider-item:nth-child(9)  { animation-delay: 22.857s; }  /* pic11 */
.bg-slider-item:nth-child(10) { animation-delay: 25.714s; }  /* pic15 */
.bg-slider-item:nth-child(11) { animation-delay: 28.571s; }  /* pic17 */
.bg-slider-item:nth-child(12) { animation-delay: 31.429s; }  /* pic18 */
.bg-slider-item:nth-child(13) { animation-delay: 34.286s; }  /* pic19 */
.bg-slider-item:nth-child(14) { animation-delay: 37.143s; }  /* pic20 */

/* TRUE crossfade: fade-out ab agli image ke fade-in ke saath 1s tak
   OVERLAP karta hai (pehle zero-overlap tha, isliye gap dikhta tha) */
@keyframes bgSlideShow {
    0%      { opacity: 0; transform: scale(1.05); }
    2.5%    { opacity: 1; }                         /* fade-in complete (~1s) */
    7.14%   { opacity: 1; transform: scale(1.12); }  /* hold, fade-out shuru yahi se */
    9.64%   { opacity: 0; }                          /* fade-out complete (~1s baad, agli image ke fade-in ke saath overlap) */
    100%    { opacity: 0; }
}

/* Text/content over the slider must sit above it and above the header */
.main-banner .video-overlay {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Keep the site header above the banner so its dropdown menus
   are never hidden behind the slider */
header,
.header-area,
.main-menu,
.navbar {
    position: relative;
    z-index: 999;
}