:root{
    --bs--secondary:#003a66 !important;
    /* ensure breadcrumb divider does not show external mirrored URL */
    --bs-breadcrumb-divider: "/";
}
/*** Spinner Start ***/
/*** 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;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 88px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    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;
}

/* Cart badge for navbar cart icon */
.cart-badge {
    position: absolute;
    top: -13px;
    right: -6px;
    background: #e71d36; /* red */
    color: #fff;
    font-size: 11px;
    line-height: 16px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.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: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn.btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--bs-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    border: none;
    transition: 0.5s;
}

.btn.btn-secondary:hover {
    color: var(--bs-primary) !important;
}


/*** Section Title Start ***/
.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(--bs-primary);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}


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

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

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

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


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


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-primary) !important;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    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;
}

@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: var(--bs-primary);
    color: var(--bs-secondary);
}

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

/* Make navbar sticky across all screen sizes */
.container-fluid.nav-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

@media (max-width: 991.98px) {
    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary) !important;
        color: var(--bs-primary);
    }

    .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: 991.98px) {
    /* large-screen navbar tweaks */

    /*** Top and Bottom borders go out ***/
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        top: 30px;
        bottom: 30px;
        left: 0px;
        width: 100%;
        height: 2px;
        background: var(--bs-primary);
        opacity: 0;
        transition: all 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:before {
        bottom: auto;
    }

    .navbar-light .navbar-nav .nav-link:after {
        top: auto;
    }

    .navbar-light .navbar-nav .nav-link:hover:before,
    .navbar-light .navbar-nav .nav-link.active:before {
        top: 20px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 20px;
        opacity: 1;
    }
}

/* Ensure About section keeps image and content side-by-side at >=1024px
   so layout matches the desktop (>=1200px) appearance */
@media (min-width: 1024px) {
    /* target the About section specifically using its container structure */
    .container-fluid.py-4 > .container > .row.g-5 {
        align-items: center; /* vertically center columns */
    }

    .container-fluid.py-4 > .container > .row.g-5 .col-xl-5 {
        flex:0 4 33.666667%;
        max-width: 41.666667%; /* default for col-xl-5 */
    }

    /* override the second column to take remaining space (approx 58.3333%) */
    .container-fluid.py-4 > .container > .row.g-5 .col-xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    /* ensure images inside the left column keep their intended stacking and sizes */
    .container-fluid.py-4 .bg-light img.img-fluid.w-100 {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Keep image ordering unchanged and ensure no margin collapse */
    .container-fluid.py-4 .bg-light {
        display: block;
    }

    /* Ensure columns use flex layout rather than floats */
    .container-fluid.py-4 .col-xl-5,
    .container-fluid.py-4 .col-xl-7 {
        float: none;
    }

    /* Apply desktop-like xl column widths at 1024px for other sections */
    /* 1/4 width */
    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

/* ===== Feature page card styles (moved from features.html) ===== */
.feature-card {
    text-align: left; /* left align icon, title, and text */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card .feature-icon {
    text-align: left;
    margin-bottom: 0.4rem !important; /* reduce gap between icon and title */
}

.feature-card .card-title {
    min-height: 3.0rem; /* slightly reduced to keep titles aligned */
    margin-bottom: 0.35rem; /* smaller gap to the paragraph */
}

.feature-card .card-text {
    text-align: justify; /* justify paragraphs for neat edges */
    margin-top: 0; /* remove extra top spacing */
}

@media (max-width: 575.98px) {
    .feature-card .card-title {
        min-height: auto;
    }
}

/* Make icon and heading inline and aligned */
.feature-card .feature-icon {
    display: inline-flex !important;
    vertical-align: middle;
    margin-bottom: 0 !important;
}

.feature-card .feature-icon i {
    font-size: 1.4rem; /* reduce icon size so it aligns with text */
    line-height: 1;
}

.feature-card .card-title {
    display: inline-block;
    vertical-align: middle;
    font-size: 1rem; /* slightly smaller title to fit inline */
    margin-left: 0.5rem; /* small gap between icon and title when inline */
    min-height: 0.4rem; /* tighter min-height for inline layout */
}

@media (max-width: 420px) {
    .feature-card .feature-icon,
    .feature-card .card-title {
        display: block;
    }

    .feature-card .card-title {
        margin-left: 0;
        min-height: auto;
        margin-top: 0.35rem;
    }
}

/* Force cards to be equal height and align paragraph starts */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body.feature-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* allow body to grow to fill card */
}

/* Ensure the icon+title container has fixed vertical space so paragraphs start aligned */
.feature-heading {
    min-height: 3.6rem; /* reserve space for icon + 2 lines of title if needed */
}

.feature-heading .feature-icon i {
    font-size: 1.6rem; /* slightly larger icon but still aligned */
}

.feature-heading h5.card-title {
    margin: 0; /* remove extra heading spacing */
    line-height: 1.1;
    font-size: 1rem;
}

/* Ensure the paragraph always starts immediately after the heading area */
.feature-card .card-text {
    margin-top: 0.5rem;
}

/* End feature page card styles */

/* Feature card paragraphs are shown in full (no clamping) */
.feature-card .card-text {
    /* full content visible; rely on natural flow */
    overflow: visible;
}

    /* 1/3 width */
    .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    /* half width */
    .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* full width */
    .col-xl-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* ensure rows in main sections vertically center their columns */
    .container-fluid.service > .container .row,
    .container-fluid.features > .container .row,
    .container-fluid.country > .container .row,
    .container-fluid.training > .container .row,
    .container-fluid.contact > .container .row,
    .container-fluid.footer > .container .row {
        align-items: center;
    }
}

#searchModal .modal-content {
    background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(0, 58, 102, 0.8)), url(../img/breadcrumb.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-size: cover;
    padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/


/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    margin-left: -60px;
    border-radius: 50%;
    background-size: 60% 60%;
    transition: 0.5s;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-left: 0;
    margin-right: -60px;
}

