/********** Template CSS **********/
:root {
    primary: #FE5D37;
    light: #FFF5F3;
    dark: #103741;
}

.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;
}

.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: flexbox;
    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;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.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% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** 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;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .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;
    }
}

.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);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::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-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: 30px;
    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: #FFFFFF !important;
}


/*** 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 {
    position: relative;
    overflow: hidden; /* Keeps the bottom corners of the text block perfectly clipped inside the card */
    border-radius: 30px; /* Gives the whole teacher card matching curved corners */
}

.team-item .team-text {
   position: absolute;
    width: 90%; /* Spans neatly across the card with a 5% gap on each side */
    height: auto; /* Box automatically grows based on text length */
    padding: 20px 0px; /* Vertical breathing room for names and subjects */
    bottom: 15px; /* Lifts it slightly off the bottom edge */
    left: 5%; /* Centers the box perfectly */
    
    /* Traditional centering that does not rely on Flexbox */
    text-align: center; 
    display: block; 
    
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.05); /* Soft, modern boundary outline */
    
    /* CRITICAL: This shapes it into a square with clean, curved corners */
    border-radius: 20px; 
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Gives depth over the photo */
    transition: .5s;
    z-index: 2;
}

/* Hover Effect: Changes background or lifts smoothly */
.team-item:hover .team-text {
    background: #FE5D22; /* Changes background to Kider Orange on hover */
}

/* Switches text elements to white dynamically when card background changes on hover */
.team-item:hover .team-text h3,
.team-item:hover .team-text a,
.team-item:hover .team-text span,
.team-item:hover .team-text h6 {
    color: #FFFFFF !important;
}

/*.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}*/


/*** 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);
}


/*** 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(--primary) !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(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.photo-box {
    background: #fff;
    padding: 10px; /* This creates a white frame effect around the photo */
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.photo-box:hover {
    transform: translateY(-5px); /* Lifts the image slightly when hovered */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.photo-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* 1. Create a uniform box for every photo */
.photo-container {
    width: 100%;
    height: 280px; /* Fixed height for all images */
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8f9fa; /* Light grey background if image fails to load */
    display: block;
    position: relative;
}

/* 2. Force the image to fill the box without stretching */
.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the image to fill the 280px height */
    object-position: center; /* Keeps the center of the photo visible */
    transition: transform 0.4s ease;
}

/* 3. Add a nice zoom effect on hover */
.photo-container:hover img {
    transform: scale(1.1);
}

/* 4. Spacing for the grid */
.gallery-item {
    margin-bottom: 25px;
}

/* 5. CET & Navoday Layout */
.exam-benefit-card {
    border: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    background: #FFFFFF;
}
.exam-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.exam-icon-circle {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}
.method-step {
    border-left: 4px dashed #FE5D22; /* Kider Orange */
    position: relative;
    padding-left: 35px;
}
.method-step::before {
    content: "\f00c"; /* FontAwesome Checkmark */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -17px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #28A745; /* Success Green */
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 6. Admission Form Style */
.admission-card {
    border: none;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    background: #FFFFFF;
}
.form-section-title {
    color: #FE5D22; /* Kider Orange */
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px dashed #DEE2E6;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.custom-form-control {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #CED4DA;
    font-size: 15px;
    transition: all 0.3s ease;
}
.custom-form-control:focus {
    border-color: #FE5D22;
    box-shadow: 0 0 0 0.25rem rgba(254, 93, 34, 0.15);
}
.btn-submit {
    background: #28A745; /* Success Green */
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 40px;
    border: none;
    transition: 0.3s;
}
.btn-submit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* 7. Submit Button */
.btn-submit-container {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Base style matching Kider primary brand color (Vibrant Orange) */
.btn-kider-submit {
    background-color: #FE5D22 !important; /* Kider Identity Orange */
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 50px;
    border-radius: 50px; /* Fully rounded child-friendly capsule shape */
    border: 2px solid #FE5D22 !important;
    box-shadow: 0 8px 20px rgba(254, 93, 34, 0.25);
    cursor: pointer;
    transition: waves 0.4s ease, all 0.4s ease;
    display: inline-block;
}

/* Hover effect transitions to Kider Secondary Green or deeper tone */
.btn-kider-submit:hover {
    background-color: #28A745 !important; /* Elegant theme green on hover */
    border-color: #28A745 !important;
    color: #FFFFFF !important;
    transform: translateY(-3px); /* Smooth floating lift */
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.35);
}

/* Active pressed state down-click effect */
.btn-kider-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(40, 167, 69, 0.2);
}