@media(max-width:992px) {
    .container {
        max-width: 720px;
    }

    /* =========================================
       PROFESSIONAL MOBILE HEADER LAYOUT
       ========================================= */
    .header,
    .home-2 .header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        height: 70px !important;
        transition: all 0.3s ease;
    }

    .header .container {
        padding: 0 20px;
        height: 100%;
    }

    .header .row,
    .header .col-lg-12 {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }

    /* --- MODERN MOBILE HEADER GRID SYSTEM --- */
    .header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 1. Logo - Center Column */
    .header-logo {
        grid-column: 2 !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        z-index: 10 !important;
    }

    .header-logo img {
        max-height: 28px !important;
        width: auto !important;
    }

    /* 2. Flatten the nested structure to allow Grid placement */
    .header-right-content,
    .header-right-content>ul {
        display: contents !important;
    }

    /* 3. LTR Default Placement */

    /* Language Switcher -> Left Column */
    .header-right-content>ul>li:has(.lang-switch-btn) {
        display: flex !important;
        grid-column: 1 !important;
        justify-self: start !important;
        margin-right: auto !important;
    }

    /* Menu Trigger -> Right Column */
    .header-right-content>ul>li:has(.menu-trigger) {
        display: flex !important;
        grid-column: 3 !important;
        justify-self: end !important;
        margin-left: auto !important;
    }

    /* Cleanup */
    .header-right-content>ul>li {
        display: none;
        /* Hide others */
    }

    /* Styling Updates */
    .menu-trigger {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #1f2937 !important;
        font-size: 24px !important;
    }

    .lang-switch-btn {
        background: #f3f4f6 !important;
        /* Slightly clearer grey */
        padding: 8px 16px !important;
        border-radius: 50px !important;
        /* Pill shape */
        font-size: 13px !important;
        color: #1f2937 !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .header-right-content ul {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Language Picker - Compact */
    .header-right-content .language-picker,
    .header-right-content [class*="lang"] {
        font-size: 12px !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        min-width: auto !important;
    }

    .header-right-content .language-picker .dropdown-toggle,
    .header-right-content .lang-switch {
        padding: 6px 10px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }

    .menu-trigger i {
        font-size: 20px !important;
    }

    .header-nav {
        position: fixed;
        top: 0;
        width: 320px;
        max-width: 85vw;
        background-color: var(--color-bg-white);
        height: 100vh;
        right: -320px;
        display: block;
        z-index: var(--z-modal);
        transition: all var(--transition-normal);
    }

    .header-nav.active {
        right: 0;
    }

    /* RTL Support - Menu slides from LEFT */
    [dir="rtl"] .header-nav {
        right: auto;
        left: -320px;
    }

    [dir="rtl"] .header-nav.active {
        left: 0;
        right: auto;
    }

    [dir="rtl"] .header-nav {
        right: auto;
        left: -320px;
    }

    [dir="rtl"] .header-nav.active {
        left: 0;
        right: auto;
    }

    .header-nav ul {
        display: block;
    }

    .header-nav .nav-link {
        padding: 10px 60px 10px 25px;
        font-size: var(--font-size-sm);
        color: var(--color-text-secondary);
        font-weight: var(--font-weight-semibold);
    }

    .header-nav-link {
        height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .header-nav .nav-item {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .has-dropdown .dropdown-menu {
        width: 100%;
        padding: 20px;
        position: relative;
        display: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu-right img {
        width: 100%;
        margin-bottom: 10px;
    }

    .mega-menu-item {
        gap: 16px;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .mega-menu-item .content h4 {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .mega-menu-item .content p {
        font-size: 12px;
    }

    .dropdown-menu-right h4 {
        font-size: 16px;
    }

    .list-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .has-dropdown .dropdown-menu.domain {
        width: 100%;
    }

    .domain-offer-content {
        width: 100%;
        margin-top: 20px;
        margin-left: 0px;
    }

    .offer-box {
        padding: 20px;
    }

    .domain-offer-content h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .domain-offer-content p {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .domain-offer-content a {
        padding: 6px 14px;
        font-size: 12px;
    }

    .banner-img {
        margin-bottom: 40px;
    }

    .banner-content h2 {
        font-size: 46px;
    }

    .section-pad {
        padding: var(--space-20) 0;
    }

    .section-header,
    .section-header.text-center {
        margin-bottom: 40px;
    }

    .section-header h3 {
        font-size: var(--font-size-3xl);
    }

    .domain-search {
        padding: 70px 40px;
    }

    .domain-list ul {
        width: 90%;
    }

    .domain-img img:nth-child(1),
    .domain-img img:nth-child(2) {
        bottom: 40px
    }

    .theme-btn {
        padding: 10px 16px;
    }

    .domain-search-action .theme-btn {
        font-size: 14px;
    }

    .domain-search-action .nice-select {
        height: 36px;
        line-height: 32px;
    }

    .selling-point-bx {
        padding: 43px 35px 40px;
        margin-bottom: 30px;
    }

    .selling-point-bx-img {
        text-align: center;
        margin-bottom: 30px;
    }

    .counter-up-list {
        margin-right: 0px;
        margin-bottom: 30px;
        gap: 20px;
    }

    .counter-up-bx {
        padding: 20px 30px 20px 20px;
    }

    .counter-up-bx-content h3 {
        font-size: 20px;
    }

    .counter-up-bx-img img {
        width: 26px;
    }

    .counter-up-bx-content p {
        font-size: 14px;
    }

    .why-choose-img {
        text-align: center;
    }

    .testimonial-item-wrap {
        padding: 40px 40px 50px 40px;
        min-height: auto;
    }

    .testimonial-content-two svg {
        margin-bottom: 20px;
    }

    .testimonial-content-two p {
        font-size: 20px;
    }

    .support-img {
        text-align: center !important;
        margin-bottom: 30px;
    }

    .support-content .section-header {
        margin-bottom: 0px;
    }

    .faq-sec .accordion-button {
        padding: 16px 25px 16px 18px;
        font-size: 18px;
    }

    .faq-sec .accordion-body p {
        font-size: 16px;
    }

    .blog-bx {
        margin-bottom: 30px;
    }

    .get-started-sec {
        flex-direction: column;
    }

    .footer-content {
        padding-right: 0px;
        margin-bottom: 20px;
    }

    .footer-bx ul li {
        margin-bottom: 10px;
    }

    .footer-bx h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .data-center-map-item {
        margin: 0px;
    }

    .inner-banner-content {
        width: 100%;
        padding-bottom: 40px;
    }

    .inner-banner-sec {
        padding: 120px 0 0;
    }

    .hosting-plan {
        margin-bottom: 30px;
    }

    .testimonail-slider {
        margin-right: 0;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .assistance-box {
        margin-bottom: 30px;
    }

    .seemless-sec-bx {
        margin-bottom: 30px;
    }

    .about-us-countdown-bx {
        margin-bottom: 30px;
    }

    .home-2 .banner-content {
        margin-bottom: 30px;
    }

    .home-2-count-up {
        margin-bottom: 30px;
    }

    .home-tab-2-content h4 {
        margin-bottom: 40px;
    }

    .home-tab-2-content {
        margin-bottom: 30px;
    }

    .home-tab-2-content-img {
        text-align: center;
    }

    .tailor-hosting-slider {
        margin-right: 0px;
    }
}

@media(max-width:767px) {
    .banner-img {
        padding: 40px;
        margin: 0;
    }

    .banner-img .hero-img-shape-2 {
        right: 0px;
        top: 15%;
        max-width: 90px;
    }

    .banner-img .hero-img-shape-1 {
        position: absolute;
        right: 14px;
        bottom: 60px;
        height: 33px;
    }

    .header-right-content .dropdown,
    .header-right-content .theme-btn {
        display: none;
    }

    .banner-content h2 {
        font-size: 42px;
    }

    .banner-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .banner-content ul {
        margin-bottom: 20px;
    }

    .banner-content ul li {
        font-size: 14px;
    }

    .banner-content h4 {
        font-size: 16px;
    }

    .rating-star {
        font-size: 20px;
    }

    .banner-review {
        margin-top: 20px;
    }

    .banner-review p {
        margin-bottom: 0;
    }

    .banner-sec {
        padding: 110px 0 50px;
    }

    .counter-up-list {
        flex-direction: column;
    }

    .counter-up-bx {
        width: 100%;
    }

    .benefit-list ul li {
        width: 100%;
    }

    .data-center-locations .nav {
        padding: 8px;
        justify-content: center;
        margin: 0px auto 20px;
    }

    .data-center-locations .nav .nav-link {
        font-weight: 500;
        font-size: 14px;
        padding: 8px 16px;
    }

    .data__center-price a {
        font-size: 14px;
    }

    .support-content {
        padding-left: 0px;
    }

    .section-header h3 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .footer-top {
        padding: 50px 20px 24px;
        border-radius: 8px;
    }

    .footer-bx {
        margin-bottom: 30px;
    }

    .footer-bottom-content {
        text-align: center;
    }

    .footer-bottom-content-right {
        text-align: center !important;
        margin-top: 10px;
    }

    .footer-wrap-content span {
        font-size: 12px;
    }

    .footer-wrap-right-content {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-wrap-content {
        justify-content: center;
    }

    .scroll-top-btn {
        width: 35px;
        height: 35px;
        border-radius: 4px;
        right: 20px;
        bottom: 20px;
    }

    .wordpress-hosting-feature {
        border-radius: 12px;
        padding: 70px 40px;
    }

    .testi-text p {
        flex-direction: column;
    }

    .hosting-plan a {
        position: relative;
        z-index: 1;
    }

    .support-sec-three-box {
        padding: 16px;
    }

    .support-icon,
    .support-list {
        position: relative;
        z-index: 1;
    }

    .support-sec-three-box .section-header h3 {
        font-size: 24px;
    }

    .support-box-two {
        padding: 40px 50px;
    }

    .transfer-domain-seemless-sec .seemless-sec {
        padding: 70px 30px 50px;
        border-radius: 20px;
    }

    .about-why-choose {
        padding: 46px 30px;
    }
}

@media(max-width:580px) {
    .header-logo img {
        max-height: 30px;
    }

    .header-inner {
        padding: 15px 0px;
    }

    .domain-search-box {
        border: 1px solid #00b19a;
        padding: 10px;
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.4);
        border-radius: 30px;
        margin-bottom: 20px;
    }

    .domain-search-action {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 10px;
        justify-content: center;
    }

    .domain-search-box .form-control {
        border: none;
        padding: 12px 20px 12px 40px;
        height: 44px;
        box-shadow: none;
    }

    .domain-search-box svg {
        left: 16px;
        top: 33px;
    }

    .domain-img {
        display: none;
    }

    .domain-list ul {
        width: 100%;
        gap: 10px 16px;
    }

    .domain-list ul li {
        font-size: 16px;
    }

    .view-more-btn {
        margin-top: 30px;
    }

    .domain-search {
        padding: 50px 20px;
    }

    .selling-point-bx-content h4 {
        font-size: 24px;
    }

    .section-header h3 {
        font-size: 24px;
    }

    .seemless-website-bx-content h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .testimonial-item-wrap {
        padding: 20px 20px 30px 20px;
    }

    .seemless-website-bx-content p {
        font-size: 16px;
    }

    .testimonial-content-two p {
        font-size: 16px;
    }

    .section-pad {
        padding: 60px 0px;
    }

    .faq-sec .accordion-button {
        padding: 10px 16px 10px 10px;
        font-size: 16px;
    }

    .blog-bx-content h4 {
        font-size: 20px;
    }

    .blog-bx-content p {
        font-size: 14px;
    }

    .banner-img {
        padding: 10px;
    }

    .banner-content h2 {
        font-size: 30px;
    }

    .list-wrap li {
        font-size: 14px;
    }

    .banner-review {
        display: block;
    }

    .features-box {
        padding: 20px;
        height: auto;
        min-height: auto;
        margin-bottom: 20px;
    }

    .features-box-title {
        margin-bottom: 20px;
    }

    .features-box-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .selling-point-bx-content ul li {
        font-size: 14px;
    }

    .section-header p {
        font-size: 14px;
    }

    .section-header,
    .section-header.text-center {
        margin-bottom: 30px;
    }

    .benefit-list ul li {
        font-size: 14px;
    }

    .inner-banner-content h2 {
        font-size: 32px;
    }

    .pricing-bx {
        padding: 20px;
        margin-bottom: 20px;
    }

    .pricing-bx-content h3 {
        font-size: 30px;
    }

    .pricing-bx-feature ul li {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .price-action-btn {
        padding: 8px 20px;
    }

    .pricing-bx-content p {
        margin-bottom: 24px;
    }

    .selling-point-bx {
        padding: 30px 30px 20px;
    }

    .testimonial-bx {
        padding: 20px 16px;
        min-height: auto;
    }

    .testimonial-bx-content p {
        font-size: 14px;
    }

    .testimonial-bx-info h4 {
        font-size: 16px;
    }

    .support-box-two {
        padding: 20px 30px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    /* =========================================
   CRITICAL HERO RESPONSIVE FIXES (REVISED)
   ========================================= */

    /* TABLET & MOBILE SHARED (Max-width: 991px) */
    @media (max-width: 991px) {

        /* 1. Stack Content Vertically */
        .hosting-hero .row {
            flex-direction: column !important;
            text-align: center;
            gap: 0;
            /* Remove gap */
        }

        .hosting-hero .col-lg-6 {
            width: 100%;
            max-width: 100%;
            padding: 0;
        }

        /* 2. Hero Content - Tighter Metrics */
        .hero-content {
            padding-top: 20px;
            padding-bottom: 20px;
            margin: 0 auto;
            max-width: 700px;
        }

        .hero-content h1 {
            font-size: 32px !important;
            /* Smaller than desktop */
            line-height: 1.2;
            margin-bottom: 15px;
            letter-spacing: -0.5px;
        }

        .hero-content p {
            font-size: 16px !important;
            line-height: 1.5;
            margin-bottom: 25px;
            padding: 0 10px;
            color: #4b5563;
            /* Ensure readability */
        }

        /* 3. Domain Search - Compact */
        .hero-domain-search {
            margin-bottom: 25px;
        }

        /* 4. Hero Buttons */
        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 5px;
            /* Minimal bottom margin */
            flex-wrap: wrap;
        }

        /* 5. Hero SVG - Controlled Visibility */
        .hero-illustration,
        .banner-content-img {
            margin-top: 0 !important;
            /* Pull up closer */
            padding: 0 !important;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            /* Top align */
        }

        .hero-hosting-svg {
            max-width: 450px !important;
            /* Tablet max width */
            width: 100%;
            height: auto;
        }

        /* Remove padding from the section itself if needed */
        .hosting-hero .container {
            padding-top: 0;
            padding-bottom: 0;
        }
    }

    /* MOBILE SPECIFIC (Max-width: 767px) */
    @media (max-width: 767px) {

        /* Override Section Padding */
        .hosting-hero,
        .section-pad {
            padding-top: 60px !important;
            /* Account for fixed header if any */
            padding-bottom: 40px !important;
        }

        .hosting-hero .container {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }

        /* Typography */
        .hero-content h1 {
            font-size: 26px !important;
            margin-bottom: 12px;
        }

        .hero-content p {
            font-size: 14px !important;
            margin-bottom: 20px;
            max-width: 100%;
        }

        /* Domain Search - Full Stack */
        .hero-domain-search form {
            background: transparent !important;
            border: none !important;
            padding: 0 !important;
        }

        .hero-domain-search input.form-control {
            width: 100% !important;
            padding: 0 15px !important;
            text-align: center;
            margin-bottom: 10px !important;
            border-radius: 50px !important;
            height: 48px !important;
            /* Slightly more compact */
            font-size: 14px;
        }

        .hero-domain-search button.theme-btn {
            position: static !important;
            width: 100% !important;
            margin-top: 8px !important;
            height: 48px !important;
            display: block !important;
            font-size: 16px;
        }

        /* Hero SVG - Mobile Optimized */
        .hero-hosting-svg {
            max-width: 320px !important;
            /* Smaller on mobile to fit fold */
            margin-top: 10px;
        }
    }

    /* SMALL MOBILE (Max-width: 380px) */
    @media (max-width: 380px) {
        .hero-content h1 {
            font-size: 24px !important;
        }

        .hero-hosting-svg {
            max-width: 280px !important;
        }

        .hero-buttons .btn {
            width: 100%;
            /* Stack buttons on tiny screens */
            margin-bottom: 10px;
        }
    }

    /* RTL FIXES */
    @media (max-width: 991px) {
        [dir="rtl"] .hero-content {
            text-align: center !important;
        }

        [dir="rtl"] .hero-domain-search input {
            text-align: center !important;
        }

        [dir="rtl"] .hero-buttons {
            flex-direction: row;
            justify-content: center;
        }
    }

    /* =========================================
   HOSTING CARDS SLIDER FIX
   ========================================= */
    @media (max-width: 575px) {
        .tailor-hosting-slider .swiper-slide {
            width: 100% !important;
            height: auto !important;
        }

        .home-2-feature-bx {
            min-height: auto;
            height: 100%;
            margin-bottom: 20px;
        }
    }

    @media (min-width: 576px) and (max-width: 991px) {

        /* Tablet cards */
        .home-2-feature-bx {
            padding: 24px;
        }

        .home-2-feature-bx h4 {
            font-size: 18px;
        }
    }

    /* =========================================
   PRICING CARDS MOBILE SPACING
   ========================================= */
    @media (max-width: 991px) {

        .pricing-bx,
        .pricing-card-new,
        .price-bx,
        .hosting-plan,
        [class*="col-lg-4"]>.pricing-bx,
        [class*="col-md-6"]>.pricing-bx {
            margin-bottom: 30px !important;
        }
    }

    /* =========================================
   STEP-BOX MOBILE ALIGNMENT FIX
   ========================================= */
    @media (max-width: 991px) {
        .how-works-timeline .row {
            flex-direction: column !important;
        }

        .how-works-timeline [class*="col-"] {
            width: 100% !important;
            max-width: 100% !important;
            flex: 0 0 100% !important;
            margin-bottom: 40px;
        }

        .how-works-timeline .step-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .how-works-timeline .step-number {
            margin: 0 auto 20px;
        }

        .how-works-timeline .step-icon {
            margin: 0 auto 20px;
        }
    }