a {
    text-decoration: none;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0 !important;
    padding: 0 0 !important;
    overflow-x: hidden;
}

.bg-success {
    background-color: #39a164 !important;
}

.bg-light-blue {
    background-color: #e3f2fd !important;
}

.bg-light-green {
    background-color: #e8f5e9 !important;
}

.bg-light-yellow {
    background-color: #fffde7 !important;
}

.bg-light-pink {
    background-color: #fce4ec !important;
}

.bg-light-purple {
    background-color: #f3e5f5 !important;
}

.bg-light-grey {
    background-color: #f5f5f5 !important;
}

.text-yac {
    color: green;
}

.text-success {
    color: #09933c !important;
}

.text-purple {
    color: rebeccapurple;
}

.text-bold {
    font-size: 20px;
    font-weight: bolder;
}

.bg-yac {
    background: #6ad145;
    background: linear-gradient(90deg, rgb(192, 231, 178) 1%, rgba(87, 199, 133, 1) 50%, rgba(156, 201, 97, 0.98) 100%);
}

.top-header {
    border-bottom: 1px solid #ddd;
    z-index: 1001;
    position: relative;
}

.top-header .contact-info a {
    color: #eae2e2;
    margin-right: 10px;
    font-size: 0.65rem;
    text-decoration: none;
}

.top-header .contact-info a i {
    margin-right: 5px;
}

.top-header .social-links a {
    color: #333;
    margin: 0 2px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.top-header .social-links a:hover {
    color: #b71c1c;
}

.top-header .action-links a {
    color: whitesmoke;
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.top-header .action-links a:hover {
    color: #b71c1c;
}

.top-header .action-links a {
    color: rebeccapurple;
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.header {
    background-color: rgb(254, 248, 248);
    padding: 10px 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    position: relative;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    animation: slideDown 0.3s ease forwards;
}

.navbar-placeholder {
    height: 0;
}

MATH navbar-placeholder.sticky {
    height: auto;
}

.navbar-nav .nav-link {
    padding: 12px 15px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #1f0606 !important;
}

.navbar-toggler ion-icon {
    font-size: 28px;
    color: #ffffff;
}

.dropdown-hover {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-hover:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-custom {
    list-style: none;
    margin: 0;
}

.dropdown-icon {
    font-size: 20px;
    margin-top: 4px;
}

.dropdown-menu-custom li {
    padding: 8px 20px;
}

.dropdown-menu-custom li a {
    color: green;
    text-decoration: none;
    display: block;
}

.dropdown-menu-custom li a:hover {
    background-color: #b4ebaf;
    color: #ffffff;
}

.navbar-expand-lg .navbar-nav .nav-link {
    font-weight: 400 !important;
    font-size: 16px !important;
}

.logo {
    width: 250px;
}

h5.ms-5 {
    position: relative !important;
    left: 33px !important;
}

@media (min-width: 992px) {
    .nav-item.dropdown .nav-link::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 8px;
        vertical-align: middle;
        border-top: 5px solid;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-item.dropdown:hover .nav-link::after {
        border-top-color: #5a98d6;
        transform: rotate(180deg);
    }

    .nav-item.dropdown .dropdown-menu {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        color: #333;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 20px;
        text-transform: capitalize;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: #5a98d6;
        color: #ffffff;
    }

    .col-lg-6.text-start.mb-4.mb-lg-0.px-4.pb-4 {
        position: relative;
        bottom: 25px;
    }
}

@media (max-width: 991px) {
    .sidebar-nav .navbar-collapse {
        position: fixed;
        top: 38px;
        right: 0;
        width: 280px;
        height: 100%;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 20px;
        transform: translateX(100%);
    }

    .sidebar-nav .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        background-color: #ffffff;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        color: #333 !important;
    }

    .nav-item.dropdown .nav-link::after {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 6px solid #333;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-item.dropdown.active .nav-link::after {
        transform: translateY(-50%) rotate(180deg);
        border-top-color: #5a98d6;
    }

    .navbar-nav .nav-item.dropdown .dropdown-menu {
        display: none;
        width: 100%;
        padding: 0 0 0 20px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .navbar-nav .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        font-size: 1rem;
        padding: 8px 0;
        color: #333;
        cursor: pointer;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: #5a98d6;
        color: #ffffff;
    }

    .navbar-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .top-header .social-links {
        display: none;
    }

    .top-header .container {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .top-header .contact-info {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
        width: 100%;
        align-items: center;
        font-size: 0.75rem;
    }

    .top-header .action-links {
        display: none;
        /*flex-wrap: nowrap;*/
        /*align-items: center;*/
        /*font-size: 0.75rem;*/
    }

    .top-header .action-links a {
        margin-left: 8px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
    }
}

/* ........................................hero section............................. */
.section-heading {
    font-size: 2.2rem;
    font-family: 'Segoe UI', sans-serif;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    display: inline-block;
    background-color: #f9f9f9;
}

.about-section .btn {
    font-size: 1rem;
    text-transform: uppercase;
}

.course-card i {
    transition: transform 0.3s ease;
}

.course-card:hover i {
    transform: scale(1.2);
}

.course-card {
    transition: box-shadow 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


/* ..................................whatsapp icon .....................................*/

.wapp-section {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    width: auto;
}

@media (max-width: 576px) {
    .wapp-section {
        bottom: 4rem;
        right: 9rem;
        transform: scale(0.9);
    }

    .custom-bg-container {
        height: 220px;
    }
}


.w-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: shine 2s infinite alternate;
    cursor: pointer;
}

@media (max-width: 576px) {
    .wapp-section a img {
        /* width: 40px;
        height: 40px; */
        position: absolute;
        left: 70px;
    }
}

.w-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.9);
}

@keyframes shine {
    0% {
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 1);
    }
}


/* ...............................hero container........................... */
.hero-section {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.custom-bg-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;


    margin-top: 5px;
    margin: 0px !important;
}

.bg-success:hover {
    background-color: rgb(222, 89, 89) !important;
}

/* ------------................--sliders..................---------------- */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


.slider img:nth-child(1) {
    opacity: 1;
}

.custom-bg-container .row {
    position: relative;
    z-index: 2;
}

.service:hover {
    /* background-color: rgba(152, 145, 145, 0.53); */
    transform: translateY(-3px);
}

/* ---------------marquee----------------- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(142, 219, 145, 0.523), rgba(64, 237, 153, 0.3), rgba(49, 168, 69, 0.567));
    padding: 10px 0;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    border-top: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 4px 10px var(--shadow);
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite, fadeInShadow 2s ease-in forwards;
    white-space: nowrap;
    box-shadow: 0 -10px 20px rgba(34, 194, 34, 0.7), 0 10px 20px rgba(29, 187, 29, 0.7);
    padding: 15px;
    font-size: 18px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeInShadow {
    0% {
        box-shadow: 0 0 0 rgba(0, 128, 0, 0);
    }

    100% {
        box-shadow: 0 -10px 20px rgba(27, 195, 27, 0.7), 0 10px 20px rgba(42, 179, 42, 0.7);
    }
}

.marquee span {
    display: inline-block;
    font-size: 28px;
    font-family: var(--font);
    font-weight: 600;
    color: var(--orange);
    margin: 0 50px;
    vertical-align: middle;
    text-shadow: 1px 1px 2px var(--shadow);
    transition: transform 0.9s ease, color 0.9s ease;
}

.marquee span:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee:hover {
    animation-play-state: paused;
}

/* Decorative elements */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, rgba(179, 230, 79, 0.5), transparent);
    z-index: 1;
}

