.my-navbar:hover {
    transition: 0.8s;
    letter-spacing: 1.2px;
}

/* @media(max-width:407px){
    .my-navbar h3{
        font-size: 16px!important;
    }
} */


.nav-fields {
    position: fixed;
    bottom: 0%;
    background-color: #0092df;
    /* position:absolute;  */
    /* right:29px;   */
    z-index: 1000;
    /* top: 80px;   */
}

.fields {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.space {
    margin-top: 3%;
}

/* @media(max-width:7) */

@media(max-width:510px) {
    .fields {
        display: flex;
        justify-content: space-evenly;
        background-color: #0092df;
    }

    .space {
        margin-top: 12%;
    }
}

.fields a {
    font-size: 1.3rem;
    /* font-weight: bold; */
    color: rgba(0, 0, 0, 0.922);
}

.carousel-item img {
    filter: brightness(40%);

}

.about-acd {
    text-align: justify;
    font-size: 23px;
}

.about-rav {
    letter-spacing: 2px;

}

.about-sch {
    font-size: 21px;
}

.class-card {

    height: 115px;
    background-color: rgb(255, 255, 255);
    /* background-color: rgb(255, 234, 0); */
    border-radius: 10px;
    box-shadow: 4px 4px 5px lightblue;

}

.class-card a {
    font-size: 1.2rem;
    text-align: center;
    color: black;
    /* padding-top: 12%; */
}

.class-card p {
    text-align: center;
}

.class-card:hover {
    transition: 0.4s;
    scale: 1.02;
    background-color: #0092df;
}

.ask {
    font-family: Georgia, 'Times New Roman', Times, serif;
    letter-spacing: 1px;
    font-size: 22px;
}

.class-card a:hover {
    color: aliceblue;
}

.better-Tom {
    font-family: 'Times New Roman', Times, serif;
    color: rgb(249, 249, 249);
    padding-bottom: 30%;
    letter-spacing: 3px;
    font-size: 2rem;
    /* -webkit-backdrop-filter: contrast(150%);
    backdrop-filter: contrast(150%);
    font-weight: bolder; */
}

.youtube {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-decoration: underline black !important;
}

.class-card img {
    width: 75px !important;
}

@media(max-width:576px) {
    .my-navbar h3 {
        font-size: 0.9rem !important;
    }

    .fields a {
        font-size: 1.4rem;
    }

    .about-acd {
        font-size: 18px;
    }

    .about-sch {
        font-size: 18px !important;
    }
}


@media(max-width:360px) {
    .my-navbar h3 {
        font-size: 1.2rem !important;
    }

    .fields a {
        font-size: 1rem;
    }

    .about-acd {
        font-size: 16px;
    }

    .about-acd {
        font-size: 16px !important;
    }

    .space {
        margin-top: 16%;
    }

}

@media(max-width:500px) {
    #contactForm input {
        width: 15rem !important;
    }

    #contactForm textarea {
        width: 15rem !important;
    }
}

@media(max-width : 825px) {
    /* .carousel-item img{
        height: 420px!important;
        width: 100%;
    } */

    .about-acd {
        font-size: 20px;
    }
}

@media(max-width : 520px) {
    .class-card img {
        min-width: 75px;
    }
}

@media(max-width : 270px) {
    .my-navbar h3 {
        font-size: 0.6rem !important;
    }
}

@media(max-width : 453px) {
    .class-card img {
        min-width: 75px;
    }
}

/* @media(max-width : 991px){
    .class-card img{
        min-width: 30px;
    }
} */

@media(max-width : 420px) {
    /* .carousel-item img{
        height: 270px!important;
        width: 100%;
    } */

    .about-sch {
        font-size: 16px !important;
    }

    .space {
        margin-top: 14%;
    }

    .my-navbar h3 {
        font-size: 1.1rem !important;
    }
}

@media(max-width : 320px) {
    /* .carousel-item img{
        height: 210px!important;
        width: 100%;
    } */

    .space {
        margin-top: 18%;
    }
}

@media(max-width : 340px) {
    .my-navbar h3 {
        font-size: 1rem !important;
    }
}

@media(max-width : 294px) {
    .my-navbar h3 {
        font-size: 0.9rem !important;
    }
}

@media(max-width : 250px) {
    /* .carousel-item img{
        height: 140px!important;
        width: 100%;
    } */

    .about-acd {
        font-size: 15px;
    }
}

@media(max-width:767px) {
    .add {
        font-size: 20px;
    }

    .class-card img {
        width: 30% !important;
    }
}

.about-section {
    background-color: white;
    padding-bottom: 70px;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #0092df;
}

.about-section p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 20px;
}

.cta-button {
    background-color: #007acc;
    color: white;
    padding: 12px 25px;
    font-size: 0.8rem;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 30px;
}

.cta-button:hover {
    background-color: #0092df;
    text-decoration: none;
    color: #000;
}

.banner-container {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.banner {
    min-height: 200px;
    /* You might want to adjust this depending on how tall you want it */
    height: 150px;
    /* Optional: set a specific height */
    margin-top: 10%;
    background-image: url(../class-image/banner.avif);
    background-size: cover;
    /* Ensures the image covers the container */
    background-position: center center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
}

.contact {
    min-height: 200px;
    /* You might want to adjust this depending on how tall you want it */
    height: 150px;
    /* Optional: set a specific height */
    margin-top: 10%;
    background-image: url(../img/banner/contact.avif);
    background-size: cover;
    /* Ensures the image covers the container */
    background-position: center center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    width: 100%;
}

.about {
    min-height: 200px;
    /* You might want to adjust this depending on how tall you want it */
    height: 150px;
    /* Optional: set a specific height */
    margin-top: 10%;
    background-image: url(../img/banner/about-us.png);
    background-size: cover;
    /* Ensures the image covers the container */
    background-position: center center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    width: 100%;
}

.privacy {
    min-height: 200px;
    /* You might want to adjust this depending on how tall you want it */
    height: 150px;
    /* Optional: set a specific height */
    margin-top: 10%;
    background-image: url(../img/banner/privacy.png);
    background-size: cover;
    /* Ensures the image covers the container */
    background-position: center center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    width: 100%;
}

.gallery-section {
    padding: 60px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Fixing the image dimensions */
.gallery-item img {
    width: 100%;
    height: 250px;
    /* Fixed height for the images */
    object-fit: cover;
    /* Ensures the image covers the entire container without distortion */
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.7;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.gallery-heading span {
    color: #007bff;
}

/* Styling for the gallery grid */
.gallery-item {
    margin-bottom: 30px;
    /* Add some space between the rows of images */
}