html {
    font-size: clamp(10px, 0.75vw, 16px);
}
html {
    font-size: 16px;
}

@media (max-width: 1600px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1366px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 1280px) {
    html {
        font-size: 12px;
    }
}

@media (min-width: 2200px) {
    html {
        font-size: 18px;
    }
}
:root {
    --white-color: rgba(255,255,255,1);
    --primary-color: rgba(5,5,80,1);
    --secondary-color: rgba(167,3,3,1);
    --main-font: 'Garamond';
    --second-font: 'Arial Narrow';
}

body {
    background: var(--primary-color);
    margin: 0 0 0 0;
    font-family: var(--second-font);
}

.navbar {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    position: fixed;
    width: 100%;
    top: 0;
    height: 9rem;
    left: 0;
    z-index: 20;
    transition: .5s;
    background: white;
    clip-path: polygon(20% 0%,80% 0%,100% 0%,100% 80%,80% 100%,20% 100%,0% 80%,0% 0%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}



.nested-nav {
    transform: translateY(-40px);
}


    .nested-nav .nav .item a {
        padding: .5rem .75rem;
        line-height: 1.1;
    }


.nav {
    margin-left: 20rem;
    align-content: center;
    align-items: center;
    text-align: center;
    vertical-align: top;
}



.logo-img {
    width: 14rem; /* ✅ set proper desktop size */
    height: 8rem;
    display: block;
}

.item a {
    margin: 20px;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    text-align: center;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    border: 5px solid var(--secondary-color);
    box-shadow: 8px 8px 8px var(--primary-color);
    text-align: center;
}

    .item a:before {
        bottom: -0.5rem;
        left: 0px;
        width: 100%;
        height: 2px;
        background: var(--secondary-color);
        box-shadow: 1px 1px 1px #000;
        transform: scaleX(1);
        transition: 400ms cubic-bezier(0.7, -0.6, 0.3, 1.2) transform;
    }

    .item a:hover {
        text-shadow: 1px 1px 1px #000;
        letter-spacing: 5px;
    }

        .item a:hover:before {
            transform: scaleX(1);
        }


.subscribe-form {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

    .subscribe-form .circular-input,
    .subscribe-form .btn-subscribe {
        display: inline-block;
    }


    .subscribe-form .circular-input {
        flex: 1 1 auto;
        min-width: 0;
        width: 18rem;
        border-radius: 40%;
        border: 5px solid #ccc;
        text-align: center;
    }

    .subscribe-form .btn-subscribe {
        width: 7rem;
        height: 2rem;
        align-items: center;
        justify-content: center;
        background: var(--secondary-color);
        color: white;
    }

        .subscribe-form .btn-subscribe:hover {
            width: 7rem;
            background: var(--primary-color);
            color: white;
        }


    .subscribe-form .validation-summary, .sub-validate {
        position: absolute;
        top: 2.5rem; /* below form */
        right: 18rem; /* align to right cleanly */
        width: auto; /* ✅ critical: prevent stretching */
        max-width: 200px; /* optional: control size */
        white-space: nowrap; /* ✅ prevent wrapping expansion */
        margin: 0;
        line-height: 1rem;
        font-size: 1.2rem;
        font-weight: bold;
    }

.validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
}




.back-to-top {
    margin: 0;
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 2rem;
    text-align: center;
    vertical-align: central;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
    visibility: hidden;
    z-index: 9999;
}


    .back-to-top.is-visible {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        transition-delay: 0s;
        color: #fff;
    }



.whatsapp {
    position: fixed;
    right: 4rem;
    bottom: 8rem;
    width: 10px;
    height: 10px;
    color: var(--white-color);
    font-size: 3.8rem;
    text-align: center;
    vertical-align: central;
    cursor: pointer;
    z-index: 9999;
}


.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-md-square {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    margin-top: 1rem;
}

    .btn-square:hover,
    .btn-sm-square:hover,
    .btn-lg-square:hover,
    .btn-md-square:hover {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: white;
        width: 40px;
        height: 40px;
        margin-top: 1rem;
    }

.btn-secondary {
    margin-top: 1rem;
    width: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
}

    .btn-secondary:hover {
        margin-top: 1rem;
        width: 12rem;
        background: var(--primary-color);
        color: white;
    }



.carousel {
    height: 50rem; /* ✅ control total height */
    overflow: hidden;
}

.carousel-caption {
    top: 3rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


.carousel-item img {
    height: 100%;
    object-fit: cover; /* ✅ keeps image nice without distortion */
}

.carousel h2 {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 5rem;
    font-weight: bold;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    text-align: center;
}


.carousel h3 {
    margin-right: 1rem;
    font-size: 1.5rem;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    width: 60rem;
    text-align: justify;
    line-height: 2.5rem;
    line-height: 1.8;
}


.carousel a {
    margin-top: 3rem;
    width: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    font-size: 2rem;
    border-radius: 40px;
}





.about {
    align-content: center;
    text-align: center;
}

    .about .about-item {
        margin-top: 0rem;
        width: 25rem;
        align-content: center;
        align-items: center;
    }

    .about .about-inner {
        position: relative;
        height: 90%;
        margin: 0;
        background: var(--secondary-color);
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    }


.btn-about {
    margin-top: 1rem;
    margin-bottom: 10rem;
    width: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    font-size: 2rem;
}

.about h3 {
    margin-right: 1rem;
    font-size: 1.7rem;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    width: 40rem;
    text-align: justify;
    line-height: 2.5rem;
}

.about h2 {
    margin-left: 1.5rem;
    margin-right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    text-align: center;
}


.about h4 {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    font-size: 1.3rem;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    width: 100%;
    text-align: center;
}




/*This datalist general header across small thead website*/
h1 {
    font-family: var(--main-font);
    color: var(--white-color);
    text-align: center;
    background: var(--secondary-color);
    font-size: 3rem;
}

/*All containers must move 9rem down from the top to justify with the height of the header*/
#service, #about, #contact {
    scroll-margin-top: 9rem;
}




.service {
    align-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

    .service .service-item {
        margin-top: 4rem;
    }

    .service .service-inner {
        position: relative;
        height: 60%;
        margin: 0;
        margin-top: 10px;
        background: var(--secondary-color);
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    }

        .service .service-inner::before {
            position: absolute;
            content: "";
            width: 100%;
            height: 0;
            left: 0;
            bottom: 0;
            transition: 1s;
            background: var(--primary-color);
        }

        .service .service-inner:hover::before {
            height: 100%;
            top: 0;
        }

    .service .service-item img {
        margin-top: -45px;
        padding-left: 0;
    }

    .service .service-item * {
        position: relative;
        transition: .5s;
        z-index: 1;
    }

    .service .row {
        justify-content: center;
    }



    .service a {
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: white;
        width: 10rem;
        height: 40px;
        margin-top: auto;
    }

        .service a:hover {
            align-items: center;
            justify-content: center;
            background: var(--secondary-color);
            color: white;
            width: 10rem;
            height: 40px;
            margin-top: auto;
        }





/* Client Area*/

:root {
    --marquee-speed: 30s;
    --marquee-gap: 3rem;
    --brand-item-height: 56px;
}


.brand-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
    margin-bottom: 10rem;
}


.brand-track {
    display: inline-flex;
    align-items: center;
    gap: var(--marquee-gap);
    animation: marquee var(--marquee-speed) linear infinite;
    will-change: transform;
    transform: translateZ(0);
    background: var(--white-color);
    vertical-align: central;
}


.brand-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    vertical-align: central;
}


    .brand-item img {
        height: var(--brand-item-height);
        width: auto;
        height: 5rem;
        display: block;
        object-fit: contain;
        filter: grayscale(0);
        transition: filter .2s ease, transform .2s ease;
    }


    .brand-item:hover img {
        transform: scale(1.04);
    }


