:root {
    --main-color: #DE2021;
    --secondary-color: #24292D;
}

/* service page on  */
.services-dashboard {
    max-width: 1400px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: stretch;
    min-height: 750px;
    border: 1px solid #e9edf2;
}

/* ========== LEFT MENU – THIN VISIBLE SCROLLBAR ========== */
.services-menu {
    width: 280px;
    background: #616161;
    border-right: 1px solid #dde5ed;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
}

.sticky-wrapper {
    position: sticky;
    top: 120px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.menu-header {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    flex-shrink: 0;
}

.menu-header h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.menu-header p {
    color: var(--main-color);
    font-size: 0.85rem;
    border-left: 3px solid var(--main-color);
    padding-left: 0.7rem;
    margin-top: 0.3rem;
    font-weight: 400;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}


.service-btn {
    background: transparent;
    border: 1px solid #dbe3ec;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.15s;
    cursor: pointer;
    width: 100%;
    flex-shrink: 0;
}

.service-btn i {
    color: var(--main-color);
    font-size: 1.1rem;
    width: 1.8rem;
    text-align: center;
    opacity: 0.7;
}

.service-btn:hover {
    background: #ffffff;
    border-color: var(--main-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px -6px var(--main-color);
}

.service-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: white;
    box-shadow: 0 8px 16px -12px var(--main-color);
}

.service-btn.active i {
    color: white;
    opacity: 1;
}

/* ========== RIGHT PANEL – NO SCROLLBAR, CONTENT ALWAYS STARTS AT TOP ========== */
.service-panel {
    flex: 1;
    background: #ffffff;
    padding: 2.2rem 2.5rem;
    overflow: visible;
    /* no scrollbar, content determines height */
    height: auto;
    /* let content grow naturally */
    display: flex;
    flex-direction: column;
}

.service-detail {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.detail-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.8rem;
}

.detail-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.detail-price {
    background: #f2f8ff;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    color: var(--main-color);
    font-size: 1.1rem;
    border: 1px solid #ffd9d6;
}

.get-latest {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--main-color);
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: underline dotted;
    text-underline-offset: 4px;
}