.marquee-container::before {
    left: 0;
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(133, 210, 112, 0.5), transparent);
}

.video {
    margin-top: 70px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-text {
    margin-top: 90px;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or "contain" depending on your design */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Adjust as needed */
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    /* Maintains aspect ratio */
}

.video-container video {
    width: 100%;
    height: 110%;
    object-fit: cover;
    /* Ensures video fills container while maintaining aspect ratio */
    border-radius: 18px;

}

.btn-outline-primary {
    border-color: #d32f2f;
    color: #d32f2f;
}

.btn-outline-primary:hover {
    background-color: #67c13a;
    color: white !important;
    border-color: #a2d156;
}

.touch {
    border-radius: 20px;
}

.scroll-heading {
    transition: transform 0.3s ease-out, opacity 0.5s ease-out;
    transform: translateY(20px);
    /* Initial position */
    opacity: 0;
    /* Start with the heading invisible */
    display: block;
    font-size: 2.7rem;
}

.scroll-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.underline-text {
    position: relative;
    color: inherit;
    text-decoration: none;
}

.underline-text::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #008000;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.underline-text:hover::after {
    transform: scaleX(1);
    /* Hover par full show ho */
    transform-origin: bottom left;
    /* Animation direction */
}


.service-item {
    background: #fff;
    box-shadow: 2px 1px 2px rgba(43, 42, 42, 0.1);
    transition: transform 0.5s ease;
}

.service-item:hover {
    transform: translateY(-4px);
}

.service-item i {
    color: #d32f2f;
}

.rounded {
    border-radius: 10px !important;
}

.about-img {
    transition: transform 0.3s ease;
}

