/* Font Awesome is required */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}


:root {
    --primary-blue: #213768;
    --primary-orange: #EC6009;
    --grey: #878a8d;
    --white: #ffffff;
    --black: #000000;
    --primary-color: var(--primary-blue);
    --accent-color: var(--primary-orange);
    --secondary-color: var(--grey);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* browser loader  */
/* Loader style */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader:after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #EC6009;
    /* Orange */
    border-top: 5px solid #213768;
    /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Scroll Progress Line */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-orange);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========== CONTACTS ========== */
.topbar-contacts {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 30px;
    padding: 20px 0;
}

.topbar-contacts .vanguard-navbar-contacts-4 {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 0;
    list-style: none;
    margin: 0;
}

.topbar-contacts .vanguard-navbar-contacts-4 li {
    position: relative;
    cursor: pointer;
    border: 1px solid #213768;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--white);
    transition: background 0.3s;
}

.topbar-contacts .vanguard-navbar-contacts-4 .icon {
    font-size: 18px;
    color: var(--primary-blue);
}

/* Tooltip */
.topbar-contacts .vanguard-navbar-contacts-4 .link-wrap {
    position: absolute;
    top: 50%;
    right: 120%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--primary-blue);
    border: 1px solid #fff;
    padding: 4px 10px;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.topbar-contacts .vanguard-navbar-contacts-4 li:hover .link-wrap {
    visibility: visible;
    opacity: 1;
    right: 150%;
}

.topbar-contacts .vanguard-navbar-contacts-4 a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--white);
    padding: 10px 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    border-top: 3px solid #213768;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 60px;
    border-bottom: 1px solid #e5e5e5;
}

/* Brand */
.brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box img {
    height: 50px;
    width: auto;
}

.company-name {
    display: flex;
    flex-direction: column;
}

.company-name h1 {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.2;
}

.company-name p {
    font-size: 14px;
    color: var(--grey);
    margin: 0;
}

/* Nav Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--primary-orange);
}

/* Quote Button */
.quote-btn a {
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    font-weight: 500;
    border-radius: 5px;
    background-color: var(--primary-blue);
    color: #fff;
    transition: all 0.3s;
}

.quote-btn a:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* ========== HAMBURGER ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .topbar-contacts {
        flex-basis: 100%;
        justify-content: center;
        margin: 10px 0;
    }

    .vanguard-navbar-contacts-4 {
        /* flex-direction: column; */
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .nav-container {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #fff;
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-container.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .quote-btn {
        margin-top: 10px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }
}



/* Hero Slider */
.hero-slider {
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;;
}

.hero-slider .slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-slider .slide-content,
.hero-slider .hero-container {
    position: relative;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;

    /* Background */
    background-size: cover;
    /* Cover entire slide */
    background-position: center;
    /* Centered */
    background-repeat: no-repeat;
    /* No repeat */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slide content */
.slide-content {
    width: 100%;
    padding: 0 50px;
    color: #fff;
    text-align: left;
    justify-content: left;
}

/* Optional tag above title */
.slide-tag {
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Slide title */
.slide-title {
    font-size: 72px;
    line-height: 68px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 15px;
    color: var(--primary-blue);
    /* Change if needed */
}

/* Slide description */
.slide-description {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 30px;
    color: var(--white);
}

/* Slide image */
.slide-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 80%;
    height: auto;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grey);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--primary-orange);
}

.slide-tag {
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-title {
    font-size: 72px;
    line-height: 68px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--grey);
    padding-bottom: 15px;
    color: var(--white);
}

.slide-description {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 30px;
    color: var(--white);
}

/* About Section */
.about-grid {
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
    /* height: 700px; */
    /* decrease or increase as needed */
}

.about-image,
.about-content {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* center content vertically */
}

/* Fix image size to match column height */
.about-image .main-image {
    width: 100%;
    height: 80%;
    /* fill the column */
    object-fit: cover;
    /* crop properly */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image .main-image:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* stack columns on smaller screens */
        gap: 30px;
    }

    .about-image .main-image {
        height: 400px;
        /* smaller fixed height on mobile */
    }
}

.text-orange {
    color: #EC6009;
    /* exact orange */
}

