/* --- CUSTOM PROCESS BOX DESIGNS --- */
.custom-process-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 30px;
    padding-top: 40px;
}

.custom-process-wrapper .ttm-processbox {
    width: 25% !important;
    position: relative !important;
    padding-top: 25px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
}

.custom-process-wrapper .ttm-processbox::before,
.custom-process-wrapper .ttm-processbox::after {
    display: none !important;
    /* hide default arrows */
}

/* Base image container for the shape */
.custom-process-wrapper .ttm-box-image {
    position: relative !important;
    width: 210px !important;
    height: 210px !important;
    margin: 0 auto 30px auto !important;
    border-radius: 50% !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* The actual image inside the shape */
.custom-process-wrapper .ttm-box-image img {
    width: 170px !important;
    height: 170px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    z-index: 2 !important;
    position: relative !important;
    border: 2px solid #ffffff !important;
}

/* Background circle shape (Default light blue) */
.custom-process-wrapper .ttm-box-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    z-index: 1 !important;
    background-color: #e4e9f2 !important;
    transition: all 0.4s ease !important;
}

/* Rotating square pointer (Default pointing right) */
.custom-process-wrapper .ttm-box-image::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #e4e9f2 !important;
    z-index: 0 !important;
    border-radius: 0 !important;
    /* Sharp tip */
    /* Center -> Rotate 0deg (right) -> Move to edge -> Rotate 45deg (diamond) */
    transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(45deg) !important;
    transition: all 0.4s ease !important;
}

/* The Number Badge (Inside the border) */
.custom-process-wrapper .process-num {
    position: absolute !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    z-index: 3 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transform: none !important;

    /* Positioned inside the left border */
    top: 50% !important;
    left: -5px !important;
    margin-top: -22.5px !important;

    background-color: #e4e9f2 !important;
    /* Default light blue */
    color: #0b1a30 !important;
    transition: all 0.4s ease !important;
}

.custom-process-wrapper .process-num .number {
    transform: none !important;
}

/* Prevent weird rotations from theme CSS */
.custom-process-wrapper .ttm-processbox:hover .process-num,
.custom-process-wrapper .ttm-processbox:hover .process-num .number {
    transform: none !important;
}

