/********** Vision Academy Template CSS **********/
:root {
    --primary: #23546F;
    --accent: #F58634;
    --accent-dark: #E06F1C;
    --light: #F4F8FA;
    --dark: #1A2F3F;
    --teal: #005B5E;
    --maroon: #800040;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top,
.enquiry-float {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 99;
}

.enquiry-float {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(26, 47, 63, 0.25);
}

.enquiry-section,
#gallery,
#branches {
    scroll-margin-top: 100px;
}

#enquiry-form .form-control.is-invalid,
#enquiry-form .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.2);
}

.enquiry-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.enquiry-popup.is-open {
    display: flex;
}

.enquiry-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 47, 63, 0.55);
}

.enquiry-success-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(26, 47, 63, 0.22);
}

.enquiry-success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
}

.enquiry-success-icon svg {
    width: 100%;
    height: 100%;
}

.enquiry-success-circle,
.enquiry-success-check {
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.enquiry-success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
}

.enquiry-success-check {
    stroke: var(--accent);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.enquiry-success-card.is-animated .enquiry-success-circle {
    animation: enquiryCircle 0.55s ease forwards;
}

.enquiry-success-card.is-animated .enquiry-success-check {
    animation: enquiryCheck 0.35s ease 0.45s forwards;
}

.enquiry-success-card.is-animated {
    animation: enquiryPop 0.4s ease;
}

@keyframes enquiryCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes enquiryCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes enquiryPop {
    0% { transform: scale(0.86); }
    70% { transform: scale(1.03); }
    100% { transform: scale(1); }
}


/*** 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-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

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


/*** Navbar ***/
.navbar-brand img {
    height: 58px;
    width: auto;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

    .navbar-brand img {
        height: 48px;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

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

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header video hero ***/
.header-video-hero {
    min-height: 520px;
    height: 70vh;
    max-height: 720px;
    overflow: hidden;
    background: #1A2F3F;
}

.header-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-hero-overlay {
    background: rgba(26, 47, 63, .55);
    z-index: 1;
}

/*** Horizontal promo image strip ***/
.promo-strip-wrap {
    background: var(--light);
    border-bottom: 3px solid var(--accent);
    padding: 12px 0;
}

.promo-strip .promo-strip-item {
    padding: 0 6px;
}

.promo-strip .promo-strip-item a.glightbox {
    display: block;
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 6px;
}

.promo-strip .promo-strip-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    display: block;
    transition: transform .35s ease, box-shadow .35s ease;
}

@media (min-width: 768px) {
    .promo-strip .promo-strip-item a.glightbox,
    .promo-strip .promo-strip-item img {
        height: 200px;
    }
}

/*** Equal gallery tiles ***/
.vision-gallery-grid .gallery-tile {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.vision-gallery-grid .gallery-tile img,
.vision-gallery-grid a.glightbox img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.vision-gallery-grid a.glightbox {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .vision-gallery-grid .gallery-tile,
    .vision-gallery-grid .gallery-tile img,
    .vision-gallery-grid a.glightbox,
    .vision-gallery-grid a.glightbox img {
        height: 200px;
    }
}

/*** Equal height service cards — see Service section below ***/

a.glightbox {
    cursor: zoom-in;
    display: inline-block;
    max-width: 100%;
}

a.glightbox img {
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

a.glightbox:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(35, 84, 111, .25);
}

.promo-strip a.glightbox,
.category a.glightbox,
.course-item a.glightbox {
    display: block;
    width: 100%;
}

/* Keep about / category full-bleed images working when wrapped for lightbox */
.position-relative > a.glightbox {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.position-relative > a.glightbox img.position-absolute {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goverlay {
    background: rgba(26, 47, 63, .92) !important;
}

/*** Header carousel (inner pages keep existing styles) ***/
.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

@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-video-hero {
        min-height: 460px;
        height: 60vh;
    }
}

.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;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.promo-strip {
    position: relative;
}

.promo-strip .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8px;
    z-index: 2;
}

.promo-strip .owl-nav .owl-prev,
.promo-strip .owl-nav .owl-next {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 16px;
}

.promo-strip .owl-nav .owl-prev:hover,
.promo-strip .owl-nav .owl-next:hover {
    background: var(--accent);
}

.page-header {
    background: linear-gradient(rgba(35, 84, 111, .85), rgba(26, 47, 63, .9)), url(../img/hero-4.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(26, 47, 63, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--accent);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--accent);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About / intro side image ***/
.about-side-img {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center top;
    background: transparent;
    max-height: none;
    box-shadow: none;
}

.founder-portrait {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    background: transparent;
}

/*** Learning path ***/
.learning-path {
    --step-size: 54px;
    --step-gap: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--step-gap);
    padding: 1.25rem 0 0.5rem;
    margin: 0 auto;
    max-width: 960px;
    width: 100%;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.learning-path li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    animation: learningPathIn 0.55s ease forwards;
    animation-delay: calc(var(--step, 1) * 0.08s);
}

/* Desktop: line from this circle to the next */
.learning-path li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--step-size) / 2);
    left: calc(50% + var(--step-size) / 2);
    width: calc(100% - var(--step-size));
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-50%);
}

