@media (max-width: 575.98px) {


    :root {
        --section-space: 40px;
        --section-space-mobile: 40px;
    }


    .header-layout1 .menu-area {
        padding: 0;
    }

    .th-container2 {
        max-width: 100%;
        padding: 0 15px;
    }

    .th-container4 {
        max-width: 100%;
        padding: 0 15px;
    }

    .header-layout1 .menu-area {
        background-color: white;
    }

    .header-layout1 .menu-area .menu-wrapp {
        background-color: white;
        border-radius: 0;
    }

    .header-layout1 .sticky-wrapper.sticky .header-left .header-logo {
        display: block;
        margin-right: 20px;
    }

    .header-left {
        margin-left: 0px;
    }

    .header-layout1 .sticky-wrapper.sticky .menu-area {
        background-color: #ffffff;
    }

    .hero-style1 {
        height: 250px;
    }


    .about-thumb1 img {
        width: 100%;
        object-fit: cover;
        padding-right: 0px;
        margin-bottom: 30px;
        height: 250px !important;
    }

    p {
        font-size: 14px;
        font-family: var(--body-font);
        margin: 0 0 18px 0;
        color: var(--body-color);
        line-height: 1.75;
    }


    .sec-title * {
        font-size: 20px;
    }


    .th-btn {
        position: relative;
        z-index: 2;
        vertical-align: middle;
        display: -webkit-inline-box;
        display: -webkit-inline-flex;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        text-align: center;
        background-color: var(--theme-color);
        color: var(--white-color);
        font-family: var(--body-font);
        font-size: 14px;
        font-weight: 500;
        padding: 10px 16px;
        line-height: 1;
        justify-content: center;
        overflow: hidden;
        -webkit-transition: 0.5s;
        transition: 0.5s;
        text-transform: capitalize;
        border-radius: 0;
        border: 1px solid transparent;
        gap: 8px;
    }


    .counter-card {
        border-right: none !important;

    }

    .counter-card:nth-child(5) {
        border-bottom: none !important;
    }

    .box-icon img {
        width: 48px;
    }


    .counter-card {

        border-bottom: none;
    }

    .counter-card .box-number * {
        font-size: 24px;
        line-height: 25px;
    }

    .counter-card .box-text * {
        font-size: 14px;
    }

    .founder-section,
    .notice-board-section {
        padding: 0px;
    }

    .principal-section {
        margin-top: 40px;
    }

    .founder-image {
        margin-bottom: 13px;
    }

    .marquee-container {
        padding: 10px;
    }


    .testimonials-header h3 {
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        color: var(--white-color);
        font-family: var(--title-font);
    }

    .testimonials-section {
        margin-top: 28px;
    }

    .story-area-1 {
        margin-top: 40px;
    }

    .title-area {
        margin-bottom: 18px;
        position: relative;
        z-index: 2;
        margin-top: -0.6em;
    }

    .sec-btn,
    .title-line {
        margin-bottom: 20px;
    }

    .story-content {
        background-color: #c6101a;
        padding: 10px 10px 10px 10px;
    }

    .story-content .box-title * {
        width: 100%;
        color: var(--white-color);
        font-weight: 600;
        font-size: 15px;
        line-height: 1.4;
        letter-spacing: 0.02em;
        margin-bottom: 0;
    }

    .box-title * {
        font-size: 15px;
        line-height: 1.417;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .why-number * {
        font-weight: 400;
        font-size: 25px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: var(--theme-color);
        font-family: var(--subtitle-font);
        top: -12px;
    }


    .gallery-card .gallery-title * {
        background-color: #352932;
        font-size: 13px;
        font-weight: 500;
        padding: 0px 0;
        margin: 0;
        color: var(--white-color);
    }



    .info-item * {
        font-weight: 500;
        font-size: 18px;
        margin-bottom: 0px;
        color: var(--title-color);
    }


    .contact-form-modern .form-control {
        height: 50px;
        padding: 0 20px;
        border: 1px solid #e9ecef;
        background: #f8f9fa;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .footer-widget .widget_title * {
        color: var(--white-color);
        font-weight: 600;
        font-size: 18px;
        margin: -0.12em 0 40px 0;
        padding: 0 0 0 11px;
        border: 0;
    }




    /* about us page */
    .breadcumb-menu {
        max-width: 100%;
        padding: 0;
        list-style-type: none;
        position: relative;
        margin-bottom: -0.5em;
        margin-top: 8px;
    }


    .breadcumb-menu li,
    .breadcumb-menu a,
    .breadcumb-menu span {
        font-size: 13px;
    }

    .testi-card .box-desig {
        margin-bottom: -0.5em;
        display: block;
        font-size: 12px !important;
        margin-top: 4px;
    }

    .about-us-page-why-us {
        margin-bottom: 40px;
    }



    .academic-calendar-page .calendar-table thead th {
        color: #fff;
        padding: 4px 15px;
        font-weight: 600;
        font-size: 14px;
        text-align: left;
        border: none;
    }

    .academic-calendar-page .academic-calendar-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #f8f4e6 0%, #fff 100%);
    }

    .academic-calendar-page .download-calendar-btn {
        background: #8B2A8B;
        color: #fff;
        padding: 4px 19px;
        border: none;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }

    /* result page starts */
    .result-page .result-section {
        padding: 40px 0 40px 0;
        background: linear-gradient(135deg, #f8f4e6 0%, #fff 100%);
    }


    .result-page .result-card {
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 0px;
        transition: all 0.3s ease;
    }

    .th-mobile-menu ul li a {
        display: block;
        position: relative;
        padding: 12px 0;
        line-height: 1.4;
        font-size: 14px;
        text-transform: capitalize;
        color: var(--title-color);
        padding-left: 18px;
    }

    .about-area-1 {
        text-align: justify;
    }



    .admission-process-page .admission-process-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #f8f4e6 0%, #fff 100%);
    }

    .admission-process-page .process-step {
        display: flex;
        align-items: center;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .admission-process-page .requirements-list li {
        padding: 12px 0;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        font-size: 14px;
        align-items: flex-start;
    }

    .admission-process-page .requirements-section * {
                color: #121212;
        margin-top: 0;
        margin-bottom: 5px;
        font-size: 13px;
        font-weight: 600;
    }
    
    .admission-process-page .requirements-section h3 {
    color: #121212;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    }



    .fee-structure-page .fee-table th {
        background: #8b1a72;
        color: #fff;
        padding: 10px 15px;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        line-height: 1.6;
    }


    .title-area .sec-text * {
        font-size: 14px;
        color: #1b1b1b;
        max-width: 700px;
        margin: 0 auto;
    }

    .apply-now-page .form-control {
        height: 50px;
        width: 100%;
        padding: 1px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 14px;
        transition: all 0.3s ease;
    }


    label {
        margin-bottom: 0.5em;
        margin-top: -0.3em;
        display: block;
        color: var(--title-color);
        font-family: var(--body-font);
        font-size: 14px;
    }

    .apply-now-page .apply-card {
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        padding: 20px;
        margin-top: 30px;
    }

    .apply-now-page .btn-submit {
        background: #8B2A8B;
        color: #fff;
        padding: 8px 40px;
        border: none;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        /* box-shadow: 0 5px 15px rgba(139, 42, 139, 0.3); */
        display: inline-block;
        width: 100%;
    }


    /* faq page */
    .faq-page .faq-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #f8f4e6 0%, #fff 100%);
    }

    .faq-page .category-title * {
        color: #8B2A8B;
        padding-bottom: 10px;
        border-bottom: 2px solid #8B2A8B;
        margin-bottom: 25px;
        font-size: 16px;
        font-weight: 600;
    }

    .faq-page .faq-question * {
        background: #f8f9fa;
        padding: 10px 20px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-size: 14px;
        line-height: 1.5;
        color: #2d3748;
        transition: all 0.3s ease;
    }

    .faq-page .faq-item * {
        margin-bottom: 13px;
        border: 1px solid #e2e8f0;
        /* border-radius: 8px; */
        overflow: hidden;
    }

    /* facility details page */

    .facility-details-page .facility-image {
        position: relative;
        float: left;
        height: 300px;
        width: 100%;
        margin: 0 0px 20px 0;
    }

    .facility-details-page .facility-content-wrapper {
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 15px 15px;
        border-radius: 0px;
    }





    .facility-details-page .facility-description * {
        color: #4a5568;
        font-size: 14px;
        line-height: 1.8;
        text-align: justify;
    }

    .image-title * {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        background: #8b1a72;
        color: #fafafa;
        font-size: 14px;
        font-weight: 500;
    }

    .video-title h3 {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        background: #8b1a72;
        color: #fafafa;
        font-size: 14px;
        font-weight: 500;
    }


    .contact-feature {
        padding: 40px 20px;
        width: 100%;
        border: 1px solid #D3DBE2;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }

    .contact-feature .box-text * {
        font-weight: 400;
        font-size: 14px;
        letter-spacing: 0.02em;
        color: var(--body-color);
    }

    .contact-form2 {
        background-color: #EEF1F4;
        padding: 40px 20px;
    }

    .form-group {
        margin-bottom: 10px;
        position: relative;
    }

    .fee-payment-page .bank-info * {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .fee-payment-page .info-row {
        display: flex;
        margin-bottom: 5px;
    }

    .fee-payment-page .info-value {
        padding-left: 0px;
        flex: 1;
        color: #333;
    }

    .fee-payment-page .section-header * {
        color: #333;
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }


    .fee-payment-page .section-header {
        margin-bottom: 10px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .fee-payment-page .btn {
        display: inline-block;
        background: #8B2A8B;
        color: white;
        padding: 10px 16px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
        font-size: 13px;
    }


    .fee-payment-page .bank-details,
    .fee-payment-page .qr-payment {
        flex: 1;
        background: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 0px;
        padding: 30px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .fee-payment-page .bank-details,
    .fee-payment-page .qr-payment {
        flex: 1;
        background: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 0px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .fee-payment-page .upi-id {
        font-weight: 600;
        color: #8B2A8B;
        font-size: 15px;
        margin: 1px 0;
    }

    .fee-payment-page .instructions li {
        margin-bottom: 12px;
        color: #555;
        font-size: 14px;
        line-height: 1.6;
    }

    .fee-payment-page .instructions * {


        font-size: 18px;

    }


    /* notice board */



    .notice-board-page .notice-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #f8f4e6 0%, #fff 100%);
    }


    .notice-board-page .notice-title * {
        color: rgb(255, 255, 255);
        font-size: 14px;
        font-weight: 600;
        margin: 0;
    }

    .notice-board-page .notice-date {
        color: rgb(255, 255, 255);
        font-weight: 500;
        font-size: 12px;
        line-height: 1.8;

    }

    .notice-board-page .notice-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        padding: 10px 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .notice-content {
        font-size: 14px;
        color: var(--body-color);
        margin-bottom: 0px;
        line-height: 1.7;
    }


    .founder-quote * {
        font-size: 14px;
        color: var(--title-color);
        line-height: 1.6;
        font-style: italic;
        margin: 0 0 15px 0;
    }

    .testimonial-card {
        padding: 15px;

    }

    .notice-header {
        padding: 8px 0;
    }

    .fee-structure-page .fee-table {
        width: 100%;
        border-collapse: collapse;
        font-family: 'Poppins', sans-serif;
        margin-bottom: 0px;
        font-size: 14px;
    }

    .fee-payment-page .payment-form-section .section-header * {
        color: #333;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
    }


    .notice-grid-page-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-items: center;
    }

    .notice-grid-page-card {
        width: 100%;
        height: 100px;
    }

    .notice-grid-page-card {
        font-size: 14px;

    }

    .breadcumb-shape {
        position: absolute;
        top: 40px;
        left: -4%;
    }


    .school-title * {
        font-size: 18px;
    }

    .why-number {

        font-size: 30px;
        line-height: 1.2;

    }

    .sec-title h2 {
        font-size: 22px;
        margin-top: -0.24em;
        font-weight: 600;
    }


    .breadcumb-content h1 {
        font-size: 24px;
        font-weight: 500;
        line-height: 1.285;
        color: var(--title-color);
        letter-spacing: 0.02em;
        text-transform: capitalize;
        margin-bottom: -0.3em;
        margin-top: -0.3em;
    }

    .facility-details-page .facility-title * {
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .title-area .sec-title {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .sub-title {
        display: inline-block;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        color: var(--theme-color);
        text-transform: uppercase;
        margin-bottom: 9px;
        position: relative;
        line-height: 24px;
        letter-spacing: 0.36px;
        font-family: var(--subtitle-font);
    }

    .fee-payment-page .section-header h2 {
        color: #333;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }


    .fee-payment-page .instructions h2 {
        color: #333;
        font-size: 19px;
        font-weight: 600;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .footer-widget .widget_title {
        color: var(--white-color);
        font-weight: 600;
        font-size: 18px;
        margin: -0.12em 0 40px 0;
        padding: 0 0 0 11px;
        border: 0;
    }

    .footer-map {
        margin-bottom: 10px !important;
    }

    .contact-content .info-item h4 {
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 0px;
        line-height: 1.6;
        color: var(--title-color);
    }

    .contact-content .info-item p {
        font-weight: 500;
        font-size: 15px;
        margin-bottom: 0px;
        color: var(--title-color);
    }

    .contact-info-modern>p {
        font-size: 14px;
        color: var(--body-color);
        margin-bottom: 40px;
    }
    .fee-payment-page .form-control {
        width: 100%;
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .testi-card .box-text {
    height: 100px;
    overflow-y: auto;
}
}


@media (min-width: 992px) {
    .about-text-area {
        max-height: 275px;
        overflow-y: auto;
    }

    .founder-quote {
        /*max-height: 260px;*/
        overflow-y: auto;
    }

    .story-card .box-text {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        /* Number of lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* .why-card .box-text{
        max-height: 0px;
        overflow-y: auto;
    } */
    .footer-about-text {
        max-height: 250px;
        overflow-y: auto;
    }

   

}

.testi-card .box-text {
    height: 120px;
    overflow-y: auto;
}