/* --- HOVER STATES --- */
.custom-process-wrapper .ttm-processbox:hover .ttm-box-image::before {
    background-color: var(--theme-primary-color, #1e73be) !important;
}

/* Rotate arrow to point down on hover */
.custom-process-wrapper .ttm-processbox:hover .ttm-box-image::after {
    background-color: var(--theme-primary-color, #1e73be) !important;
    /* Center -> Rotate 90deg (down) -> Move to edge -> Rotate 45deg (diamond) */
    transform: translate(-50%, -50%) rotate(90deg) translateX(100px) rotate(45deg) !important;
}

.custom-process-wrapper .ttm-processbox:hover .process-num {
    background-color: var(--theme-primary-color, #1e73be) !important;
    color: #ffffff !important;
}

/* Text Styling */
.custom-process-wrapper .featured-title h5 {
    color: #0b1a30 !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    margin-bottom: 12px !important;
}

.custom-process-wrapper .ttm-box-description {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Custom Footer Styles */
.custom-footer {
    padding: 30px 0 10px;
}

.custom-footer-container {
    padding: 0 40px;
}

.footer-logo img {
    height: 40px;
}

.footer-desc {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.footer-contact-list li {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact-list li i {
    color: #007bff;
    font-size: 18px;
    margin-right: 12px;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #a0aec0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #fff;
}

.footer-heading {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links li a:hover,
.footer-links li a.active-link {
    color: #007bff;
}

.footer-links li.fw-bold a {
    font-weight: 600;
    color: #ffffff;
}

/* Signup */
.footer-newsletter {
    position: relative;
    display: flex;
}

.footer-newsletter input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.footer-newsletter input:focus {
    border-color: #007bff;
}

.footer-newsletter button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    width: 35px;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-newsletter button:hover {
    background: #0056b3;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
}

.copyright-text {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 15px;
}

.footer-bottom-links li {
    color: #94a3b8;
    font-size: 13px;
}

.footer-bottom-links li a {
    color: #94a3b8;
}

.footer-bottom-links li a:hover {
    color: #475569;
}

/* Fix for right side empty space / horizontal scroll */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Global border radius for cards and images */
.featured-imagebox,
.featured-imagebox .featured-thumbnail img,
.featured-imagebox .featured-content,
.featured-icon-box,
img.img-fluid,
.ttm-box-col-wrapper .featured-imagebox-portfolio {
    border-radius: 20px !important;
}

.featured-imagebox,
.ttm-box-col-wrapper .featured-imagebox-portfolio {
    overflow: hidden !important;
    background-color: transparent !important;
    margin-bottom: 20px !important;
}

/* Add border to featured content cards and remove shadow */
.featured-imagebox .featured-content,
.featured-imagebox-services.style1 .featured-content,
.featured-imagebox.style1 .featured-content {
    border: 1px solid #dbdbdb !important;
    box-shadow: none !important;
    background-color: #fff !important;
}

/* Prevent forced blue hover background effect on text cards */
.featured-imagebox-services.style1:hover .featured-content {
    background-color: #ffffff !important;
}

/* Floating Talk to Us Widget */
.floating-talk-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    text-decoration: none !important;
}

.floating-talk-btn .talk-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--theme-primary-color, #1e73be);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floating-talk-btn svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: rotateText 15s linear infinite;
}

.floating-talk-btn svg text,
.floating-talk-btn svg textPath {
    fill: #007bff !important;
}

@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.floating-talk-btn:hover .talk-icon {
    transform: scale(1.1);
    background: #0b1a30;
}

.floating-talk-btn:hover svg {
    animation-play-state: paused;
}

/* Portfolio Style 2 Hover State (Everything You Get) */
.featured-imagebox-portfolio.style2:hover .featured-content {
    background-color: var(--theme-primary-color, #1e73be) !important;
}

.featured-imagebox-portfolio.style2:hover .featured-title h5 a,
.featured-imagebox-portfolio.style2:hover .category p {
    color: #ffffff !important;
}

/* Reduce Navbar Height */
.site-branding {
    display: flex !important;
    align-items: center !important;
    height: 70px !important;
    padding: 0 !important;
}

.site-branding img {
    max-height: 45px !important;
}

#site-header-menu #site-navigation .menu>ul>li>a {
    line-height: 70px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ttm-stickable-header {
    min-height: 70px !important;
    padding: 0 !important;
}

/* Fix Megamenu items height getting hijacked by generic responsive rules */
.megamenu-content .mega-list li a {
    height: auto !important;
    line-height: normal !important;
    padding: 8px 15px !important;
}


/* Reduce topbar height */
.ttm-topbar-content .topbar-right .list-inline,
.ttm-topbar-content .top-contact {
    line-height: 36px !important;
}

.ttm-topbar-wrapper {
    padding: 0 !important;
}

.ttm-topbar-wrapper .header-btn .ttm-btn {
    padding: 8px 30px !important;
    line-height: 20px !important;
}

/* ---------------------------------------------------------------------------
   NEW MOBILE DRAWER SIDEBAR DESIGN FOR ONVA LABS
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   NEW MOBILE DRAWER SIDEBAR DESIGN FOR ONVA LABS
   --------------------------------------------------------------------------- */
@media (max-width: 1199px) {

    /* Header layout overrides */
    .ttm-stickable-header-w {
        background-color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .site-header-menu-inner {
        padding: 12px 15px !important;
    }

    .site-branding {
        margin-left: 15px !important;
    }

    /* Round Hamburger Toggle Icon */
    .ttm-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        background-color: #0b4a8f !important;
        /* Dark Blue */
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        cursor: pointer;
        position: absolute !important;
        right: 0px !important;
        /* Moved closer to the right edge to leave only a small gap */
        top: 13px !important;
        /* Center vertically on a 70px navbar */
        z-index: 1001 !important;
        transition: background-color 0.25s ease;
        margin: 0 !important;
        float: none !important;
    }

    .ttm-menu-toggle:hover {
        background-color: #0066cc !important;
    }

    .ttm-menu-toggle .toggle-block {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        position: static !important;
    }

    /* Blurred Backdrop Layer */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(5px);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Slide-out Sidebar Drawer container - High Specificity */
    #site-header-menu #site-navigation nav.menu {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: 15px 0 35px rgba(15, 23, 42, 0.15) !important;
        z-index: 100000 !important;
        overflow-y: auto !important;
        transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: block !important;
        max-height: none !important;
        padding: 0 !important;
        font-family: 'Outfit', 'Inter', sans-serif !important;
    }

    #site-header-menu #site-navigation nav.menu.active {
        left: 0 !important;
    }

    /* Hide floating talk widgets when sidebar is open */
    body.menu-open .floating-talk-btn,
    body.menu-open #totop {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Drawer Header */
    .mobile-drawer-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
    }

    .drawer-logo {
        max-height: 40px !important;
        width: auto !important;
    }

    .mobile-drawer-close {
        font-size: 20px !important;
        color: #64748b !important;
        cursor: pointer !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background-color: #f1f5f9 !important;
        transition: all 0.2s ease !important;
        line-height: 1 !important;
    }

    .mobile-drawer-close:hover {
        background-color: #fee2e2 !important;
        color: #ef4444 !important;
    }

    /* Override congested styles from legacy theme */
    #site-header-menu #site-navigation nav.menu ul.dropdown,
    #site-header-menu #site-navigation nav.menu ul.dropdown ul {
        display: block !important;
        width: 100% !important;
        background-color: transparent !important;
        border: none !important;
        position: static !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #site-header-menu #site-navigation nav.menu ul.dropdown>li {
        display: block !important;
        border-bottom: 1px solid #f8fafc !important;
        position: relative !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
    }

    #site-header-menu #site-navigation nav.menu ul.dropdown>li>a {
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        padding: 16px 50px 16px 20px !important;
        display: block !important;
        text-align: left !important;
        line-height: normal !important;
        height: auto !important;
        text-transform: none !important;
        transition: all 0.2s ease !important;
        background: none !important;
    }

    #site-header-menu #site-navigation nav.menu ul.dropdown>li>a:hover {
        color: #0066cc !important;
        background-color: #f8fafc !important;
    }

    /* Down arrow chevron toggles */
    #site-header-menu #site-navigation nav.menu .mobile-submenu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        right: 10px !important;
        top: 8px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        z-index: 10 !important;
        transition: all 0.2s ease !important;
        background: transparent !important;
    }

    #site-header-menu #site-navigation nav.menu .mobile-submenu-toggle:hover {
        background-color: #f1f5f9 !important;
    }

    #site-header-menu #site-navigation nav.menu .mobile-submenu-toggle::after {
        content: "\f107" !important;
        font-family: "FontAwesome" !important;
        font-size: 14px !important;
        color: #64748b !important;
        transition: transform 0.2s ease !important;
    }

    #site-header-menu #site-navigation nav.menu .open-submenu>.mobile-submenu-toggle::after {
        transform: rotate(180deg) !important;
        color: #0066cc !important;
    }

    /* Submenus container styling */
    #site-header-menu #site-navigation nav.menu ul.dropdown ul,
    #site-header-menu #site-navigation nav.menu ul.dropdown .megamenu-content {
        display: none;
        max-height: none !important;
        overflow: visible !important;
        background-color: #fcfcfd !important;
        padding: 0 !important;
        margin: 0 !important;
        border-top: 1px solid #f1f5f9 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        position: static !important;
    }

    /* Megamenu subheaders inside mobile view */
    #site-header-menu #site-navigation nav.menu .megamenu-content .col-menu {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        float: none !important;
        display: block !important;
    }

    #site-header-menu #site-navigation nav.menu .megamenu-content .col-menu:last-child {
        border-bottom: none !important;
    }

    #site-header-menu #site-navigation nav.menu .megamenu-content .col-menu h6.title {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        background-color: #f8fafc !important;
        text-transform: none !important;
        border: none !important;
    }

    #site-header-menu #site-navigation nav.menu .megamenu-content .col-menu h6.title a {
        display: block !important;
        padding: 14px 28px !important;
        color: #0f172a !important;
        font-size: 13.5px !important;
    }

    #site-header-menu #site-navigation nav.menu .megamenu-content .col-menu ul.mega-list li a,
    #site-header-menu #site-navigation nav.menu ul.dropdown ul li a {
        color: #475569 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        padding: 14px 40px !important;
        display: block !important;
        line-height: normal !important;
        height: auto !important;
        text-transform: none !important;
        transition: all 0.2s ease !important;
        background: none !important;
    }

    #site-header-menu #site-navigation nav.menu .megamenu-content .col-menu ul.mega-list li a:hover,
    #site-header-menu #site-navigation nav.menu ul.dropdown ul li a:hover {
        color: #0066cc !important;
        background-color: #f1f5f9 !important;
    }
}



/* Hide the back-to-top button globally */
#totop {
    display: none !important;
}

/* Mobile Responsive styles for Work Process steps */
@media (max-width: 991px) {
    .custom-process-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 50px !important;
    }

    .custom-process-wrapper .ttm-processbox {
        width: 100% !important;
        max-width: 280px !important;
    }

    .custom-process-wrapper .ttm-box-image::after {
        /* Rotate to point downwards instead of rightwards on mobile screens */
        transform: translate(-50%, -50%) rotate(90deg) translateX(105px) rotate(45deg) !important;
    }
}

/* Compress footer inner margins */
.custom-footer .mb-40,
.custom-footer .mb-30 {
    margin-bottom: 20px !important;
}

.custom-footer .footer-desc {
    margin-bottom: 15px !important;
}

.custom-footer .footer-contact-list {
    margin-bottom: 15px !important;
}

.custom-footer .footer-heading {
    margin-bottom: 10px !important;
}

/* Improve text visibility on slider */
rs-module .rs-layer[data-type="text"]:not(.ttm-btn) {
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8) !important;
}


.ddfdf {
    padding-top: 300px !important;
}

/* Process Section Card Spacing & Shadow Elevation Design */
.service-section-style2 .featured-icon-box.style6 {
    margin-right: 0 !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.service-section-style2 .featured-icon-box.style6:hover {
    transform: translateY(-8px) !important;
    border-color: #2d4a8a !important;
    box-shadow: 0 20px 40px rgba(45, 74, 138, 0.16) !important;
    background-color: #ffffff !important;
}

.service-section-style2 .featured-icon-box.style6:hover .featured-title h5,
.featured-icon-box.style6:hover .featured-title h5,
.service-section-style2 .featured-icon-box.style6:hover .featured-title h5 a,
.featured-icon-box.style6:hover .featured-title h5 a {
    color: #0f172a !important;
}

.service-section-style2 .featured-icon-box.style6:hover .featured-desc p,
.featured-icon-box.style6:hover .featured-desc p {
    color: #64748b !important;
}

.service-section-style2 .featured-icon-box.style6:hover .ttm-icon_element-color-skincolor,
.featured-icon-box.style6:hover .ttm-icon_element-color-skincolor,
.service-section-style2 .featured-icon-box.style6:hover .ttm-icon i,
.featured-icon-box.style6:hover .ttm-icon i {
    color: #2d4a8a !important;
}

.service-section-style2 .featured-icon-box.style6 .ttm-icon i {
    transition: transform 0.35s ease !important;
}

.service-section-style2 .featured-icon-box.style6:hover .ttm-icon i {
    transform: scale(1.12) !important;
}

/* Global Color Retention on Hover for all Service & Explore Cards */
.featured-imagebox-services:hover .featured-content,
.featured-imagebox-services.style1:hover .featured-content,
.featured-imagebox-services.style2:hover .featured-content {
    background-color: #ffffff !important;
}

.featured-imagebox-services:hover .featured-title h5 a,
.featured-imagebox-services:hover .featured-title h6 a,
.featured-imagebox-services:hover .featured-title h5,
.featured-imagebox-services:hover .featured-title h6,
.featured-imagebox-services.style1:hover .featured-title h5 a,
.featured-imagebox-services.style1:hover .featured-title h6 a,
.featured-imagebox-services.style1:hover .featured-title h5,
.featured-imagebox-services.style1:hover .featured-title h6,
.featured-imagebox-services.style2:hover .featured-title h5 a,
.featured-imagebox-services.style2:hover .featured-title h6 a {
    color: #0f172a !important;
}

.featured-imagebox-services:hover .featured-desc p,
.featured-imagebox-services.style1:hover .featured-desc p,
.featured-imagebox-services.style2:hover .featured-desc p {
    color: #64748b !important;
}

.featured-imagebox-services:hover .ttm-btn,
.featured-imagebox-services.style1:hover .ttm-btn,
.featured-imagebox-services.style2:hover .ttm-btn,
.featured-imagebox-services:hover .ttm-btn i,
.featured-imagebox-services.style1:hover .ttm-btn i,
.featured-imagebox-services.style2:hover .ttm-btn i {
    color: #0066cc !important;
}

/* Mobile Button Centering Rules */
@media (max-width: 767px) {
    .ttm-btn:not(.rs-layer) {
        display: table !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
        text-align: center !important;
    }

    .onva-floating-btn {
        display: flex !important;
        justify-content: center !important;
        margin: 20px auto !important;
        position: relative !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: fit-content !important;
    }

    /* Target mobile-only centering without breaking desktop grid layouts */
    .about-text-box,
    .section-title,
    .title-desc,
    .featured-content {
        text-align: center !important;
    }

    /* Justify text inside all paragraph tags and description boxes on mobile viewports only */
    p,
    .featured-desc,
    .featured-desc p {
        text-align: justify !important;
    }
}

/* Mobile Banner Height and Spacing Adjustments */
@media (max-width: 767px) {
    .ttm-page-title-row {
        min-height: auto !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .title-box .page-title-heading h1 {
        font-size: 26px !important;
        line-height: 32px !important;
        margin-bottom: 6px !important;
    }

    .title-box {
        text-align: center !important;
    }

    /* Set mobile banner height to 380px to match JS gridheight parameters exactly */
    .rev_slider_1_1_height {
        height: 380px !important;
    }

    /* Center tagline slide layers horizontally on mobile devices and shift down by 40px */
    #rev_slider_1_1 rs-layer:not(.ttm-btn):not(#slider-1-slide-1-layer-4) {
        text-align: center !important;
        margin-top: 40px !important;
        font-size: 24px !important;
        line-height: 32px !important;
    }

    /* Make tagline 2 descriptive subtitle slightly smaller and lighter for premium look */
    #rev_slider_1_1 #slider-1-slide-1-layer-3,
    #rev_slider_1_1 #slider-1-slide-2-layer-3 {
        font-size: 20px !important;
        line-height: 28px !important;
        color: #e2e8f0 !important;
    }

    /* Shift buttons down by same 40px to preserve spacing and center them */
    #rev_slider_1_1 rs-layer.ttm-btn,
    #rev_slider_1_1 #slider-1-slide-1-layer-4 {
        text-align: center !important;
        margin-top: 40px !important;
    }

    /* Reduce large blank space below "Explore more under Web Development" section on mobile */
    body div.page section.ttm-row.services-slide-section {
        padding-bottom: 30px !important;
    }
}