/* Calibration Service Section */
.para-spacing {
    width: 500px;
    /* fixed width */
    margin: 0 auto;
    /* centers the paragraph */
    text-align: center;
    /* centers the text inside */
    word-wrap: break-word;
    /* wrap long words if needed */
    word-break: normal;
    /* normal line breaks */
    overflow-wrap: break-word;
}

#calibration-services-section {
    /* background-color: #a9a9a9; */
    background-color: var(--primary-blue);
}

#calibration-services-section .mt-4 p {
    text-align: center;
    max-width: 500px;
    min-width: 300px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    background: var(--white);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 500px;
}

.service-card:hover::after {
    width: 100%;
    left: 0;
    transform: none;
}

.service-card:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.card-body {
    padding: 20px 20px 20px;
    text-align: left;
}

.card-title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-orange);
}

.card-text {
    font-size: 14px;
    color: var(--grey);
    margin: 15px 0;
}


/* Button with diagonal wipe */
.btn-section-knowmore {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary-orange);
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.4s ease, transform 0.3s ease;
}

/* Diagonal pseudo-element */
.btn-section-knowmore::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 300%;
    /* large enough for diagonal */
    background-color: var(--primary-blue);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.4s ease;
    z-index: 0;
}

/* Hover expand */
.btn-section-knowmore:hover::before {
    width: 300%;
}

/* Keep text/icons above pseudo-element */
.btn-section-knowmore span,
.btn-section-knowmore i {
    position: relative;
    z-index: 1;
}

/* Text/icon color on hover */
.btn-section-knowmore:hover {
    color: #fff;
    transform: scale(1.05);
    /* optional scaling */
    border: 1px solid #EC6009;
}

.section-heading2 {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    color: var(--white);
}

.section-heading2::after {
    content: "";
    width: 80px;
    height: 3px;
    background: var(--primary-orange);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* bullet points  */
/* Custom bullets for service-card lists */
.service-card .card-text {
    list-style: none;
    /* remove default bullets */
    padding-left: 20px;
    /* space for custom bullets */
}

.service-card .card-text li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 15px;
    /* space for the bullet */
}

.service-card .card-text li::before {
    content: "•";
    /* bullet character */
    position: absolute;
    left: 0;
    color: #EC6009;
    /* custom orange color */
    font-size: 18px;
    line-height: 1;
}

/* Why Choose Us */
.service-card .image-wrapper {
    height: 200px; /* Set your desired fixed height */
    overflow: hidden; /* Hide anything that overflows */
}

.service-card .image-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    display: block;
}

.choose-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease-in-out;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
}

/* Dynamic background image */
.choose-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-img);
    /* correct */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    /* only show on hover */
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 12px;
}

/* Dark overlay */
.choose-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 12px;
}

/* Show background + overlay on hover */
.choose-card:hover::before,
.choose-card:hover .choose-card-overlay {
    opacity: 1;
}

/* Icon, title, paragraph stay above overlay */
.choose-card i,
.choose-card h5,
.choose-card p {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Icon hover */
.choose-card i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: inline-block;
    transform-style: preserve-3d;
}

.choose-card:hover i {
    color: #fff;
}

/* Text hover */
.choose-card:hover h5,
.choose-card:hover p {
    color: #fff;
}

/* Section heading */
.section-heading {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    color: var(--primary-blue);
}

.section-heading::after {
    content: "";
    width: 80px;
    height: 3px;
    background: var(--primary-orange);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Contact Button */
.contact-btn {
    margin-top: 40px;
    text-align: center;
}

.contact-btn .btn-section-knowmore {
    position: relative;
    display: inline-block;
    padding: 10px 25px;
    color: #fff;
    background: var(--primary-orange);
    border: none;
    border-radius: 50px;
    overflow: hidden;
    transition: color 0.4s ease;
}

/* Pseudo-element for diagonal wipe */
.contact-btn .btn-section-knowmore::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 300%;
    /* large to cover diagonally */
    background: var(--primary-blue);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.4s ease;
    z-index: 0;
}

/* Expand diagonal on hover */
.contact-btn .btn-section-knowmore:hover::before {
    width: 300%;
    /* covers entire button */
}

/* Keep text/icon above the pseudo-element */
.contact-btn .btn-section-knowmore span,
.contact-btn .btn-section-knowmore i {
    position: relative;
    z-index: 1;
}

