/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@media screen and (min-width: 1920px) {
     .right-side-img img{
        position: relative;
        top: 135px !important;
    }
}
@media screen and (min-width:1025px) and (max-width:1920px)  {

    .about-heritage-section{
        margin-top: -208px !important;
    }

}
@media screen and (min-width:768px) and (max-width:1024px) {

    .about-heritage-section{
        margin-top: -60px !important;
    }

}
@media screen and (max-width:767px) {

    .about-heritage-section{
        margin-top: 0 !important;
    }

    .year {
        font-size: 30px !important;
    }
    .card-main h2 {
        font-size: 20px !important;
    }
	.about-heritage-section{
		background-image: unset !important;
	}
    .elementor-27 .elementor-element.elementor-element-732315a9 {
        margin-top: 0;
	}
.logo-img {
    margin-top: -5px;
    top: 0;
    left: 0;
}

}

.about-heritage-section {
    border-left: 12px solid #595959 !important;
}

/* Academics page (post 85): hero split layout - image column was taller than
   the text/cards column due to its own portrait aspect ratio, so the row's
   height (and the shorter text column stretched to match it) was being
   driven by the image, leaving a large empty gap below the 4 icon-cards.
   A simple height:100% on the image doesn't fix this - the browser still
   needs the image's own natural size to work out the row height in the
   first place, so the row stays oversized. Instead, take the image fully
   out of the layout flow (position:absolute) so it can no longer influence
   the row's height at all; the row then sizes itself purely to the text
   column's natural content, and the image is sized to fill that exact
   space afterwards. Desktop only (>=1025px) - below that the columns stack
   to 100% width and this side-by-side relationship no longer applies. */
