/* Carousel rules defined in Carousel Hero Header section below */



.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square  { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background-color: #ff4500 !important;
    border-color: #ff4500 !important;
    box-shadow: inset 0 0 0 0 #ff4500;
}

.btn.btn-primary:hover {
    background-color: #cc3700 !important;
    border-color: #cc3700 !important;
    box-shadow: inset 300px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

.btn.btn-secondary {
    box-shadow: inset 0 0 0 0 #ff4500;
}

.btn.btn-secondary:hover {
    box-shadow: inset 300px 0 0 0 #ff4500;
    color: var(--bs-light) !important;
}

.btn-hover { transition: 0.5s; }
.btn-hover:hover { color: var(--bs-secondary) !important; }
/*** Button End ***/

/*** Sub Title Start ***/
.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: #ff4500;
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -110px;
    border: 1px solid var(--bs-secondary) !important;
}
/*** Sub Title End ***/

/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: #ff4500 !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}

@media (max-width: 576px) {
    .topbar {
        display: none;
    }
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Yantramanav', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: #fff !important;
    font-size: 18px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
    font-size: 18px !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #ff4500 !important;
}

.navbar-light .navbar-brand img {
    max-height: 50px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

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

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: #ff4500;
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

/* ── MOBILE NAVBAR: scroll with page, do NOT stick to top ── */
@media (max-width: 991.98px) {
    /* Override Bootstrap's sticky-top (position:sticky!important) so navbar
       scrolls away with the page on mobile instead of staying fixed */
    .navbar-light,
    .sticky-top.navbar-light {
        position: relative !important;
        top: auto !important;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid #ff4500;
        color: #fff;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light) !important;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}
/*** Navbar End ***/

/*** Carousel Hero Header Start ***/

/*
 * FIX: OWL Carousel sets `display:none` on `.owl-carousel` by default.
 * Before OWL JS initializes, the hero section is invisible (height=0),
 * so the browser renders the page starting from the section below it.
 * Override here to keep the hero visible and space-reserved at all times.
 */
.header-carousel.owl-carousel {
    display: block !important;  /* Override OWL default display:none */
}

.header-carousel {
    position: relative;
    min-height: 85vh;           /* Reserve space before OWL adds items */
    background: #0d0d0d;        /* Dark bg while images load — no white flash */
}
@media (max-width: 992px) {
    .header-carousel { min-height: 65vh; }
}
@media (max-width: 576px) {
    .header-carousel { min-height: 55vh; }
}

.header-carousel .owl-nav .owl-prev {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    border-radius: 60px;
    background: #ff4500;
    color: var(--bs-white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border-radius: 60px;
    background: #ff4500;
    color: var(--bs-white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .header-carousel-item {
    position: relative;
    width: 100%;
    height: 85vh;           /* Fixed viewport height — no layout shift */
    min-height: 500px;      /* Minimum so short viewports don't collapse */
    overflow: hidden;
}
.header-carousel .header-carousel-item img {
    position: absolute;     /* Absolute inside fixed container — no reflow */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.header-carousel .header-carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
}

.header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
    position: relative;
    width: 75%;
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item {
        height: 65vh;
        min-height: 400px;
    }
    .header-carousel .header-carousel-item img {
        transition: 0.5s;
    }

    .header-carousel .header-carousel-item .carousel-caption {
        padding: 120px 0 60px;
    }

    .header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
        width: 90%;
    }

    .header-carousel .owl-nav ,
    .header-carousel .owl-nav .owl-next {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .header-carousel .header-carousel-item {
        height: 60vh;
        min-height: 320px;
    }

    .header-carousel .header-carousel-item .carousel-caption {
        padding: 90px 0 40px;
    }

    .header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
        width: 95% !important;
    }

    .header-carousel .owl-nav ,
    .header-carousel .owl-nav .owl-next {
        top: auto;
        bottom: 16px;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .header-carousel .owl-nav  { left: 20px; }
    .header-carousel .owl-nav .owl-next { right: 20px; }
}

@media (min-width: 992px) {
    .header-carousel .owl-nav ,
    .header-carousel .owl-nav .owl-next {
        margin-top: 50px;
    }
}

.header-carousel .owl-nav {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/*** Carousel Hero Header End ***/

/*** Single Page Hero Header - All Inner Pages ***/

/* ══════════════════════════════════════════════════════
   .bg-breadcrumb  →  Hero banner used on EVERY inner page
   (About, Services, Contact, Blog, Portfolio, Career …)
   Just add class="bg-breadcrumb" to the <section> tag.
   ══════════════════════════════════════════════════════ */

/* ── 1. Base wrapper ─────────────────────────────────── */
.bg-breadcrumb {
    position: relative;
    min-height: 300px;
    padding: 155px 0 62px;
    /* Default background — overridden inline per page via style="background-image:url(...)" */
    background-image: url(/img/heroimg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 2. Dark overlay — matches reference image darkness ─ */
.bg-breadcrumb::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Warm-dark overlay: more opaque than before to match reference */
    background: rgba(10, 5, 0, 0.60);
    z-index: 1;
}

/* ── 3. Warm orange vignette — left-side tint ───────── */
.bg-breadcrumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(160, 45, 0, 0.30) 0%,
        transparent 65%
    );
    z-index: 2;
    pointer-events: none;
}

/* ── 4. Bottom orange accent line ───────────────────── */
.bg-breadcrumb .breadcrumb-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #ff4500 18%,
        #ff6622 50%,
        #ff4500 82%,
        transparent 100%
    );
    z-index: 6;
    pointer-events: none;
}

/* ── 5. Content wrapper — above all overlays ─────────── */
.bg-breadcrumb .breadcrumb-content {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── 6. Page title — big, bold, white, centered ─────── */
.bg-breadcrumb .breadcrumb-content h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 0 0 26px;
    text-align: center;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}

/* ── 7. Breadcrumb pill — rounded dark capsule ───────── */
.bg-breadcrumb .breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 7, 4, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;          /* fully rounded pill */
    padding: 10px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ── 8. Bootstrap breadcrumb list reset ─────────────── */
.bg-breadcrumb .breadcrumb-nav .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    list-style: none;
    display: flex;
}

/* ── 9. Individual crumb items ──────────────────────── */
.bg-breadcrumb .breadcrumb-nav .breadcrumb-item {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.52);
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.bg-breadcrumb .breadcrumb-nav .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bg-breadcrumb .breadcrumb-nav .breadcrumb-item a:hover {
    color: #ffffff;
}

/* ── 10. Active / last crumb — orange highlight ──────── */
.bg-breadcrumb .breadcrumb-nav .breadcrumb-item.active,
.bg-breadcrumb .breadcrumb-nav .breadcrumb-item.active span,
.bg-breadcrumb .breadcrumb-nav .breadcrumb-item.active a {
    color: #ff4500 !important;
    font-weight: 800;
}

/* ── 11. → arrow separator ───────────────────────────── */
.bg-breadcrumb .breadcrumb-nav .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.bg-breadcrumb .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: '\2192';         /* → */
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 10px;
    float: none;
    display: inline-block;
}

/* ── 12. Tablet (≤ 992px) ────────────────────────────── */
@media (max-width: 992px) {
    .bg-breadcrumb {
        padding: 125px 0 52px;
        background-attachment: scroll;
    }
}

/* ── 13. Mobile large (≤ 768px) ─────────────────────── */
@media (max-width: 768px) {
    .bg-breadcrumb {
        padding: 105px 0 44px;
        min-height: 230px;
    }
    .bg-breadcrumb .breadcrumb-content h1 {
        font-size: 2.6rem !important;
        letter-spacing: -0.5px;
        margin-bottom: 20px;
    }
}

/* ── 14. Mobile small (≤ 576px) ─────────────────────── */
@media (max-width: 576px) {
    .bg-breadcrumb {
        padding: 90px 0 40px;
        min-height: 200px;
    }
    .bg-breadcrumb .breadcrumb-content h1 {
        font-size: 2rem !important;
        letter-spacing: 0;
        margin-bottom: 16px;
        font-style: italic;
    }
    .bg-breadcrumb .breadcrumb-nav {
        padding: 8px 18px;
    }
    .bg-breadcrumb .breadcrumb-nav .breadcrumb-item {
        font-size: 9.5px;
        letter-spacing: 1.2px;
    }
    .bg-breadcrumb .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 7px;
        font-size: 10px;
    }
}