.medical:hover {
    background-image: linear-gradient(90deg, #FFD6E0 0%, #FAF3DD 100%);
}

.iit:hover {
    background-image: linear-gradient(90deg, #CCF2FF 0%, #FFFFFF 100%);
}

.school:hover {
    background-image: linear-gradient(90deg, #FFFACD 0%, #DFFFD6 100%);
}

.foundation:hover {
    background-image: linear-gradient(90deg, #FFE5B4 0%, #FFF9EC 100%);
}

.about-img:hover {
    transform: scale(1.05);
}

.faculty-card {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
}

.faculty-img {
    height: 200px;
    object-fit: cover;
}

.footer {
    background-color: #1a1a1a;
}

.footer-headings {
    color: #d32f2f;
    font-size: 1.5rem;
}

.btn-social {
    margin-right: 10px;
}

.company-links {
    color: #fff;
    text-decoration: none;
}

.company-links:hover {
    color: #d32f2f;
}

.scroll-heading {
    padding-bottom: 40px;
    background: transparent;
    opacity: 1;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-heading:hover {
    text-shadow: 12px 12px 100px rgb(3, 32, 36) !important;
}

.scroll-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.about {
    position: relative;
    /* Ensure the pseudo-element is positioned relative to this section */
    padding: 0px 0;
    padding-bottom: 200px;
    background: none;
    /* Remove direct background image */
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(assets/images/About/blue-bg.png);
    background-size: cover;
    /* Adjust as needed */
    background-position: center;
    /* Adjust as needed */
    opacity: 0.75;
    /* Set desired opacity (e.g., 0.5 for 50% transparency) */
    z-index: -1;
    /* Place the pseudo-element behind the content */
}

.about .container {
    max-width: 1300px;
}

.about h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: auto;
    position: relative;
    left: 0;
    padding-bottom: 1px;
}

@media(min-width: 1200px) {
    .about h1 {
        width: 113vh;
        left: 13.7rem;
    }
}

.about h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.about p {
    font-size: 1rem;
    margin-bottom: 12px;
}

.about .btn {
    min-width: 180px;
    padding: 12px 25px;
    line-height: 1.2;
    font-size: 16px;
}

.about-icon {
    font-size: 26px;
    margin-right: 10px;
}

.about img {
    max-width: 400px !important;

    height: auto;
}

.about-sub-heading {
    font-size: 1.8rem;
}

@media(max-width: 425px) {
    .demo-btn {
        position: relative;
        top: 18px;
    }

    .call-btn {
        position: relative;
        top: 26px;
        right: 4px;
    }

    .about h1 {
        left: -3px;
        font-size: 32px;
    }

    .about h1 .break-here::after {
        content: '\A';
        white-space: pre;
        /* display: block; */
    }
}

/* Extra safety: Phone/touch par agar phir bhi underline dikhe to force hide */
@media (hover: none) {
    .underline-text:hover::after {
        transform: scaleX(0) !important;
        opacity: 0;
    }
}

/* .row.align-items-center.mb-5 {
    position: relative;
    top: -80px;
} */

.slogan-div {
    align-items: center !important;
    display: flex;
    justify-content: center;
}

.yac {
    position: relative;
    bottom: 70px;
}

.courses {
    margin-top: 10px;
    position: relative;
    bottom: 215px;
}

.courses .container .p-4 {
    height: 300px;

}

.intro-video-section {
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.text-box {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.text-box h2 {
    font-size: 2rem;
    font-weight: 700;
}

.text-box p {
    font-size: 1.2rem;
}

/* ---------------------topper-------------------- */

blockquote {
    border-left: 5px solid #c5ecb1;
    padding-left: 15px;
    font-style: italic;
}

/* ----.......................-counter section-..................---- */


/* Base for join-list: Bullets hatao, padding clean karo, aur flex layout for alignment */
.join-list {
    list-style: none; /* Bullets ko completely remove kar de */
    padding: 0;
    margin: 0;
    font-family: 'Arial', sans-serif; /* Clean font, agar custom font hai to change kar */
}

/* Har li item ko flex banao: Icon left, text right, with good spacing */
.join-list li {
    display: flex;
    align-items: flex-start; /* Icon aur text top se align */
    margin-bottom: 1.2rem; /* Vertical spacing between items */
    transition: all 0.3s ease; /* Smooth hover animation */
    border-left: 3px solid #e8f5e9; /* Subtle left border for accent (light green) */
    padding-left: 1rem;
}

/* Icon styling: Larger, colorful, aur margin-right for separation */
.join-list li i {
    font-size: 1.5rem; /* Icon ko bada banao (default se better) */
    color: #09933c; /* Success green, tere theme se match (text-success color) */
    margin-right: 0.8rem;
    flex-shrink: 0; /* Icon shrink na ho */
    /* margin-top: 0.2rem; */
}

/* Span text: Font size adjust, line-height for readability, aur strong bold rakho */
.join-list li span {
    font-size: 1rem; /* Base size, readable */
    line-height: 1.5;
    color: #333; /* Dark text for contrast */
    flex: 1; /* Text full width le le */
}

.join-list li strong {
    color: #2c5aa0; /* Bold parts ko blue-ish banao for emphasis (JEE/NEET jaise keywords) */
    font-weight: bold;
}

/* Hover effect: Item pe hover karne pe lift aur color change – engaging lagega */
.join-list li:hover {
    transform: translateX(5px); /* Right slide for fun effect */
    background-color: rgba(232, 245, 233, 0.3); /* Light green background on hover */
    border-left-color: #09933c; /* Border green ho jaye */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.join-list li:hover i {
    color: #28a745; /* Icon darker green on hover */
    transform: scale(1.1); /* Thoda zoom for pop */
}

/* Mobile/Tablet Responsive: Icons upar, text full width (under 768px) */
@media (max-width: 767px) {
    .join-list li {
        flex-direction: column; /* Stack: Icon upar, text neeche */
        align-items: flex-start;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
        border-left: none; /* Mobile pe border hata de */
        border-bottom: 1px solid #e8f5e9; /* Bottom line for separation */
        padding-bottom: 0.8rem;
    }
    
    .join-list li i {
        margin-right: 0; /* No right margin on mobile */
        margin-bottom: 0.5rem; /* Bottom space */
        font-size: 1.3rem; /* Thoda chhota mobile pe */
    }
    
    .join-list li span {
        font-size: 0.95rem; /* Text smaller on mobile */
    }
    
    .join-list li:hover {
        transform: none; /* Mobile pe slide hata de, touch pe active use kar */
        background-color: rgba(232, 245, 233, 0.2);
    }
    
    .join-list li:active {
        background-color: rgba(232, 245, 233, 0.4); /* Tap pe highlight */
    }
}

/* Extra small screens (under 480px): Even tighter */
@media (max-width: 479px) {
    .join-list li {
        margin-bottom: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .join-list li span {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}



.counter-section {
    position: relative;
    text-align: center;
    padding: 50px 20px;
    z-index: 11;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: visible; /* Yeh main fix: hidden ko visible kar de, taaki lift dikhe */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3e2cd 100%);
    min-height: 66vh; /* Thoda adjust for better fit */
}

.counter-section .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
    /* Increased opacity for better visibility; adjust as needed */
}

.counter-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.counter-section p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.counter-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 80px;
    /* max-width: 1200px; */
}

#counter-container {
    background-image: linear-gradient(to right, #daedff, #e7f2cb, #cbf1fd);
    padding: 40px 20px; /* Space around content */
    border-radius: 50px; /* Optional: rounded corners for the section */
    text-align: center; /* Centers text in heading and labels */
    margin: 0 auto; /* Centers the whole section on page */
    /* z-index: -1; */
    position: relative;
    width: 180vh;
    height: 75vh;
}

.counter-section .container {
    padding-bottom: 22px;
} 

.counter-box {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Box-shadow add kar de smooth glow ke liye */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative; /* Lift ke liye z-index help karega */
    cursor: pointer;
    pointer-events: auto;
}

.counter-box:hover {
    transform: translateY(-5px) !important; /* !important se override, agar Bootstrap block kare */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4) !important; /* Enhanced shadow on hover */
}

.counter-box h3 {
    font-size: 3em;
    color: #007bff;
    margin: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .counter-section {
        padding: 40px 15px;
        min-height: 60vh;
        border-radius: 15px;
    }

    #counter-container {
        padding: 0px 22px;
        border-radius: 30px;
        max-width: 100%;
        height: 87vh;
    }

    .counter-section h1 {
        font-size: 2rem;
    }

    .counter-section p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .counter-container {
        gap: 15px;
        justify-content: space-between; /* Better distribution for 4 items */
    }

    .counter-box {
        padding: 15px;
        min-width: 180px;
        max-width: 220px;
    }

    .counter-box h3 {
        font-size: 2.5rem;
    }

    .counter-box p {
        font-size: 0.95rem;
    }

    .background-video {
        opacity: 0.6; /* Slightly less prominent on mid-size */
    }
}

@media (max-width: 767px) {
    .counter-section {
        padding: 30px 10px;
        min-height: auto;
        border-radius: 8px;
    }

    #counter-container {
        padding: 25px 10px;
        border-radius: 20px;
        max-width: 100%;
        margin: 0;
        height: 145vh;
    }

    .counter-section h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .counter-section p {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .counter-container {
        flex-direction: column; /* Stack vertically */
        align-items: center;
        gap: 15px;
        margin: 0;
    }

    .counter-box {
        width: 100%;
        max-width: 300px; /* Reasonable width on mobile */
        min-width: auto;
        padding: 15px;
        min-height: 80px; /* Touch-friendly height */
    }

    .counter-box h3 {
        font-size: 2rem;
    }

    .counter-box p {
        font-size: 0.9rem;
        margin-top: 5px;
    }

    .background-video {
        opacity: 0.5; /* Softer on small screens */
    }
}

.counter-text {
    position: relative;
    bottom: 50px;
}

@media(min-width: 1200px) {
    .counter-text {
        width: 110vh;
        position: relative;
        left: 15.7rem;
    }
}



/* ----- Gravity Section -------*/


.gravity-unique-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 50%, #376438 100%);
    padding: 60px 0;
    color: #2c3e50;
    font-family: Arial, sans-serif;
}

.gravity-unique-section h2 {
    color: #3d3a3d;
    font-size: 2.7rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.gravity-unique-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.feature-box {
    padding: 30px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 245, 232, 0.6), transparent);
    transition: left 0.5s;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(248, 224, 224, 0.95) 0%, rgba(234, 233, 181, 0.95) 100%);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.15);
    cursor: pointer;
}