/* Tablet Banner Height and Spacing Adjustments */
@media (min-width: 768px) and (max-width: 1199px) {
    .rev_slider_1_1_height {
        height: 450px !important;
    }
}



/* Hide mobile-specific layout elements on Desktop systems */
@media (min-width: 1200px) {

    .mobile-drawer-header,
    .mobile-menu-overlay,
    #menu-close-btn {
        display: none !important;
    }

    #site-navigation nav.menu {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
}

/* Clean modern cards for iOS App Development subpage */
.ios-modern-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px 24px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.ios-modern-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.ios-card-icon-wrap {
    width: 48px;
    height: 48px;
    background: #edf5ff;
    color: #0b4a8f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.ios-card-number {
    font-size: 32px;
    font-weight: 700;
    color: #0b4a8f;
    line-height: 1;
    margin-bottom: 20px;
}

.ios-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #182333;
    margin-bottom: 12px;
}

.ios-card-desc {
    font-size: 14px;
    color: #626262;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Adjust portfolio text section padding to reduce gap above images */
.bottomzero-padding-section {
    padding-top: 60px !important;
    padding-bottom: 0px !important;
}

/* Portfolio carousel section spacing on top and below (with high specificity) */
.ttm-row.zero-padding-section.portfolio-slide-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Portfolio hover overlay content white styling */
.featured-imagebox-portfolio .featured-content {
    background-color: #ffffff !important;
    border: 1px solid #dbdbdb !important;
}

.featured-imagebox-portfolio .featured-content h5 a {
    color: var(--theme-primary-color) !important;
}

.featured-imagebox-portfolio .featured-content h5 a:hover {
    color: var(--theme-primary-color) !important;
    text-decoration: underline !important;
}

/* Mobile: index page spacing adjustments (≤991px) */
@media only screen and (max-width: 991px) {

    /* Reduce CTA banner bottom padding */
    .first-row-title-section {
        padding-bottom: 40px !important;
    }

    /* Match theme's standard .ttm-row padding for the About Us section */
    .ttm-row.aboutus-section {
        padding: 60px 0 !important;
    }
}