.learning-path-num {
    width: var(--step-size);
    height: var(--step-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, var(--primary) 0%, #1a3d52 100%);
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(35, 84, 111, 0.22);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.learning-path li:nth-child(even) .learning-path-num {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 8px 20px rgba(245, 134, 52, 0.28);
}

.learning-path-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1.25;
}

.learning-path li:hover .learning-path-num {
    transform: translateY(-4px) scale(1.06);
}

@keyframes learningPathIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .learning-path {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 0;
        max-width: 520px;
    }

    .learning-path li {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .learning-path li:nth-child(3n)::after,
    .learning-path li:last-child::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .learning-path {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.85rem;
        padding-top: 0.5rem;
        max-width: 280px;
    }

    .learning-path li {
        flex: none;
        max-width: none;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }

    .learning-path-num {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .learning-path li:not(:last-child)::after {
        display: block;
        top: auto;
        bottom: calc(-0.85rem / 2);
        left: calc(var(--step-size) / 2);
        width: 3px;
        height: 0.85rem;
        transform: translate(-50%, 50%);
        background: linear-gradient(180deg, var(--accent), var(--primary));
    }

    .learning-path li:nth-child(3n)::after {
        display: block;
    }
}

.about-books-stack {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 280px;
    margin: 0 auto;
    padding: 1rem 0.5rem 2rem;
    overflow: hidden;
}

.about-books-stack .about-book-layer {
    display: block;
    width: 78%;
    max-width: 380px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(26, 47, 63, .18);
    border: 3px solid #fff;
}

.about-books-stack .about-book-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 68%;
    transform: rotate(-7deg);
    opacity: 0.95;
    z-index: 1;
}

.about-books-stack .about-book-mid {
    position: absolute;
    top: 1.25rem;
    left: 14%;
    width: 72%;
    transform: rotate(3deg);
    z-index: 2;
}

.about-books-stack .about-book-front {
    position: relative;
    margin-left: auto;
    margin-right: 0;
    margin-top: 2.5rem;
    width: 82%;
    transform: rotate(-1deg);
    z-index: 3;
}

@media (max-width: 991.98px) {
    .about-books-stack {
        max-width: 360px;
        min-height: 220px;
    }

    .about-books-stack .about-book-front {
        margin-top: 2rem;
    }
}

/*** Service ***/
.service-row > [class*="col-"] {
    display: flex;
}

.service-item {
    background: var(--light);
    transition: .5s;
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.service-item > .p-4 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item > .p-4 p:last-child {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.course-item .position-relative {
    height: 220px;
    overflow: hidden;
}

.course-item .position-relative img,
.course-item .position-relative a.glightbox img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.course-item .position-relative a.glightbox {
    display: block;
    height: 220px;
    overflow: hidden;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--accent);
    border-color: var(--accent);
}


/*** Brand helpers ***/
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.program-pill {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.program-pill.foundation { background: #23546F; }
.program-pill.neet { background: #F58634; }
.program-pill.jee { background: #005B5E; }
.program-pill.cet { background: #800040; }

.doc-card {
    border: 1px solid #e5eef3;
    background: #fff;
    transition: .3s;
    height: 100%;
}

.doc-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(35, 84, 111, .12);
    transform: translateY(-4px);
}

.marathi {
    font-family: 'Noto Sans Devanagari', 'Heebo', sans-serif;
    line-height: 1.7;
}

.branch-card {
    background: var(--light);
    border-left: 4px solid var(--accent);
    height: 100%;
}

.branch-card a:not(.btn) {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.25);
}

.branch-card a:not(.btn):hover {
    color: var(--primary);
}

.branch-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--accent);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

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