.carousel-header .carousel .carousel-indicators {
    padding-bottom: 0;
    transition: 0.5s;
}


.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-primary);
    border-radius: 50%;
    margin-right: 30px;
    transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li.active {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-secondary);
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh
}

.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;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0.6));
    background-size: cover;
}


@media (max-width: 768px) {
    .carousel-header {
        height: 457px !important;
    }

    /* .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        /* margin-top: 500px; */
     */

    .carousel-header .carousel-control-prev .carousel-control-prev-icon {
        margin-left: 0px;
    }

    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-right: 0px;
    }

    .carousel-header .carousel .carousel-indicators {
        padding: 0;
    }
}
/*** Carousel Hero Header End ***/


/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0.8)), url(../img/breadcrumb.png);
    background-size: cover;
    background-attachment: fixed;
    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: var(--bs-primary);

}
.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    background: rgba(1, 143, 252, 0.5);
    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: 10px 10px 0 0;
    background: rgba(0, 58, 102, 0.5);
    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.3s ease;
}
.counter-facts .counter h3 {
    color: var(--bs-primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.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;
    }
}
/*** Counter Facts End ***/


/*** service Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
}

.service .service-item .service-inner .service-title {
    position: relative;
    margin-top: -30px;
    text-align: center;
    transition: 0.5s;
}

.service .service-item .service-inner .service-title .service-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    margin-left: 30px;
    margin-right: 30px;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-primary);
    opacity: 0;
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-content {
    bottom: 0;
    opacity: 1;
}

.service .service-item .service-inner .service-title .service-content a h4 {
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.service .service-item .service-inner .service-title .service-title-name {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 0;
}

.service .service-item .service-inner .service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
    height: 100%;
    opacity: 1;
}

.service .service-item .service-inner .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
    transform: scale(1.3);
}
/*** Service End ***/

