/* mobile navbar */
/* Custom Font and base styles (Inter/sans-serif equivalent in Bootstrap) */
body {
    font-family: 'Poppins', sans-serif;
    background-color: white;
    color: #343a40;
    line-height: 1.6;
}

/* Custom Styles for Nav Hover Animation */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #0d6efd;
    /* Primary blue for highlight */
    transition: width 0.3s;
    margin-top: 5px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Banner Carousel Styling - FULL VIEWPORT HEIGHT & FADE ANIMATION */
.hero-slide {
    /* Full Viewport Height (vh) for a dramatic, full-screen banner */
    height: 100vh;
    min-height: 500px;
    /* Ensure a minimum size */

    /* CRUCIAL: Ensure the banner is fully filled by the image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    position: relative;
    background-color: #000;
    /* Dark background behind images for contrast */

    /* Flexbox centering (kept for future content, or to center the overlay/image) */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay for visual depth on background image */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Darker overlay for dramatic look */
    z-index: 5;
}

/* Result Card Styling */
.result-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 1rem;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile fixes for Bootstrap collapse menu (Side menu slide-in) */
@media (max-width: 991px) {

    /* Crucial fix: The hero section must start directly below the header */
    #hero {
        margin-top: 0 !important;
        /* Remove any unwanted top margin */
    }

    .hero-slide {
        /* On small screens, calculate the height to perfectly fit below the fixed header */
        height: calc(100vh - 65px);
        /* Adjusted height calculation */
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        /* Starts from the very top */
        bottom: 0;
        left: 0;
        z-index: 1050;
        width: 80%;
        /* Slightly wider panel */
        background-color: #fff;
        padding: 1.5rem;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
        /* Added shadow */
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }
}

/* Hover link styles for Footer */
.hover-link:hover {
    color: var(--bs-primary) !important;
    transition: color 0.2s ease-in-out;
}

/* ****************************************************************** */
/* end */
.academy-name1{
    font-size: 25px;
}
.academy-name2{
    font-size: 15px;
}

@media (max-width: 500px) {
    .academy-name1{
        font-size: 20px;
    }
    .academy-name2{
        font-size: 13px;
    }
    .carousel-inner{
        max-height:300px;
        width:100%;
    }
    .hero-img{
        object-fit : contain;
    }
    #heroCarousel{
        max-height:40vh;    
    }
}


/* New CTA Section */
    .new-cta-section {
        background: linear-gradient(rgb(215 192 149), rgb(233 207 160 / 80%)), url('https://via.placeholder.com/1920x400/c9a96e/ffffff?text=Your+Success+Starts+Here') center/cover no-repeat;
        color: var(--primary-color);
        padding: 80px 0;
        text-align: center;
    }
    
    .new-cta-section h2 {
        color: var(--primary-color);
        margin-bottom: 20px;
    }
    
    .new-cta-section p {
        color: var(--primary-color);
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
    
    .btn-cta-secondary {
        background-color: var(--primary-color);
        color: white;
        border-radius: var(--border-radius);
        padding: 12px 30px;
        font-weight: 500;
        transition: all 0.3s;
        border: 2px solid var(--primary-color);
    }
    
    .btn-cta-secondary:hover {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }