/* ============================================================
   Deltum - Mobile-First Responsive Fixes & UI Improvements
   Added: February 2026
   ============================================================ */

/* ====== Global Mobile Improvements ====== */

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

/* Fix overflow issues on mobile */
html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better touch targets for mobile (minimum 44px) */
a, button, .ht-btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* ====== Hero Section Mobile Fixes ====== */
@media (max-width: 767px) {
    .modern-it-company-hero .sideimage {
        display: none !important;
    }

    .modern-it-company-hero-text h1.heading {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .modern-it-company-hero-text .book-box h5 {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    .modern-it-company-hero .col-lg-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .section-space--pt_80 {
        padding-top: 40px !important;
    }

    .section-space--ptb_100 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .section-space--ptb_120 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

/* ====== Navigation Mobile Fixes ====== */
@media (max-width: 991px) {
    .header-right-box .language-menu .ht-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    .header__logo img {
        max-width: 130px !important;
    }
}

/* Mobile menu overlay improvements */
.mobile-menu-overlay {
    z-index: 99999 !important;
}

.mobile-menu-overlay__body {
    padding: 20px;
}

.offcanvas-navigation ul li a {
    padding: 12px 0 !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-navigation ul li.has-children ul.sub-menu li a {
    padding: 8px 0 8px 15px !important;
    font-size: 14px !important;
}

/* ====== Service Cards Mobile ====== */
@media (max-width: 767px) {
    .feature-images__one .col-lg-4,
    .feature-images__one .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .ht-box-images .image-box-wrap .box-image img.service-img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }
}

/* ====== Blog Cards Mobile ====== */
@media (max-width: 767px) {
    .sc-blog-card .thumbnail img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

    .sc-blog-card-content h5 {
        font-size: 18px !important;
    }

    #blog-list .col-xl-4,
    #blog-list .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ====== Blog Detail Mobile ====== */
@media (max-width: 991px) {
    #blogdetail .col-lg-3 {
        order: 2 !important;
        margin-top: 40px;
    }

    #blogdetail .col-lg-9 {
        order: 1 !important;
    }

    .post-feature.blog-thumbnail {
        height: 250px !important;
    }

    .bloginner-content h3 {
        font-size: 22px !important;
    }
}

/* ====== About Us Mobile ====== */
@media (max-width: 767px) {
    .bannerabout {
        min-height: 300px !important;
    }

    .bannerabout #background-video {
        min-height: 300px !important;
    }

    .contentvideo h1 {
        font-size: 28px !important;
    }

    .contentvideo h5 {
        font-size: 14px !important;
    }

    .box-large-image__wrap {
        margin-bottom: 30px;
    }
}

/* ====== Contact Us Mobile ====== */
@media (max-width: 767px) {
    .contact-us-section-wrappaer .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #contactinfo .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .contact-us-section-wrappaer h3 {
        font-size: 22px !important;
    }
}

/* ====== Careers Mobile ====== */
@media (max-width: 767px) {
    #career_form .HeroSection_SearchBar__6Kqnp {
        flex-direction: column !important;
        gap: 10px;
    }

    #career_form .HeroSection_SearchBar__6Kqnp input,
    #career_form .HeroSection_SearchBar__6Kqnp select {
        width: 100% !important;
        min-width: unset !important;
    }

    #career_form h1 {
        font-size: 24px !important;
    }
}

/* ====== Fun Facts Mobile ====== */
@media (max-width: 575px) {
    .fun-fact--four {
        margin-bottom: 30px;
    }

    .fun-fact__count {
        font-size: 36px !important;
    }
}

/* ====== "Why Deltum" Section Mobile ====== */
@media (max-width: 991px) {
    #whyDeltum .col-xl-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .crm-about-content-box .firstimage,
    .crm-about-content-box .secondimage {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ====== Footer Mobile ====== */
@media (max-width: 767px) {
    .footer-widget-wrapper .col-lg-2 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 25px;
    }

    .borderTB .col-lg-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        text-align: center;
    }

    .borderTB .border-r {
        border-right: none !important;
        text-align: center;
    }

    .borderTB .border-r img {
        margin: 0 auto !important;
    }

    .footer-copyright-area .col-md-6 {
        text-align: center !important;
    }

    .footer-copyright-area .list-inline {
        justify-content: center;
        padding-top: 10px;
    }
}

@media (max-width: 479px) {
    .footer-widget-wrapper .col-lg-2 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ====== Hosting Packages Mobile ====== */
@media (max-width: 767px) {
    .pricing-table-area .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
}

/* ====== Pagination Mobile Fix ====== */
@media (max-width: 575px) {
    .pagination {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .pagination .page-link {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
}

/* ====== CTA Section Mobile ====== */
@media (max-width: 767px) {
    .cta-image-area_one h3 {
        font-size: 22px !important;
        text-align: center;
    }

    .cta-image-area_one .col-lg-7,
    .cta-image-area_one .col-lg-5 {
        width: 100% !important;
        text-align: center;
    }
}

/* ====== Testimonials Mobile ====== */
@media (max-width: 767px) {
    .testimonial-slider-wrapper .swiper-slide {
        padding: 20px !important;
    }

    .testimonial_text p {
        font-size: 14px !important;
    }
}

/* ====== Since Section Mobile ====== */
@media (max-width: 991px) {
    .it-company-about-testimonial {
        margin-bottom: 30px;
    }

    .it-company-about-box {
        margin-bottom: 20px;
    }

    .it-company-about-area .s-one {
        display: none !important;
    }

    .it-company-about-area .it-company-custom-border {
        display: none !important;
    }
}

/* ====== Chatbot Widget Fix ====== */
.floating-chat {
    z-index: 9999 !important;
}

.floating-chat .chat {
    max-height: 400px;
    max-width: 350px;
}

@media (max-width: 479px) {
    .floating-chat .chat {
        max-width: calc(100vw - 40px);
        right: 10px;
    }
}

/* ====== Service Detail Mobile ====== */
@media (max-width: 991px) {
    .service-detail-sidebar {
        margin-top: 40px;
    }
}

/* ====== Form Input Mobile Fix ====== */
@media (max-width: 767px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* ====== Breadcrumb Mobile ====== */
@media (max-width: 767px) {
    .breadcrumb_box h1,
    .breadcrumb_box h2 {
        font-size: 24px !important;
    }
}

/* ====== Preloader Fix ====== */
.preloader-activate {
    transition: opacity 0.3s ease;
}

/* ====== Accessibility Improvements ====== */
:focus-visible {
    outline: 2px solid #5CA440 !important;
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ====== Image Lazy Loading Placeholder ====== */
img[loading="lazy"] {
    background-color: #f0f0f0;
}

/* ====== Print Styles ====== */
@media print {
    .header-area,
    .footer-area-wrapper,
    .floating-chat,
    .scroll-top,
    .mobile-menu-overlay,
    .preloader-activate {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}