/* Make order button label slightly smaller in Service (Lost & Found) so it doesn't resize the button */
.service .service-content .btn.btn-primary {
    font-size: 0.85rem; /* slightly smaller label */
    line-height: 1.2;    /* keep text vertically centered */
    min-height: 38px;    /* lock visual button height */
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Ensure smaller text doesn't change button layout on small screens */
@media (max-width: 575.98px) {
    .service .service-content .btn.btn-primary {
        min-height: 36px;
        font-size: 0.82rem;
    }
}


/*** Features Start ***/
.features .feature-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.features .feature-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 58, 102, 0.1);
    z-index: -1;
    transition: 0.5s;
}

.features .feature-item:hover::after {
    height: 100%;
}

.features .feature-item .feature-icon {

    height: 120px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon {
    border-radius: 50%;
    background: var(--bs-white) !important;
}

.features .feature-item .feature-icon i {
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon i {
    color: var(--bs-secondary) !important;
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

/* Justify paragraph text in feature cards while keeping headings centered */
.features .feature-item .feature-content p {
    text-align: justify;
}

.features .feature-item .feature-content h5 {
    text-align: center;
}
/*** Features End ***/

/* Ensure feature cards have equal heights and content stretches
   - Use column-level flex to allow Bootstrap grid columns to match heights
   - Make .feature-content use flex column and grow so buttons stay at bottom
   - Scope to medium and up to avoid unexpected behavior on small phones
*/
@media (min-width: 768px) {
    .container-fluid.features > .container .row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .container-fluid.features .col-md-6,
    .container-fluid.features .col-lg-6,
    .container-fluid.features .col-xl-3 {
        display: flex;
        align-items: stretch;
    }
    .features .feature-item {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .features .feature-item .feature-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto; /* allow content area to grow */
    }
    .features .feature-item .feature-content p {
        flex: 1 1 auto; /* paragraph takes available space */
    }
    .features .feature-item .feature-content .btn {
        align-self: center; /* keep the CTA centered */
        margin-top: 12px;
    }
}

/* Extra enforcement for screens >=1024px where layout should match XL behavior */
@media (min-width: 1024px) {
    .container-fluid.features > .container .row {
        align-items: stretch;
    }
    .features .feature-item .feature-content p {
        /* small tweak to avoid very long lines stretching the card height too much */
        hyphens: auto;
    }
    /* Make HOW IT WORKS country columns behave like XL at 1024px: remove bottom spacing (mb-5) */
    .container-fluid.country .col-lg-6.mb-5,
    .container-fluid.country .col-xl-3.mb-5 {
        margin-bottom: 0 !important;
    }
}

/* Our Products card alignment: make cards equal height and align Buy buttons */
.products .card {
    display: flex;
    flex-direction: column;
    border: 0;
    background: transparent;
}

.products .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}
.products .card-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.products .card-text {
    min-height: 3rem; /* reserve space for short description */
    color: var(--bs-muted);
}
.products .card .fw-bold {
    display: inline-block;
}
.products .card .btn {
    align-self: center; /* center the Buy button */
    margin-top: 12px;
}
.products .card .badge {
    font-size: 0.9rem;
}



/* Product footer layout: left-aligned price (old+discount on one line, current price below), Buy on right */
.products .product-footer {
    gap: 0px;
}
.products .product-footer .price-left {
    text-align: left;
}
.products .product-footer .price-old-line {
    white-space: nowrap;
}
.products .product-footer .price-current {
    margin-top: -4px;
}
.products .product-footer .buy-right .btn {
    white-space: nowrap;
}

/* Ensure equal right margin on Buy button at 1024px */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .products .product-footer .buy-right {
        margin-right: 18px; /* provides consistent spacing from card edge */
    }
    /* also nudge the left price block a little to keep balanced padding */
    .products .product-footer .price-left {
        margin-left: 0px;
    }
}

/* Add button color specifically for Our Products cards */
.products .add-right .btn,
.products .buy-right .btn {
    background-color: #003a66 !important;
    border-color: #003a66 !important;
    color: #ffffff !important;
}
.products .add-right .btn:hover,
.products .buy-right .btn:hover {
    background-color: #002b4f !important;
    border-color: #002b4f !important;
    color: #ffffff !important;
}

/* Beautiful card styling for Our Products */
.products .card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 20px rgba(3, 58, 102, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff);
    border: 1px solid #000; /* thin black border for product cards */
}
.products .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(3, 58, 102, 0.12);
}

