/* =========================================================
   MBBS WALA - BRAND VARIABLES & BOOTSTRAP OVERRIDES
   Primary: Deep Navy Blue (#0A2647)
   Secondary / Accent: Vibrant Orange (#F37021)
   ========================================================= */
:root {
    --brand-navy: #0A2647;
    --brand-navy-light: #144272;
    --brand-navy-dark: #06182E;
    --brand-orange: #F37021;
    --brand-orange-hover: #D95D14;
    --brand-orange-soft: rgba(243, 112, 33, 0.12);
    --surface-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --border-light: #E2E8F0;
    /* Template Variable Mapping */
    --bs-primary: #0A2647;
    --bs-secondary: #F37021;
    --accent-gold: #F37021;
    --bs-light: #F8FAFC;
    --bs-dark: #06182E;
    --bs-white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bs-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

/*** Spinner ***/
#spinner {
    background: rgba(10, 38, 71, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

    #spinner.show {
        visibility: visible;
        opacity: 1;
        transition: opacity .5s ease-out, visibility 0s linear 0s;
    }

/*** Floating WhatsApp & Back to Top ***/
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: transform 0.25s ease;
    text-decoration: none;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        color: #FFFFFF;
    }

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 95px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-orange);
    color: #FFFFFF;
    border-radius: 50%;
    transition: 0.4s;
    z-index: 99;
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    transition: 0.35s ease;
}

.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-brand-orange,
.btn.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #E05A0B 100%) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--brand-orange) !important;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(243, 112, 33, 0.35);
}

    .btn-brand-orange:hover,
    .btn.btn-primary:hover {
        background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%) !important;
        color: var(--bs-white) !important;
        border-color: var(--brand-navy) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(10, 38, 71, 0.3);
    }

.btn-brand-navy {
    background-color: var(--brand-navy);
    color: #FFFFFF;
    border: 1px solid var(--brand-navy);
    border-radius: 10px;
}

    .btn-brand-navy:hover {
        background-color: var(--brand-orange);
        border-color: var(--brand-orange);
        color: #FFFFFF;
        transform: translateY(-2px);
    }

.btn.btn-secondary {
    background: transparent;
    color: var(--brand-orange);
    font-weight: 600;
    border: none;
    transition: 0.35s;
}

    .btn.btn-secondary:hover {
        color: var(--brand-navy) !important;
    }

/*** Icon Boxes & Lead Modal Styling ***/
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-box-orange {
    background-color: var(--brand-orange-soft);
    color: var(--brand-orange);
}

.icon-box-navy {
    background-color: rgba(10, 38, 71, 0.08);
    color: var(--brand-navy);
}

.lead-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 38, 71, 0.18);
}

.lead-card-header {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    border-bottom: 3px solid var(--brand-orange);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--brand-orange);
        box-shadow: 0 0 0 0.2rem rgba(243, 112, 33, 0.15);
    }

/*** Section Title with Double Accent Lines ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

    .section-title .sub-style {
        position: relative;
        display: inline-block;
        text-transform: uppercase;
        color: var(--brand-navy);
    }

        .section-title .sub-style::before {
            content: "";
            width: 80px;
            position: absolute;
            bottom: 50%;
            left: 0;
            transform: translateY(-50%);
            margin-bottom: -6px;
            margin-left: -90px;
            border: 1px solid var(--brand-orange) !important;
        }

        .section-title .sub-style::after {
            content: "";
            width: 40px;
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            margin-top: -8px;
            margin-left: -50px;
            border: 1px solid var(--brand-navy) !important;
        }

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--brand-orange);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

    .sub-title::before {
        content: "";
        width: 80px;
        position: absolute;
        bottom: 50%;
        right: 0;
        transform: translateY(-50%);
        margin-bottom: -8px;
        margin-right: -90px;
        border: 1px solid var(--brand-orange) !important;
    }

    .sub-title::after {
        content: "";
        width: 40px;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        margin-top: -6px;
        margin-right: -50px;
        border: 1px solid var(--brand-navy) !important;
    }

@media (max-width: 575.98px) {
    .section-title .sub-style::before,
    .section-title .sub-style::after,
    .sub-title::before,
    .sub-title::after {
        display: none;
    }
}

/*** Topbar ***/
.top-bar,
.topbar {
    background: linear-gradient(90deg, var(--brand-navy-dark) 0%, var(--brand-navy) 100%) !important;
    color: #FFFFFF;
    font-size: 0.85rem;
}

    .top-bar a:hover,
    .topbar a:hover {
        color: var(--brand-orange) !important;
    }