.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}


@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



.people .team-item {
    width: 25rem;
    height: 500px;
    border-radius: 10px;
    margin-top: 120px;
    margin-bottom: 5rem;
    background: var(--secondary-color);
}

    .people .team-item::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 0;
        bottom: 0;
        left: 0;
        border-radius: 10px;
        background: var(--primary-color);
        z-index: 2;
        transition: 0.5s;
    }

    .people .team-item:hover::after {
        height: 100%;
    }

    .people .team-item .team-content {
        position: relative;
        z-index: 5;
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 20px;
    }

    .people .team-item .team-img {
        width: 120px;
        height: 120px;
        margin: 15px auto 20px auto;
        overflow: hidden;
        border-radius: 50%;
    }

        .people .team-item .team-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
            background: #fff;
        }




    .people .team-item:hover .team-img img {
        transform: scale(1.1);
    }

.people .expert-info {
    text-align: center;
    min-height: 130px;
}

.people h2 {
    font-size: 2rem;
    color: var(--white-color);
    font-family: var(--second-font);
    margin-bottom: 10px;
}

.people h3 {
    font-size: 1.4rem;
    color: var(--white-color);
    font-family: var(--second-font);
    margin-bottom: 10px;
}

.people h4 {
    font-size: 1.1rem;
    color: var(--white-color);
    font-family: var(--second-font);
    margin-bottom: 0;
}

.people .team-social {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
}

    .people .team-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
    }









.admin {
    margin-top: 20rem;
}

    .admin a {
        margin-top: 3rem;
        margin-bottom: 1rem;
        width: 20rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: gray;
        color: white;
        font-size: 2rem;
    }

        .admin a:hover {
            margin-top: 3rem;
            margin-bottom: 1rem;
            width: 20rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--secondary-color);
            color: white;
            font-size: 2rem;
        }



/*  Footer*/
.footer {
    background: var(--primary-color);
    border: hidden;
    border-top: 10px solid var(--secondary-color);
    margin-top: 5rem;
}



    .footer .footer-item a:hover {
        letter-spacing: 1px;
        color: var(--secondary-color);
    }

    .footer .footer-item .footer-btn a,
    .footer .footer-item .footer-btn a i {
        transition: 0.5s;
    }

        .footer .footer-item .footer-btn a:hover {
            background: var(--white-color);
        }

            .footer .footer-item .footer-btn a:hover i {
                color: var(--primary-color) !important;
            }



    .footer h3 {
        font-size: 1.9rem;
        font-weight: bold;
        hyphens: none;
        color: var(--white-color);
        font-family: var(--second-font);
        width: 100%;
        text-align: left;
        text-decoration: underline;
    }

    .footer h4 {
        line-height: 35px;
        color: var(--white-color);
        font-size: 1.3rem;
    }

    .footer .footer-item a {
        line-height: 40px;
        color: var(--white-color);
        transition: 0.5s;
        font-size: 1.5rem;
        width: 18rem;
    }

    .footer .footer-item .btn.rounded-circle {
        width: 45px;
        height: 45px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.copyright {
    border-top: 3px solid var(--white-color);
    background: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--main-font);
}


/*Category*/
.category {
    margin-top: 10rem;
}

    .category .team-item {
        position: relative;
        width: 100%;
        height: 63%;
        display: flex;
        flex-direction: column; /* ✅ IMPORTANT */
        border-radius: 10px;
        margin-top: 120px;
        margin-bottom: 10rem;
        background: var(--secondary-color);
    }


        .category .team-item::after {
            content: "";
            position: absolute;
            width: 100%;
            bottom: 0;
            left: 0;
            border-radius: 10px;
            background: var(--primary-color);
            z-index: 2;
            transition: 0.5s;
        }

        .category .team-item:hover::after {
            height: 100%;
            z-index: 2;
            transition: 0.5s;
        }


        .category .team-item .team-content {
            position: relative; /* ✅ REQUIRED */
            z-index: 5;
            display: flex;
            flex-direction: column;
            flex: 1;
        }


        .category .team-item::after {
            pointer-events: none; /* ✅ prevents hover blocking */
        }


        .category .team-item .team-img {
            position: relative;
            top: -100px;
            margin-bottom: -100px;
            border-radius: 10px;
            z-index: 3;
            /* ✅ Center content properly */
            display: flex;
            justify-content: center; /* horizontal center */
            align-items: center; /* vertical center */

            width: 90%;
            margin-left: auto;
            margin-right: auto;
        }

            .category .team-item .team-img img {
                transition: 0.5s;
            }

        .category .team-item:hover .team-img img {
            transform: scale(1.1);
        }

        .category .team-item .team-img::after {
            position: absolute;
            width: 100%;
            height: 0;
            top: 0;
            left: 0;
            border-radius: 10px;
            background: rgba(255, 255, 255, .3);
            z-index: 4;
            transition: 0.5s;
        }

        .category .team-item:hover .team-img::after {
            height: 100%;
        }

    .category h2 {
        font-size: 2rem;
        hyphens: none;
        color: var(--white-color);
        font-family: var(--second-font);
        text-align: left;
        vertical-align: top;
    }


    .category h4 {
        font-size: 1.4rem;
        hyphens: none;
        color: var(--white-color);
        font-family: var(--second-font);
        text-align: center;
        vertical-align: top;
    }



    .category a {
        display: flex; /* ✅ REQUIRED */
        align-items: center;
        justify-content: center;
        position: relative; /* ✅ REQUIRED */
        z-index: 6; /* ✅ above overlay */

        background: var(--primary-color);
        color: white;
        width: 20rem;
        height: 4rem;
        font-size: 2rem;
    }


        .category a:hover {
            display: flex; /* ✅ REQUIRED */
            align-items: center;
            justify-content: center;
            position: relative; /* ✅ REQUIRED */
            z-index: 6; /* ✅ above overlay */

            background: var(--secondary-color);
            color: white;
            width: 20rem;
            height: 4rem;
            font-size: 2rem;
        }

.btn-pageback {
    margin-top: 3rem;
    margin-right: 12rem;
    width: 14rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    font-size: 1.2rem;
}





/*Category*/
.course {
    margin-top: 10rem;
}

    .course .team-item {
        position: relative;
        width: 100%;
        height: 63%;
        display: flex;
        flex-direction: column; /* ✅ IMPORTANT */
        border-radius: 10px;
        margin-top: 120px;
        margin-bottom: 10rem;
        background: var(--secondary-color);
    }


        .course .team-item::after {
            content: "";
            position: absolute;
            width: 100%;
            bottom: 0;
            left: 0;
            border-radius: 10px;
            background: var(--primary-color);
            z-index: 2;
            transition: 0.5s;
        }

        .course .team-item:hover::after {
            height: 100%;
            z-index: 2;
            transition: 0.5s;
        }


        .course .team-item .team-content {
            position: relative; /* ✅ REQUIRED */
            z-index: 5;
            display: flex;
            flex-direction: column;
            flex: 1;
        }


        .course .team-item::after {
            pointer-events: none; /* ✅ prevents hover blocking */
        }


        .course .team-item .team-img {
            position: relative;
            top: -100px;
            margin-bottom: -100px;
            border-radius: 10px;
            z-index: 3;
            /* ✅ Center content properly */
            display: flex;
            justify-content: center; /* horizontal center */
            align-items: center; /* vertical center */

            width: 40%;
            margin-left: auto;
            margin-right: auto;
        }

            .course .team-item .team-img img {
                transition: 0.5s;
            }

        .course .team-item:hover .team-img img {
            transform: scale(1.1);
        }

        .course .team-item .team-img::after {
            position: absolute;
            width: 100%;
            height: 0;
            top: 0;
            left: 0;
            border-radius: 10px;
            background: rgba(255, 255, 255, .3);
            z-index: 4;
            transition: 0.5s;
        }

.category .team-item:hover .team-img::after {
    height: 100%;
}

.course h2 {
    font-size: 2rem;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    text-align: left;
    vertical-align: top;
}


.course h4 {
    font-size: 1.4rem;
    hyphens: none;
    color: var(--white-color);
    font-family: var(--second-font);
    text-align: center;
    vertical-align: top;
}



.course a {
    display: flex; /* ✅ REQUIRED */
    align-items: center;
    justify-content: center;
    position: relative; /* ✅ REQUIRED */
    z-index: 6; /* ✅ above overlay */

    background: var(--primary-color);
    color: white;
    width: 20rem;
    height: 4rem;
    font-size: 2rem;
}


    .course a:hover {
        display: flex; /* ✅ REQUIRED */
        align-items: center;
        justify-content: center;
        position: relative; /* ✅ REQUIRED */
        z-index: 6; /* ✅ above overlay */

        background: var(--secondary-color);
        color: white;
        width: 20rem;
        height: 4rem;
        font-size: 2rem;
    }