.products .card:hover .card-img-top {
    transform: scale(1.06) rotate(0.001deg);
}
.products .card-body {
    padding: 0.5rem;
    background-color: azure;
}
.products .card-title {
    color: #003a66;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.products .price-left .price-old-line small {
    color: #e71d36 !important; /* MRP in red to stand out */
    font-size: 0.72rem;
}
.products .price-left .price-current .fw-bold {
    color: #061e2f;
    font-size: 1rem !important;
}
.products .badge.bg-danger {
    background: #e74c3c !important;
    font-size: 0.75rem;
    padding: 0.28rem 0.45rem;
    vertical-align: middle;
}
.products .product-footer {

    padding-bottom: 2px;
}



/* Topbar color overrides: ensure all text/icons in the topbar are white */
.container-fluid.bg-primary, .container-fluid.bg-primary a, .container-fluid.bg-primary i {
    color: #ffffff !important;
}
.container-fluid.bg-primary a.btn, .container-fluid.bg-primary .btn {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.25) !important;
}
.container-fluid.bg-primary .btn-outline-light {
    background: transparent !important;
}
.container-fluid.bg-primary .text-muted {
    color: rgba(255,255,255,0.85) !important;
}



/*** Country Start ***/
/* .country .country-item {
    position: relative;
}

.country .country-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 58, 102, 0.7);
    border-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.country .country-item:hover::after {
    height: 100%;
}

.country .country-item .country-flag {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
    z-index: 2;
}

.country .country-item .country-flag img {
    border: 5px solid var(--bs-white);
    transition: 0.5s;
}

.country .country-item:hover .country-flag img {
    border: 5px solid var(--bs-white);
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

.country .country-item .country-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.country .country-item:hover .country-name {
    opacity: 1;
}

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

.country .country-item:hover img {
    transform: scale(1.2);
} */





/* Make sure columns have no side gaps on mobile */
@media (max-width: 768px) {
  .country .col-12,
  .country .col-sm-6,
  .country .col-md-6,
  .country .col-lg-6,
  .country .col-xl-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* === FINAL FIX: Remove Side Margins (Container + Row Level) === */

/* Remove container padding inside HOW IT WORKS section */
.container-fluid.country,
.container-fluid.country .container,
.container-fluid.country .row {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure each column touches screen edge */
.container-fluid.country [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Fix image layout and scaling */
.container-fluid.country .country-item {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 8px 20px rgba(3, 58, 102, 0.08);
}

.container-fluid.country .country-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.container-fluid.country .country-item:hover img {
  transform: scale(1.06);
}


.country .country-item .country-name a.fs-4 {
    transition: 0.5s;
}

.country .country-item .country-name a.fs-4:hover {
    color: var(--bs-secondary) !important;
}


/*** Country End ***/


/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content {
    position: relative;
    border-radius: 10px;
    background: var(--bs-light);
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 45px;
    bottom: -20px;
    left: 30px;
    transform: rotate(45deg);
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-primary);
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-secondary);
}
/*** testimonial end ***/


/* training Start (alignment fixed) */
.training .training-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.training .training-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* Image container & responsive images for training cards */
.training .training-item .training-inner {
    width: 100%;
    /* maintain a consistent 4:3 aspect ratio, lets browser size the image responsively */
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.training .training-item .training-inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* crop to fill while keeping focus */
    object-position: center center;
}

@media (max-width: 767.98px) {
    /* slightly taller images on small screens to keep visual balance */
    .training .training-item .training-inner { aspect-ratio: 16 / 9; }
    /* On mobile, show full image without cropping */
    .training .training-item .training-inner img {
        object-fit: cover;
        background: #f8f9fa; /* light bg to show letterboxing if needed */
    }
}

@media (min-width: 992px) {
    /* larger screens: keep 4:3 but ensure full-width visual */
    .training .training-item .training-inner { aspect-ratio: 4 / 3; }
}

/* Optional — remove overlay titles if uneven */
.training .training-item .training-title-name {
  display: none;
}

/* Card content */
.training .training-item .training-content {
  background: #003a66 !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;

/* Justify only the paragraph text inside training cards (do not affect headings) */
.training .training-item .training-content p {
    text-align: justify;
    text-justify: inter-word;
}
  padding: 20px;
}

/* Equal heading height */
.training .training-item .training-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em; /* same height for all titles */
  margin-bottom: 10px;
}