.feature-box h3 {
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 auto 20px;
    line-height: 1.2;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-box p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}



.fea-container {
    background-image: linear-gradient(to right, #daedff, #e7f2cb, #cbf1fd);
    border-radius: 30px;
    padding: 45px 44px 22px 43px;
    margin: 0 auto; /* Centers if needed */
}

@media (min-width: 768px) and (max-width: 991px) {
     .fea-container {
        border-radius: 20px;
        padding: 35px 25px 20px 25px;
    }

    .gravity-unique-section h2 {
        font-size: 2rem; /* Keep as you had, but ensure it's responsive */
    }
    
    .feature-box {
        padding: 15px;
        margin-bottom: 0; /* Rely on col mb-4 */
    }
    
    .feature-box h3 {
        font-size: 1.125rem;
    }
    
    .feature-box p {
        font-size: 0.875rem;
    }
}


@media (max-width: 767px) {
    .fea-container {
        border-radius: 15px;
        padding: 25px 20px 15px 20px;
    }
    
    .feature-box {
        padding: 15px;
        margin-bottom: 1.5rem; /* More vertical space when stacked */
        width: 100%;
    }
    
    .feature-box h3 {
        font-size: 1rem;
    }
    
    .feature-box p {
        font-size: 0.8125rem;
        text-align: left; /* Better for narrow reading */
    }
}

/* Extra small mobile (under 480px) */
@media (max-width: 479px) {
    .fea-container {
        padding: 20px 15px 10px 15px;
    }
    
    .feature-box {
        padding: 12px;
    }
    
    .feature-box h3 {
        font-size: 0.9375rem;
    }
    
    .feature-box p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* --.........................--result image----..................... */
.result {
    position: relative;
    top: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 20px auto !important;
    background-color: rgb(247, 248, 248);
    ;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.topper-heading {
    font-family: fangsong;
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    bottom: 2rem;
}

@media(min-width:1200px) {
    .topper-heading {
        width: 40vh;
        left: 32rem;
    }
}

.card {
    align-items: center;
    padding: 20px;
    width: 30%;
    background-color: rgb(247, 225, 225);
    ;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.result-img {
    border-radius: 50%;
    width: 80px;
}

.result-head {
    border-top: 1px solid #333;
    width: 100%;
}

.toppers-section {
    background: linear-gradient(135deg, #b2dbaf 0%, #f4f5f4 100%);
    position: relative;
}

.image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topper-card {
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .connection-icon {
        font-size: 20px;
    }

    .cross-connector {
        right: -10px !important;
        left: -10px !important;
    }

    .square-end {
        margin: -5px auto 0;
    }
}

.topper-content {
    padding: 50px;
    background: #f8f9fa;
    /* Light background like in the screenshot */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*............................... Section result Styling .........................*/

section h1 {
    width: 100%;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 8px;
    /* background-color: #f9f9f9; */
}


.slider img.active {
    opacity: 1;
    z-index: 1;
}


.slider img:first-child {
    opacity: 1;
}


.toppers h2 {
    width: 100%;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    background-color: #f9f9f9;
}

.toppers {
    width: 100%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
    padding: 2px 5px;
    margin-left: 20px;
    margin-right: 20px;
}


.topper-card {
    background: #ffffff;
    /* margin-bottom: 50px; */
    margin-top: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    text-align: center;
    padding: 15px 10px;
    transition: transform 0.3s ease;
    max-height: 392px;
    object-fit: cover;
}

.topper-content:hover,
.topper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(112, 109, 109, 0.3);
    /* Red glow tying to testimonials */
}


.topper-card img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #3498db;
}

@media(min-width: 1200px) {
    .topper-img-1 {
        position: relative;
        left: 15rem;
    }

    .topper-img-3 {
        position: relative;
        left: 15rem;
    }
}

.topper-card h4 {
    font-weight: 600;
    font-size: 1rem;
    margin: 5px 0;
    color: #2c3e50;
}

.topper-card .rank {
    font-size: 0.9rem;
    color: #27ae60;
}

/* ==== Responsive Design ==== */
@media (max-width: 992px) {
    .topper-card {
        width: 45%;
    }

    /* .slider {
    height: px;
  } */
}

@media (max-width: 576px) {
    section h2 {
        font-size: 1.5rem;
    }

    .topper-card {
        width: 90%;
        position: relative;
        top: 22px;
        left: 0px;
    }

    .slider {
        height: 220px;
    }
}

/* ==== Anchor Targets for Navigation ==== */
.MBA,
.Bcom,
.class11 {
    scroll-margin-top: 80px;
    /* Space for fixed nav */
    padding-bottom: 40px;
}



.parallax {
    background: radial-gradient(circle at center, rgba(200, 200, 220, 0.3) 0%, rgba(40, 60, 120, 0.5) 100%),
        url('https://images.unsplash.com/photo-1546484396-fb3fc6f8b816?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Increased opacity for better text visibility */
    z-index: 1;
}

/* Contact Wrapper */
.contact-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    position: relative;
    z-index: 2;
}

/* Contact Left */
.contact-left {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.contact-left.slide-in-left {
    animation: slideInFromLeft 1s ease-out forwards;
}

.company-info {
    background: linear-gradient(291deg, #000000c0 52%, #0000008c 100%) !important;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    min-height: 520px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    transition: box-shadow 0.3s ease;
}

.company-info:hover {
    box-shadow: 0 8px 25px rgba(0, 120, 215, 0.3);
}

.company-info h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    margin: 43px 0;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-block:nth-child(1) {
    animation-delay: 0.2s;
}

.info-block:nth-child(2) {
    animation-delay: 0.4s;
}

.info-block:nth-child(3) {
    animation-delay: 0.6s;
}

.info-block:nth-child(4) {
    animation-delay: 0.8s;
}

.info-block .icon {
    font-size: 1.4em;
    color: rgb(186, 215, 187);
    margin-right: 12px;
    margin-top: 5px;
}

.info-block h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
    position: relative;
}

.info-block h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #0288d1;
    transition: width 0.3s ease;
}

.info-block:hover h3::after {
    width: 50px;
}

.info-block p {
    font-size: 0.95em;
    color: #c7c1c1;
    /* Darker text for visibility */
    line-height: 1.5;
}

.info-block a {
    color: #e1ebe5;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-block a:hover {
    color: #bccdda;
    text-decoration: underline;
    transform: scale(1.05);
}

/* Contact Right */
.contact-right {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.contact-right.slide-in-right {
    animation: slideInFromRight 1s ease-out forwards;
}

.contact-container {
    background: linear-gradient(291deg, #000000ab 52%, #0000008c 100%) !important;
    text-align: center;
    padding: 18px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    min-height: 520px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.contact-container h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    /* High contrast for visibility */
    font-weight: 700;
    font-family: initial;
}

.form-group {
    position: relative;
    margin: 12px 0;
    opacity: 0;
}

.form-group.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.2s;
}

.form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.form-group:nth-child(3) {
    animation-delay: 0.4s;
}

.form-group:nth-child(4) {
    animation-delay: 0.5s;
}

.form-group:nth-child(5) {
    animation-delay: 0.6s;
}

.form-group~.btn.animate {
    animation-delay: 0.7s;
    background-color: wheat;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #666;
    border-radius: 6px;
    color: #333;
    /* Dark text for visibility */
    font-size: 0.95em;
    background: #fff;
    /* White background for inputs */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #0288d1;
    box-shadow: 0 0 8px rgba(2, 136, 209, 0.4);
    transform: scale(1.02);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #888;
    font-size: 0.95em;
    background: transparent;
    /* Ensure label doesn't obscure input */
    transition: all 0.2s ease;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
    z-index: 3;
    /* Ensure label is above input */
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group select:focus+label,
.form-group select:not(:placeholder-shown)+label {
    top: -18px;
    left: 8px;
    font-size: 0.75em;
    color: rebeccapurple;
    background: #fff;
    padding: 0 4px;
}

.btn.animate {
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-left {
        margin-bottom: 30px;
    }

    .company-info,
    .contact-container {
        max-width: 100%;
        min-height: 400px;
    }
}

@media (max-width: 480px) {

    .company-info,
    .contact-container {
        padding: 15px;
        min-height: 350px;
    }

    .company-info h2,
    .contact-container h1 {
        font-size: 1.3em;
    }

    .scroll-heading {
        font-size: 1.8rem;
    }

    .info-block h3 {
        font-size: 1.1em;
    }

    .info-block p {
        font-size: 0.9em;
    }

    .info-block .icon {
        font-size: 1.2em;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px;
        font-size: 0.9em;
    }

    .form-group label {
        top: 8px;
        font-size: 0.9em;
    }

    .form-group input:focus+label,
    .form-group input:not(:placeholder-shown)+label,
    .form-group textarea:focus+label,
    .form-group textarea:not(:placeholder-shown)+label,
    .form-group select:focus+label,
    .form-group select:not(:placeholder-shown)+label {
        top: -8px;
        font-size: 0.7em;
    }
}

@media (max-width: 576px) {
    .custom-bg-container {
        height: 220px !important;
    }
}

/* ------testimonial section----- */

.bg-gradient {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

.testimonial-section .carousel-item {
    transition: transform 0.5s ease-in-out;
}

.testimonial-section iframe {
    border-radius: 0.5rem;
}

.blockquote {
    font-size: 1.25rem;
}

.blockquote-footer {
    color: #6c757d;
}

.k-12-img {
    width: 500px;
    height: 300px;
    align-items: center;
}

/* ........................blog page.......................................... */

.parallax {
    background-image: url("assets/images/About/view-school-classroom\ \(1\).jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(56 44 44 / 79%);
    /* Dark overlay */
    z-index: 1;
}

.blog-content {
    position: relative;
    z-index: 2;
}


.blog-content h2,
.blog-content h4 {
    color: #fff;
}

.blog-content p,
.blog-content li {
    color: #f1f1f1;
    font-size: 1rem;
    line-height: 1.7;
}

.blog-content ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.blog-content ul li::marker {
    color: #ff4c4c;
}


@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content {
        padding: 2rem 1rem;
    }
}

/* ...........................................contact page................................. */

.location {
    width: 80%;
    margin: auto;
    padding: 5px 0;
}

.location h1 {
    background: rgba(67, 243, 64, 0.1);
    text-align: center;
}

.location iframe {
    width: 100%;
    border: none;
}

/* ....................Contact Us Section............ */
.contact-us {
    width: 80%;
    margin: auto;
    padding: 50px 0 10px;
    /* display: flex; */
    /* flex-wrap: wrap; */
    justify-content: space-between;
    /* gap: 20px; */
}

.contact-col {
    flex-basis: 48%;
    margin-bottom: 0px;

    justify-content: space-between;


}

.contact-col h3 {
    align-items: center;
    background-color: rgba(67, 243, 64, 0.1);
}


/* --- Contact Info + Icons --- */
.contact-col div {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    margin-top: 50px;
    line-height: 1;
}

.contact-col div .fa {
    font-size: 28px;
    color: #f44366;
    margin-right: 20px;

}

.contact-col div h5 {
    font-size: 20px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-col div p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* --- Form Styling --- */
.contact-col form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-col input,
.contact-col textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-col input:focus,
.contact-col textarea:focus {
    border-color: #3498db;
    outline: none;
}


/* --- Submit Button --- */
.hero-btn.red-btn {
    background-color: #dc3545;
    ;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-btn.red-btn:hover {
    background-color: #5241f2;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .contact-col {
        flex-basis: 100%;
    }

    .contact-heading {
        font-size: 22px;
    }

    .contact-heading .highlight-secondary {
        font-size: 16px;
    }

    .contact-col input,
    .contact-col textarea {
        font-size: 14px;
    }
}

/* -----------map------------ */

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.map-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    border-radius: 8px;
}

.map-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.map-section iframe {
    width: calc(100vw - 40px);
    /* Full screen width with 20px margin on each side */
    height: calc(100vh - 200px);
    /* Adjust height to fit screen with some space for heading */
    border: none;
    border-radius: 8px;
    max-width: 1200px;
    /* Optional max-width for very large screens */
}

@media (max-width: 600px) {
    .map-section {
        margin: 10px;
        padding: 20px 10px;
    }

    .map-section h2 {
        font-size: 24px;
    }

    .map-section iframe {
        height: calc(100vh - 150px);
    }
}

/* -----------footer gravity------------ */
.footer {
    /* background: url('assets/images/About/footer-bg.jpg') no-repeat center center fixed; */
    background-size: cover;
    background-color: rgba(55, 55, 55, 0.527) !important;
    color: #fff;
    /* padding: 40px 20px 40px; */
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Semi-transparent overlay to reduce background image opacity */
    z-index: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}



.footer-logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo img {
    width: 300px;
    padding: 5px;
}

.footer-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00aaff, #fff);
    -webkit-text-fill-color: transparent;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1340px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 0 5px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
    left: 30px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: #00aaff;
}

.footer-column p {
    color: white;
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-purple {
    color: #3d3a3d;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin: 12px 0;
}

.footer-column ul li a {
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    color: white;
}

.footer-column ul li a:hover {
    color: #00aaff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255);
    padding: 20px 0;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgb(40, 22, 111);
    padding-right: 15px;
    margin-top: 20px;
}

.social-icons {
    gap: 15px;
}

.social-icons a {
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00aaff;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    margin-top: 3px;
    margin-left: 15px;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #00aaff;
}

.footer-column ul {
    list-style: none;
    position: relative;
}

.footer-social {
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 1.1em;
    text-decoration: none;
    text-decoration-line: none;
    text-decoration-thickness: initial;
    text-decoration-style: initial;
    text-decoration-color: initial;
    padding: 10px 0;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 20px;
}

.footer-social-links {
    font-size: 28px;
}

.about-heading {
    position: relative !important;
    left: 0px !important;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
    }

    .footer-column {
        margin: 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-logo {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        animation: none;
        /* Disable animation on smaller screens for better readability */
    }
}


/*-------------BLOG SECTION------------*/

.blog-container/* Blog Section Styling */
.blog-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light background for contrast */
    max-width: 1200px;
    margin: 0 auto;
}

.blog-heading {
    font-size: 2.5rem;
    margin-bottom: 40px; /* mb-4 equivalent */
    font-weight: bold; /* fw-bold */
    height: 7rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(133, 132, 132, 0.8);
    line-height: 1.2;
}

@media(min-width: 1200px) {
    .blog-heading {
        position: relative;
        bottom: 8rem;
    }

    .blog-container {
        position: relative;
        bottom: 5rem;
    }
}

/* Blog Container - Flexbox Grid */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding-bottom: 2rem;
}

.blog-card {
    /* flex: 1 1 300px; */
    /* max-width: 350px; */
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Image corners round karein */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative; /* For onclick overlay if needed */
    width: 60vh;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Image stretch na ho */
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card a {
    color: #3d3a3d; /* Purple link */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card a:hover {
    color: #3d3a3d; /* Darker purple on hover */
}

.blog-content {
    padding: 20px;
}

.read-more {
    color: #3d3a3d;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2daf3a8a;
}

/* .hero-container {
    position: relative; 
    height: 250px;
    margin-bottom: 30px;
    overflow: hidden;
} */

.hero-bg {
    background: linear-gradient(to right, #e8f5e8 0%, #c7e1c7 50%, #f4f4f4 100%);
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    /* box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15); */
}

/* .hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.4s ease;
} */

.blog-hero-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay (40% opacity) - makes text pop on busy images */
    border-radius: 12px;
    transition: background 0.4s ease; /* Smooth on hover */
}

.overlay-text {
    position: relative;
    bottom: 10rem;
    left: 50%;
    transform: translate(-50%, -50%); /* Exact pixel-perfect center */
    text-align: center;
    color: white; /* High contrast text */
    padding: 20px;
    max-width: 80%; /* Limit width on large screens to prevent overflow */
    width: auto; /* Flexible width */
    pointer-events: none; /* Text doesn't block clicks if needed */
}

/* Overlay Title */
.overlay-title {
    font-size: 2.5rem; /* Large on desktop */
    font-weight: 700; /* Bold */
    margin: 0; /* No margins */
    text-shadow: 2px 2px 4px rgba(133, 132, 132, 0.8); /* Shadow for visibility */
    line-height: 1.2; /* Tight spacing */
    position: relative; /* No fixed positioning - centering handles all */
}

.blog-hero-img:hover {
    transform: scale(1.02); /* Subtle zoom */
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2); /* Enhanced shadow */
}

.blog-hero-img:hover::before {
    background: rgba(0, 0, 0, 0.5); /* Darker overlay on hover for depth */
}

@media (max-width: 768px) {
    .hero-container {
        height: 180px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .hero-bg {
        width: 119.5vh;
        right: 15px;
        height: 38vh;
        margin-bottom: 20px;
        box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
        /* border-radius: 8px; */
        transition: transform 0.3s ease;
        position: relative;
        bottom: 3rem;
    }    

    .overlay-text {
        padding: 15px; /* Less padding */
        max-width: 90%; /* Wider text area */
    }

    .overlay-title {
        font-size: 2rem; /* Scaled down */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Adjusted shadow */
        position: relative;
        bottom: 2.5rem;
    }
}

/* Responsive: Small Mobile (480px and below) */
@media (max-width: 426px) {
    .hero-bg {
        box-shadow: 0 2px 10px rgba(52, 152, 219, 0.08); /* Minimal shadow to reduce lag */
        transition: none; /* Disable transitions on very small screens for speed */
        width: 66.3vh;
    }

    .overlay-text {
        padding: 10px; /* Minimal padding */
        max-width: 95%; /* Almost full width */
    }

    .overlay-title {
        font-size: 1.5rem; /* Smaller font for tiny screens */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9); /* Stronger shadow on small text */
        line-height: 1.1;
    }
}

@media (max-width: 376px) {
    .hero-bg {
        width: 58vh;
    } 
}

@media (max-width: 321px) {
    .hero-bg {
        width: 50vh;
    }
}

/* Extra Large Screens (Optional - Above 1200px) */
@media (min-width: 1200px) {
    .overlay-title {
        font-size: 3rem; /* Larger on wide screens */
        position: relative;
        bottom: 4rem;
    }
}

/* Print Styles - Simplify for Printing */
@media print {
    .hero-container {
        height: 150px !important;
        box-shadow: none !important;
        border: 1px solid #ccc; /* Simple border */
    }

    .hero-container::before {
        background: none !important; /* No overlay for print */
        opacity: 0.2; /* Faint if needed */
    }

    .blog-hero-img {
        object-fit: contain; /* Full view in print */
    }

    .overlay-text {
        color: black; /* Black text for print */
        text-shadow: none;
        padding: 10px;
    }

    .overlay-title {
        font-size: 1.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-section {
        padding: 40px 15px;
    }

    .blog-heading {
        font-size: 2rem;
    }

    .blog-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .blog-card {
        max-width: 100%;
        flex: 1 1 auto;
    }

    .blog-image {
        height: 150px; /* Smaller on mobile */
    }
}

@media (max-width: 480px) {
    .blog-heading {
        font-size: 1.8rem;
    }

    .blog-card h3 {
        font-size: 1.2rem;
    }
}




/* Blog Page Specific Styles - Educational Theme */
.syllabus-container {
    max-width: 950px;
    margin: 20px auto;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.1); /* Soft blue shadow for appeal */
    position: relative;
    overflow: hidden;
}

.syllabus-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2ecc71); /* Gradient accent for education vibe */
}

.syllabus-hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.syllabus-article {
    text-align: left;
}

.syllabus-header {
    margin-bottom: 40px;
    text-align: center;
}

.syllabus-main-title {
    color: #1a252f;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for prominence */
}

.syllabus-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #4a5568;
    background: rgba(52, 152, 219, 0.05); /* Light blue background for intro */
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.syllabus-section {
    margin-bottom: 50px;
    padding: 20px;
    background: #f8f9fa; /* Light gray for section separation */
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.syllabus-section-title {
    color: #2980b9;
    font-size: 2.2rem;
    margin: 0 0 25px 0;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

.syllabus-sub-title {
    color: #27ae60;
    font-size: 1.6rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid #2ecc71;
}

.syllabus-paragraph {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #4a5568;
    line-height: 1.7; /* Improved readability */
}

.syllabus-highlight {
    color: #2c3e50;
    font-weight: 600;
    background: rgba(46, 204, 113, 0.1); /* Green highlight for key terms */
    padding: 2px 6px;
    border-radius: 4px;
    display: inline;
}

.syllabus-list {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 25px;
}

.syllabus-list li {
    position: relative;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #2d3748;
    padding-left: 25px;
    padding: 12px 0 12px 25px;
    background: linear-gradient(to right, transparent, rgba(46, 204, 113, 0.1));
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    border-left: 2px solid #27ae60; /* Accent for list items */
}

.syllabus-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: bold;
}

.syllabus-list li:hover {
    background: rgba(46, 204, 113, 0.15);
    transform: translateX(5px); /* Subtle slide for interactivity */
}

.syllabus-conclusion {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8f4fd;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 10px;
}

/* Responsive Design - Fits Your Existing Site */
@media (max-width: 768px) {
    .syllabus-container {
        margin: 10px;
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.08);
    }

    .syllabus-main-title {
        font-size: 2.2rem;
    }

    .syllabus-section-title {
        font-size: 1.8rem;
        padding-left: 10px;
    }

    .syllabus-sub-title {
        font-size: 1.4rem;
        padding-left: 8px;
    }

    .syllabus-hero-image {
        height: 180px;
        border-radius: 8px;
    }

    .syllabus-list {
        padding-left: 15px;
    }

    .syllabus-list li {
        padding: 10px 0 10px 20px;
        font-size: 1rem;
    }

    .syllabus-paragraph {
        font-size: 1rem;
        text-align: left;
    }

    .syllabus-section {
        padding: 15px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .syllabus-container {
        padding: 20px 15px;
    }

    .syllabus-main-title {
        font-size: 1.9rem;
    }

    .syllabus-list li::before {
        font-size: 1rem;
    }

    .syllabus-hero-image {
        height: 150px;
    }
}

/* Print Styles for SEO/Accessibility */
@media print {
    .syllabus-container { 
        box-shadow: none; 
        margin: 0; 
        padding: 20px; 
        background: white; 
    }
    .syllabus-section-title, .blog-sub-title { 
        border-left: none; 
        color: black; 
    }
    .syllabus-list li::before { 
        content: '•'; 
        color: black; 
    }
    .syllabus-hero-image { 
        display: none; /* Skip for print speed */
    }
    body { 
        background: white !important; 
    }
}

/* Accessibility Enhancements */
.syllabus-list li:focus-within,
.syllabus-section:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
