/********** Template CSS **********/
:root {
    --primary: #1b1394;
    --light: #e4eefe;
    --dark: #103741;
    --yelo: #FFD700;
}
.ytb {
  background-color: #1b1394 !important;
  border-color: #fafbfa !important;
  color: rgb(245, 237, 237) !important;
}

.ytb:hover {
  background-color: #eef0ee !important;
  border-color: #4f4a1e !important; 
  color: rgb(15, 7, 7) !important;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
    font-size: 13px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}

/*** Header***/
.bc-b {
    background-color:#1b1394;
}

.tp {
    text-align: right;
    padding: 1px;
}

.wbr {
    width: 70px;
    border-radius: 10px;
}

.cfl {
    color: rgb(26, 3, 3);
    font-family: 'Times New Roman', serif;
    float: left;
    line-height: 1.6ch;
}

.btn-close {
    background-color: white;
}


/*** Navbar ***/
.navbar {
    background-color: #1d4074;
}

.navbar .navbar-nav .nav-link {
    padding: 5px 15px;
    color: white;
    font-weight: 500;
    outline: none;
    border-radius: 45px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: black;
    background-color: white;
    border-radius: 45px;
    transition: .3s;
}

.navbar.sticky-top {
    top: -100px;
    transition: .6s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 10px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

    .dropdown-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 1390px) {
    .navbar {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 1280px) {
    .navbar {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 1165px) {
    .navbar {
        display: flex;
        flex-wrap: wrap;
    }
}

.dropdown-menu {
    position: relative;
}

.dropdown-menu-child {
    position: relative;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu>li:hover>.dropdown-submenu {
    display: block;
}

.dropdown-submenu>li:hover>.dropdown-submenu {
    display: block;
    position: absolute;
}

@media (max-width: 992px) {
    .lf {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .ml {
        float: left;
    }
}

/*** photo gallary image ***/
.ht {
    height: 600px !important;
}

.yt {
    background-color: red;
    color: white;
}

.ytj {
    background-color: #0d6efd;
    color: white;
}

.ytl {
    padding: 40px;
    border-radius: 20px;
}

/*** youtube link button ***/
.yt:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

.ytb:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

.ytx:hover {
    background-color: red;
}

.ytx:focus {
    background-color: red;
}

/*** Header ***/.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    /* background: url(../img/bg-header-top.png) center center repeat-x; */
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    /* background: url(../img/bg-header-bottom.png) center center repeat-x; */
}

/* Default styles for header carousel items (for larger screens) */
.header-carousel .owl-carousel-item {
    position: relative;
    height: 545px; /* Fixed height for larger screens */
    overflow: hidden; /* Ensures content doesn't spill out */
}

/* Image styles within carousel item */
.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the item without distortion */
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        min-height: 300px; /* Minimum height for small screens */
        height: 60vw; /* Scales height based on viewport width for flexibility */
        max-height: 450px; /* Prevents excessive height on tablets */
    }

    /* Text adjustments for smaller screens */
    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }

    /* Navigation adjustments for smaller screens */
    .header-carousel .owl-nav {
        right: 2%; /* Adjusts right position of navigation for smaller screens */
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 40px; /* Slightly smaller buttons */
        height: 40px;
        font-size: 20px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/*** read more/less ***/
#more1 {
    display: none;
}

#more2 {
    display: none;
}

#more3 {
    display: none;
}

#more4 {
    display: none;
}

#more5 {
    display: none;
}

#more6 {
    display: none;
}

#more7 {
    display: none;
}

/*** justify ***/
.jst {
    text-align: justify;
}

/*** card setting ***/
.card {
    box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 100%;
    border-radius: 5px;
}

.card-r {
    box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 100%;
    border-radius: 15px;
}

.cr:hover {
    color: #FE5D37;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.card-r:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../img/kalina/campus.jpeg) center center no-repeat;
    background-size: cover;
    /* Corrected: 'p×' to 'px' and added a space for readability. */
    /* Consider if 1366px is truly the desired fixed height; often, min-height is better for responsiveness. */
    height: 400px ; 
    object-fit: contain;
    /* Corrected: 'p×' to 'px' and added a space. */
    /* WARNING: Setting a fixed 'width' like 647px is almost always problematic for responsiveness. */
    /* It's usually better to use max-width: 100% or let the parent container define width. */
    max-width: 1366px; /* <-- Be very cautious with fixed widths. See explanation below. */
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


@media (max-width: 576px) {
    .team-item .team-text {
        /* position: absolute; */
        margin: auto;
        /* width: 100px; */
        height: 480px;
        bottom: 0;
        right: 0;
        display: flex;
        /* align-items: center; */
        justify-content: center;
        flex-direction: column;
        background: #FFFFFF;
        border: 12px solid #E8F3ED;
        border-radius: 20px;
        transition: .5s;
    }

    .ytl {
        padding: 10px;
        border-radius: 20px;
    }

    .dropdown-menu .dropdown-submenu {
        left: 40%;
    }
}

@media (max-width: 576px) {
    .ht {
        height: 40% !important;
    }
}

.pd {
    padding: 20px 15px;
}

.pdt {
    padding-top: 20px;
}

/*** Admission Procedure ***/
.ma {
    margin: auto;
}


/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
   display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding-left: 10px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #fff !important;
}
/*** text ***/
.txb {
    text-align: center;
    height: 300px;
    background-color: #f1f1f1;
}