/* Equal paragraph height */
.training .training-item .training-content p {
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
  min-height: 3.8em; /* keeps desc equal */
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Align button bottom me */
.training .training-item .training-content .btn {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.training .training-item .training-content .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Equal card heights in one row */
.training .row {
  display: flex;
  align-items: stretch;
}
.training .row > [class*="col-"] {
  display: flex;
}
/* Center the 'View More' (.col-12.text-center) inside training rows */
.training .col-12.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* training End */



/*** Contact Start ***/
.contact .office .office-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    background: var(--bs-light);
    transition: 0.5s;
}

.contact .office .office-item:hover {
    box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact .office .office-item .office-img img {
    transition: 0.5s;
}

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

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
    transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
    color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
    color: var(--bs-primary) !important;
}
/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-primary);
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/

/* Footer alignment: ensure columns line up in a single row on desktop */
@media (min-width: 992px) {
    .container-fluid.footer > .container .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch; /* make columns equal height */
    }
    .container-fluid.footer > .container .row > [class*="col-"] {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .footer .footer-item {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
    }
    .footer .footer-item h4 {
        margin-bottom: 1rem;
    }
    .footer .footer-item p,
    .footer .footer-item a {
        line-height: 2;
    }
}


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


@media (min-width: 1024px) {
    .display-1 {
        font-size: 2.5rem !important;
        text-transform: uppercase !important;
    }
    .display-5 {
        font-size: 1.8rem !important;
        text-transform: uppercase !important;
    }
    .display-4 {
        font-size: 1.8rem !important;
        text-transform: uppercase !important;
    }
        h4, .h4 {
        font-size: 1rem !important;
        text-transform: uppercase !important;
    }
    .display-6{
        text-transform: uppercase !important;
        font-size: 1.8rem !important;
    }
    .display-3{
      text-transform: uppercase;
      font-size: 1.8rem;
    }
}

/*** Blog Start ***/
.blog {
    background: #f8f9fa;
}