.coursedetails {
    align-content: flex-start;
    align-items: flex-start;
    position: relative;
    margin-top: 4rem;
}


    .coursedetails h2 {
        color: white;
        font-weight: bold;
        font-family: var(--main-font);
        font-size: 2rem;
        text-align: right;
        width: 40rem;
    }

    .coursedetails input {
        width: 30rem;
        font-size: 1.3rem;
        color: var(--primary-color);
    }

    .coursedetails textarea {
        width: 40rem;
        height: 20rem;
        padding-left: 1rem;
        font-size: 1.4rem;
        border: none;
        outline: none;
    }

    .coursedetails button {
        width: 25rem;
        text-align: center;
        color: white;
        background: var(--secondary-color);
        font-size: 1.8rem;
        font-weight: bold;
        margin-left: 1rem;
        text-decoration: none;
        float: left;
        border: solid;
        border: 3px solid var(--primary-color);
        box-shadow: 10px 8px 10px var(--primary-color);
        position: absolute;
        bottom: 1rem;
    }

.support {
    background: var(--secondary-color);
    height: 40rem;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
    border-bottom-left-radius: 0%;
    border-bottom-right-radius: 60%;
    position: relative;
    margin-top: 10rem;
}


    .support h2 {
        color: white;
        font-weight: bold;
        font-family: var(--main-font);
        font-size: 2rem;
        text-align: right;
    }

    .support input, select {
        width: 30rem;
        font-size: 1.3rem;
        color: var(--primary-color);
    }



/* ============================================================
   ✅ CLEAN MOBILE VERSION (NO POSTBACK RESIZE - STABLE)
   ============================================================ */
@media (max-width: 768px) {

    .nested-nav {
        position: relative !important;
        top: -100px !important;
        overflow-x: hidden !important;
 
    }

    .subscribe-form {
        position: relative !important;
        top: 0px !important;
        overflow-x: hidden !important;
  
    }
}
@media (max-width: 768px) {

    /* ✅ prevent horizontal shift */
    html, body {
        overflow-x: hidden !important;
    }



    .navbar {
        position: fixed !important;
        width: 100%;
        top: 0;
        left: 0;
        height: 10rem !important;
        min-height: 10rem !important;
        max-height: 10rem !important;
        z-index: 20;
        background: white;
        /*  clip-path: polygon(20% 0%,80% 0%,100% 0%,100% 80%,80% 100%,20% 100%,0% 80%,0% 0%);*/
        background-size: 100% 100%;
        background-repeat: no-repeat;
        margin: 0 !important;
        padding: 0 !important;
  
    }



    /* ✅ REMOVE LAYOUT INSTABILITY */
    .nav {
        margin-left: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        overflow: hidden !important;
        --margin-top: 0 !important;
        padding-top: 0 !important;
        top: -10px;
    }

    /* ✅ remove transform instability */


    /* ✅ LOGO FIX (force visually smaller) */


    .logo-img {
        width: 140px !important; /* ✅ force override */
        height: 80px !important; /* ✅ override fixed height */
        max-width: 140px !important;
        margin: 0 0 0 0 !important;
        padding: 0 0 0 0 !important;

        transform: none !important; /* ✅ remove scaling completely */
    }


    /* ✅ MENU */

    .nested-nav {
        grid-area: menu !important;
        transform: none !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 10px;
        margin-left: 150px;
        overflow-x: hidden !important;
    }

        .nested-nav .nav {
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            display: flex !important;
            justify-content: flex-end !important;
            align-items: center !important;
            width: 100% !important;
            max-width: 100% !important;
            
        }
            /* Hide scrollbar (clean look) */
            .nested-nav .nav::-webkit-scrollbar {
                display: none !important;
            }

            /* ✅ MENU ITEMS */
            .nested-nav .nav .item {
                flex: 0 0 auto !important;
                margin: 0 !important;
                padding: 0 !important;
              
            }

                /* ✅ BUTTON STYLE */


                .nested-nav .nav .item a {
                 
                    font-size: 12px !important;
                    line-height: 5 !important;
                    font-weight: 700 !important;
                    letter-spacing: 0 !important;
                    text-align: center !important;
                    color: rgba(167,3,3,1) !important;
                    background: #fff !important;
                    border: 2px solid rgba(167,3,3,1) !important;
                    border-radius: 999px !important;
                    box-shadow: none !important;
                    text-shadow: none !important;
                    transform: none !important;
                    font-weight: bold;
                    margin-left:2px;
                }


    /* ✅ SUBSCRIBE FORM (stable width) */
    .subscribe-form {
        justify-content: right !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap;
        margin-top: 30px !important;
    }


        .subscribe-form .circular-input {
            width: 135px !important;
            max-width: 135px !important;
            min-width: 135px !important;
            height: 30px !important;
            box-sizing: border-box !important;
            border-radius: 999px !important;
            border: 2px solid #ccc !important;
            text-align: center !important;
            font-size: 16px !important; /* prevent mobile zoom */
            line-height: 42px !important;
            padding: 0 12px !important;
            margin: 0 !important;
        }

        .subscribe-form .btn-subscribe {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 80px !important;
            min-width: 80px !important;
            max-width: 80px !important;
            height: 30px !important;
            box-sizing: border-box !important;
            border-radius: 999px !important;
            background: var(--primary-color) !important;
            color: #fff !important;
            font-size: 16px !important;
            margin: 0 !important;
            padding: 0 !important;
        }


        /* ✅ VALIDATION (no stretch) */
        .subscribe-form .validation-summary,
        .sub-validate {
            position: absolute !important;
            left: 10% !important;
            width: max-content !important;
            max-width: 90vw !important;
            white-space: nowrap !important;
            font-size: 14px !important;
            line-height: 1.2 !important;
            margin: 0 !important;
            padding: 0 !important;
            z-index: 2 !important;
            pointer-events: none !important;
            pointer-events: none;
        }

    .validation-summary-errors ul {
        list-style: none;
        padding-left: 0;
    }


    .navbar .btn.btn-light.btn-sm-square.rounded-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 1.2rem !important;
    }





        /* ✅ REMOVE EXTRA ITEMS */
    .navbar .d-flex.align-items-center.gap-3.me-auto a[href^="tel"],
    .navbar .d-flex.align-items-center.gap-3.me-auto a[href^="mailto"],
    .navbar .btn-secondary.rounded-pill.py-2, .navbar .d-flex.align-items-center.gap-2.ms-4,
    .nested-nav .nav .item a[href="/index#about"] {
        display: none !important;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }


    .footer .btn.btn-light.btn-sm-square.rounded-circle {
        width: 35px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }


    .footer .d-flex {
        margin-top: 2rem !important;
        gap: .25rem !important;
        margin-left: .4rem !important;
    }
}




