/* =====================================================================
   RESPONSIVE FIXES — Travisa Theme
   Yeh file style.css ke BAAD load karo (sabse last <link> me).
   Ismein koi purana CSS delete nahi kiya, sirf breakpoints ke hisab se
   override kiya gaya hai taaki mobile / tablet / laptop / desktop / TV
   sab pe sahi dikhe.
   ===================================================================== */

/* ---------- 0. GLOBAL SAFETY NET ---------- */
* {
    box-sizing: border-box;
}
html,
body {
    overflow-x: hidden; /* horizontal scroll/jump kabhi nahi aayega */
    max-width: 100%;
}
img {
    max-width: 100%;
    height: auto;
}

/* =====================================================================
   1. NAVBAR / LOGO
   ===================================================================== */
.navbar-brand.brand-fix .brand-logo,
.navbar-brand.brand-fix img {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
}

@media (max-width: 575.98px) {
    .navbar-brand.brand-fix .brand-logo,
    .navbar-brand.brand-fix img {
        height: 44px !important;
        max-height: 44px !important;
    }
    .navbar {
        padding: 10px 15px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar-brand.brand-fix .brand-logo,
    .navbar-brand.brand-fix img {
        height: 50px !important;
        max-height: 50px !important;
    }
}

/* =====================================================================
   2. CAROUSEL / HERO HEADER
   Fixed height range se full-screen 100vh se overflow / cut hona band.
   ===================================================================== */
.carousel-header .carousel-inner .carousel-item {
    min-height: 500px;
}

@media (min-width: 992px) {
    .carousel-header .carousel-inner .carousel-item {
        min-height: 85vh;
    }
}

@media (max-width: 991.98px) {
    .carousel-header .carousel-inner .carousel-item {
        min-height: 480px;
    }
    .carousel-header .carousel-caption h1,
    .carousel-header .carousel-caption .display-1 {
        font-size: 2.2rem !important;
    }
    .carousel-header .carousel-caption h4,
    .carousel-header .carousel-caption h5 {
        font-size: 1rem !important;
    }
    .carousel-header .carousel-caption p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 575.98px) {
    .carousel-header .carousel-inner .carousel-item {
        min-height: 420px;
    }
    .carousel-header .carousel-caption h1,
    .carousel-header .carousel-caption .display-1 {
        font-size: 1.6rem !important;
    }
    .carousel-header .carousel-caption .btn {
        padding: 10px 24px !important;
        font-size: 0.9rem;
    }
    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* =====================================================================
   3. ABOUT SECTION (about-image, experience-card, small-img, contact-card)
   ===================================================================== */

/* Laptop range (992–1199) — experience card & small-img ab tak sirf
   <=991 pe fix the, 992-1199 pe abhi bhi overflow ho raha tha */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .about-title {
        font-size: 38px;
    }
    .experience-card {
        right: 0;
        padding: 14px;
    }
    .experience-card h2 {
        font-size: 32px;
    }
    .small-img {
        width: 140px;
        left: -10px;
        bottom: -10px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .about-title {
        font-size: 44px;
    }
}

/* Tablet & Mobile (<992) */
@media (max-width: 991.98px) {
    .about-title {
        font-size: 30px;
    }
    .about-text {
        font-size: 15px;
    }

    .about-image {
        margin-bottom: 40px;
    }
    .experience-card {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 14px 16px;
    }
    .experience-card h2 {
        font-size: 26px;
    }
    .experience-card span {
        font-size: 11px;
    }

    .feature-box {
        padding: 18px;
        flex-wrap: wrap;
        text-align: left;
    }
    .feature-box i {
        font-size: 30px;
    }

    .contact-card {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .about-title {
        font-size: 24px;
    }
    .main-img {
        border-radius: 18px;
    }
    .experience-card {
        top: 10px;
        right: 10px;
        padding: 10px 14px;
    }
    .experience-card h2 {
        font-size: 20px;
    }
    .experience-card span {
        font-size: 9px;
    }
    .feature-box {
        gap: 12px;
        padding: 15px;
    }
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================================
   4. COUNTER FACTS (Elite Dark Stats)
   ===================================================================== */
@media (max-width: 575.98px) {
    .counter-elite .display-6 {
        font-size: 1.6rem !important;
    }
    .icon-circle {
        width: 46px;
        height: 46px;
    }
    .icon-circle i {
        font-size: 1.1rem !important;
    }
    .elite-card {
        padding: 1rem !important;
    }
    .mb-6 {
        margin-bottom: 2rem !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .counter-elite .display-6 {
        font-size: 2rem !important;
    }
}

/* =====================================================================
   5. SERVICES CARDS (service-item-static)
   ===================================================================== */
@media (max-width: 575.98px) {
    .service-item-static img {
        height: 180px !important;
    }
    .service-item-static .p-4 {
        padding: 1.1rem !important;
    }
}

/* =====================================================================
   6. FEATURES (Why Choose Us — feature-item-modern)
   ===================================================================== */
@media (max-width: 575.98px) {
    .feature-item-modern {
        padding: 1.25rem !important;
    }
    .feature-icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    .feature-icon-wrapper i {
        font-size: 1.4rem !important;
    }
}

/* =====================================================================
   7. TRAINING / SUCCESS STORY CARDS
   Yeh cards hover pe hi content dikhate the — mobile/tablet me hover
   hota hi nahi (touch devices), isliye content hamesha visible rakha.
   ===================================================================== */
@media (max-width: 991.98px) {
    .training-item .training-inner .training-title-name a {
        opacity: 1 !important;
    }
    .training-item .training-content {
        position: static !important;
        bottom: auto !important;
    }
    .training-item .training-inner img {
        transform: none !important;
    }
}

@media (max-width: 575.98px) {
    .training-item .training-inner img {
        height: 200px;
        object-fit: cover;
    }
}

/* =====================================================================
   8. TESTIMONIALS (owl-carousel)
   ===================================================================== */
@media (max-width: 575.98px) {
    .testimonial-carousel .testimonial-content {
        padding: 1.25rem !important;
    }
    .testimonial-carousel .testimonial-content p {
        font-size: 0.95rem !important;
    }
    .testimonial .owl-nav {
        position: static !important;
        justify-content: center;
        margin-bottom: 15px;
    }
}

/* =====================================================================
   9. CONTACT / OFFICE CARDS
   ===================================================================== */
@media (max-width: 575.98px) {
    .contact .office .office-item {
        padding: 1rem !important;
    }
}

/* =====================================================================
   10. SECTION SPACING — mobile pe extra padding kam karo
   ===================================================================== */
@media (max-width: 575.98px) {
    .container-fluid.py-5,
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .section-title h1,
    .section-title .display-5 {
        font-size: 1.6rem !important;
    }
    .section-title p {
        font-size: 0.95rem !important;
    }
}

/* =====================================================================
   11. LARGE SCREENS / TV / 4K (1600px and above)
   Content bahut zyada stretch na ho, max-width lock kar do.
   ===================================================================== */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    .about-title {
        font-size: 58px;
    }
    .carousel-header .carousel-inner .carousel-item {
        min-height: 90vh;
    }
}