.blog-filter-nav .filter-btn {
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.blog-filter-nav .filter-btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.blog-filter-nav .filter-btn:hover {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.blog-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bs-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-content h4 {
    color: var(--bs-secondary);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-content p {
    color: #6c757d;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.blog-content .btn {
    align-self: flex-start;
    margin-top: auto;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Blog filtering animation */
.blog-card {
    transition: all 0.5s ease;
}

.blog-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    position: absolute;
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-filter-nav .filter-btn {
        font-size: 0.85rem;
        padding: 6px 15px;
        margin: 0 5px 10px 0;
    }

    .blog-img {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem !important;
    }

    .blog-content h4 {
        font-size: 1.1rem;
    }
}

/*** Blog Post Content ***/
.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.blog-post .post-header img {
    border-radius: 10px;
}

.blog-post .post-meta .badge {
    font-size: 0.8rem;
}

.blog-post .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post .post-content blockquote {
    border-left: 4px solid var(--bs-primary);
    font-style: italic;
}

.blog-post .feature-item {
    border: 1px solid #e9ecef;
}

.blog-post .feature-item h5 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.blog-post .social-share .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar .widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .widget-title {
    color: var(--bs-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.5rem;
}

.sidebar .recent-post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar .recent-post h6 a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .recent-post h6 a:hover {
    color: var(--bs-primary);
}

.sidebar .widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .widget ul li a:hover {
    color: var(--bs-primary);
}
/*** Blog End ***/

/*** Product Page Start ***/
/* Product Gallery Styles */
.product-gallery {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

.main-image-container {
    flex: 1;
    position: relative;
}

.carousel-inner img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.custom-dots-banner {
    bottom: -40px;
    position: relative;
}

.custom-dots-banner button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    opacity: 0.5;
}

.custom-dots-banner button.active {
    opacity: 1;
    background-color: var(--bs-primary);
}

.product-details .table th {
    width: 30%;
    font-weight: 500;
    color: #666;
}

.product-details .table td {
    color: #333;
}

.key-features ul li {
    padding: 0.25rem 0;
}

.input-group .btn {
    min-width: 40px;
}

/* Cart badge styles */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Responsive adjustments for product page */
@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column;
    }

    .carousel-inner img {
        height: 300px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .custom-dots-banner {
        bottom: -30px;
    }

    .product-gallery .d-none.d-md-flex {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 1rem;
        gap: 10px;
    }
}
/*** Product Page End ***/

.carousel-indicators [data-bs-target] {
    width: 8px !important;
    height: 7px !important;
}

/* === FINAL FIXED HOW IT WORKS SECTION === */

/* Remove spacing from container and rows */
.container-fluid.country,
.container-fluid.country .container,
.container-fluid.country .row {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove gutters completely from columns */
.container-fluid.country [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

/* Style each card (country-item) same as product card */
.container-fluid.country .country-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(3, 58, 102, 0.08);
  width: 100%;
  height: 100%;
  transition: all 0.35s ease;
}

.container-fluid.country .country-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.container-fluid.country .country-item:hover img {
  transform: scale(1.06);
}

/* Remove old overlay */
.container-fluid.country .country-item::after {
  display: none !important;
}

/* Remove default Bootstrap gutters globally for this section */
.container-fluid.country .row {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

/* === Responsive Fixes === */

/* Mobile (full width single column) */
@media (max-width: 767px) {
  .container-fluid.country .col-12,
  .container-fluid.country .col-sm-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Tablet (2 columns layout, no margin) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container-fluid.country .col-md-6,
  .container-fluid.country .col-lg-6,
  .container-fluid.country .col-xl-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Desktop (4-column layout, no gaps) */
@media (min-width: 1025px) {
  .container-fluid.country .col-lg-6,
  .container-fluid.country .col-xl-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
/* === Carousel Responsive Fix === */

/* Default height for large screens */
.carousel-header .carousel-inner .carousel-item {
  min-height: 100vh;
}
.carousel-header .carousel-inner .carousel-item img {
  object-fit: cover;
}

/* === Tablet (768px–1024px) === */
@media (max-width: 1024px) {
  .carousel-header .carousel-inner .carousel-item {
    min-height: 70vh; /* smaller height on tablets */
  }
  .carousel-header .carousel-inner .carousel-item .carousel-caption h1 {
    font-size: 2.4rem; /* reduce main heading */
  }
  .carousel-header .carousel-inner .carousel-item .carousel-caption h4,
  .carousel-header .carousel-inner .carousel-item .carousel-caption h5 {
    font-size: 1.1rem;
  }
  .carousel-header .carousel-inner .carousel-item .carousel-caption p {
    font-size: 0.95rem;
  }
}

/* === Mobile (below 768px) === */
@media (max-width: 768px) {
  .carousel-header .carousel-inner .carousel-item {
    min-height: 55vh !important; /* much smaller image height */
  }
  .carousel-header .carousel-inner .carousel-item img {
    height: 55vh;
    object-position: center;
  }

  /* Center text vertically and scale down font sizes */
  .carousel-header .carousel-inner .carousel-item .carousel-caption {
    padding: 0 15px;
  }

  .carousel-header .carousel-inner .carousel-item .carousel-caption h1 {
    font-size: 1.6rem !important; /* Main heading */
    line-height: 1.3;
  }

  .carousel-header .carousel-inner .carousel-item .carousel-caption h4,
  .carousel-header .carousel-inner .carousel-item .carousel-caption h5 {
    font-size: 0.9rem !important;
    margin-bottom: 10px;
  }

  .carousel-header .carousel-inner .carousel-item .carousel-caption p {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  /* Adjust indicator position */
  .carousel-header .carousel .carousel-indicators {
    bottom: 10px;
  }
}

/* === FIX for very small screens (300px to 360px) === */
@media (max-width: 360px) and (min-width: 300px) {
  html, body {
    overflow-x: hidden !important;
  }

  /* Make carousel height smaller to fit screen */
  .carousel-header {
    height: 380px !important;
  }

  /* Make headings and paragraphs scale properly */
  h1, .display-1, .display-5 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  h4, h5 {
    font-size: 1rem !important;
  }

  p, .fs-5 {
    font-size: 0.8rem !important;
  }

  /* Reduce padding around containers */
  .container, .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Fix card and service section overflow */
  .service .service-item,
  .products .card {
    margin-bottom: 15px;
  }

  /* Make navbar fit small screens */
  .navbar-brand img {
    max-width: 140px;
    height: auto;
  }

  .navbar-toggler {
    padding: 4px 8px !important;
  }

  /* Keep hero text centered */
  .carousel-caption {
    padding: 10px !important;
  }

  /* Ensure counters and icons scale */
  .counter-facts .counter {
    width: 150px;
    min-height: 180px;
    padding: 8px;
  }
  .counter-facts .counter-icon {
    width: 90px;
    height: 80px;
    font-size: 36px;
  }

  /* Fix columns spacing */
  .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Bottom navigation item fix (if any) */
  .bottom-nav-item {
    padding: 6px 4px;
    min-width: 55px;
    font-size: 12px;
  }
}
/* === Fix sticky navbar for small screens (300px–360px) === */
@media (max-width: 360px) and (min-width: 300px) {
  .container-fluid.nav-bar,
  .navbar.navbar-expand-lg {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100% !important;
    z-index: 1200 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  }

  /* prevent body content from going behind navbar */
  body {
    padding-top: 70px !important;
  }

  /* ensure collapsed menu stays within viewport */
  .navbar-collapse {
    background-color: #fff !important;
    position: relative;
    z-index: 1300;
  }
}
/* === Fix: Adjust QR Scan modal height for small screens === */
@media (max-width: 360px) {
  #scanQRModal .modal-dialog {
    margin: 20px auto !important;
    max-width: 90% !important;
  }

  #scanQRModal .modal-content {
    height: 70vh !important; /* Reduce height to 70% of viewport */
    overflow-y: auto !important; /* Allow scroll if content overflows */
    border-radius: 10px !important;
  }

  #scanQRModal .modal-body {
    padding: 10px !important;
  }

  #scanQRModal video,
  #scanQRModal canvas {
    max-height: 50vh !important; /* Shrink QR preview area */
    width: 100% !important;
    object-fit: contain;
  }

  /* Ensure close button stays visible */
  #scanQRModal .btn-close {
    top: 5px;
    right: 10px;
    z-index: 10;
  }
}