.image-gallery {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1 1 200px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 5px 15px -8px rgba(0, 0, 0, 0.15);
    border: 1px solid #eef3f8;
    background: #fbfdff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    max-height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.placeholder-img {
    background: #f1f7fd;
    color: var(--secondary-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

.placeholder-img i {
    font-size: 2rem;
    color: var(--main-color);
    opacity: 0.6;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0 1.2rem;
    background: #fafdff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e7f0f8;
}

.spec-table tr {
    border-bottom: 1px solid #eef4fa;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
}

.spec-table td:first-child {
    font-weight: 500;
    color: var(--secondary-color);
    width: 200px;
    background: #f2f9ff;
}

.spec-table td:last-child {
    color: var(--secondary-color);
}

.min-order {
    background: #fcf3f2;
    border-left: 4px solid var(--main-color);
    padding: 0.9rem 1.5rem;
    border-radius: 0.8rem;
    font-weight: 450;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.company-description {
    background: #f6fafe;
    padding: 1.5rem;
    border-radius: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    border: 1px solid #e2ecf5;
    font-size: 0.95rem;
}

.company-description strong {
    color: var(--main-color);
    font-weight: 600;
}

.interest-btn {
    background: var(--main-color);
    border: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
    border-radius: 3rem;

    display: flex;
    /* change to flex */
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */
    gap: 0.6rem;

    width: 100%;
    text-align: center;

    box-shadow: 0 6px 14px -10px #ff3b30;
    transition: all 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.interest-btn i {
    font-size: 1rem;
}

.interest-btn:hover {
    background: var(--main-color);
    box-shadow: 0 8px 16px -8px var(--main-color);
}

.mechanical-cal-title {
    font-size: 50px;
}

@media (max-width: 900px) {
    .mechanical-cal-title {
        font-size: 32px !important;
    }

    .mechanical-calibration-intro {
        margin-bottom: 25px !important;
        padding-bottom: 10px !important;
    }

    .services-dashboard {
        flex-direction: column;
        align-items: stretch;
    }

    .services-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dde5ed;
        height: auto;
        min-height: auto;
        border-top-left-radius: 2rem;
        border-top-right-radius: 2rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .sticky-wrapper {
        position: static;
        padding: 0.8rem 0.5rem !important;
        /* reduced padding */
        max-height: none;
        overflow-y: visible;
    }

    /* Transform selection buttons into a horizontally scrollable container (swiper) */
    .menu-buttons {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding-bottom: 8px !important;
        gap: 0.8rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        /* Hide scrollbars for Firefox */
        -ms-overflow-style: none !important;
        /* Hide scrollbars for IE/Edge */
    }

    .menu-buttons::-webkit-scrollbar {
        display: none !important;
        /* Hide scrollbars for Chrome/Safari */
    }

    .service-btn {
        width: auto !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .mechanical-cal-title {
        font-size: 26px !important;
    }
}

/* new 19.02  */
/* ===== EQUAL HEIGHT SPEC + DESCRIPTION ===== */
.service-merge-row {
    display: flex;
    flex-wrap: wrap;
}

.service-merge-row>div {
    display: flex;
}

.service-merge-row .spec-table,
.service-merge-row .company-description {
    width: 100%;
}

.service-merge-row .company-description,
.service-merge-row .table-responsive-mobile {
    display: flex;
    flex-direction: column;
}

/* Fix heights, equal heights, and scroll behavior for mechanical calibration rows */
@media (min-width: 768px) {
    .service-merge-row .company-description {
        height: 320px !important;
        overflow-y: auto !important;
        justify-content: flex-start !important;
        /* Avoid top clipping of overflow content with flexbox justify center */
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE and Edge */
    }

    .service-merge-row .company-description::-webkit-scrollbar {
        display: none !important;
        /* Chrome, Safari, Opera */
    }

    .service-merge-row .cal-gallery-item {
        aspect-ratio: auto !important;
        height: 320px !important;
        width: 320px !important;
    }
}

@media (max-width: 767px) {
    .service-merge-row .company-description {
        height: auto !important;
        overflow-y: visible !important;
    }

    .service-merge-row .cal-gallery-item {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        max-width: 320px;
        height: auto !important;
    }
}

/* new  */
.header-cta-btn {
    margin-left: auto;
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px -8px var(--main-color);
}

.header-cta-btn:hover {
    transform: translateY(-1px);
}

/* service page off  */

/* Dropdown Menu Styles */
@media (min-width: 992px) {
    .main-menu ul li.has-dropdown {
        position: relative;
    }

    .main-menu ul li.has-dropdown>a i {
        margin-left: 5px;
        font-size: 12px;
        transition: 0.3s;
    }

    .main-menu ul li:hover.has-dropdown>a i {
        transform: rotate(180deg);
    }

    .main-menu ul li .submenu {
        position: absolute;
        top: 120%;
        left: 0;
        width: 250px;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 99;
        border-top: 3px solid var(--main-color);
        padding: 10px 0;
        text-align: left;
    }

    .main-menu ul li:hover .submenu {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }

    .main-menu ul li .submenu li {
        display: block;
        margin: 0;
    }

    .main-menu ul li .submenu li a {
        display: block;
        padding: 10px 25px;
        color: var(--secondary-color);
        font-size: 15px;
        border-bottom: 1px solid #f1f1f1;
        line-height: 1.5;
        transition: all 0.3s ease;
    }

    .main-menu ul li .submenu li:last-child a {
        border-bottom: none;
    }

    .main-menu ul li .submenu li a:hover {
        color: var(--main-color);
        padding-left: 30px;
        background: #fdfdfd;
    }
}

/* ========== CALIBRATION INSTRUMENTS GALLERY ========== */
.calibration-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .calibration-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .calibration-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .calibration-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.cal-gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    border: 2px solid #e9edf2;
    background: #ffffff;
}

.cal-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px -10px rgba(222, 32, 33, 0.2);
    border-color: var(--main-color);
}

.cal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.6s ease;
}

.cal-gallery-item:hover img {
    transform: scale(1.08);
}

.cal-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.cal-gallery-item:hover .cal-gallery-overlay {
    background: rgba(222, 32, 33, 0.05);
}

/* ========== MOBILE RESPONSIVENESS OVERRIDES ========== */
@media (max-width: 768px) {
    .service-panel {
        padding: 1.8rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .detail-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    .detail-header h2 {
        font-size: 1.3rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-grow: 1 !important;
    }

    .header-cta-btn {
        margin-left: auto !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }

    .interest-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .company-description {
        padding: 1.2rem !important;
    }
}

/* ========== GLOBAL SECTION HEADING OVERRIDES ========== */
.section__title {
    font-size: 50px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

@media (max-width: 991px) {
    .section__title {
        font-size: 38px !important;
    }
}

@media (max-width: 576px) {
    .section__title {
        font-size: 30px !important;
    }
}

/* ========== HOMEPAGE BRAND LOGOS VISIBILITY OVERRIDES ========== */


/* ========== CUSTOM LOGO-BASED PRELOADER STYLES ========== */
.preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
    z-index: 999999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out !important;
}

.preloader-content {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 180px !important;
    height: 180px !important;
}

.preloader-logo {
    width: 90px !important;
    height: auto !important;
    animation: logoPulse 1.6s ease-in-out infinite !important;
    z-index: 10 !important;
}

.preloader-spinner {
    position: absolute !important;
    width: 140px !important;
    height: 140px !important;
    border: 3.5px solid rgba(222, 32, 33, 0.06) !important;
    /* Brand red background ring */
    border-top: 3.5px solid #de2021 !important;
    /* Crisp Brand red rotating segment */
    border-radius: 50% !important;
    animation: spinLoader 1.1s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite !important;
    z-index: 5 !important;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ========== DYNAMIC ACTIVE MENU HIGHLIGHTS ========== */
.main-menu ul li a.active,
.main-menu ul li.has-dropdown.active>a,
.main-menu ul li.has-dropdown .submenu li a.active {
    color: #de2021 !important;
    /* Brand Red */
    font-weight: 600 !important;
}

/* Draw a premium red underline for active main menu links */
.main-menu ul li a.active::after,
.main-menu ul li.has-dropdown.active>a::after {
    width: 100% !important;
    background: #de2021 !important;
    opacity: 1 !important;
}


/* header responsiveness start */
.company-name {
    font-weight: 800;
    font-size: 22px;
    color: #24292D;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .company-name {
        font-size: clamp(16px, 1.5vw, 22px) !important;
    }
}

/* ===== MOBILE HEADER STYLES (visible < 992px only) ===== */
.mobile-header-top {
    display: none;
    background: #ffffff;
    border-bottom: 2px solid #ebebeb;
    padding: 10px 0 8px;
    position: relative;
    z-index: 999;
}

@media (max-width: 991px) {
    .mobile-header-top {
        display: block;
    }
}

/* --- Row 1: Logo + Company Name + Hamburger --- */
.mob-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mob-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.mob-brand-link img {
    width: 64px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.mob-company-name {
    font-weight: 800;
    font-size: 13px;
    color: #24292D;
    line-height: 1.35;
    letter-spacing: 0.2px;
    word-break: break-word;
}

.mob-hamburger-btn {
    background: none;
    border: 1.5px solid #d0d0d0;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}

.mob-hamburger-btn:hover {
    background: #f5f5f5;
}

.mob-hamburger-btn i {
    font-size: 18px;
    color: #24292D;
}

/* --- Row 1 Icons Right (Phone, Location, Hamburger) --- */
.mob-row-1-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mob-header-icon-btn,
.mob-hamburger-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d0d0d0 !important;
    background: none !important;
    color: #24292D !important;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    padding: 0 !important;
    margin-left: 0 !important;
}

.mob-header-icon-btn i,
.mob-hamburger-btn i {
    font-size: 14px !important;
    color: #24292D !important;
}

.mob-header-icon-btn:hover,
.mob-hamburger-btn:hover {
    background: #f5f5f5 !important;
}

/* --- Row 2: Centered Social Media Icons --- */
.mob-row-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.mob-social-links {
    display: flex;
    gap: 12px;
}

.mob-social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mob-social-links a:hover {
    background: var(--tp-theme-1);
    color: white;
    border-color: var(--tp-theme-1);
}

/* Very small screens (320px - 380px): tighten sizes to keep text in exactly 2 lines */
@media (max-width: 380px) {
    .mob-brand-link {
        gap: 5px !important;
    }

    .mob-brand-link img {
        width: 48px !important;
        height: 32px !important;
    }

    .mob-company-name {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
    }

    .mob-row-1-icons {
        gap: 5px !important;
        margin-left: auto !important;
    }

    .mob-header-icon-btn,
    .mob-hamburger-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .mob-header-icon-btn i,
    .mob-hamburger-btn i {
        font-size: 12px !important;
    }

    .mob-social-links {
        gap: 8px !important;
    }

    .mob-social-links a {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }
}

/* Hide the desktop sticky nav bar on mobile (sidebar handles nav) */
@media (max-width: 991px) {
    #header-sticky {
        display: none !important;
    }
}

/* ===== DESKTOP RESPONSIVENESS OVERRIDES (>= 992px) TO MAINTAIN PROPORTIONAL SIDE MARGINS WHEN ZOOMED (110%, 125%) ===== */
@media (min-width: 992px) {
    .container {
        width: 85% !important;
        max-width: 1320px !important;
    }
}

/* Prevent navigation menu wrapping on smaller desktop widths (992px to 1399px) where container is narrower */
@media (min-width: 992px) and (max-width: 1399px) {
    .main-menu ul li {
        margin-right: 20px !important;
    }

    .main-menu ul li a {
        font-size: 15px !important;
    }

    .header__sm-action-item {
        margin-right: 20px !important;
    }

    .header__sm-action .right-border::before {
        right: -12px !important;
    }

    /* Adjust the size and padding of main text buttons to match the layout spacing */
    .tp-btn-d,
    .subscribe-form a,
    .subscribe-form button {
        height: 50px !important;
        line-height: 46px !important;
        padding: 0 25px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        /* Prevent text wrapping and hiding */
    }

    /* Adjust footer typography on smaller desktop screens to match scaled layout */
    .footer__widget-title {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }

    .footer__links ul li a,
    .footer__contact-info p,
    .f-text {
        font-size: 14px !important;
    }

    .footer__copyright-text p,
    .footer__copyright-links a {
        font-size: 13px !important;
    }

    .footer__area-2 {
        padding-top: 60px !important;
    }

    .footer__copyright-2 {
        margin-top: 30px !important;
    }

    /* Adjust appointment CTA section components to prevent clipping/wrapping */
    .appoinment-cta__content-title {
        font-size: 20px !important;
        margin-left: 30px !important;
    }

    .tp-btn-df-active-2 {
        height: 60px !important;
        line-height: 56px !important;
        padding: 0 25px !important;
        padding-right: 55px !important;
        /* Reduced padding-right to give more text space */
        font-size: 14px !important;
        white-space: nowrap !important;
        /* Force text to stay on one line */
    }

    .tp-btn-df-active-2 i {
        right: 20px !important;
        /* Position arrow closer to the right edge */
    }

    /* Reduce card sizes in project swiper to look balanced on smaller laptops with 3 cards */
    .project-item img {
        height: 260px !important;
    }

    /* Adjust small about overlay image size and positioning to prevent clipping and overflow */
    .about__image-small img {
        width: 280px !important;
        height: 210px !important;
        border-width: 6px !important;
    }

    .about__image-small {
        right: -10px !important;
        bottom: -30px !important;
        margin-right: 0 !important;
    }
}

/* Fluid homepage slider typography overrides for desktop (>= 992px) to prevent wrapping */
@media (min-width: 992px) {
    .slider__d-title {
        font-size: clamp(40px, 5vw, 80px) !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: 2.3em !important;
    }

    .slider__p-text {
        font-size: clamp(14px, 1.2vw, 18px) !important;
        line-height: 1.5 !important;
    }
}

/* Ensure exactly 3 cards are visible and fit perfectly in the project swiper on all desktop/laptop widths (>= 991px) */
@media (min-width: 991px) {
    .project-swiper .swiper-slide {
        width: calc((100% - 60px) / 3) !important;
    }
}

/* Ensure services overview section (content and button) displays in a single row on 768px - 991px screen range */
@media (min-width: 768px) and (max-width: 991px) {
    .sm-services__info {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        gap: 20px !important;
    }

    .sm-services__info h5 {
        margin-bottom: 0 !important;
        font-size: 20px !important;
    }

    .sm-services__info a {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Adjust flip card text sizes in service list on 768px - 991px to prevent text clipping */
    .flip-card-title,
    .sm-services__item .flip-card-front .flip-card-title,
    .sm-services__item .flip-card-back .flip-card-title {
        font-size: 14px !important;
        min-height: 38px !important;
        max-height: 3em !important;
    }

    .sm-services__item .flip-card-back p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Center the section title and make it smaller on tablets */
    .section-2__wrapper .section__title {
        margin-left: 0 !important;
        font-size: 32px !important;
    }
}

/* Adjust flip card text sizes in service list on mobile (max-width: 767px) for 2 columns per row */
@media (max-width: 767px) {

    .sm-services__item .flip-card-front,
    .sm-services__item .flip-card-back {
        padding: 18px 10px !important;
        /* Tighter padding on mobile to increase text width and height */
    }

    .flip-card-title,
    .sm-services__item .flip-card-front .flip-card-title,
    .sm-services__item .flip-card-back .flip-card-title {
        font-size: 11px !important;
        /* Smaller size to fit long words (like Calibration) */
        min-height: auto !important;
        /* Reset min-height to grow naturally */
        max-height: none !important;
        /* Remove height cap */
        -webkit-line-clamp: unset !important;
        /* Disable line truncation */
        overflow: visible !important;
        /* Guarantee all text is visible */
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .sm-services__item .flip-card-back p {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* Reduce empty vertical spaces and paddings on mobile (320px to 768px) */
    .sm-services__area {
        padding-bottom: 10px !important;
        padding-top: 5px !important;
    }

    .sm-services__area .container {
        margin-top: -45px !important;
        /* Pull service cards up into the slider to reduce gap */
    }

    .sm-services__lists {
        transform: translateY(0) !important;
        /* Reset visual transform to prevent ghost spacing */
        margin-top: 0 !important;
        margin-bottom: -10px !important;
        /* Pull appointment box up closer to the cards */
    }

    .sm-services__item {
        height: 135px !important;
        /* Reduce mobile card height from 200px to 135px */
        margin-bottom: 12px !important;
    }

    .flip-card-icon {
        margin-bottom: 10px !important;
    }

    .flip-card-icon i {
        font-size: 35px !important;
    }

    .sm-services__info {
        margin-top: 8px !important;
        padding: 12px 15px !important;
    }

    .about__area {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Center copyright and developer link on mobile to prevent layout cutoff */
    .footer__copyright-2 .footer__copyright-text,
    .footer__copyright-2 .footer__copyright-links {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .footer__copyright-2 .footer__copyright-links a {
        margin-right: 0 !important;
        display: inline-block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Stack phone numbers on separate lines on mobile to prevent overflow stretching */
    .footer__contact-info p span a {
        display: block !important;
        margin-bottom: 5px;
    }

    .phone-separator {
        display: none !important;
        /* Hide visual slash separator on mobile */
    }

    /* Adjust footer column bottom margins and compact internal spacing for mobile */
    .footer__widget {
        margin-bottom: 20px !important;
    }

    .footer__widget-title {
        margin-bottom: 15px !important;
    }

    .footer__logo {
        margin-bottom: 15px !important;
    }

    .f-text {
        margin-bottom: 15px !important;
    }

    .footer__links ul li {
        margin-bottom: 4px !important;
    }

    .footer__links ul li a {
        line-height: 1.25 !important;
        display: inline-block !important;
        padding: 1px 0 !important;
    }

    .footer__contact-info p {
        margin-bottom: 8px !important;
    }

    /* Reduce button sizes on mobile viewports (320px to 768px) to fit cleaner */
    .tp-btn-d,
    .subscribe-form a,
    .subscribe-form button {
        height: 46px !important;
        line-height: 42px !important;
        padding: 0 20px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .tp-btn-df-active-2 {
        height: 48px !important;
        line-height: 44px !important;
        padding: 0 20px !important;
        padding-right: 45px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .tp-btn-df-active-2 i {
        right: 15px !important;
    }

    .sm-services__info a {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    /* Reduce mobile footer empty spacing */
    .footer__area-2 {
        padding-top: 30px !important;
    }

    .footer__copyright-2 {
        margin-top: 15px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Center and scale section titles on mobile, and hide side lines to prevent overflow */
    .section-2__wrapper {
        margin-bottom: 30px !important;
    }

    .section-2__wrapper .section__title {
        margin-left: 0 !important;
        font-size: 24px !important;
        line-height: 1.35 !important;
    }

    .section-2__wrapper .st-2::before,
    .section-2__wrapper .st-2::after {
        display: none !important;
    }

    /* Style subtext font size for mobile */
    .section-subtitle-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Show and scale down about section overlay image on mobile (320px to 768px) */
    .about__image-small {
        display: block !important;
        /* Override template rule display: none */
        right: 0px !important;
        bottom: -20px !important;
        margin-right: 0 !important;
    }

    .about__image-small img {
        width: 150px !important;
        height: 110px !important;
        border-width: 4px !important;
        /* Thinner border for mobile scale */
    }
}

/* Prevent global horizontal scroll overflow on mobile screens */
html,
body {
    overflow-x: hidden !important;
}

/* Prevent sidebar close button from overlapping the header text */
.sidebar__logo a {
    padding-right: 55px !important;
}

/* Style the Appointment/CTA link in services box as a bright red link */
.sm-services__info a {
    color: var(--tp-theme-1) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.sm-services__info a:hover {
    color: #24292D !important;
    /* Turns dark slate on hover */
}

/* Make About Section button (.tp-btn-d) red by default and hover black (like slider buttons) */
.tp-btn-d {
    background-color: var(--tp-theme-1) !important;
    border-color: var(--tp-theme-1) !important;
    color: var(--tp-common-white) !important;
}

.tp-btn-d::after {
    background: #000 !important;
    /* Slide in black background on hover */
}

.tp-btn-d:hover::after {
    transform: skewX(45deg) scale(1, 1) !important;
}

.tp-btn-d:hover {
    color: var(--tp-common-white) !important;
    border-color: var(--tp-theme-1) !important;
    /* Red border outline on hover */
}

/* Slider & Testimonial navigation buttons hover styles (turns red with white icon) */
.ms-button-2:hover {
    background-color: var(--tp-theme-1) !important;
    color: var(--tp-common-white) !important;
}

.ms-button-2:hover i {
    color: var(--tp-common-white) !important;
}

.testimonial-prev-btn,
.testimonial-next-btn {
    background-color: var(--tp-theme-1) !important;
    border-color: var(--tp-theme-1) !important;
    transition: all 0.3s ease !important;
}

.testimonial-prev-btn i,
.testimonial-next-btn i {
    color: var(--tp-common-white) !important;
}

.testimonial-prev-btn:hover,
.testimonial-next-btn:hover {
    background-color: #000 !important;
    border-color: var(--tp-theme-1) !important;
    /* Red border outline on hover */
}

.testimonial-prev-btn:hover i,
.testimonial-next-btn:hover i {
    color: var(--tp-common-white) !important;
}

/* Style the Appointment CTA bar button (.tp-btn-df-active-2) to slide in black background on hover (red to black) */
.tp-btn-df-active-2 {
    background-color: var(--tp-theme-1) !important;
    border-color: var(--tp-theme-1) !important;
    color: var(--tp-common-white) !important;
}

.tp-btn-df-active-2::after {
    background: #000 !important;
    /* Slide in black background on hover */
}

.tp-btn-df-active-2:hover::after {
    transform: skewX(45deg) scale(1, 1) !important;
}

.tp-btn-df-active-2:hover {
    color: var(--tp-common-white) !important;
    border-color: var(--tp-theme-1) !important;
    /* Red border outline on hover */
}

/* Inner page banner responsive scaling (320px to 1900px) */
.page__banner {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1920 / 450 !important;
    /* Standard widescreen banner ratio */
    min-height: 120px !important;
    /* Prevent text clipping on mobile */
    max-height: 460px !important;
    /* Cap height on very large screens */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Selection menu buttons swiper carousel (320px to 900px) */
.my-buttons-swiper {
    width: 100%;
}

@media (min-width: 901px) {
    .my-buttons-swiper-wrapper {
        padding: 0 !important;
    }

    .my-buttons-swiper {
        overflow: visible !important;
    }

    .my-buttons-swiper .swiper-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        transform: none !important;
    }

    .my-buttons-swiper .swiper-slide {
        width: 100% !important;
        height: auto !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 900px) {
    .services-dashboard {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        /* Remove dashboard container padding on mobile */
    }

    .services-menu {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #dde5ed !important;
        height: auto !important;
        min-height: auto !important;
    }

    .service-panel {
        border-bottom-left-radius: 2rem !important;
        border-bottom-right-radius: 2rem !important;
    }

    .sticky-wrapper {
        position: static !important;
        padding: 0.8rem 0.5rem !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .my-buttons-swiper-wrapper {
        padding-left: 45px !important;
        /* Space for prev button outside slide window */
        padding-right: 45px !important;
        /* Space for next button outside slide window */
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .my-buttons-swiper {
        padding-bottom: 5px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .my-buttons-swiper .swiper-slide {
        width: auto !important;
        /* Auto width based on content size */
    }

    .service-btn {
        width: auto !important;
        max-width: max-content !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        border-radius: 0.75rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Swiper navigation buttons style for button carousel */
    .my-buttons-prev,
    .my-buttons-next {
        width: 35px !important;
        height: 35px !important;
        background-color: var(--tp-theme-1) !important;
        /* Active state: Red */
        border: 1px solid var(--tp-theme-1) !important;
        border-radius: 50% !important;
        color: var(--tp-common-white) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-top: 0 !important;
        opacity: 1 !important;
    }

    .my-buttons-prev::after,
    .my-buttons-next::after {
        font-size: 14px !important;
        font-weight: bold !important;
        color: inherit !important;
    }

    .my-buttons-prev {
        left: 5px !important;
    }

    .my-buttons-next {
        right: 5px !important;
    }

    .my-buttons-prev:hover,
    .my-buttons-next:hover {
        background-color: #000 !important;
        /* Hover state: Black */
        border-color: #000 !important;
        color: var(--tp-common-white) !important;
    }

    /* Disabled state: White background, grey border, low opacity */
    .my-buttons-prev.swiper-button-disabled,
    .my-buttons-next.swiper-button-disabled {
        background-color: var(--tp-common-white) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: var(--tp-heading-primary) !important;
        opacity: 0.35 !important;
        pointer-events: none !important;
    }
}

/* Hide carousel navigation buttons on desktop view */
@media (min-width: 901px) {

    .my-buttons-prev,
    .my-buttons-next {
        display: none !important;
    }
}

/* header responsiveness end  */

/* Reduce button sizes on tablet and mobile viewports to prevent wrapping and look balanced */
@media (max-width: 991px) {
    .tp-btn-d {
        height: 48px !important;
        line-height: 44px !important;
        padding: 0 25px !important;
        font-size: 14px !important;
    }

    .tp-btn-df-active-2 {
        height: 52px !important;
        line-height: 48px !important;
        padding: 0 25px !important;
        padding-right: 50px !important;
        font-size: 14px !important;
    }

    .tp-btn-df-active-2 i {
        right: 20px !important;
        font-size: 14px !important;
    }
}

/* Keep footer copyright elements in a single row line on tablet views (576px to 991px) */
@media (min-width: 576px) and (max-width: 991px) {

    .footer__copyright-text p,
    .footer__copyright-text a,
    .footer__copyright-links a {
        white-space: nowrap !important;
        font-size: 13px !important;
    }
}


/* new style - 08.07 */
/* Extracted Inline CSS */

/* From clients.php */

    .clients-area {
        background: #ffffff radial-gradient(circle, #d8dbe2 1px, transparent 1.5px) repeat !important;
        background-size: 16px 16px !important;
        border-top: 1px solid #e9edf2;
        border-bottom: 1px solid #e9edf2;
    }

    .page__banner {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1920 / 450 !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        min-height: 0 !important; /* Ensure min-height does not stretch the container on mobile */
    }
    
    @media (max-width: 767px) {
        .page__banner {
            background-size: 100% auto !important; /* Force width to 100%, height proportional */
            padding: 0 !important; /* Remove any padding that might stretch the container */
        }
    }

    .page__banner .container {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .breadcrumb-menu {
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .breadcrumb-menu ul {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .client-item {
        padding: 20px;
        background: #ffffff;
        border: 1.5px solid #e9edf2;
        border-radius: 1.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 120px;
        box-shadow: 0 8px 20px -15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .client-item:hover {
        transform: translateY(-5px);
        border-color: var(--main-color);
        box-shadow: 0 15px 30px -12px rgba(222, 32, 33, 0.15);
    }

    .client-item img {
        max-width: 130px;
        max-height: 70px;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.4s ease;
    }

    .client-item:hover img {
        transform: scale(1.06);
    }

    /* Brighten breadcrumb text with premium shadow */
    .breadcrumb-menu ul li a,
    .breadcrumb-menu ul li span {
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75) !important;
    }

/* From mechanical-calibration.php */

/* ── Fix heights, equal heights, and scroll behavior ─────────────────────── */
@media (min-width: 901px) {
    .services-dashboard { height: 750px !important; min-height: 750px !important; overflow: hidden !important; }
    .services-menu      { height: 100% !important; overflow: hidden !important; }
    .sticky-wrapper     { position: static !important; height: 100% !important; padding: 2rem 1rem !important; }
    .service-panel      { height: 100% !important; overflow-y: auto !important; }
    .service-merge-row .company-description { height: 100% !important; overflow-y: visible !important; }
    .service-merge-row .cal-gallery-item    { aspect-ratio: auto !important; height: 320px !important; width: 320px !important; }
}
@media (max-width: 900px) {
    .services-dashboard { height: auto !important; overflow: visible !important; }
    .services-menu      { height: auto !important; overflow: visible !important; }
    .service-panel      { height: auto !important; overflow-y: visible !important; }
    .service-merge-row .company-description { height: auto !important; overflow-y: visible !important; }
    .service-merge-row .cal-gallery-item    { aspect-ratio: 1/1 !important; width: 100% !important; max-width: 320px; height: auto !important; }
}

/* Brighten breadcrumb */
.breadcrumb-menu ul li a,
.breadcrumb-menu ul li span {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.75) !important;
}

/* ── Convert CKEditor <ul><li> bullet list to tick checkmarks ─────────────── */
.ck-content-rendered ul,
.ck-content-rendered ol {
    list-style: none !important;
    padding-left: 0 !important;
    line-height: 1.8 !important;
}
.ck-content-rendered ul li::before,
.ck-content-rendered ol li::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d62828'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.59L5.41 12 6.83 10.58l3.17 3.17 7.59-7.59L19 7.58 10 16.59z'/%3E%3C/svg%3E") center / contain no-repeat;
    margin-right: 12px;
    margin-top: 6px;
    flex-shrink: 0;
}
.ck-content-rendered ul li,
.ck-content-rendered ol li {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
}

/* From mechanical-calibration.php (deduplicated) */

    
    
    @media (max-width: 767px) {
        
    }

    
    
    
    
    

/* From mechanical-calibration.php */

#interestedModal .form-control:focus {
    border-color: var(--main-color) !important;
    box-shadow: 0 0 0 3px rgba(222, 32, 33, 0.15) !important;
    background: #ffffff !important;
}
#interestedModal button[type="submit"]:hover {
    background-color: #c8191a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px var(--main-color) !important;
}

/* From contact.php (deduplicated) */

    :root {
        --main-color: #DE2021;
        --secondary-color: #24292D;
    }

    /* Banner Section */
    

    .breadcrumb-menu ul li a,
    .breadcrumb-menu ul li span {
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75) !important;
    }

    .page__banner-wrapper {
        text-align: center;
        width: 100%;
    }

    

    .breadcrumb-menu li {
        color: #fff;
        font-size: 15px;
    }

    .breadcrumb-menu li:after {
        content: "/";
        margin: 0 10px;
        color: rgba(255, 255, 255, 0.5);
    }

    .breadcrumb-menu li:last-child:after {
        display: none;
    }

    .breadcrumb-menu a {
        color: #fff;
        text-decoration: none;
    }

    .breadcrumb-menu span {
        color: #fff;
        opacity: 0.8;
    }

    .page__banner-title {
        color: #fff;
        font-size: 42px;
        margin-top: 10px;
        font-weight: 600;
    }

    /* Certifications Strip */
    .cert-strip {
        background: var(--secondary-color);
        padding: 12px 0;
        margin-top: -25px;
        position: relative;
        z-index: 10;
        border-radius: 50px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 56, 44, 0.3);
    }

    .cert-strip-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 0 40px;
        flex-wrap: nowrap !important; /* Force items to stay in a single line */
        white-space: nowrap !important;
    }

    .cert-item {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #fff;
        white-space: nowrap !important; /* Force text not to wrap */
    }

    .cert-item i {
        color: var(--main-color);
        font-size: 24px;
    }

    .cert-item span {
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 0.3px;
    }

    .cert-item strong {
        font-weight: 700;
        color: #fff;
        margin-right: 5px;
    }

    .cert-divider {
        width: 2px;
        height: 35px;
        background: rgba(255, 255, 255, 0.2);
    }

    /* Contact Page Section */
    .contact-section {
        padding: 50px 0 70px;
        background: #fff;
    }

    .contact-wrapper {
        display: flex;
        gap: 25px;
        flex-wrap: wrap;
        align-items: stretch;
        margin-top: 20px;
    }

    /* Left Side - Single Card */
    .contact-info {
        flex: 1;
        min-width: 350px;
        display: flex;
    }

    .info-card-single {
        background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
        border-radius: 1.5rem;
        padding: 30px 30px;
        border: 1px solid #e9edf2;
        box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.15);
        transition: all 0.3s;
        width: 100%;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .info-card-single:hover {
        border-color: var(--main-color);
        box-shadow: 0 20px 40px -15px rgba(255, 56, 44, 0.3);
    }

    .company-header {
        text-align: center;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 2px solid rgba(255, 56, 44, 0.1);
    }

    .company-name {
        font-size: 24px;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .company-tagline {
        color: var(--main-color);
        font-size: 14px;
        font-weight: 500;
        background: rgba(255, 56, 44, 0.05);
        display: inline-block;
        padding: 5px 16px;
        border-radius: 30px;
        margin-top: 5px;
    }

    .info-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex: 1;
    }

    .info-item {
        display: flex;
        gap: 15px;
        align-items: flex-start;
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 15px;
    }

    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .info-icon-large {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, rgba(255, 56, 44, 0.12), rgba(255, 56, 44, 0.03));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--main-color);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .info-details {
        flex: 1;
    }

    .info-details h4 {
        font-size: 16px;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 8px;
    }

    .info-details p {
        color: #4a5568;
        line-height: 1.6;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .info-details a {
        color: #4a5568;
        text-decoration: none;
        transition: color 0.3s;
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .info-details a:hover {
        color: var(--main-color);
    }

    /* Right Side - Contact Form */
    .contact-form-wrapper {
        flex: 1;
        min-width: 350px;
        background: #fff;
        border-radius: 1.5rem;
        padding: 30px 30px;
        box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.15);
        border: 1px solid #e9edf2;
        display: flex;
        flex-direction: column;
        /* height: 100%; */
    }

    .form-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .form-title {
        font-size: 26px;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 5px;
        text-align: center;
    }

    .form-subtitle {
        color: #718096;
        margin-bottom: 20px;
        font-size: 14px;
        text-align: center;
    }

    form {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-control {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 0.8rem;
        font-size: 14px;
        transition: all 0.3s;
        background: #f8fafc;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--main-color);
        box-shadow: 0 0 0 3px rgba(255, 56, 44, 0.1);
        background: #fff;
    }

    textarea.form-control {
        resize: vertical;
        min-height: 100px;
        flex: 1;
    }

    .submit-btn {
        background: var(--main-color);
        color: #fff;
        border: none;
        padding: 14px 25px;
        border-radius: 2.5rem;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 2px solid transparent;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .submit-btn:hover {
        background: #e62e24;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -8px var(--main-color);
    }

    .submit-btn i {
        font-size: 1rem;
    }

    /* Map Section */
    .map-section {
        padding: 0 0 70px 0;
    }

    .map-container {
        border-radius: 1.5rem;
        overflow: hidden;
        border: 1px solid #e9edf2;
        box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.1);
    }

    .map-container iframe {
        width: 100%;
        height: 380px;
        display: block;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        width: 100%;
    }

    .d-flex {
        display: flex;
    }

    .align-items-center {
        align-items: center;
    }

    @media (max-width: 767px) {
        .cert-strip {
            width: 90% !important;
            border-radius: 20px !important;
            margin-top: -15px !important;
            padding: 10px 0 !important;
        }

        .cert-strip-wrapper {
            flex-direction: column !important; /* Stack vertically into 2 lines */
            gap: 8px !important;
            padding: 5px 20px !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .cert-divider {
            width: 120px !important; /* Horizontal divider line */
            height: 1px !important;
            background: rgba(255, 255, 255, 0.15) !important;
            margin: 4px 0 !important;
        }

        .cert-item {
            width: 100% !important;
            justify-content: center !important;
            white-space: nowrap !important; /* Prevent text wrapping inside the line */
        }
        .cert-item i {
            font-size: 16px !important;
        }
        .cert-item span {
            font-size: 13px !important; /* More readable font size since it has full width */
        }
    }

    @media (max-width: 991px) {
        .contact-wrapper {
            flex-direction: column !important;
        }

        .contact-info,
        .contact-form-wrapper {
            width: 100% !important;
            min-width: 100% !important;
        }

        .info-card-single {
            padding: 25px 20px !important;
        }

        .contact-form-wrapper {
            padding: 25px 20px !important;
        }

        .company-name {
            font-size: 20px !important;
        }

        .page__banner-title {
            font-size: 32px !important;
        }

        .form-group {
            margin-bottom: 15px !important;
        }

        .info-details a,
        .info-details p {
            word-break: break-all !important; /* Wrap long email addresses/links on mobile screen */
        }
    }

    /* Style submit button to hover black with red border outline */
    .submit-btn:hover {
        background: #000 !important;
        border-color: var(--main-color) !important;
        color: #fff !important;
    }
    
    
    
    @media (max-width: 767px) {
        
    }

    
    
    
    
    

/* From index.php */

    /* Brighten home page slider and add premium text shadow for enhanced readability */
    .slider__item::before {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.65) 0%,
                rgba(0, 0, 0, 0.4) 40%,
                rgba(0, 0, 0, 0) 65%) !important;
    }

    .slider__item {
        display: flex;
        align-items: center;
        justify-content: center !important; /* Force vertical/horizontal center depending on flex direction */
        overflow: hidden;
        min-height: 0 !important; /* Overrides style.css 250px min-height on mobile */
    }

    .slider__d-title {
        font-size: clamp(30px, 4vw, 65px) !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
        max-width: 12em !important; /* Force wrap based on font size */
        text-wrap: balance !important; /* Balance text beautifully across the lines */
        text-align: left !important;
    }

    .slider__p-text {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.85) !important;
        font-size: clamp(9px, 1.5vw, 18px) !important;
        margin-top: 0 !important; /* Eliminate default p tag margin */
        margin-bottom: clamp(8px, 1.2vw, 20px) !important; /* Reduced max margin */
        line-height: 1.2 !important;
        text-align: left !important;
    }
    
    /* Globally force center alignment on red cards for ALL screens */
    .flip-card-front, .flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .flip-card-title {
        flex-grow: 0 !important; /* Prevent from stretching */
        margin-bottom: 0 !important; /* Remove invisible margin */
        text-align: center !important;
    }
    .flip-card-icon {
        margin-bottom: 12px !important;
    }
    
    .slider-button {
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    .slider-button .tp-btn-d {
        padding: clamp(6px, 1vw, 15px) clamp(12px, 3vw, 40px) !important;
        font-size: clamp(9px, 1.2vw, 16px) !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1.2 !important;
        min-width: clamp(160px, 15vw, 220px) !important; /* Ensure buttons are equally wide on laptop screens regardless of text length */
    }
    
    .slider-button .tp-btn-d i {
        font-size: clamp(9px, 1.2vw, 16px) !important;
    }

    /* Removed line-clamp to allow full title visibility */

    .slider__d-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: clamp(8px, 3vw, 40px) !important;
        padding-bottom: clamp(80px, 8vw, 120px) !important; /* Increased padding to prevent button from hiding behind red boxes on desktop */
    }

    @media (max-width: 991px) {
        .swiper-button-prev, 
        .swiper-button-next {
            display: none !important; /* Hide prev/next arrows below 992px */
        }
    }

    @media (max-width: 767px) {
        .slider__item::before {
            display: none !important; /* Remove overlay card on mobile */
        }
        .slider-button {
            margin-bottom: 0 !important;
            margin-top: 0 !important;
        }
        .slider-button .tp-btn-d {
            padding: 5px 15px !important; /* Slightly increased padding */
            font-size: 9px !important;
            height: auto !important;
            min-height: 0 !important;
            min-width: auto !important; /* Override the desktop equal-width forcing on mobile */
            line-height: 1 !important;
        }
        .slider-button .tp-btn-d i {
            font-size: 9px !important;
        }
        .slider__d-title {
            margin-bottom: 2px !important; /* Reduce space between title and button */
            font-size: 14px !important;
            line-height: 1.15 !important;
        }
        .slider__p-text {
            display: none !important; /* Hide paragraph completely on mobile */
        }
        
        .slider__d-info {
            padding-top: 2px !important;
            padding-bottom: 2px !important; /* Reset padding since overlap is removed */
        }
        
        /* Remove overlap with slider on mobile */
        .sm-services__area .container {
            margin-top: 5px !important; /* Safely space it below the slider */
        }
        
        /* Make cards 4 per row (25% width) to eliminate empty space */
        .sm-services__lists .col-6 {
            width: 25% !important;
            padding-left: 2px !important;
            padding-right: 2px !important;
            display: flex !important; /* Force flex to allow children to stretch */
            align-items: stretch !important;
        }
        
        /* Drastically reduce red card sizes and ensure they stretch to equal heights */
        .sm-services__item {
            margin-bottom: 8px !important;
            width: 100% !important;
            display: flex !important;
            flex-direction: column !important;
        }
        .flip-card, .flip-card-inner {
            flex: 1 1 auto !important; /* Grow to perfectly fill the equal-height column */
            display: flex !important;
            flex-direction: column !important;
        }
        .flip-card-inner {
            transform: none !important; /* Disable flip effect completely on mobile */
        }
        .flip-card-back {
            display: none !important; /* Remove overlay card entirely on mobile */
        }
        .flip-card-front {
            padding: 4px 1px !important;
            flex: 1 1 auto !important; /* Grow to perfectly fill the equal-height column */
            min-height: 60px !important;
            flex-direction: column !important; /* Icon above text */
            align-items: center !important;
            justify-content: center !important;
        }
        .flip-card-icon {
            margin-bottom: 4px !important; /* Tiny gap */
            margin-right: 0 !important;
        }
        .flip-card-icon i {
            font-size: 16px !important; /* Small icon for 4-per-row */
        }
        .flip-card-title {
            font-size: 7px !important; /* Smaller text so 'Manufacturing' fits entirely */
            line-height: 1.1 !important;
            margin-bottom: 0 !important;
            text-align: center !important;
            word-break: normal !important; /* Break by words, not characters */
            overflow-wrap: normal !important;
        }
    }

    @media (min-width: 768px) and (max-width: 1199px) {
        .slider__d-info {
            padding-bottom: 80px !important; /* Push everything UP to avoid red box overlap */
            padding-top: 10px !important;
        }

        .slider__p-text {
            font-size: clamp(12px, 1.8vw, 16px) !important;
            margin-top: 0 !important; /* Eliminate default p tag margin */
            margin-bottom: 10px !important; /* Reduced margin */
            line-height: 1.25 !important;
        }
        .slider-button .tp-btn-d {
            padding: 5px 12px !important; /* Further reduced padding for tablet */
            font-size: 11px !important;
        }
        
        /* Reduce red card overall sizes and center content for tablet views */
        .sm-services__item, .flip-card, .flip-card-inner {
            height: 100% !important; /* Force equal height for all cards in the row */
        }
        .flip-card-inner {
            display: flex !important;
            flex-direction: column !important;
        }
        .flip-card-front, .flip-card-back {
            display: flex !important;
            flex-direction: column !important;
            padding: 15px 10px !important; /* Much smaller padding */
            min-height: 140px !important; /* Smaller minimum height */
            height: 100% !important;
            justify-content: center !important; /* Center content vertically */
            align-items: center !important; /* Center content horizontally */
        }
        .flip-card-icon i {
            font-size: 26px !important; 
        }
        .flip-card-icon {
            margin-bottom: 8px !important;
        }
        .flip-card-title {
            font-size: 12px !important;
            line-height: 1.2 !important;
            margin-bottom: 0 !important; /* Remove h5 default margin */
            flex-grow: 0 !important; /* Prevent title from taking up extra vertical space */
            text-align: center !important;
        }
        .flip-card-desc {
            font-size: 11px !important;
        }
    }

    @media (min-width: 992px) {
        .slider__img {
            height: 400px;
            object-fit: contain;
        }
    }

    .slider__img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

/* From index.php */

            #trackRTL {
                animation: marquee-rtl 25s linear infinite;
            }

            #trackLTR {
                animation: marquee-ltr 25s linear infinite;
            }

            @keyframes marquee-rtl {
                0% {
                    transform: translate3d(0, 0, 0);
                }

                100% {
                    transform: translate3d(calc(-50% - 12px), 0, 0);
                }
            }

            @keyframes marquee-ltr {
                0% {
                    transform: translate3d(calc(-50% - 12px), 0, 0);
                }

                100% {
                    transform: translate3d(0, 0, 0);
                }
            }

            .carousel-loop-container:hover .carousel-track-loop {
                animation-play-state: paused !important;
            }
        
/* Mechanical Calibration Swiper CSS */
.my-buttons-swiper-wrapper {
    padding: 0 40px;
}
.my-buttons-swiper-wrapper .swiper-button-prev,
.my-buttons-swiper-wrapper .swiper-button-next {
    width: 30px !important;
    height: 30px !important;
    background-color: var(--main-color, #de2021) !important;
    border-radius: 50% !important;
    color: #fff !important;
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    position: absolute !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.my-buttons-swiper-wrapper .swiper-button-prev::after {
    content: '❮' !important;
    font-size: 14px !important;
    font-weight: bold !important;
}
.my-buttons-swiper-wrapper .swiper-button-next::after {
    content: '❯' !important;
    font-size: 14px !important;
    font-weight: bold !important;
}
.my-buttons-swiper-wrapper .swiper-button-prev {
    left: 0px !important;
}
.my-buttons-swiper-wrapper .swiper-button-next {
    right: 0px !important;
}
.my-buttons-swiper-wrapper .swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: auto !important;
    pointer-events: none !important;
}
@media (min-width: 900px) {
    .my-buttons-swiper-wrapper .swiper-button-prev,
    .my-buttons-swiper-wrapper .swiper-button-next {
        display: none !important;
    }
    .my-buttons-swiper-wrapper {
        padding: 0;
    }
}
#menuButtons {
    display: flex;
    flex-direction: row;
}
.my-buttons-swiper .swiper-slide {
    width: auto !important;
}

/* Custom Overrides for Mobile/Tablet View */
@media (max-width: 991px) {
    /* Increase Logo Size */
    .mob-brand-link img {
        width: 75px !important;
        height: 52px !important;
    }

    /* Keep Company Name in 2 lines */
    .mob-company-name {
        font-size: 11px !important; /* Slightly increased size */
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Increase Icon Buttons Size (Phone, Location) */
    .mob-header-icon-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
    
    .mob-header-icon-btn i {
        font-size: 16px !important;
    }
    
    /* Unique Hamburger Menu Styling & Larger Size */
    .mob-hamburger-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        border: none !important; /* Remove border */
    }
    
    .mob-hamburger-btn i {
        font-size: 24px !important; /* Larger size */
        color: #de2021 !important; /* Red color */
        font-weight: 900 !important; /* Thicker bars */
        text-shadow: 0px 0px 1px #de2021; /* Extra thickness effect */
    }
}

/* Overrides for very small screens (<= 375px) to prevent overflow */
@media (max-width: 375px) {
    .mob-brand-link img {
        width: 50px !important;
        height: 35px !important;
    }
    .mob-company-name {
        font-size: 8.5px !important;
    }
    .mob-header-icon-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    .mob-header-icon-btn i {
        font-size: 13px !important;
    }
    .mob-hamburger-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
    .mob-hamburger-btn i {
        font-size: 16px !important;
    }
}

/* ===== SERVICE BUTTONS — VERTICAL STACK ON MOBILE (remove horizontal swiper) ===== */
@media (max-width: 900px) {
    .my-buttons-swiper-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .my-buttons-swiper {
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .my-buttons-swiper .swiper-wrapper {
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .my-buttons-swiper .swiper-slide {
        width: 100% !important;
        height: auto !important;
        margin-right: 0 !important;
    }

    .service-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        text-align: left !important;
        white-space: normal !important;
    }

    /* Hide the prev/next arrows since there's nothing to scroll anymore */
    .my-buttons-prev,
    .my-buttons-next {
        display: none !important;
    }
}

/* ===== WHATSAPP BUTTON — FULL-WIDTH BOTTOM BAR (MOBILE ONLY) ===== */
@media (max-width: 768px) {
    .whatsapp-floating-btn {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 54px !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        z-index: 9999 !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
        animation: none !important;
        /* Remove the bounce animation since it doesn't suit a full-width bar */
    }

    .whatsapp-floating-btn i {
        font-size: 22px !important;
    }

    .whatsapp-btn-text {
        color: white;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }

    .whatsapp-floating-btn:hover {
        width: 100% !important;
        height: 54px !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Push page content up so the fixed bar doesn't cover the bottom of the page */
    body {
        padding-bottom: 54px !important;
    }
}

/* Hide text label on desktop, keep original circular icon-only button */
.whatsapp-btn-text {
    display: none;
}

@media (max-width: 768px) {
    .whatsapp-btn-text {
        display: inline;
    }
}

/* Hide the WhatsApp chat popup bubble on mobile — the full-width bottom bar replaces it */
@media (max-width: 768px) {
    .whatsapp-popup {
        display: none !important;
    }
}

/* Hide "scroll to top" button below 992px */
@media (max-width: 991px) {
    .progress-wrap.active-progress {
        display: none !important;
    }
}