/* Text color on hover */
.contact-btn .btn-section-knowmore:hover {
    color: #fff;
    border: 1px solid #EC6009;
}

/* images for background why choose us  */
/* Dynamic background images per card */
.choose-card.card-1::before {
    background-image: url('../img/whychooseus/1.avif');
}

.choose-card.card-2::before {
    background-image: url('../img/whychooseus/2.webp');
}

.choose-card.card-3::before {
    background-image: url('../img/whychooseus/3.avif');
}

.choose-card.card-4::before {
    background-image: url('../img/whychooseus/4.webp');
}

.choose-card.card-5::before {
    background-image: url('../img/whychooseus/5.avif');
}



/* Client Logos */
.logo-carousel-section {
    width: 100%;
    padding: 70px 120px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    animation: scroll 25s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    margin: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9e9e9;
    padding: 8px;
}

.logo-item:hover {
    filter: grayscale(100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transform: translateY(-5px);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .logo-carousel-section {
        padding: 60px 60px;
    }
}

@media (max-width: 768px) {
    .logo-carousel-section {
        padding: 50px 30px;
    }

    .logo-item {
        width: 140px;
        height: 90px;
        margin: 0 12px;
    }
}

@media (max-width: 480px) {
    .logo-carousel-section {
        padding: 40px 20px;
    }

    .logo-item {
        width: 120px;
        height: 80px;
        margin: 0 10px;
    }
}

@media (max-width: 360px) {
    .logo-carousel-section {
        padding: 30px 15px;
    }

    .logo-item {
        width: 100px;
        height: 70px;
        margin: 0 8px;
    }
}

/* client logo off  */
.text-white {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
    text-decoration: none;
}


/* hover for quick link  */
.footer2 .list-unstyled li a {
    transition: color 0.3s;
}

.footer2 .list-unstyled li a:hover {
    color: var(--primary-orange) !important;
    /* Orange hover color */
}

/* Footer */
.footer_background {
    position: relative;
    background-color: var(--primary-blue);
    color: #ffffff !important;
}

.footer {
    max-width: 100%;
    /* padding-left: 0;
    padding-right: 0; */
    padding-bottom: 30px !important;
}

.footer .container {
    padding-left: 0;
    padding-right: 0;
}

.footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-widget {
    flex: 1 1 30%;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li a {
    color: var(--grey);
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: var(--primary-orange);
}

/* underline for footer heading  */
/* Add underline under h5 in footer */
.footer2 h5,
.col-md-4 h5 {
    position: relative;
    padding-bottom: 8px;
    /* space for the underline */
}

.footer2 h5::after,
.col-md-4 h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    /* length of the underline */
    height: 3px;
    /* thickness of the underline */
    background-color: var(--primary-orange);
    /* color of underline */
    border-radius: 2px;
    /* optional rounded ends */
}


.copyrighttext {
    background-color: var(--primary-blue);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin: 0 30px; */
    padding: 20px 30px 20px 30px;
    /* 30px left and right */
    border-top: 1px rgb(46, 46, 46) solid;
}

.copyrighttext a {
    text-decoration: none;
    color: #ffffff;
}

/* ===== RESPONSIVE STYLES ===== */

/* Desktop Styles (1200px and above) */
@media (min-width: 1200px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-container {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        gap: 30px;
    }

    .quote-btn {
        display: block !important;
    }
}

/* Tablet Styles (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    /* .page-wrapper {
        padding-left: 30px;
        padding-right: 30px;
    } */

    .navbar-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        position: relative;
    }

    .brand-box {
        position: static !important;
        margin-bottom: 0;
        order: 1;
        flex: 0 0 auto;
        padding: 5px;
        transform: none !important;
        top: 0 !important;
        box-shadow: none;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
    }

    .nav-container.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 18px 20px;
        font-size: 17px;
        color: var(--primary-blue);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-menu li a:hover {
        background-color: #f8f9fa;
        color: var(--primary-orange);
    }

    .quote-btn {
        width: 100%;
        text-align: center;
        padding: 20px;
        border-top: 1px solid #f0f0f0;
        order: 3;
    }

    .quote-btn a {
        display: inline !important;
        width: 80%;
        max-width: 250px;
        padding: 15px 25px;
        background: var(--primary-blue);
        color: white;
        text-align: center;
        border-radius: 5px;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 16px;
        border: none;
    }

    .quote-btn a:hover {
        background: var(--primary-orange);
        transform: translateY(-2px);
    }

    /* Hero Section Tablet Fix */
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }

    .hero-container {
        padding: 0 30px;
    }

    .slide-content {
        width: 50%;
        padding: 0 30px;
    }

    .slide-image {
        width: 50%;
    }

    .slide-title {
        font-size: 42px;
        line-height: 46px;
    }

    .slide-description {
        font-size: 15px;
        line-height: 24px;
    }

    /* About Section Tablet Fix */
    .about-section {
        padding: 60px 0;
    }

    .decoration-image {
        max-width: 150px;
        left: 60%;
    }

    .counter-box {
        position: absolute;
        top: 200px;
        left: 20px;
        max-width: 180px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-number-suffix {
        font-size: 1.5rem;
    }

    .heading {
        font-size: 2rem;
    }

    /* Services Section Tablet Fix */
    .service-card {
        height: auto;
        min-height: 480px;
        margin-bottom: 30px;
    }

    .card-body {
        padding: 35px 15px 20px;
    }

    /* Why Choose Us Tablet Fix */
    .choose-card {
        height: 320px;
        margin-bottom: 25px;
        padding: 10px;
    }

    .choose-card i {
        font-size: 36px;
    }

    .choose-card h5 {
        font-size: 1.1rem;
    }

    .choose-card p {
        font-size: 12px;
    }

    /* Client Logos Tablet Fix */
    .client-logo {
        flex: 0 0 20%;
    }

    .client-logo img {
        max-width: 110px;
    }

    /* Footer Tablet Fix */
    .footer-widget {
        flex: 1 1 45%;
        margin-bottom: 35px;
        text-align: left;
    }

    .footer-widget:last-child {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Mobile Styles (767px and below) */
@media (max-width: 767px) {
        .g-4,
        .gy-4 {
            padding: 15px;
            --bs-gutter-y: 1.5rem;
            margin: 0px;
        }

    .top-bar {
        padding: 10px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
        justify-content: center;
    }

    .navbar {
        padding: 10px 0;
    }

        .navbar-container {
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 4px !important;
            padding: 0px;
            position: relative;
        }

    .brand-box {
        position: static !important;
        padding: 4px;
        flex-direction: row;
        text-align: left;
        gap: 10px;
        order: 1;
        flex: 0 0 auto;
        transform: none !important;
        top: 0 !important;
        box-shadow: none;
    }

    .company-name h1 {
        font-size: 18px;
    }

    .company-name p {
        font-size: 12px;
    }

    .logo-box img {
        height: 50px;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
    }

    .nav-container.active {
        display: inline;
        animation: slideDown 0.3s ease-in-out;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        color: var(--primary-blue);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-menu li a:hover {
        background-color: #f8f9fa;
        color: var(--primary-orange);
    }

    .quote-btn {
        width: 100%;
        text-align: center;
        padding: 20px;
        border-top: 1px solid #f0f0f0;
        order: 3;
    }

    .quote-btn a {
        display: inline-block;
        width: 90%;
        max-width: 200px;
        padding: 14px 20px;
        background: var(--primary-blue);
        color: white;
        text-align: center;
        border-radius: 5px;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 15px;
        border: none;
    }

    .quote-btn a:hover {
        background: var(--primary-orange);
        transform: translateY(-2px);
    }

    .hero-slider {
        height: 40vh;
        min-height: 300px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .slide-content,
    .slide-image {
        width: 100%;
        padding: 0 10px;
    }

    .slide-title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 10px;
    }

    .slide-description {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 15px;
    }

    .slide-image img {
        max-width: 60%;
    }

    .slide-indicators {
        bottom: 15px;
    }

    .about-section {
        padding: 40px 0;
    }

    .counter-box {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px auto;
        max-width: 180px;
        padding: 15px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-number-suffix {
        font-size: 1.5rem;
    }

    .counter-title {
        font-size: 0.9rem;
    }

    .heading {
        font-size: 1.5rem;
    }

    .sub-title {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .service-card {
        margin-bottom: 25px;
        height: auto;
    }

    .card-body {
        padding: 30px 15px 15px;
    }

    .overlay-icon {
        left: 50%;
        padding: 12px;
        font-size: 18px;
    }

    .choose-card {
        height: auto;
        margin-bottom: 15px;
        padding: 20px 10px;
    }

    .choose-card i {
        font-size: 32px;
    }

    .choose-card h5 {
        font-size: 1.1rem;
    }

    .choose-card p {
        font-size: 14px;
    }

    .client-logo {
        flex: 1 1 50%;
    }

    .client-logo img {
        max-width: 100px;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-widget {
        flex: 1 1 100%;
        margin-bottom: 25px;
        text-align: center;
    }

    .copyrighttext {
        font-size: 12px;
        padding: 10px 0;
    }

    /* Additional Mobile Fixes */
    .decoration-image {
        display: none;
    }
}

/* Special adjustments for very small screens */
@media (max-width: 360px) {
    .slide-title {
        font-size: 24px;
        line-height: 28px;
    }

    .client-logo {
        flex: 2 2 50%;
    }

    .brand-box {
        padding: 2px;
    }

    .logo-box img {
        height: 50px;
    }
        .g-4,
        .gy-4 {
            padding: 15px;
            --bs-gutter-y: 1.5rem;
            margin: 0px;
        }
}

/* Animation for menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Ensure proper body behavior when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Improve touch targets for mobile */
@media (max-width: 1199px) {
    .nav-menu li a,
    .quote-btn a,
    .btn-readmore,
    .btn-section-knowmore {
        min-height: 44px;
        /* display: flex; */
        align-items: center;
        justify-content: center;
    }
}

/* downloads  */
.downloads-section .download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* responsive  */
/* ===== RESPONSIVE STYLES ===== */
/* Mobile First - 320px to 575px */
@media (max-width: 575px) {
.navbar-container {
    display: flex;              /* enable flex */
    flex-direction: column-reverse; /* keep your reverse stacking */
    align-items: center;        /* center children horizontally */
    justify-content: center;    /* center children vertically if container has height */
    /*padding: 0 15px;*/
    gap: 10px;
    left: 0;                    /* remove previous offset */
    position: relative;         /* needed for left to work */
    text-align: center;         /* center text inside children */
}

.topbar-contacts {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0px !important;
}
.brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
    .topbar-contacts .vanguard-navbar-contacts-4 {
            display: -webkit-box;
                gap: 15px;
                justify-content: flex-end;
                padding: 0px 0px 0px 50px;
                list-style: none;
                margin: 0;
    }

    .brand-box {
        /*justify-content: center;*/
        text-align: center;
    }

    .company-name h1 {
        font-size: 18px;
    }

    .company-name p {
        font-size: 12px;
    }

    .nav-container {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .topbar-contacts {
        margin: 10px 0;
        justify-content: center;
    }

    .vanguard-navbar-contacts-4 {
        flex-direction: column;
        gap: 10px;
    }

    .vanguard-navbar-contacts-4 li {
        text-align: center;
    }

    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }

    .slide-content {
        width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    .slide-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .slide-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-image,
    .about-content {
        height: auto;
    }

    .about-image .main-image {
        height: 300px;
    }

    .para-spacing {
        width: 100% !important;
        padding: 0 15px;
    }

    .service-card {
        height: auto;
        margin-bottom: 20px;
    }

    .choose-card {
        height: auto;
        margin-bottom: 15px;
    }

    .client-logo {
        flex: 0 0 50%;
    }

    .client-logo img {
        max-width: 120px;
        height: 80px;
    }

    .footer .row {
        flex-direction: column;
        gap: 20px;
    }

    .copyrighttext {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .downloads-section .row {
        flex-direction: column;
    }
}

/* Small Devices - 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
.navbar-container {
    left: -10px;
    padding: 0 40px;
    flex-direction: column-reverse;
}

    .hero-slider {
        height: 55vh;
    }

    .slide-title {
        font-size: 42px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image .main-image {
        height: 400px;
    }

    .service-card {
        height: 500px;
    }

    .choose-card {
        height: 320px;
    }

    .client-logo {
        flex: 0 0 33.333%;
    }

    .footer .row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer .col-md-4 {
        flex: 0 0 100%;
    }
}

/* Medium Devices - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-container {
        padding: 0 30px;
        flex-wrap: wrap;
    }

    .brand-box {
        order: 1;
    }

    .nav-container {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .topbar-contacts {
        order: 2;
        margin: 0;
        display: contents;
    }

    .hero-slider {
        height: 60vh;
    }

    .slide-content {
        width: 70%;
    }

    .slide-title {
        font-size: 52px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-image .main-image {
        height: 450px;
    }

    .service-card {
        height: 520px;
    }

    .choose-card {
        height: 350px;
    }

    .client-logo {
        flex: 0 0 25%;
    }

    .footer .col-md-4 {
        flex: 0 0 50%;
    }

    .downloads-section .row {
        flex-direction: row;
    }
}

/* Large Devices - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-container {
        padding: 0 40px;
    }

    .hero-slider {
        height: 70vh;
    }

    .slide-content {
        width: 60%;
    }

    .slide-title {
        font-size: 62px;
    }

    .about-image .main-image {
        height: 550px;
    }

    .service-card {
        height: 490px;
    }

    .choose-card {
        height: 350px;
    }

    .client-logo {
        flex: 0 0 20%;
    }
}

/* Extra Large Devices - 1200px to 1420px */
@media (min-width: 1200px) and (max-width: 1420px) {
    .navbar-container {
        padding: 0 50px;
    }

    .hero-slider {
        height: 75vh;
    }

    .slide-title {
        font-size: 68px;
    }

    .about-image .main-image {
        height: 580px;
    }
}

/* ===== HAMBURGER MENU FOR MOBILE ===== */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 40px;
        top: 20px;
        z-index: 1001;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-container.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu li a {
        font-size: 18px;
        padding: 10px 20px;
    }

    .quote-btn {
        margin-top: 30px;
    }
}

/* ===== TOUCH FRIENDLY ELEMENTS ===== */
@media (max-width: 767px) {
    .nav-menu li a,
    .quote-btn a,
    .btn-section-knowmore {
        min-height: 44px;
        /* display: flex; */
        align-items: center;
        justify-content: center;
    }

    .vanguard-navbar-contacts-4 li {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== IMAGE RESPONSIVENESS ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== FIX FOR VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
        .nav-toggle {
                display: flex;
                position: absolute;
                right: 10px;
                top: 20px;
                z-index: 1001;
            }
    .client-logo {
        flex: 0 0 100%;
    }

    .slide-title {
        font-size: 28px;
    }

    .company-name h1 {
        font-size: 16px;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
.navbar-container,
.hero-slider,
.about-grid,
.service-card,
.choose-card,
.client-logo,
.footer .row {
    transition: all 0.3s ease;
}

/* new navbar responsive  */




/* about inner page  */
/* ------------------- About Section ------------------- */
.two-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.two-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-title {
    margin-bottom: 20px;
}

.two-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.two-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.two-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.two-image .two-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.two-image .two-main-image:hover {
    transform: translateY(-5px);
}

/* Add spacing to prevent header overlap */
.two-section {
    padding-top: 50px;
    /* adjust to your header height */
    padding-bottom: 40px;
}

/* Responsive About Section */
@media (max-width: 992px) {
    .two-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .two-content {
        order: 1;
    }

    .two-image {
        order: 2;
    }
}

@media (max-width: 576px) {
    .two-section {
        padding-top: 10px;
        /* smaller header spacing on mobile */
    }
}

/* ------------------- Mission Vision Values ------------------- */
.mission-vision-values {
    padding: 40px 0;
    background: none;
}

.mv-bg-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 110px;
    /* desktop padding */
}

.mv-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Cards */
.mv-left,
.mv-right {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Image */
.mv-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid #EC6009;
}

/* Inner grid */
.mv-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.mv-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

/* Headings */
.mv-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #EC6009;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mv-box h2 i {
    color: #213768;
    font-size: 18px;
}

/* Text + List */
.mv-box p,
.mv-box ul {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.mv-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mv-box ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 22px;
}

.mv-box ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #EC6009;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Mission/Vision */
@media (max-width: 992px) {
    .mv-container {
        grid-template-columns: 1fr;
    }

    .mv-inner-grid {
        grid-template-columns: 1fr;
    }

    .mv-bg-wrapper {
        padding: 0 20px;
        /* tablet */
    }
}

@media (max-width: 576px) {
    .mv-bg-wrapper {
        padding: 0;
        /* mobile full width */
    }
}

/* About Section */
.two-section .container,
.mission-vision-values .mv-bg-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* same horizontal padding for both */
}

/* Optional: adjust for tablet */
@media (max-width: 992px) {
    .two-section .container,
    .mission-vision-values .mv-bg-wrapper {
        padding: 0 20px;
    }
}

/* Optional: mobile */
@media (max-width: 576px) {
    .two-section .container,
    .mission-vision-values .mv-bg-wrapper {
        padding: 0 10px;
    }
}

/* mission off   */


/* inner page calibratiion service  */
.calibration-section {
    background: #f9f9f9;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #213768;
    /* Violet */
    margin-bottom: 30px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    /* Orange */
    margin-bottom: 15px;
}

.calibration-section ul {
    list-style: none;
    padding-left: 0;
}

.calibration-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

.calibration-section ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #EC6009;
    /* Orange checkmark */
    font-weight: bold;
}
.calibration-section .img-fluid {
    height: 400px;
    /* Fixed height you want */
    width: 100%;
    /* Full width of column */
    object-fit: cover;
    /* Crop or scale image to fill the area */
}


/* pdf    */
.pdf-section {
    background: #fff;
}

.pdf-section .section-title {
    color: #213768;
    /* Violet */
    font-size: 28px;
    font-weight: bold;
}

.pdf-wrapper {
    /* Orange border */
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}
/* calibration off  */


/* inner page client logo  */
.client-section {
    padding: 60px 0;
    text-align: center;
}

.client-section .section-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #000;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 logos on desktop/laptop */
    gap: 30px;
    justify-items: center;
    align-items: center;
}

/* Logo styling */
.client-logo {
    width: 200px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo:hover {
    transform: scale(1.05);
}

/* Zig-zag for second row (desktop/laptop) */
/*.client-logo:nth-child(n+6):nth-child(-n+9) {*/
/*    transform: translateX(50%);*/
    /* shift second row to center between first row logos */
/*}*/

/* Responsive: Large screens to tablets */
@media (max-width: 1200px) {
    .client-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .client-logo:nth-child(n+6):nth-child(-n+9) {
        transform: none;
        /* remove zig-zag offset */
    }

    .client-logo {
        width: 180px;
        height: 130px;
    }
}

/* Tablets (768–992px) */
@media (max-width: 992px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 logos per row */
    }

    .client-logo {
        width: 160px;
        height: 120px;
    }
}

/* Small tablets & mobiles (≤768px) */
@media (max-width: 768px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 logos per row */
        gap: 20px;
    }

    .client-logo {
        width: 140px;
        height: 100px;
    }
}

/* Mobile (<576px) */
@media (max-width: 576px) {
    .client-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .client-logo {
        width: 120px;
        height: 90px;
    }
}
/* client logo off  */




/* newly added responsive for top bar  */
@media (max-width: 767px) {
    .topbar-contacts .vanguard-navbar-contacts-4 li {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px 0;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 .link-wrap {
        position: absolute;
        top: 100%;
        /* Position below the icon */
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        white-space: normal;
        width: 280px;
        max-width: 90vw;
        /* Ensure it doesn't exceed viewport width */
        text-align: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        word-wrap: break-word;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 li:hover .link-wrap,
    .topbar-contacts .vanguard-navbar-contacts-4 li:focus .link-wrap {
        visibility: visible;
        opacity: 1;
        right: auto;
        left: -10px !important;
        transform: translateX(-50%) translateY(5px);
    }

    /* Ensure the tooltip stays within viewport boundaries */
    .topbar-contacts .vanguard-navbar-contacts-4 .link-wrap {
        left: 50% !important;
        right: auto !important;
        margin-left: 0 !important;
    }

    /* Specific adjustment for address */
    .topbar-contacts .vanguard-navbar-contacts-4 .address-wrap {
        width: 300px;
        max-width: 85vw;
    }
}

@media (max-width: 360px) {
    .topbar-contacts .vanguard-navbar-contacts-4 .link-wrap {
        width: 250px;
        max-width: 85vw;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 .address-wrap {
        width: 260px;
        max-width: 80vw;
    }
}



/* new for medium screen  */
/* Tablet Styles - 768px to 1200px */
@media (min-width: 768px) and (max-width: 1200px) {
    .topbar-contacts {
        margin: 10px 0;
        justify-content: center;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        padding: 0;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 li {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px;
        flex: 0 0 auto;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 .link-wrap {
        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        white-space: normal;
        width: 250px;
        max-width: 80vw;
        text-align: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        word-wrap: break-word;
    }

    .topbar-contacts .vanguard-navbar-contacts-4 li:hover .link-wrap {
        visibility: visible;
        opacity: 1;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(5px);
    }

    /* Ensure the tooltip stays within viewport */
    .topbar-contacts .vanguard-navbar-contacts-4 .link-wrap {
        left: 50% !important;
        right: auto !important;
        margin-left: 0 !important;
    }

    /* Specific adjustment for address with longer text */
    .topbar-contacts .vanguard-navbar-contacts-4 .address-wrap {
        width: 280px;
        max-width: 85vw;
    }

    /* Adjust positioning for specific items if needed */
    .topbar-contacts .vanguard-navbar-contacts-4 li:nth-child(3) .link-wrap {
        width: 300px;
        max-width: 90vw;
    }
}


/* contact inner page  */
/* Parent Flexbox for equal height */
.sc-contact-section {
    display: flex;
    /* Use flex instead of grid */
    gap: 20px;
    padding: 30px 60px;
    flex-wrap: wrap;
    /* for small screens */
}

/* Left and Right sections */
.sc-contact-details,
.sc-contact-form {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    flex: 1;
    /* Take equal width */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Force equal height */
.sc-contact-details,
.sc-contact-form {
    min-height: 100%;
}

/* Headings */
.sc-contact-details h2,
.sc-contact-form h2 {
    color: #213768;
    margin-bottom: 20px;
    text-align: center;
}

/* Contact Items */
.sc-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sc-contact-item i {
    font-size: 24px;
    color: #EC6009;
    margin-right: 15px;
}

.sc-contact-item strong {
    color: #213768;
}

.sc-contact-item p {
    margin: 5px 0 0 0;
    color: #555;
}

/* Contact Form Labels */
.sc-contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.sc-contact-form .required-icon {
    color: #EC6009;
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: middle;
}

.sc-contact-form input {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.sc-contact-form button {
    padding: 12px;
    background-color: #EC6009;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.sc-contact-form button:hover {
    background-color: #213768;
}

/* Map Section */
.sc-map-section {
    padding: 0 40px 60px;
}

.sc-map-section iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    border: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .sc-contact-section {
        flex-direction: column;
        padding: 60px 20px;
    }

    .sc-map-section {
        padding: 0 20px 60px;
    }
}


/* Button with diagonal wipe for contact form */
.sc-contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    /* text color */
    background-color: #EC6009;
    /* orange */
    border-radius: 50px !important;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.4s ease, transform 0.3s ease;
    border: none;
    /* remove default button border */
    cursor: pointer;
    width: 180px;
}

/* Diagonal pseudo-element */
.sc-contact-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 300%;
    background-color: #213768;
    /* violet */
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.4s ease;
    z-index: 0;
}

/* Hover expand */
.sc-contact-btn:hover::before {
    width: 300%;
}

/* Keep text/icons above pseudo-element */
.sc-contact-btn span,
.sc-contact-btn i {
    position: relative;
    z-index: 1;
}

/* Text color and scale on hover */
.sc-contact-btn:hover {
    color: #fff;
    transform: scale(1.05);
}
/* contact inner page off  */





/* fixed margin code  */
/*new 17.10 */

@media (min-width: 320px) and (max-width: 575px) {
    .navbar-container {
        flex-direction: column-reverse; /* stack vertically */
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 60px 0px 10px;
    }

    .brand-box {
        justify-content: center;
        text-align: center;
    }

    .company-name h1 {
        font-size: 18px;
    }

    .company-name p {
        font-size: 13px;
    }

    .nav-toggle {
        margin-top: 8px;
        padding-right: 8px;
    }
}

