.bg-main {
    background: linear-gradient(to right, rgb(212, 0, 255), rgb(29, 107, 128));
}

/* Ensure images fit */
.carousel-item img {
    height: 100vh;
    object-fit: cover;
    transition: transform 6s ease-in-out;
}

/* Zoom effect for images */
.img-zoom {
    transform: scale(1.1);
}

.carousel-item.active .img-zoom {
    transform: scale(1);
}

/* Text animations */
.carousel-caption {
    top: 30%;
    transform: translateY(-50%);
    position: absolute;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Animate text when slide is active */
.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Individual text animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Apply animation when active */
.carousel-item.active .animate-text {
    opacity: 1;
    transform: translateY(0);
}

/* Button styles */
.carousel-caption .btn {
    padding: 10px 20px;
    font-size: 18px;
    margin-top: 10px;
}

@media (min-width:767px) {
    #heroCarousel {
        margin-top: -26px;
    }

    .carousel-caption {
        width: 70%;
        max-height: 21rem;
    }

    .carousel-item img {
        height: 100vh;
        /* Full height */
    }
}

@media (max-width:767px) {
    .carousel-caption {
        width: 82%;
    }
    .carousel-item img {
        height: 60vh;
        /* Full height */
    }
}

.carousel-item img {
    width: 100%;
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
    object-position: center;
    /* Centers the image */
}

/* Background gradient */
.bg-gradient {
    background: linear-gradient(to right, #6a1b9a, #9c27b0);
    color: white;
}

/* Image card effect */
.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
}

.image-card img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-card:hover .overlay {
    opacity: 1;
}

/* Glassmorphism button */
.btn-glass {
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: 0.3s ease-in-out;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}


/* LIVE TYPING STYLE */
.welcome-hero {
    background: linear-gradient(135deg, #94c3d1, #dabde6);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Looping Text Animation */
.animated-text::after {
    content: "WELCOME TO ST. GETRUDE PRE AND PRIMARY SCHOOL";
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid white;
    animation: switchText 54s infinite;
}

/* Keyframes to Alternate Between Texts */
@keyframes switchText {
    0% {
        content: "WELCOME TO ST. GETRUDE PRE AND PRIMARY SCHOOL";
        width: 0%;
    }

    30% {
        width: 100%;
    }

    45% {
        width: 100%;
        opacity: 1;
    }

    50% {
        opacity: 0;
        width: 100%;
    }

    55% {
        content: "EDUCATION AND GUIDANCE THAT WINS THE FUTURE";
        opacity: 0;
        width: 0%;
    }

    80% {
        opacity: 1;
        width: 100%;
    }

    95% {
        width: 100%;
        opacity: 1;
    }

    100% {
        opacity: 0;
        width: 100%;
    }
}

/* END LIVE TYPING */

/* IN MOBILE WELCOME */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-heading {
    animation: fadeInSlide 1s ease-in-out;
}

/* END IN MOBILE WELCOME */


/* TESTMONIAL */
.testimonial {
    margin: 0 20px 50px;
    position: relative;
    z-index: 1;
}

.testimonial .pic {
    display: inline-block;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 15px 15px 0;
}

.testimonial .pic img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.testimonial .testimonial-profile {
    display: inline-block;
    position: relative;
    top: 15px;
}

.testimonial .title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #2f2f2f;
    text-transform: capitalize;
    margin: 0 0 7px 0;
}

.testimonial .post {
    display: block;
    font-size: 14px;
    color: #5d7aa7;
}

.testimonial .description {
    padding: 20px 22px;
    background: #1f487e;
    font-size: 15px;
    color: #fff;
    line-height: 25px;
    margin: 0;
    position: relative;
}

.testimonial .description:before,
.testimonial .description:after {
    content: "";
    border-width: 18px 0 0 18px;
    border-style: solid;
    border-color: #5d7aa7 transparent transparent;
    position: absolute;
    bottom: -18px;
    left: 0;
}

.testimonial .description:after {
    border-width: 18px 18px 0 0;
    left: auto;
    right: 0;
}

.owl-theme .owl-controls {
    margin-top: 10px;
    margin-left: 30px;
}

.owl-theme .owl-controls .owl-buttons div {
    opacity: 0.8;
    background: #fff;
}

.owl-prev:before,
.owl-next:before {
    content: "\f053";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    color: #1f487e;
}

.owl-next:before {
    content: "\f054";
}

/* END TESTMONIAL */



