/* ===============================
    Carousel Base Styles
   =============================== */
#myCarousel,
#myCarousel .carousel-inner,
#myCarousel .carousel-item {
    height: 100vh; /* Carousel takes full viewport height */
    width: 100%; /* Carousel takes full viewport width */
    overflow: hidden; /* Hides any content that goes beyond the carousel boundaries */
}

#myCarousel .carousel-item img {
    height: 100%; /* Image takes full height of its carousel item */
    width: 100%; /* Image takes full width of its carousel item */
    object-fit: cover; /* Image will now always cover the area, including on mobile */
    object-position: center; /* Centers the image content */
    display: block; /* Ensures the image behaves as a block element */
}

/* Image Overlay */
.image-overlay {
    position: absolute; /* Positions the overlay relative to its parent carousel item */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1; /* Ensures the overlay is above the image but below the caption */
}

/* Carousel Caption Styles */
.carousel-caption {
    z-index: 10; /* Ensures the caption is above the overlay */
    top: 50%; /* Vertically centers the caption */
    transform: translateY(-50%); /* Adjusts vertical centering precisely */
    bottom: auto; /* Disables default bottom positioning */
    text-align: start; /* Aligns text to the left */
    left: 5%; /* Positions caption 5% from the left */
    right: 5%; /* Positions caption 5% from the right */
    padding: 0; /* Removes default Bootstrap padding */
}

.carousel-caption .custom-carousel-heading,
.carousel-caption .custom-carousel-paragraph {
    margin: 0; /* Removes default margins */
    padding: 0; /* Removes default paddings */
}

.carousel-caption .custom-carousel-heading {
    font-size: 4.2em; /* Large font for headings */
}
.carousel-caption .custom-carousel-paragraph {
    font-size: 1.5em; /* Smaller font for paragraphs */
}

/* ===============================
    Responsive Adjustments
   =============================== */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    /* Global body/html overflow fix */
    html, body {
        overflow-x: hidden;
    }

    #myCarousel {
        height: 100vh; /* Maintain full viewport height */
        width: 100vw; /* Use viewport width for full mobile screen adherence */
    }

    /* **Fix:** Remove the object-fit: contain rule to make the image fill the screen */
    #myCarousel .carousel-item img {
        object-fit: cover; /* This rule ensures no black space is visible */
    }

    #myCarousel .carousel-item {
        background-color: transparent; /* Remove the black background */
        transition: opacity 0.8s ease-in-out; 
    }

    /* Caption background for readability on mobile */
    #myCarousel .carousel-caption {
        background: rgba(0, 0, 0, 0.4);
        padding: 15px;
        border-radius: 8px;
    }

    /* Adjust font sizes for mobile readability */
    .carousel-caption .custom-carousel-heading {
        font-size: 2em; 
    }
    .carousel-caption .custom-carousel-paragraph {
        font-size: 1em; 
    }

    /* Example of dedicated class for section padding */
    .section-padding {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
     .custom-text {
        font-family: Georgia, serif; /* Example: change font for mobile */
        font-size: 0.4rem; /* Slightly smaller text on mobile */
        line-height: 1.2; /* Tighter line height */
        padding: 0 10px; /* Add a bit of padding so text doesn’t touch screen edges */
        text-align: left; /* Optional: align left for better mobile readability */
        opacity: 0.8; /* Makes the text 50% transparent */
    }
}

/* Tablet (min-width: 768px and max-width: 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet specific font size adjustments */
    .carousel-caption .custom-carousel-heading {
        font-size: 3.5em; 
    }
    .carousel-caption .custom-carousel-paragraph {
        font-size: 1.2em; 
    }
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 5px #4448f2;
}

/* Testimonial card container scrollbar hiding */
#cardContainer::-webkit-scrollbar {
    display: none;
}
#cardContainer {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    padding-left: 50px;
    padding-right: 50px;
}



.learning-curriculum-section {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

.learning-curriculum-section h2 {
    font-size: 1.5rem;
    color: #1e1e2f;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.learning-curriculum-section p {
    font-size: 1.125rem;
    color: #555;
    max-width: 1100px;
    margin: 0 auto 30px;
    line-height: 1.5;
    text-align: justify;
    font-weight: 400;
}

.learning-curriculum-section .button-group {
    margin-bottom: 20px;
}

.learning-curriculum-section .button-group button {
    background-color: #0056b3; /* match your blue theme */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.learning-curriculum-section .button-group button:hover {
    background-color:rgb(16, 71, 252);
    transform: translateY(-2px);
}


/* Default style for laptop/desktop */
.custom-text {
    font-family: 'Merriweather', serif;
    text-align: center;
    line-height: 1.7;
}



/* WhatsApp Float Button */
.whatsapp-button{
    position:fixed;
    right:15px;
    buttom: 15px
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* WhatsApp green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float i {
    margin-top: 0;
}