.pt {
    padding-top: 5px;
}


/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
    
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    /* position: absolute; */
    width: 300px;
    height: 480px;
    margin: auto;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #ffffff;
    border: 8px solid #E8F3ED;
    border-radius: 20px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color:#1b1394;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.p-465 {
    height: 365px;
}

.bdt {
    border-radius: 50px 0 0 50px;
    position: absolute;
    bottom: 30px;
    width: 90%;
}

/*** about page: mission ***/
.hta {
    height: 230px;
    text-align: justify;
}

/*** admission procedure: process ***/
.cbt {
    /* height: 160px; */
    margin: auto;
    background: linear-gradient(90deg, #e3ffe7 0%, #d0e1ff 100%);
}

@media (max-width: 1192px) {
    .cbt {
        height: 180px;
        margin: auto;
        background: linear-gradient(90deg, #e3ffe7 0%, #d0e1ff 100%);
    }
}

@media (max-width: 988px) {
    .cbt {
        height: 180px;
        margin: auto;
        background: linear-gradient(90deg, #e3ffe7 0%, #d0e1ff 100%);
    }
}

/*** Fee structure Form ***/
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* width: 50%; */
}

.cn {
    text-align: center;
}

td {
    padding: 8px;
}

.ft {
    font-size: 17px;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.ftm {
    font-size: 25px;
}

.wtb {
    width: 765px;
    margin: auto;
    background: linear-gradient(to bottom, #FFF5F3 0%, #dde0ff 100%);
}


/*** Aptitude Assessment ***/
.bwt {
    height: 160px;
    width: 310px;
    margin: auto;
    background: linear-gradient(90deg, #f5f9f6 0%, #d0e1ff 100%);
}

/*** Career: Image ***/
.bh {
    width: 80px;
    height: 80px;
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--yelo) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--yelo) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.bg-r {
    color: #FE5D37;
}

.img-t {
    transition: transform .2s;

    margin: 0 auto;
    background-color: rgb(173, 173, 237);
    border-radius: 10px;
    border: 1px solid black;
}

.img-t:hover {
    transform: scale(1.4);
}
.social-icon {
    color: white;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    margin: 0 3px;
    width:35px;
    text-align: center;
}

.social-icon:hover {
    color: white;
}

/* Individual Platform Colors on Hover */
.social-icon.facebook:hover {
    background-color: #3b5998;
}

.social-icon.twitter:hover {
    background-color: #010101; /* X brand is black */
}


.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, 
        #fdf497 0%, #fdf497 5%, 
        #fd5949 45%, #d6249f 60%, 
        #285aeb 90%) !important;
    color: white !important;
    border: none !important;
}


.social-icon.youtube:hover {
    background-color: #ff0000;
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
}


@media (min-width: 768px) {
  .tp {
    justify-content: space-between; /* space out on larger screens */
  }

  .tp a {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .tp {
    flex-direction: column;
    gap: 6px;
  }

  .tp .text {
    display: block;
    font-size: 13px;
  }
}
.banner-img {
  width: 100%;
  height: 50vh; /* 50% of viewport height, responsive */
  object-fit: cover;
}

@media (max-width: 767px) {
  .banner-img {
    height: 35vh; /* smaller height on mobile */
  }
}

@media (max-width: 480px) {
  .banner-img {
    height: 28vh;
  }
}

.overlay {
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.separator {
    display: inline-block;
    width: 1px;
    height: 20px; /* Adjust height here */
    background-color: white;
    opacity: 0.8;
}

.facility-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.facility-icon i {
    color: #fff;
}

.facility-text {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
}.btn-social {
  color: #fff !important;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  display: inline-block;
  font-size: 16px;
  transition: none !important;
  cursor: pointer;
}

/* Fixed Brand Colors */
.btn-social.facebook   { background-color: #3b5998 !important; }
.btn-social.twitter    { background-color: #010101 !important; }
.btn-social.youtube    { background-color: #ff0000 !important; }
.btn-social.linkedin   { background-color: #0077b5 !important; }
.btn-social.instagram  {
  background: radial-gradient(circle at 30% 107%, 
    #fdf497 0%, #fdf497 5%, 
    #fd5949 45%, #d6249f 60%, 
    #285aeb 90%) !important;
}
.fixed-right-button {
  position: fixed;
  right: 35px;        /* Distance from the right edge */
  bottom:410px;       /* Distance from the bottom */
  z-index: 1000;    
  color: white;
  border: none;
  padding:    10px 50px;
  border-radius: 0px;
  font-size: 20px;
  font-weight:900;
  cursor: pointer;
   transform: rotate(-90deg);
  transform-origin: right center;
}
.fixed-left-button {
  position: fixed;
  left: 35px;
  bottom: 100px;
  z-index: 1000;
  background-color: #1b1394;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 0px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transform: rotate(270deg);
  transform-origin: left center;
}
 .fixed1-rigt-buton {
  position: fixed;
  right: 35px;        /* Distance from the right edge */
  bottom: 264px;       /* Distance from the bottom */
  z-index: 1000;      /* Stays on top of other elements */
  background-color: #1b1394; /* Bootstrap primary color */
  color: white;
  border: none;
  padding: 10px 65px;
  border-radius: 0px;
  font-size: 20px;
  font-weight:900;
  cursor: pointer;
   transform: rotate(-90deg);
  transform-origin: right center;
}

/* Prevent color change on hover */
.fixed-left-button:hover {
  background-color: #020247;
  color: white;
}
.fixed1-right-button:hover {
  background-color: #020247;
  color: white;
}


/* --- Services Section Base Styles --- */
/* Apply negative margin to the row to offset column padding for gutters */
.services-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -0.75rem; /* Half of the desired gutter (1.5rem) */
    margin-right: -0.75rem;
}

/* Apply padding to columns to create the visual gap and vertical spacing */
.services-inner > .col-md-6,
.services-inner > .col-lg-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem; /* Vertical gap between rows */
}

.services-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    /* Use aspect-ratio for consistent sizing, min-height as fallback */
    aspect-ratio: 4/3; /* Example: 4:3 ratio for service cards */
    min-height: 280px; /* Fallback for older browsers or if content is too small */
    cursor: pointer;
    display: flex;
    text-align: center;
    width: 100%; /* Ensure it fills the column */
}

/* Image styling */
.services-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Content Overlay */
.services-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    color: #FFD700;
    text-align: center;
    padding: 1.5rem;
    z-index: 2;
    transition: background 0.4s ease;
    text-transform: uppercase;
}

/* Wrapper for text content inside the overlay */
.services-text-wrapper {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-content-overlay .service-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Custom button style for "Read More" */
.btn-primary-outline {
    border: 1px solid #1b1394;
    background-color: transparent;
    color: #fff;
    padding: 0.8rem 2.0rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary-outline:hover {
    background-color: #1b1394;
    color: white;
    border-color: #fff;
}


/* --- Hover Effects for .services-item --- */
.services-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.services-item:hover .services-item-img {
    transform: scale(1.05);
}

.services-item:hover .services-content-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.services-item:hover .services-text-wrapper {
    transform: translateY(0);
    opacity: 1;
}


/* --- Gallery Section Base Styles --- */
/* Apply negative margin to the row to offset column padding for gutters */
.gallery-grid-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -0.75rem; /* Half of the desired gutter (1.5rem) */
    margin-right: -0.75rem;
}

/* Apply padding to columns to create the visual gap and vertical spacing */
.gallery-grid-inner > .col-md-6,
.gallery-grid-inner > .col-lg-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem; /* Vertical gap between rows */
}

.gallery-item-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    /* Increased Height & Width via aspect-ratio */
    aspect-ratio: 5/4; /* Example: 5:4 aspect ratio for gallery images */
    width: 100%; /* Ensures it fills its column's width */
    height: auto; /* Governed by aspect-ratio */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border 0.4s ease;
    border: 4px solid transparent;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1);
    transition: transform 0.5s ease, filter 0.5s ease;
    backface-visibility: hidden;
}

/* --- Hover Effects for .gallery-item --- */
.gallery-item-link:hover .gallery-item {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--primary, #007bff);
}

.gallery-item-link:hover .gallery-image {
    transform: scale(1.03);
    filter: brightness(0.8);
}


/* --- Responsive Adjustments (for both sections) --- */
@media (max-width: 991.98px) {
    /* Services Section */
    .services-item {
        aspect-ratio: 16/9; /* Wider for tablets */
        min-height: 280px;
    }
    .services-content-overlay .service-name {
        font-size: 1.4rem;
    }
    .btn-primary-outline {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
    .services-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }
    .services-item:hover .services-item-img {
        transform: scale(1.05);
    }

    /* Gallery Section */
    .gallery-item {
        aspect-ratio: 16/9; /* Wider for tablets */
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border-width: 3px;
    }
    .gallery-item-link:hover .gallery-item {
        transform: translateY(-10px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    }
    .gallery-item-link:hover .gallery-image {
        transform: scale(1.02);
    }
}

@media (max-width: 767.98px) {
    /* Force single column on mobile for both sections */
    .services-inner > .col-md-6,
    .services-inner > .col-lg-4,
    .gallery-grid-inner > .col-md-6,
    .gallery-grid-inner > .col-lg-4 {
        flex: 0 0 100%; /* Force single column */
        max-width: 100%;
    }

    /* Services Section */
    .services-item {
        aspect-ratio: 16/9; /* Maintain wider aspect for single column mobile */
        min-height: 260px;
        transform: none !important; /* Disable hover transforms */
        transition: none !important;
    }
    .services-content-overlay .service-name {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    .btn-primary-outline {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        opacity: 1; /* Always show button on mobile */
        transform: translateY(0);
    }
    .services-text-wrapper {
        transform: translateY(0);
        opacity: 1;
    }
    .services-item:hover .services-text-wrapper {
        transform: translateY(0);
    }
    .services-item:hover .services-item-img {
        transform: none !important;
    }
    .services-item:active { /* Active state for tap feedback */
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    .services-item:active .services-item-img {
        filter: brightness(0.9);
    }


    /* Gallery Section */
    .gallery-item {
        aspect-ratio: 16/9; /* Maintain wider aspect for single column mobile */
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-width: 2px;
        transform: none !important; /* Disable complex transform on mobile */
        transition: none !important;
    }
    .gallery-image {
        filter: brightness(0.95);
        transform: none !important;
        transition: none !important;
    }
    .gallery-item-link:active .gallery-item { /* Active state for tap feedback */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        border-color: var(--primary, #007bff);
        transform: translateY(-5px);
    }
    .gallery-item-link:active .gallery-image {
        filter: brightness(0.9);
    }
}

@media (max-width: 575.98px) {
    /* Services Section */
    .services-item {
        min-height: 220px;
    }
    .services-content-overlay .service-name {
        font-size: 1.1rem;
    }
    .btn-primary-outline {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Gallery Section */
    .gallery-item {
        aspect-ratio: 4/3; /* Standard video aspect ratio for smaller devices */
        min-height: 250px;
    }
}.gallery-grid-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -0.75rem; /* Half of the desired gutter (1.5rem for g-4) */
    margin-right: -0.75rem;
}
.gallery-grid-inner > .col-md-6,
.gallery-grid-inner > .col-lg-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem; /* Vertical gap */
}
/* Parents Feedback */
.testimonial-carousel .owl-stage {
    display:flex;
}
.testimonial-carousel .owl-item {
    display:flex;
}
.testimonial-carousel .testimonial-item{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.testimonial-item{
  box-sizing:border-box;
}
.house-img {
    height: 500px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .house-img {
        height: 220px;
    }
}

.house-nav-card {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        cursor: pointer;
    }
    .house-nav-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
    }
    .img-hover-box img {
        transition: transform 0.4s ease;
    }
    .img-hover-box:hover img {
        transform: scale(1.04);
    }

    html {
    scroll-behavior: smooth;
}/* Mobile Navbar Custom Accordion Styling */
@media (max-width: 991.98px) {
    /* Main Nav Links ko Pill/Capsule Shape Deni Hai */
    .navbar-nav .nav-link.nav-tabs {
        border: 1px solid #ffffff !important;
        border-radius: 25px !important;
        margin-bottom: 8px;
        padding: 8px 18px !important;
        color: #ffffff !important;
        display: block;
        background-color: transparent;
    }

    /* Active Item (Home) */
    .navbar-nav .nav-link.nav-tabs.active {
        background-color: #ffffff !important;
        color: #1b1394 !important;
    }

    /* Dropdown Open Hone Par Top Link Ka Shape */
    .nav-item.dropdown.show .nav-link.nav-tabs,
    .nav-item.dropdown .nav-link.nav-tabs[aria-expanded="true"] {
        background-color: #ffffff !important;
        color: #1b1394 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Dropdown Sub-menu ko White Box Banana */
    .navbar-nav .dropdown-menu {
        background-color: #ffffff !important;
        border: 1px solid #ffffff !important;
        border-top: none !important;
        border-bottom-left-radius: 15px !important;
        border-bottom-right-radius: 15px !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding: 8px 0 !important;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    }

    /* Dropdown Links Text Styling */
    .navbar-nav .dropdown-item {
        color: #212529 !important;
        padding: 8px 20px !important;
        font-weight: 500;
        text-transform: capitalize;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #f1f1f1 !important;
        color: #1b1394 !important;
    }
}/* Mobile par button hamesha dikhega */
.house-btn {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Desktop screen (Laptop/PC) par sirf hover karne par dikhega */
@media (min-width: 992px) {
    .house-btn {
        opacity: 0;
    }
    .position-relative:hover .house-btn {
        opacity: 1;
    }
}