/*** Single Page Hero Header End ***/

/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 0.7)), url(../img/counter-bg.jpg);
    background-size: cover;
    background-attachment: fixed; /* disabled on mobile via media query below */
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bs-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: #ff4500;
}

.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    border-radius: 10px 10px 0 0;
    font-size: 50px;
    line-height: 90px;
    color: #ff4500 !important;
    display: flex;
}

.counter-facts .counter h3 {
    color: var(--bs-white);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    display: flex;
}

.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter { margin-bottom: 40px; }
}

@media (max-width: 576px) {
    .counter-facts {
        background-attachment: scroll;
    }
    .counter-facts .counter {
        width: 170px;
        min-height: 190px;
    }
}
/*** Counter Facts End ***/

/*** Training Start ***/
.training-carousel .owl-stage-outer { margin-top: 30px; }

.training-carousel .owl-nav .owl-prev,
.training-carousel .owl-nav .owl-next {
    position: absolute;
    top: 0;
    padding: 10px 35px;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-white);
    background: var(--bs-secondary);
    border-radius: 50px;
    transition: 0.5s;
}

.training-carousel .owl-nav .owl-prev { left: 0 !important; }
.training-carousel .owl-nav .owl-next { right: 0; }

.training-carousel .owl-nav .owl-prev:hover,
.training-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