@media (max-width: 768px) {

    .carousel {
        height: 25rem; /* reduced from 50rem */
        margin-top: 10rem !important;
        margin-bottom: 4rem;
    }

    .carousel-caption {
        top: 1.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%; /* slightly larger touch area */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .carousel h2 {
        font-size: 2rem; /* reduced from 5rem */
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .carousel h3 {
        width: 16rem !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        font-size: 1rem;
        line-height: 1.3rem;
        text-align: center;
    }

    .carousel a {
        margin-top: 1rem;
        width: 12rem; /* smaller button */
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 25px;
    }
}


@media (max-width: 768px) {

    .about {
        text-align: center;
        padding-top: 0 !important;
    }

        .about .about-inner,
        .about .about-item {
            display: flex;
            padding-top: 0 !important;
            margin-top: 0 !important;
            width: auto;
            align-content: center;
            align-items: center;
            text-align: center;
            background: lightgray;
        }







    .btn-about {
        margin-top: 0.5rem;
        margin-bottom: 3rem; /* reduced from 10rem */
        width: 12rem; /* smaller button */
        font-size: 1rem;
    }

    .about h2 {
        overflow-wrap: break-word !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        font-size: 1rem;
        line-height: 1.7rem;
        text-align: center;
        color: var(--primary-color)
    }


    .about h3 {
        width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        padding: 0 10px !important; /* small safe padding */
        padding-top: 0 !important;
        margin-top: 0 !important;
        font-size: 1rem;
        line-height: 1.7rem;
    }

    .about h4 {
        width: 15rem !important;
        overflow-wrap: break-word !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        line-height: 1.7rem;
        text-align: center;
        color: var(--primary-color)
    }
}




@media (max-width: 768px) {

    html {
        scroll-padding-top: 6rem;
    }
}



@media (max-width: 768px) {

    /* Override Bootstrap col-4 */
    .about .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Remove row flex alignment issue */
    .about {
        justify-content: center !important;
    }

        /* Spacing between items */
        .about .col-4 {
            margin-bottom: 20px;
        }

    /* Make boxes clean */
    .about-item {
        width: 100%;
        height: auto;
    }

    /* Fix inner padding */
    .about-text {
        padding: 20px !important;
    }

        /* Optional: fix fonts */
        .about-text h2 {
            font-size: 1.5rem;
        }

        .about-text h4 {
            font-size: 1.2rem;
            line-height: 1.5;
        }
}





@media (max-width: 768px) {

    .people .team-item {
        position: relative;
        width: 25rem;
        min-height: 10rem;
        height: auto;
        display: flex;
        flex-direction: column; /* ✅ IMPORTANT */
        border-radius: 10px;
        margin-top: 100px;
        margin-bottom: 3rem;
        background: var(--secondary-color);
    }






        .people .team-item .team-content {
            position: relative;
            z-index: 5;
            display: flex;
            flex-direction: column; /* ✅ stack content vertically */

            flex: 1; /* ✅ allow it to grow */
        }


        .people .team-item .team-img {
            position: relative;
            top: -50px; /* instead of -100px */
            width: 120px;
            margin: 0 auto;
        }



            .people .team-item .team-img img {
                width: 100%;
                height: auto;
                display: block;
            }




    .people h2 {
        font-size: 1.8rem;
        hyphens: none;
        color: var(--white-color);
        font-family: var(--second-font);
        text-align: center;
        vertical-align: top;
    }

    .people h3 {
        font-size: 1.5rem;
        hyphens: none;
        color: var(--white-color);
        font-family: var(--second-font);
        text-align: center;
        vertical-align: top;
    }

    .people h4 {
        font-size: 1.2rem;
        hyphens: none;
        color: var(--white-color);
        font-family: var(--second-font);
        text-align: center;
    }




    .people a {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: white;
        width: 45px;
        height: 45px;
        font-size:2rem;
    }
}

@media (max-width: 768px) {
    /*Category*/

    .category {
        margin-top: 15rem;
    }

        .category .team-item {
            position: relative;
            width: 100%;
            height: 63%;
            display: flex;
            flex-direction: column; /* ✅ IMPORTANT */
            border-radius: 10px;
            margin-top: 120px;
            margin-bottom: 10rem;
            background: var(--secondary-color);
        }


            .category .team-item .team-content {
                position: relative; /* ✅ REQUIRED */
                z-index: 5;
                display: flex;
                flex-direction: column;
                flex: 1;
            }




            .category .team-item .team-img {
                position: relative;
                top: -100px;
                margin-bottom: -100px;
                border-radius: 10px;
                z-index: 3;
                /* ✅ Center content properly */
                display: flex;
                justify-content: center; /* horizontal center */
                align-items: center; /* vertical center */

                width: 100%;
                margin-left: auto;
                margin-right: auto;
            }

                .category .team-item .team-img img {
                    transition: 0.5s;
                }

            .category .team-item:hover .team-img img {
                transform: scale(1.1);
            }




        .category h2 {
            font-size: 1.7rem;
            hyphens: none;
            color: var(--white-color);
            font-family: var(--second-font);
            text-align: left;
            vertical-align: top;
        }


        .category h4 {
            font-size: 1rem;
            hyphens: none;
            color: var(--white-color);
            font-family: var(--second-font);
            text-align: center;
            vertical-align: top;
        }



        .category a {
            display: flex; /* ✅ REQUIRED */
            align-items: center;
            justify-content: center;
            position: relative; /* ✅ REQUIRED */
            z-index: 6; /* ✅ above overlay */

            background: var(--primary-color);
            color: white;
            width: 10rem;
            height: 3rem;
            font-size: 1.5rem;
        }



    header .navbar h1 {
        margin-left: 13rem !important;
        font-size: 1.5rem !important;
        text-align: center !important;
        white-space: normal !important;
    }




    /* Fix header layout */
    header .container-fluid {
        display: flex !important;
        justify-content: space-between !important; /* logo left, button right */
        align-items: center !important;
    }

    /* Fix logo position */
    header .navbar-brand {
        width: 120px !important; /* ✅ force override */
        height: 80px !important; /* ✅ override fixed height */
        max-width: 140px !important;
        min-width: 140px !important;
        margin: 0 0 0 0 !important;
        padding: 0 0 0 0 !important;
        margin-top: -2rem !important;
        transform: none !important; /* ✅ remove scaling completely */
    }

    /* Push button fully to right */
    .btn-pageback {
        margin: 8rem -1rem !important;
        margin-left: auto !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 15rem;
        height: 2rem;
    }








    .course {
        margin-top: 15rem;
    }

        .course .team-item {
            position: relative;
            width: 100%;
            height: 63%;
            display: flex;
            flex-direction: column; /* ✅ IMPORTANT */
            border-radius: 10px;
            margin-top: 120px;
            margin-bottom: 10rem;
            background: var(--secondary-color);
        }


            .course .team-item .team-content {
                position: relative; /* ✅ REQUIRED */
                z-index: 5;
                display: flex;
                flex-direction: column;
                flex: 1;
            }




            .course .team-item .team-img {
                position: relative;
                top: -100px;
                margin-bottom: -100px;
                border-radius: 10px;
                z-index: 3;
                /* ✅ Center content properly */
                display: flex;
                justify-content: center; /* horizontal center */
                align-items: center; /* vertical center */

                width: 100%;
                margin-left: auto;
                margin-right: auto;
            }

                .course .team-item .team-img img {
                    transition: 0.5s;
                }

            .course .team-item:hover .team-img img {
                transform: scale(1.1);
            }




        .course h2 {
            font-size: 1.7rem;
            hyphens: none;
            color: var(--white-color);
            font-family: var(--second-font);
            text-align: left;
            vertical-align: top;
        }


        .course h4 {
            font-size: 1rem;
            hyphens: none;
            color: var(--white-color);
            font-family: var(--second-font);
            text-align: center;
            vertical-align: top;
        }



        .course a {
            display: flex; /* ✅ REQUIRED */
            align-items: center;
            justify-content: center;
            position: relative; /* ✅ REQUIRED */
            z-index: 6; /* ✅ above overlay */

            background: var(--primary-color);
            color: white;
            width: 14rem;
            height: 3rem;
            font-size: 1.5rem;
        }


    .coursedetails {
        align-content: flex-start;
        align-items: flex-start;
        position: relative;
        margin-top: 8rem;
        width: 5rem;
    }


        .coursedetails h2 {
            color: white;
            font-weight: bold;
            font-family: var(--main-font);
            font-size: 1.2rem;
            text-align: left;
            width: 20rem;
        }

        .coursedetails input {
            font-size: 1rem;
            color: var(--primary-color);
            width: 18rem;
        }

        .coursedetails textarea {
            font-size: 1rem;
            color: var(--primary-color);
            width: 18rem;
        }

        .coursedetails button {
            width: 15rem;
            text-align: center;
            color: white;
            background: var(--secondary-color);
            font-size: 1.8rem;
            font-weight: bold;
            margin-left: 1rem;
            text-decoration: none;
            float: left;
            border: solid;
            border: 3px solid var(--primary-color);
            box-shadow: 10px 8px 10px var(--primary-color);
            position: absolute;
            bottom: 1rem;
        }

    .support {
        background: var(--secondary-color);
        height: 40rem;
        border-top-left-radius: 0%;
        border-top-right-radius: 0%;
        border-bottom-left-radius: 0%;
        border-bottom-right-radius: 60%;
        position: relative;
        margin-top: 18rem;
    }


        .support h2 {
            color: white;
            font-weight: bold;
            font-family: var(--main-font);
            font-size: 1rem;
            text-align: left;
            width: 18rem;
        }

        .support input, select {
            width: 18rem;
            font-size: 1.3rem;
            color: var(--primary-color);
        }

        .support button {
            width: 10rem;
            height: 4rem;
            text-align: center;
            color: white;
            background: gray;
            font-size: 2rem;
            font-weight: bold;
            margin-top: 2rem;
            margin-right: 1rem;
        }
}