/*** Navbar ***/
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid var(--border-light);
}

    .navbar .navbar-nav .nav-link {
        position: relative;
        margin-right: 18px;
        padding: 18px 0;
        color: var(--brand-navy) !important;
        font-size: 16px;
        font-weight: 600;
        outline: none;
        transition: 0.35s;
    }

        .navbar .navbar-nav .nav-link:hover,
        .navbar .navbar-nav .nav-link.active {
            color: var(--brand-orange) !important;
        }

    .navbar .navbar-brand img {
        max-height: 58px;
        transition: 0.35s;
    }

@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: 12px;
        transition: 0.4s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        background: var(--bs-white) !important;
        opacity: 1;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
}

@media (min-width: 991.98px) {
    .navbar .navbar-nav .nav-link::after,
    .navbar .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--brand-orange);
        opacity: 0;
        transition: all 0.4s;
    }

    .navbar .navbar-nav .nav-link::before {
        top: 18px;
    }

    .navbar .navbar-nav .nav-link::after {
        bottom: 18px;
    }

    .navbar .navbar-nav .nav-link:hover::before,
    .navbar .navbar-nav .nav-link.active::before {
        top: 10px;
        opacity: 1;
    }

    .navbar .navbar-nav .nav-link:hover::after,
    .navbar .navbar-nav .nav-link.active::after {
        bottom: 10px;
        opacity: 1;
    }
}

/*** Single Page Hero Header ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(10, 38, 71, 0.92), rgba(6, 24, 46, 0.88)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    padding: 90px 0 60px 0;
}

/*** Carousel Hero Header ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--brand-orange) !important;
    background-size: 55% 55%;
    transition: 0.4s;
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 85vh;
}

    .carousel-header .carousel-inner .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-header .carousel-inner .carousel-item .carousel-caption {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: linear-gradient(135deg, rgba(6, 24, 46, 0.82) 0%, rgba(10, 38, 71, 0.65) 100%);
    }

@media (max-width: 768px) {
    .carousel-header .carousel-inner .carousel-item {
        min-height: 540px;
    }

    .carousel-header .display-3 {
        font-size: 2rem;
    }
}

/*** Counter Facts (Shield / Ribbon Style in Navy & Orange) ***/
.counter-facts {
    background: linear-gradient(rgba(248, 250, 252, 0.93), rgba(248, 250, 252, 0.95)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1400&q=80') center/cover fixed;
}

    .counter-facts .counter {
        position: relative;
        text-align: center;
        width: 220px;
        min-height: 225px;
        padding: 12px 15px;
        margin: 0 auto;
        border-radius: 100px;
        box-shadow: 0 12px 28px rgba(10, 38, 71, 0.14);
        background: var(--bs-white);
    }

        .counter-facts .counter::before {
            content: "";
            position: absolute;
            height: 105px;
            width: 100%;
            left: 0;
            top: 0;
            border-radius: 14px 14px 0 0;
            background-color: var(--brand-navy);
        }

        .counter-facts .counter .counter-icon {
            position: relative;
            width: 120px;
            height: 100px;
            margin: 0 auto 10px;
            border-radius: 12px 12px 0 0;
            transform: translateY(-20px);
            font-size: 42px;
            line-height: 90px;
            color: var(--bs-white);
            background: var(--brand-orange);
            clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
        }

            .counter-facts .counter .counter-icon::before {
                content: "";
                position: absolute;
                width: 120px;
                height: 90px;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                border-radius: 12px 12px 0 0;
                background: rgba(10, 38, 71, 0.45);
                z-index: -1;
                clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
            }

        .counter-facts .counter:hover .counter-icon i {
            transform: rotate(360deg);
            transition: all 0.5s ease;
            display: inline-block;
        }

        .counter-facts .counter h3 {
            color: var(--brand-navy);
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin: 0 0 6px 0;
        }

        .counter-facts .counter .counter-value {
            font-size: 30px;
            font-weight: 800;
            display: inline-block;
            color: var(--brand-orange);
        }

@media (max-width: 991.98px) {
    .counter-facts {
        background-attachment: scroll;
    }
}

/*** Services / Hover Slide-Up Cards ***/
.service .service-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

    .service .service-item .service-inner .service-title {
        position: relative;
        margin-top: -40px;
        text-align: center;
        transition: 0.5s;
    }

        .service .service-item .service-inner .service-title .service-content {
            position: absolute;
            bottom: -100%;
            left: 0;
            right: 0;
            margin-left: 20px;
            margin-right: 20px;
            text-align: center;
            border-radius: 14px;
            background: var(--brand-navy);
            border-top: 3px solid var(--brand-orange);
            opacity: 0;
            transition: 0.5s;
        }

    .service .service-item:hover .service-inner .service-title .service-content,
    .service .service-item:focus-within .service-inner .service-title .service-content {
        bottom: 12px;
        opacity: 1;
    }

    .service .service-item .service-inner .service-title .service-title-name {
        transition: 0.4s;
    }

    .service .service-item:hover .service-inner .service-title .service-title-name {
        opacity: 0;
    }

    .service .service-item .service-inner .service-img {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
    }

        .service .service-item .service-inner .service-img img {
            height: 360px;
            object-fit: cover;
            transition: 0.5s;
        }

    .service .service-item:hover .service-inner .service-img img {
        transform: scale(1.15);
    }

/*** Features Cards ***/
.features .feature-item {
    position: relative;
    background: var(--bs-white);
    box-shadow: 0 10px 30px rgba(10, 38, 71, 0.08);
    border-radius: 16px;
    z-index: 1;
    overflow: hidden;
}

    .features .feature-item::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 0;
        bottom: 0;
        left: 0;
        border-radius: 16px;
        background: rgba(10, 38, 71, 0.05);
        z-index: -1;
        transition: 0.45s;
    }

    .features .feature-item:hover::after {
        height: 100%;
    }

    .features .feature-item .feature-icon {
        width: 100px;
        height: 100px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-orange-soft);
        color: var(--brand-orange);
        transition: 0.45s;
    }

    .features .feature-item:hover .feature-icon {
        border-radius: 50%;
        background: var(--brand-navy) !important;
        color: var(--bs-white) !important;
    }

    .features .feature-item .feature-icon i {
        transition: 0.5s;
    }

    .features .feature-item:hover .feature-icon i {
        transform: rotate(360deg);
    }