.training .training-item .training-img {
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.training .training-item .training-img img { transition: 0.5s; }

.training .training-item:hover .training-img img {
    transform: scale(1.2);
}

@media (max-width: 576px) {
    .training-carousel .owl-nav .owl-prev,
    .training-carousel .owl-nav .owl-next {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/*** Training End ***/

/*** Dance Class Start ***/
.class-carousel .owl-stage-outer { margin-top: 30px; }

.class-carousel .owl-nav .owl-prev,
.class-carousel .owl-nav .owl-next {
    position: absolute;
    top: 0;
    padding: 10px 35px;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-white);
    background: var(--bs-secondary);
    border-radius: 50px;
    transition: 0.5s;
}

.class-carousel .owl-nav .owl-prev { left: 0 !important; }
.class-carousel .owl-nav .owl-next { right: 0; }

.class-carousel .owl-nav .owl-prev:hover,
.class-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

.class .class-item .class-img {
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.class .class-item .class-img img { transition: 0.5s; }

.class .class-item:hover .class-img img {
    transform: scale(1.3);
}

@media (max-width: 576px) {
    .class-carousel .owl-nav .owl-prev,
    .class-carousel .owl-nav .owl-next {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/*** Dance Class End ***/

/*** Blog Start ***/
.blog-carousel .owl-stage-outer { margin-top: 30px; }

.blog-carousel .owl-nav .owl-prev,
.blog-carousel .owl-nav .owl-next {
    position: absolute;
    top: 1px;
    padding: 10px 35px;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-white);
    background: var(--bs-secondary);
    border-radius: 50px;
    transition: 0.5s;
}

.blog-carousel .owl-nav .owl-prev { left: 0 !important; }
.blog-carousel .owl-nav .owl-next { right: 0; }

.blog-carousel .owl-nav .owl-prev:hover,
.blog-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.blog .blog-item .blog-img img { transition: 0.5s; }

.blog .blog-item:hover .blog-img img {
    transform: scale(1.3);
}

/* Blog Slider Mobile */
.blog-track-outer {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.blog-track-outer::-webkit-scrollbar { display: none; }

.blog-track {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .blog-slide {
        min-width: 100% !important;
    }

    .blog-carousel .owl-nav .owl-prev,
    .blog-carousel .owl-nav .owl-next {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/*** Blog End ***/

/*** Team Start ***/
.team-carousel .owl-stage-outer { margin-top: 30px; }

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: absolute;
    top: 1px;
    padding: 10px 35px;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-white);
    background: var(--bs-secondary);
    border-radius: 50px;
    transition: 0.5s;
}

.team-carousel .owl-nav .owl-prev { left: 0 !important; }
.team-carousel .owl-nav .owl-next { right: 0; }

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

.team .team-carousel .team-item .team-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.team .team-carousel .team-item .team-img::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, .5);
    transition: 0.5s;
    z-index: 2;
}

.team .team-carousel .team-item .team-img .team-icon {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 25px;
    display: flex;
    opacity: 0;
    transition: 0.5s;
    z-index: 3;
}

.team .team-carousel .team-item:hover .team-img .team-icon {
    bottom: 0;
    opacity: 1;
}

.team .team-carousel .team-item .team-content {
    position: relative;
    background: var(--bs-secondary);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1;
    transition: 0.5s;
}

.team .team-carousel .team-item .team-content::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 0;
    background: #ff4500 !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: 0.5s;
    z-index: -1;
}

.team .team-carousel .team-item:hover .team-content a,
.team .team-carousel .team-item:hover .team-content p {
    color: var(--bs-white) !important;
}

.team .team-carousel .team-item:hover .team-content::after {
    height: 100% !important;
}

.team .team-carousel .team-item .team-img img { transition: 0.5s; }

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

@media (max-width: 576px) {
    .team-carousel .owl-nav .owl-prev,
    .team-carousel .owl-nav .owl-next {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/*** Team End ***/

/*** Gallery / Video Start ***/
.gallery .tab-class { text-align: start !important; }

.gallery .nav-item {
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.gallery .nav-item a span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery .nav-item a.active { background: #ff4500 !important; }
.gallery .nav-item a.active span { color: var(--bs-white) !important; }

.video { position: relative; }

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
    display: block;
    width: 23px; height: 44px;
    border-radius: 50%;
    transition: 0.5s;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 70px; height: 70px;
    background: var(--bs-white);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 50px; height: 50px;
    background: var(--bs-secondary);
    border-radius: 50%;
    transition: all 300ms;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0; height: 0;
    border-left: 23px solid #ff4500;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

@keyframes pulse-border {
    0%   { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5); opacity: 0; }
}

#videoModal { z-index: 99999; }

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0;
}

#videoModal .close {
    position: absolute;
    width: 30px; height: 30px;
    right: 0; top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}

@media (max-width: 576px) {
    #videoModal .modal-dialog {
        margin: 20px auto 0 auto;
    }

    .gallery .nav-item {
        margin-right: 10px;
        margin-bottom: 8px;
    }
}
/*** Gallery / Video End ***/

/*** Testimonial Start ***/
.testimonial-carousel .owl-stage-outer { margin-top: 30px; }

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: 1px;
    padding: 10px 35px;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-white);
    background: var(--bs-secondary);
    border-radius: 50px;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev { left: 0 !important; }
.testimonial-carousel .owl-nav .owl-next { right: 0; }

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

@media (max-width: 576px) {
    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/*** Testimonial End ***/

/*** Contact Start ***/
.contact button.btn.btn-primary.w-100:hover {
    box-shadow: inset 700px 0 0 0 var(--bs-light) !important;
    color: #ff4500 !important;
}

@media (max-width: 576px) {
    .contact .row > div { margin-bottom: 16px; }
}
/*** Contact End ***/

/*** Footer Start ***/
.footer { background: var(--bs-dark); }

.footer .footer-item .footer-link {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item .footer-link:hover {
    letter-spacing: 1px;
    color: #ff4500 !important;
}

@media (max-width: 768px) {
    .footer .row > div { margin-bottom: 28px; }
    .footer .row > div:last-child { margin-bottom: 0; }
}
/*** Footer End ***/

/*** Copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}

@media (max-width: 576px) {
    .copyright .row { flex-direction: column; text-align: center; gap: 8px; }
}
/*** Copyright End ***/

/*** Services Slider Start ***/
.services-track-outer {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.services-track-outer::-webkit-scrollbar { display: none; }

.services-track {
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {
    .services-slide {
        min-width: 100% !important;
        flex: 0 0 100%;
    }
}
/*** Services Slider End ***/

/* =====================================================
   GLOBAL MOBILE RESPONSIVE FIXES - ALL PAGES
   ===================================================== */

/* -- Typography scaling -- */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.2rem !important; }
    p  { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
}

/* -- Container padding on mobile -- */
@media (max-width: 576px) {
    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* -- Section vertical spacing -- */
@media (max-width: 992px) {
    .py-5 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .py-5 {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }
    .pt-5 { padding-top: 36px !important; }
    .pb-5 { padding-bottom: 36px !important; }
    .my-5 { margin-top: 32px !important; margin-bottom: 32px !important; }
    .mt-5 { margin-top: 32px !important; }
    .mb-5 { margin-bottom: 32px !important; }
}

@media (max-width: 576px) {
    section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .py-5 {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }
    .pt-5 { padding-top: 28px !important; }
    .pb-5 { padding-bottom: 28px !important; }
    .my-5 { margin-top: 24px !important; margin-bottom: 24px !important; }
    .mt-5 { margin-top: 24px !important; }
    .mb-5 { margin-bottom: 24px !important; }
    /* Extra spacing classes */
    .py-lg-5 { padding-top: 28px !important; padding-bottom: 28px !important; }
    .pt-lg-5 { padding-top: 28px !important; }
    .pb-lg-5 { padding-bottom: 28px !important; }
}

/* -- Row gutter fix on mobile -- */
@media (max-width: 576px) {
    .row { --bs-gutter-x: 1rem; }
}

/* -- Images -- */
img {
    max-width: 100%;
    height: auto;
}

/* -- Tables -- */
@media (max-width: 768px) {
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* -- Cards -- */
@media (max-width: 576px) {
    .card { margin-bottom: 20px; }
    .card-body { padding: 16px; }
}

/* -- Buttons -- */
@media (max-width: 576px) {
    .btn { font-size: 14px; padding: 10px 18px; }
    .btn-lg { font-size: 15px; padding: 12px 22px; }
}

/* -- Forms -- */
@media (max-width: 576px) {
    .form-control, .form-select {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* -- Grid: stack on mobile -- */
@media (max-width: 576px) {
    .col-sm-6, .col-md-6, .col-lg-6,
    .col-md-4, .col-lg-4,
    .col-md-3, .col-lg-3 {
        width: 100%;
    }
}

/* -- Flex wrap on mobile -- */
@media (max-width: 576px) {
    .d-flex:not(.navbar):not(.btn):not(.btn-square):not(.back-to-top) {
        flex-wrap: wrap;
    }
}

/* -- Back to Top button position -- */
@media (max-width: 576px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* -- Sub-title line hide on very small screens -- */
@media (max-width: 400px) {
    .sub-title::before { display: none; }
}

/* -- Overflow fix: prevent horizontal scroll -- */
body, html {
    overflow-x: hidden;
}

/* -- Sticky navbar offset for anchor links -- */
@media (max-width: 991px) {
    :target { scroll-margin-top: 70px; }
}

@media (min-width: 992px) {
    :target { scroll-margin-top: 95px; }
}

/* -- Owl carousel dots on mobile -- */
@media (max-width: 576px) {
    .owl-dots {
        margin-top: 16px !important;
        text-align: center;
    }

    .owl-dot span {
        width: 8px !important;
        height: 8px !important;
    }
}

/* -- Tab overflow on mobile -- */
@media (max-width: 576px) {
    .nav-tabs, .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar,
    .nav-pills::-webkit-scrollbar { display: none; }

    .nav-tabs .nav-link,
    .nav-pills .nav-link {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* -- Modal full screen on mobile -- */
@media (max-width: 576px) {
    .modal-dialog { margin: 10px; }
    .modal-content { border-radius: 8px; }
}

/* -- Hero section text on small screens -- */
@media (max-width: 576px) {
    .display-1 { font-size: 2rem !important; }
    .display-2 { font-size: 1.8rem !important; }
    .display-3 { font-size: 1.6rem !important; }
    .display-4 { font-size: 1.4rem !important; }
    .display-5 { font-size: 1.3rem !important; }
    .display-6 { font-size: 1.2rem !important; }
}

/* -- Lead text -- */
@media (max-width: 576px) {
    .lead { font-size: 1rem !important; }
}

/* -- Breadcrumb -- */
@media (max-width: 576px) {
    .breadcrumb { font-size: 12px; flex-wrap: wrap; }
    .breadcrumb-item + .breadcrumb-item { padding-left: 6px; }
}

/* -- Pagination -- */
@media (max-width: 576px) {
    .pagination { flex-wrap: wrap; gap: 4px; }
    .page-link { padding: 6px 10px; font-size: 13px; }
}

/* -- Input group -- */
@media (max-width: 576px) {
    .input-group { flex-wrap: wrap; }
    .input-group .btn { width: 100%; border-radius: 5px !important; margin-top: 8px; }
}

/* -- Spacing helpers moved to section vertical spacing block above -- */

/* =====================================================
   BLOG DETAIL PAGE - MOBILE FIXES
   ===================================================== */
@media (max-width: 992px) {
    .blog-hero-grid { grid-template-columns: 1fr !important; }
    .hero-left { padding: 28px 20px !important; border-right: none !important; border-bottom: 2px solid #f5c4a4; }
    .hero-right { height: 260px !important; }
    .article-wrap { border-right: none !important; padding-right: 0 !important; margin-bottom: 36px; }
    .sidebar { padding-left: 0 !important; position: static !important; }
    .cat-posts-grid { grid-template-columns: repeat(2,1fr) !important; }
    .wired-posts-grid { grid-template-columns: 1fr !important; }
    .wired-small-stack { grid-template-columns: 1fr 1fr !important; border-left: none !important; padding-left: 0 !important; border-top: 1px solid #f5c4a4; padding-top: 20px; }
    .wired-big-img-wrap img { height: 240px !important; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.6rem !important; }
    .hero-excerpt { font-size: 0.9rem !important; }
    .hero-meta { gap: 10px !important; }
    .cat-posts-grid { grid-template-columns: 1fr !important; }
    .wired-small-stack { grid-template-columns: 1fr !important; }
    .wired-big-img-wrap img { height: 200px !important; }
    .share-bar { gap: 8px !important; }
    .trending-grid { grid-template-columns: 1fr !important; }
    .top-ticker { font-size: 12px !important; padding: 6px 0 !important; }
    .lead-quote { font-size: 0.92rem !important; padding: 12px 16px !important; }
    .article-body { font-size: 0.92rem !important; }
    .article-body h2 { font-size: 1.4rem !important; }
    .article-body h3 { font-size: 1.1rem !important; }
    .sidebar-block-title { font-size: 10px !important; }
    .cta-title { font-size: 1.3rem !important; }
    .info-widget td { font-size: 12px !important; padding: 8px 10px !important; }
    .recent-item img { width: 58px !important; height: 46px !important; }
    .breadcrumb-bar { font-size: 11px !important; }
}

/* === CAROUSEL MOBILE FIX - UPDATED === */
@media (max-width: 576px) {
    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        height: 580px;
    }

    .header-carousel .header-carousel-item .carousel-caption {
        padding: 50px 0 80px 0;
        align-items: center;
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        top: auto;
        bottom: 10px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .carousel-caption-content {
        width: 95% !important;
    }

    .carousel-caption-content .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }

    .carousel-caption-content .btn {
        min-width: 240px !important;
        font-size: 0.82rem !important;
        padding: 11px 20px !important;
    }

    /* Reduce heading size to save space on small screens */
    .carousel-caption-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
        margin-bottom: 12px !important;
    }

    /* Make description text slightly smaller */
    .carousel-caption-content p {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }

    /* Reduce badge margin */
    .carousel-caption-content .d-inline-flex {
        margin-bottom: 10px !important;
        padding: 5px 14px !important;
    }
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS - MOBILE & DESKTOP
   ===================================================== */

/* GPU layer for carousel - prevents repaints during slide animation */
.header-carousel .header-carousel-item {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* GPU layer for navbar - smooth sticky transitions */
nav.navbar {
    will-change: transform;
    transform: translateZ(0);
}

/* Contain layout for sections below the fold - browser skips offscreen rendering */
.counter-facts,
.training,
.class,
.team,
.gallery,
.blog,
.testimonial,
footer.footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* Use only GPU-compositable properties in transitions */
.header-carousel .header-carousel-item img,
.training .training-item .training-img img,
.class .class-item .class-img img,
.blog .blog-item .blog-img img,
.team .team-carousel .team-item .team-img img {
    will-change: transform;
    transform: translateZ(0);
}

/* Disable heavy effects for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .header-carousel .header-carousel-item {
        will-change: auto;
    }
}

/* Disable background-attachment:fixed on all touch/mobile devices
   (fixed causes full-page repaints on every scroll frame on mobile) */
@media (max-width: 991.98px), (hover: none) {
    .counter-facts {
        background-attachment: scroll !important;
    }
}

/* Smooth font rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Images never overflow and always load with intrinsic size reserved */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

}

/* Navbar collapse - hardware-accelerated open/close on mobile */
.navbar-collapse {
    will-change: transform, opacity;
}

/* Back-to-top button - composited layer */
.back-to-top {
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* =====================================================
   END PERFORMANCE OPTIMIZATIONS
   ===================================================== */

/* =====================================================
   MOBILE NAVBAR - SCROLL WITH PAGE (NO FIXED/STICKY)
   Overrides Bootstrap fixed-top, sticky-top, and any
   JS-added classes so navbar scrolls away on mobile.
   Must stay at the very END of this file to win cascade.
   ===================================================== */
@media (max-width: 991.98px) {
    .navbar,
    .navbar-light,
    .navbar.sticky-top,
    .navbar.fixed-top,
    .sticky-top.navbar-light,
    .fixed-top.navbar-light,
    .navbar.shadow-sm {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 1030;
    }
}
/* =====================================================
   END MOBILE NAVBAR FIX
   ===================================================== */