/* =========================================
   HOMEPAGE SPECIFIC STYLES (index.css)
========================================= */

/* --- HERO SLIDER --- */
.hero-slider-section {
    position: relative;
    padding: 0;
    margin: 0;
}

.main-hero-carousel .carousel-item {
    height: 85vh; /* Takes up 85% of the viewport height */
    min-height: 600px;
    background-color: var(--dark);
    position: relative;
}

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

/* Deep purple gradient overlay to make text readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(126, 34, 206, 0.7) 100%);
    z-index: 2;
}

.main-hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 10%;
    right: 10%;
    z-index: 3;
    text-align: center;
    padding: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #e9d5ff;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .main-hero-carousel .carousel-item { height: 75vh; min-height: 500px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* Custom Carousel Controls */
.hero-control-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.carousel-control-prev:hover .hero-control-icon,
.carousel-control-next:hover .hero-control-icon {
    background: var(--primary);
}

/* --- SEARCH / QUICK LINKS OVERLAP --- */
.search-bar-overlap {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(88, 28, 135, 0.08);
    padding: 35px;
    border: 1px solid rgba(126, 34, 206, 0.1);
}
.quick-link-card {
    transition: all 0.3s ease;
    border: 1px solid #f3e8ff;
    border-radius: 16px;
    cursor: pointer;
}
.quick-link-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(126, 34, 206, 0.12);
}

/* --- STATS SECTION --- */
.stat-box { border-right: 1px solid #e9d5ff; }
.stat-box:last-child { border-right: none; }
@media (max-width: 768px) { 
    .stat-box { border-right: none; border-bottom: 1px solid #e9d5ff; padding-bottom: 20px; margin-bottom: 20px; } 
}

/* --- MARQUEE ANIMATION --- */
.marquee-wrapper { overflow: hidden; white-space: nowrap; position: relative; padding: 30px 0; }
.marquee-track {
    display: inline-flex;
    gap: 25px;
    animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { width: 320px; white-space: normal; }

/* --- GALLERY CAROUSEL OVERRIDES --- */
.edu-carousel-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(126, 34, 206, 0.15);
    border: 8px solid white;
}
.edu-carousel-wrapper .carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.85);
}
.edu-carousel-wrapper .carousel-caption {
    background: rgba(30, 27, 75, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    bottom: 30px;
    left: 10%;
    right: 10%;
}

/* --- VIDEO TESTIMONIAL --- */
.video-testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(88, 28, 135, 0.08);
    border: 1px solid #f3e8ff;
    overflow: hidden;
}
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 10px rgba(126, 34, 206, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}
.play-btn-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 15px rgba(126, 34, 206, 0.4);
}

/* --- FEATURE CARDS --- */
.feature-card {
    background: #fff; border-radius: 20px; padding: 40px;
    box-shadow: 0 10px 30px rgba(88, 28, 135, 0.04);
    border: 1px solid #f3e8ff; height: 100%;
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(126, 34, 206, 0.1); }

.avatar-img {
    width: 65px; height: 65px; border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; box-shadow: 0 5px 15px rgba(126, 34, 206, 0.15);
}

/* --- MOBILE RESPONSIVE BUTTONS & HERO FIXES --- */
@media (max-width: 576px) {
    .hero-caption-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }
    .hero-caption-buttons .btn {
        width: 100%;
        padding: 15px 20px !important;
        font-size: 1rem !important;
    }
    .hero-title { 
        font-size: 2.2rem !important; 
    }
    .hero-subtitle { 
        font-size: 1rem !important; 
        margin-bottom: 1.5rem !important;
    }
}