/*** Country Cards with Rotating Overlapping Flag/Badge ***/
.country .country-item,
.country-item {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(10, 38, 71, 0.12);
}

    .country-item::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0;
        bottom: 0;
        left: 0;
        background: rgba(10, 38, 71, 0.72);
        border-radius: 16px;
        transition: 0.45s;
        z-index: 1;
    }

    .country-item:hover::after {
        height: 100%;
    }

    .country-item .country-flag {
        position: absolute;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        top: -36px;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid var(--bs-white);
        background: var(--brand-navy);
        color: var(--bs-white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 1.1rem;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
        transition: 0.5s;
        z-index: 2;
    }

    .country-item:hover .country-flag {
        transform: translateX(-50%) rotate(360deg);
    }

    .country-item .country-name {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 18px;
        background: linear-gradient(to top, rgba(10, 38, 71, 0.95), rgba(10, 38, 71, 0.55));
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        transition: 0.4s;
        z-index: 3;
    }

    .country-item:hover .country-name {
        background: linear-gradient(to top, var(--brand-orange), rgba(243, 112, 33, 0.85));
    }

    .country-item img.country-bg {
        height: 300px;
        object-fit: cover;
        transition: 0.5s;
    }

    .country-item:hover img.country-bg {
        transform: scale(1.12);
    }

/*** Phone Ringing Animation ***/
@keyframes tadaRing {
    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30%, 50% {
        transform: rotate(-12deg);
    }

    20%, 40%, 60% {
        transform: rotate(12deg);
    }
}

.phone-tada-anim {
    animation: tadaRing 2s infinite;
}

/*** Office & Testimonial Cards ***/
.office-item,
.testimonial-card {
    background: var(--bs-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(10, 38, 71, 0.08);
    transition: 0.4s;
}

    .office-item:hover,
    .testimonial-card:hover {
        transform: translateY(-6px);
        border-color: var(--brand-orange);
        box-shadow: 0 16px 36px rgba(10, 38, 71, 0.16);
    }