@media screen and (min-width: 1025px) {
    .elementor-85 .elementor-element.elementor-element-73f511fb > .elementor-element-populated {
        position: relative;
        height: 100%;
        overflow: hidden;
    }
    .elementor-85 .elementor-element.elementor-element-73f511fb > .elementor-element-populated > .elementor-widget-wrap {
        height: 100%;
    }
    .elementor-85 .elementor-element.elementor-element-3985beca {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
    .elementor-85 .elementor-element.elementor-element-3985beca .elementor-widget-container,
    .elementor-85 .elementor-element.elementor-element-3985beca img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Academics page (post 85) hero image - tablet/mobile (columns are stacked
   here, so the desktop height-match rule above doesn't apply). Without a
   cap the portrait photo renders at its full natural height before the
   visitor even reaches the "Academics" heading. Cap it and crop gracefully. */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .elementor-85 .elementor-element.elementor-element-3985beca img {
        max-height: 60vh;
        width: 100%;
        object-fit: cover;
    }
}
@media screen and (max-width: 767px) {
    .elementor-85 .elementor-element.elementor-element-3985beca img {
        max-height: 45vh;
        width: 100%;
        object-fit: cover;
    }
}

/* Academics page (post 85): the four "Enroll Today" buttons (HTML widgets
   with a hard-coded height: 65px) and their icon-box widgets above them sit
   in flex columns. Once the row's height was corrected above to match the
   text content exactly, these became vulnerable to the browser's default
   flex-shrink:1 behavior - if the available space is even a pixel tight,
   flex children quietly compress instead of overflowing, and the last item
   (the button) absorbs most of it. Pin them so they can never shrink below
   their intended size, on every breakpoint. */
.elementor-85 .elementor-element-74af2885 > .elementor-widget-wrap > .elementor-element,
.elementor-85 .elementor-element-198ab027 > .elementor-widget-wrap > .elementor-element,
.elementor-85 .elementor-element-494a66e4 > .elementor-widget-wrap > .elementor-element,
.elementor-85 .elementor-element-78cb79ab > .elementor-widget-wrap > .elementor-element {
    flex-shrink: 0;
}
.elementor-85 .elementor-element-409c9a3 .secondary-button-4,
.elementor-85 .elementor-element-655bb78 .secondary-button-4,
.elementor-85 .elementor-element-a93cf2a .secondary-button-4,
.elementor-85 .elementor-element-034eb76 .secondary-button-4 {
    min-height: 65px;
    flex-shrink: 0;
}

/* ===== ABOUT US PAGE — TABLET RESPONSIVE FIXES (768px–1024px) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* --- HERO SECTION: stack image + text columns vertically --- */
    .elementor-27 .elementor-element.elementor-element-1154873b {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-59584af1,
    .elementor-27 .elementor-element.elementor-element-13fc6ce6 {
        width: 100% !important;
    }
    .elementor-27 .elementor-element.elementor-element-59584af1 {
        margin-top: 0 !important;
    }
    /* Hero section: reduce negative top margin */
    .elementor-27 .elementor-element.elementor-element-169606a2 {
        margin-top: -40px !important;
    }
    /* Hero text inner section: remove excessive right padding */
    .elementor-27 .elementor-element.elementor-element-65f4812e {
        padding: 20px !important;
    }

    /* --- CONTAINER (creativity cards): reduce negative margin --- */
    .elementor-27 .elementor-element.elementor-element-2db7c04d {
        margin-top: -20px !important;
    }

    /* --- LEADERSHIP / GUIDING EXCELLENCE SECTION --- */

    /* Row 1 (Chairman + Trustee 1): stack to single column */
    .elementor-27 .elementor-element.elementor-element-37cbf30 {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-ad0fbfd,
    .elementor-27 .elementor-element.elementor-element-f52f57a {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* Row 2 (Trustee 2 + Trustee 3): stack to single column */
    .elementor-27 .elementor-element.elementor-element-4c515ccb {
        flex-wrap: wrap !important;
        margin-top: 0 !important;
    }
    .elementor-27 .elementor-element.elementor-element-7025f851,
    .elementor-27 .elementor-element.elementor-element-6fbfb0ba {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* Row 3 (Principal + Correspondent): stack to single column */
    .elementor-27 .elementor-element.elementor-element-78d41fc {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-71ab0f4b,
    .elementor-27 .elementor-element.elementor-element-492c674d {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* Each leadership card inner layout (content + image side by side)
       Keep side-by-side but ensure proper sizing */
    .elementor-27 .elementor-element.elementor-element-246549d,
    .elementor-27 .elementor-element.elementor-element-0b53dfb,
    .elementor-27 .elementor-element.elementor-element-5f8b9acd,
    .elementor-27 .elementor-element.elementor-element-53d69389,
    .elementor-27 .elementor-element.elementor-element-5cad1961,
    .elementor-27 .elementor-element.elementor-element-682ad3d {
        flex-wrap: wrap !important;
    }
    /* Card content column: full width */
    .elementor-27 .elementor-element.elementor-element-973a8c4,
    .elementor-27 .elementor-element.elementor-element-8a31811,
    .elementor-27 .elementor-element.elementor-element-1807addb,
    .elementor-27 .elementor-element.elementor-element-6afcb36a,
    .elementor-27 .elementor-element.elementor-element-306809b1,
    .elementor-27 .elementor-element.elementor-element-75e5f514 {
        width: 55% !important;
    }
    /* Card image column: full width */
    .elementor-27 .elementor-element.elementor-element-ced8134,
    .elementor-27 .elementor-element.elementor-element-6949491,
    .elementor-27 .elementor-element.elementor-element-4fc3675a,
    .elementor-27 .elementor-element.elementor-element-51b1de02,
    .elementor-27 .elementor-element.elementor-element-1a1f9f78,
    .elementor-27 .elementor-element.elementor-element-57a9f676 {
        width: 45% !important;
    }

    /* Leadership card images: contain properly */
    .elementor-27 .elementor-element.elementor-element-1e857352 img {
        max-width: 100%;
        height: auto;
    }

    /* Leadership section: add horizontal padding */
    .elementor-27 .elementor-element.elementor-element-1e857352 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* --- FOUNDATION SECTION (Vision/Mission/Motto) --- */
    /* Reduce the 100px inner padding that has 0 tablet override to proper spacing */
    .elementor-27 .elementor-element.elementor-element-4e638cb5,
    .elementor-27 .elementor-element.elementor-element-40333c84,
    .elementor-27 .elementor-element.elementor-element-70b9f2c5 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* --- TESTIMONIAL SECTION: stack 3-col layout --- */
    .elementor-27 .elementor-element.elementor-element-651fad24 {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-110374b9,
    .elementor-27 .elementor-element.elementor-element-637709e3 {
        display: none !important;
    }
    .elementor-27 .elementor-element.elementor-element-6a57ba9b {
        width: 100% !important;
    }

    /* --- MOTTO 3-col section: stack --- */
    .elementor-27 .elementor-element.elementor-element-5370bd55 {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-60a16b3c,
    .elementor-27 .elementor-element.elementor-element-3d4d5bfc {
        display: none !important;
    }
    .elementor-27 .elementor-element.elementor-element-435cc3f1 {
        width: 100% !important;
    }

    /* Guiding Excellence 3-col spacer section */
    .elementor-27 .elementor-element.elementor-element-781c1bbf {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-4c7a543,
    .elementor-27 .elementor-element.elementor-element-65a9b68d {
        display: none !important;
    }
    .elementor-27 .elementor-element.elementor-element-1fdbf490 {
        width: 100% !important;
    }

    /* --- HERITAGE SECTION: scale border and offset --- */
    .about-heritage-section {
        border-left-width: 8px !important;
    }

    /* --- GENERAL: prevent horizontal overflow --- */
    .elementor-27 .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
    }
    .elementor-27 .elementor-inner-section .elementor-container {
        max-width: 100% !important;
    }

    /* Creativity/Values cards section overflow prevention */
    .elementor-27 .elementor-element.elementor-element-3eefc11c {
        overflow: hidden;
    }
    .elementor-27 .elementor-element.elementor-element-3eefc11c .elementor-row {
        flex-wrap: wrap !important;
    }
    .elementor-27 .elementor-element.elementor-element-549cd058,
    .elementor-27 .elementor-element.elementor-element-b57bf26 {
        width: 100% !important;
    }

    /* Prevent any horizontal scroll */
    .elementor-27 {
        overflow-x: hidden;
    }
}
/* ===== END ABOUT US TABLET FIXES ===== */

/* ===== ACADEMICS PAGE (post 85) — TABLET RESPONSIVE FIXES (768px–1024px) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* --- HERO SECTION: reduce aggressive negative top margin --- */
    .elementor-85 .elementor-element.elementor-element-4d14af6d {
        margin-top: -30px !important;
    }

    /* Hero inner section: ensure columns wrap properly */
    .elementor-85 .elementor-element.elementor-element-29e1e49c > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-73f511fb,
    .elementor-85 .elementor-element.elementor-element-2c1ca8ed {
        width: 100% !important;
    }

    /* Hero text column: add proper padding */
    .elementor-85 .elementor-element.elementor-element-2c1ca8ed > .elementor-element-populated {
        padding: 30px 20px !important;
    }

    /* Hero heading: adjust font and padding for tablet */
    .elementor-85 .elementor-element.elementor-element-60c1ecc2 {
        padding: 20px 0 0 0 !important;
    }
    .elementor-85 .elementor-element.elementor-element-60c1ecc2 .elementor-heading-title {
        font-size: 36px !important;
    }

    /* Hero CBSE cards 2x2 grid: ensure proper spacing */
    .elementor-85 .elementor-element.elementor-element-7d2d80c9 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-14a786a5 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-74af2885,
    .elementor-85 .elementor-element.elementor-element-198ab027,
    .elementor-85 .elementor-element.elementor-element-494a66e4,
    .elementor-85 .elementor-element.elementor-element-78cb79ab {
        width: 48% !important;
    }

    /* Enroll Today buttons: reduce height on tablet */
    .elementor-85 .secondary-button-4 {
        height: 55px !important;
        min-height: 55px !important;
    }

    /* --- PEDAGOGICAL FOUNDATION / PROGRAMS SECTION --- */
    .elementor-85 .elementor-element.elementor-element-104d3673 {
        padding: 20px !important;
    }

    /* Programs 2-col rows: ensure proper wrapping */
    .elementor-85 .elementor-element.elementor-element-347a0531 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-3a84966c > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-fa512fc > .elementor-container {
        flex-wrap: wrap !important;
    }

    /* Section headings: tablet font sizing */
    .elementor-85 .elementor-element.elementor-element-901260 .elementor-heading-title {
        font-size: 36px !important;
    }

    /* --- SUBJECTS SECTIONS (were hidden on tablet, now visible) --- */
    /* Subjects heading */
    .elementor-85 .elementor-element.elementor-element-b52c463 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-7cd14d09 {
        width: 100% !important;
    }
    .elementor-85 .elementor-element.elementor-element-34530cf6 .elementor-heading-title {
        font-size: 36px !important;
    }

    /* Subjects 2-col rows: keep 50/50 on tablet with proper wrapping */
    .elementor-85 .elementor-element.elementor-element-246cbaa2 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-30700f66 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-25766342 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-b66755 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-246cbaa2 .elementor-column,
    .elementor-85 .elementor-element.elementor-element-30700f66 .elementor-column,
    .elementor-85 .elementor-element.elementor-element-25766342 .elementor-column,
    .elementor-85 .elementor-element.elementor-element-b66755 .elementor-column {
        width: 50% !important;
    }

    /* Subjects sections: proper padding */
    .elementor-85 .elementor-element.elementor-element-b52c463,
    .elementor-85 .elementor-element.elementor-element-246cbaa2,
    .elementor-85 .elementor-element.elementor-element-30700f66,
    .elementor-85 .elementor-element.elementor-element-25766342,
    .elementor-85 .elementor-element.elementor-element-b66755 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Discover Admissions button: reduce height on tablet */
    .elementor-85 .secondary-button-3 {
        height: 100px !important;
    }

    /* --- CURRICULUM STRUCTURE SECTION --- */
    /* 3-col layout: stack properly */
    .elementor-85 .elementor-element.elementor-element-40c1ce1c > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-55290a88 {
        width: 100% !important;
        padding: 20px !important;
    }
    .elementor-85 .elementor-element.elementor-element-7dc356d6 .elementor-heading-title {
        font-size: 30px !important;
    }

    /* Curriculum Structure section 2 (content + image): stack properly */
    .elementor-85 .elementor-element.elementor-element-1636729a > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-2d3650c6 {
        width: 100% !important;
        order: -1;
    }
    .elementor-85 .elementor-element.elementor-element-25d8284d {
        width: 100% !important;
    }
    .elementor-85 .elementor-element.elementor-element-25d8284d img {
        max-height: 50vh;
        width: 100%;
        object-fit: cover;
    }

    /* --- QUOTE / FOOTER SECTION --- */
    .elementor-85 .elementor-element.elementor-element-126c35da {
        margin-top: -15px !important;
    }

    /* Quote section inner layout */
    .elementor-85 .elementor-element.elementor-element-60758b75 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-224cfb5 {
        width: 0 !important;
        display: none !important;
    }
    .elementor-85 .elementor-element.elementor-element-3ca8e2cd {
        width: 100% !important;
    }
    .elementor-85 .elementor-element.elementor-element-7663e3a8 .elementor-heading-title {
        font-size: 30px !important;
    }

    /* --- GENERAL: prevent horizontal overflow --- */
    .elementor-85 .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
    }
    .elementor-85 .elementor-inner-section .elementor-container {
        max-width: 100% !important;
    }
    .elementor-85 {
        overflow-x: hidden;
    }

    /* Image boxes: ensure images don't overflow */
    .elementor-85 .elementor-image-box-img img {
        max-width: 100%;
        height: auto;
    }
}
/* ===== END ACADEMICS PAGE TABLET FIXES ===== */

/* ===== ACADEMICS PAGE (post 85) — TABLET RESPONSIVE FIXES (768px–1024px) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* --- HERO SECTION: reduce aggressive negative top margin --- */
    .elementor-85 .elementor-element.elementor-element-4d14af6d {
        margin-top: -30px !important;
    }

    /* Hero inner section: ensure columns wrap properly */
    .elementor-85 .elementor-element.elementor-element-29e1e49c > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-73f511fb,
    .elementor-85 .elementor-element.elementor-element-2c1ca8ed {
        width: 100% !important;
    }

    /* Hero text column: add proper padding */
    .elementor-85 .elementor-element.elementor-element-2c1ca8ed > .elementor-element-populated {
        padding: 30px 20px !important;
    }

    /* Hero heading: adjust font and padding for tablet */
    .elementor-85 .elementor-element.elementor-element-60c1ecc2 {
        padding: 20px 0 0 0 !important;
    }
    .elementor-85 .elementor-element.elementor-element-60c1ecc2 .elementor-heading-title {
        font-size: 36px !important;
    }

    /* Hero CBSE cards 2x2 grid: ensure proper spacing */
    .elementor-85 .elementor-element.elementor-element-7d2d80c9 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-14a786a5 > .elementor-container {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .elementor-85 .elementor-element.elementor-element-74af2885,
    .elementor-85 .elementor-element.elementor-element-198ab027,
    .elementor-85 .elementor-element.elementor-element-494a66e4,
    .elementor-85 .elementor-element.elementor-element-78cb79ab {
        width: 48% !important;
    }

    /* Enroll Today buttons: reduce height on tablet */
    .elementor-85 .secondary-button-4 {
        height: 55px !important;
        min-height: 55px !important;
    }

    /* --- PEDAGOGICAL FOUNDATION / PROGRAMS SECTION --- */
    /* Section heading: proper padding */
    .elementor-85 .elementor-element.elementor-element-104d3673 {
        padding: 20px !important;
    }

    /* Programs + Subjects heading: scale for tablet */
    .elementor-85 .elementor-element.elementor-element-901260 .elementor-heading-title {
        font-size: 36px !important;
    }

    /* --- SUBJECTS SECTIONS (previously hidden on tablet, now visible) --- */
    /* Subjects heading section */
    .elementor-85 .elementor-element.elementor-element-b52c463 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-7cd14d09 {
        width: 100% !important;
    }
    .elementor-85 .elementor-element.elementor-element-34530cf6 .elementor-heading-title {
        font-size: 36px !important;
    }

    /* Subjects 2-col rows: keep 50/50 on tablet */
    .elementor-85 .elementor-element.elementor-element-246cbaa2 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-30700f66 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-25766342 > .elementor-container,
    .elementor-85 .elementor-element.elementor-element-b66755 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-246cbaa2 .elementor-column,
    .elementor-85 .elementor-element.elementor-element-30700f66 .elementor-column,
    .elementor-85 .elementor-element.elementor-element-25766342 .elementor-column,
    .elementor-85 .elementor-element.elementor-element-b66755 .elementor-column {
        width: 50% !important;
    }

    /* Subjects sections: proper padding */
    .elementor-85 .elementor-element.elementor-element-246cbaa2,
    .elementor-85 .elementor-element.elementor-element-30700f66,
    .elementor-85 .elementor-element.elementor-element-25766342,
    .elementor-85 .elementor-element.elementor-element-b66755 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Discover Admissions button: reduce height on tablet */
    .elementor-85 .secondary-button-3 {
        height: 100px !important;
    }

    /* --- CURRICULUM STRUCTURE SECTION --- */
    /* 3-col layout: stack properly */
    .elementor-85 .elementor-element.elementor-element-40c1ce1c > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-55290a88 {
        width: 100% !important;
        padding: 20px !important;
    }
    .elementor-85 .elementor-element.elementor-element-7dc356d6 .elementor-heading-title {
        font-size: 30px !important;
    }

    /* Curriculum Structure section 2 (image + content): stack properly */
    .elementor-85 .elementor-element.elementor-element-1636729a > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-2d3650c6 {
        width: 100% !important;
        order: -1;
    }
    .elementor-85 .elementor-element.elementor-element-25d8284d {
        width: 100% !important;
    }
    .elementor-85 .elementor-element.elementor-element-25d8284d img {
        max-height: 50vh;
        width: 100%;
        object-fit: cover;
    }

    /* --- QUOTE / FOOTER SECTION --- */
    /* Reduce aggressive negative margin */
    .elementor-85 .elementor-element.elementor-element-126c35da {
        margin-top: -15px !important;
    }

    /* Quote section inner layout */
    .elementor-85 .elementor-element.elementor-element-60758b75 > .elementor-container {
        flex-wrap: wrap !important;
    }
    .elementor-85 .elementor-element.elementor-element-224cfb5 {
        width: 0 !important;
        display: none !important;
    }
    .elementor-85 .elementor-element.elementor-element-3ca8e2cd {
        width: 100% !important;
    }
    .elementor-85 .elementor-element.elementor-element-7663e3a8 .elementor-heading-title {
        font-size: 30px !important;
    }

    /* --- GENERAL: prevent horizontal overflow --- */
    .elementor-85 .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
    }
    .elementor-85 .elementor-inner-section .elementor-container {
        max-width: 100% !important;
    }
    .elementor-85 {
        overflow-x: hidden;
    }

    /* Image boxes: ensure images don't overflow */
    .elementor-85 .elementor-image-box-img img {
        max-width: 100%;
        height: auto;
    }
}
/* ===== END ACADEMICS PAGE TABLET FIXES ===== */

/* ===== FACILITY PAGE (post 87) — TABLET RESPONSIVE FIXES (768px–1024px) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Image-boxes 3-col section: ensure proper wrapping */
    .elementor-87 .elementor-element.elementor-element-70a07b49 > .elementor-container {
        flex-wrap: wrap !important;
    }

    /* Image-box columns: 50% on tablet for 2+1 layout */
    .elementor-87 .elementor-element.elementor-element-10bbc65f,
    .elementor-87 .elementor-element.elementor-element-31853a22,
    .elementor-87 .elementor-element.elementor-element-1f665903 {
        width: 50% !important;
    }

    /* Image-box padding: reduce for tablet */
    .elementor-87 .elementor-element.elementor-element-6f0358de,
    .elementor-87 .elementor-element.elementor-element-40614662,
    .elementor-87 .elementor-element.elementor-element-5833ed3a {
        padding: 15px 15px 15px 20px !important;
    }

    /* Prevent horizontal overflow */
    .elementor-87 {
        overflow-x: hidden;
    }

    /* Button section: ensure full width */
    .elementor-87 .elementor-element.elementor-element-198baeb1 > .elementor-container {
        flex-wrap: wrap !important;
    }

    .about-heritage-section {
    background-color: #020610;
}
.shape-img img {
    width: 25% !important;
    height: auto;
}
}

/* ===== FACILITY PAGE (post 87) — MOBILE FIXES (≤767px) ===== */
@media screen and (max-width: 767px) {

    /* Image-boxes section: remove gap and fix wrapping */
    .elementor-87 .elementor-element.elementor-element-70a07b49 > .elementor-container {
        flex-wrap: wrap !important;
    }

    /* Image-box columns: full width on mobile */
    .elementor-87 .elementor-element.elementor-element-10bbc65f,
    .elementor-87 .elementor-element.elementor-element-31853a22,
    .elementor-87 .elementor-element.elementor-element-1f665903 {
        width: 100% !important;
    }

    /* Prevent horizontal overflow */
    .elementor-87 {
        overflow-x: hidden;
    }
}
/* ===== END FACILITY PAGE FIXES ===== */

#dimension-cont li {
    margin-bottom: 10px;
}

@media (max-width: 712px) {
    .about-heritage-section {
        background-color: #000 !important;
    }
    .shape-img img {
    width: 25% !important;
    height: auto;
}
}

@media (max-width: 1440px) and (max-height: 900px) {
    .about-heritage-section {
        background-color: #020610 !important;
    }
}

@media (max-width: 540px) {
    .about-heritage-section {
        background-color: #000 !important;
    }
}

@media (max-width: 480px) {
    .about-heritage-section {
        background-color: #000 !important;
    }
}