/*-----------------------------------------------------------------------------------
    Comprehensive Responsive Styles
    Covers: iPhone SE, iPhone XR, iPhone 12 Pro, iPhone 14 Pro Max,
            Pixel 7, Galaxy S8+, S20 Ultra, A51/71, Galaxy Z Fold 5,
            Surface Duo, Asus Zenbook Fold,
            iPad Mini, iPad Air, iPad Pro, Surface Pro 7,
            Nest Hub, Nest Hub Max
-----------------------------------------------------------------------------------*/

/* ═══════════════════════════════════════════════════════
   GLOBAL BASE — applies to all screen sizes
═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Mobile Menu Wrapper Base */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    visibility: hidden;
    transition: visibility 0.3s;
}

/* Hide mobile menu drawer on desktop */
@media (min-width: 992px) {
    .mobile-menu-wrapper {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≥ 1280px  — Nest Hub Max (1280×800), large desktops
═══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .jsw-logo-section {
        width: 420px;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 1199px  — slightly smaller desktops
═══════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .jsw-logo-section {
        width: 420px;
        min-width: auto;
    }

    .jsw-main-nav-section ul li {
        margin-left: 15px;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 1024px  — iPad Pro (1024×1366), Surface Pro 7 (landscape),
               Nest Hub (1024×600), Asus Zenbook Fold
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .jsw-logo-section {
        width: 350px;
    }

    .jsw-main-nav-section ul li {
        margin: 0 10px;
    }

    .jsw-main-nav-section ul li a {
        font-size: 13px;
    }

    /* Hero height for tablets in landscape */
    .hero3-section-area {
        height: 65vh;
    }

    /* Privilege hero */
    .privilege-hero {
        height: 380px;
    }

    /* Benefit grid — 2 columns */
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 991px  — Tablets portrait, mobile nav trigger
              iPad Mini portrait (768), iPad Air (820)
═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {

    /* ── Header & Nav ── */
    .jsw-header {
        display: flex;
        flex-wrap: wrap;
    }

    .jsw-top-tier {
        display: contents;
    }

    /* Hide second nav bar on mobile */
    .jsw-bottom-tier {
        display: none !important;
    }

    /* ROW 1: Logo left, hamburger right */
    .jsw-logo-section {
        order: 1;
        width: 60%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 15px;
        background: #1D4289 !important;
        position: sticky;
        top: 0;
        z-index: 10006;
        border-bottom: none !important;
    }

    .desktop-logo {
        display: none !important;
    }

    .mobile-logo {
        display: block !important;
        max-height: 42px !important;
        width: auto;
        object-fit: contain;
    }

    .jsw-main-nav-section {
        order: 2;
        width: 40%;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 50px;
        position: sticky;
        top: 0;
        background: #1D4289 !important;
        border-bottom: none !important;
        z-index: 10006;
    }

    /* Hide desktop nav links */
    .jsw-main-nav-section ul {
        display: none !important;
    }

    /* Hamburger */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: none;
        color: #fff !important;
        font-size: 28px;
        cursor: pointer;
        outline: none;
        padding: 0;
    }

    .hamburger-bottom,
    .jsw-secondary-nav {
        display: none !important;
    }

    /* Override sticky logic for mobile */
    .jsw-bottom-tier.is-sticky {
        position: sticky !important;
        top: 0 !important;
        width: 40% !important;
        box-shadow: none !important;
        animation: none !important;
    }

    /* ── Hero sections ── */
    .jsw-hero-container {
        height: 350px;
    }

    .jsw-hero-bg {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .breadcrumb-height {
        min-height: 180px !important;
    }

    .hero3-section-area {
        height: 60vh;
    }

    /* ── Mobile Drawer ── */
    .mobile-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20000;
        visibility: hidden;
        transition: visibility 0.35s;
    }

    .mobile-menu-wrapper.open {
        visibility: visible;
    }

    .mobile-menu-content {
        position: absolute;
        top: 0;
        right: -85%;
        width: 85%;
        max-width: 380px;
        height: 100%;
        background-color: #1D4289;
        z-index: 10002;
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: flex;
        flex-direction: column;
        box-shadow: none;
    }

    .mobile-menu-wrapper.open .mobile-menu-content {
        right: 0;
    }

    .mobile-menu-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10001;
        opacity: 0;
        transition: opacity 0.35s;
    }

    .mobile-menu-wrapper.open .mobile-menu-overlay {
        opacity: 1;
    }

    .mobile-menu-header {
        background: #fff;
        padding: 12px 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        border-bottom: 2px solid #eee;
        min-height: 70px;
    }

    .mobile-menu-logo img {
        max-height: 50px;
        width: auto;
        object-fit: contain;
    }

    .mobile-menu-close {
        position: absolute;
        top: 10px;
        right: 14px;
        background: none;
        border: none;
        color: #1D4289;
        font-size: 26px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10005;
        line-height: 1;
    }

    .mobile-menu-body {
        flex-grow: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-nav li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-nav li>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 25px;
        color: #fff;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 19px;
        font-family: 'Rajdhani', sans-serif;
        letter-spacing: 0.5px;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav li>a:hover,
    .mobile-nav li.active>a {
        background: rgba(255, 255, 255, 0.07);
        color: #FF8C00;
    }

    /* Sub-menu */
    .mobile-nav .sub-menu {
        display: none;
        list-style: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.15);
    }

    .mobile-nav .sub-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-top: none;
    }

    .mobile-nav .sub-menu li a {
        padding: 8px 45px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: rgba(255, 255, 255, 0.85);
    }

    .mobile-nav .sub-menu li a:hover {
        background: rgba(255, 140, 0, 0.25);
        color: #FF8C00;
    }

    .mobile-nav li.has-sub.active>.sub-menu {
        display: block;
    }

    .mobile-nav li.has-sub>a i {
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .mobile-nav li.has-sub.active>a i {
        transform: rotate(180deg);
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* Quick Connect */
    .quick-connect {
        padding: 25px 20px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .quick-connect-title {
        color: rgba(255, 255, 255, 0.6);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .quick-btns {
        display: flex;
        gap: 12px;
        margin-bottom: 20px;
    }

    .quick-btns a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 10px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        transition: transform 0.2s, opacity 0.2s;
    }

    .quick-btns a:active {
        transform: scale(0.96);
    }

    .btn-call {
        background-color: #d1a53e;
        color: #000 !important;
    }

    .btn-whatsapp {
        background-color: #25d366;
        color: #fff !important;
    }

    .contact-numbers p {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        margin: 5px 0;
        letter-spacing: 0.5px;
    }

    /* ── Contact Page ── */
    .contact-header h1 {
        font-size: 26px !important;
    }

    .contact-header {
        margin-bottom: 20px !important;
    }

    .contact-layout {
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
    }

    .sidebar-banner {
        flex: none;
        width: 100%;
        max-width: 360px;
        margin-bottom: 0 !important;
    }

    .form-section {
        margin-top: 0 !important;
        text-align: center;
        width: 100%;
    }

    .form-section h5 {
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }

    .form-section p {
        margin-bottom: 15px !important;
    }

    .form-grid {
        text-align: left;
    }

    /* ── Colour Shade Selector ── */
    .shade-container {
        flex-direction: column;
    }

    .selector-controls {
        border-left: none;
        padding-left: 0;
        flex: none;
        width: 100%;
    }

    .preview-display {
        padding-right: 0;
        width: 100%;
    }

    /* ── Hero Slider spacing ── */
    .jsw-hero-slider {
        margin-bottom: 0 !important;
    }

    .product-gallery-area {
        padding: 10px 0 !important;
    }

    .product-gallery-area .section-title.mb-60 {
        margin-bottom: 10px !important;
    }

    /* ── Privilege Hero ── */
    .privilege-hero {
        height: 280px;
        margin-top: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 912px  — Surface Pro 7 portrait, Asus Zenbook Fold in fold state
═══════════════════════════════════════════════════════ */
@media (max-width: 912px) {
    .hero3-section-area {
        height: 55vh;
    }

    /* Privilege Club sidebar stacks above content on tablets */
    .privilege-body .col-sm-3,
    .privilege-body .col-sm-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .sidebar-nav-box {
        margin-bottom: 25px;
    }

    /* Branch page sidebar + content */
    .body-inside .col-sm-4,
    .body-inside .col-sm-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .body-inside .col-sm-4.sidebar-nav {
        margin-bottom: 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 820px  — iPad Air (820×1180)
═══════════════════════════════════════════════════════ */
@media (max-width: 820px) {
    .hero3-section-area {
        height: 50vh;
    }

    .breadcrumb-height {
        min-height: 150px !important;
    }

    /* Design page items — 2 per row */
    .design-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
    }

    .design-item {
        width: calc(50% - 20px) !important;
        max-width: 360px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 768px  — iPad Mini (768×1024), modal + feature grid
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Modal */
    .modal-body-split {
        flex-direction: column;
    }

    /* Feature Grid — 3 cols */
    .jsw-features-grid {
        padding-bottom: 30px;
    }

    .feature-grid-row {
        gap: 8px;
        margin-bottom: 25px;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .feature-item {
        width: calc(33.33% - 12px);
        min-width: 90px;
        margin: 8px 0;
    }

    .feature-icon-circle {
        width: 75px;
        height: 75px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px dashed #214391;
    }

    .feature-icon-circle img {
        max-width: 60%;
    }

    .feature-title {
        font-size: 12px;
        min-height: 24px;
        line-height: 1.2;
    }

    /* Feature Detail */
    .jsw-features-details {
        padding-top: 0;
    }

    .feature-detail-item {
        padding: 30px 0;
    }

    .feature-detail-item::before {
        top: -15px;
    }

    .feature-detail-item:first-child {
        padding-top: 0;
    }

    .feature-detail-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .feature-detail-circle {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }

    .feature-detail-row {
        flex-direction: column;
        max-width: 100%;
    }

    .feature-detail-card {
        padding: 20px;
        margin-left: 0;
        margin-top: 15px;
        min-height: auto;
        border-radius: 8px;
    }

    .feature-detail-row-reverse {
        flex-direction: column;
    }

    .feature-detail-row-reverse .feature-detail-card {
        margin-right: 0;
        padding: 20px;
    }

    .feature-detail-card ul li {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Design items — full width */
    .design-item {
        width: 100% !important;
        max-width: 450px !important;
        margin: 0 auto 30px !important;
    }

    .design-item a:active,
    .design-item a:focus {
        transform: translateY(-5px) !important;
        box-shadow: none !important;
        border: 2px solid #1d4289 !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 767px  — Mobile phones (all Android/iPhone models above 575px)
═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── Hero ── */
    .hero3-section-area {
        height: 30vh;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        padding: 0;
        margin: 0;
    }

    .breadcrumb-height {
        min-height: 100px !important;
    }

    /* Push hero under sticky navbar */
    .jsw-hero-slider-section {
        display: block;
        position: relative;
        z-index: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        margin-top: -50px !important;
        padding-top: 0 !important;
    }

    .home-visaul.inner-visaul {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #header-placeholder {
        height: 50px !important;
        overflow: visible;
    }

    /* ── Privilege Club ── */
    .privilege-hero {
        height: 200px;
    }

    .sidebar-nav-box {
        margin-bottom: 30px;
    }

    /* ── About Page ── */
    .font-size-20 {
        font-size: 16px !important;
    }

    .short-desc {
        font-size: 15px !important;
    }

    .about-img-wrap {
        width: 230px !important;
        height: 130px !important;
        margin: 0 auto 5px !important;
        background: #fff;
        border-radius: 20px !important;
        border-left: 6px solid #f36303 !important;
        box-shadow: none !important;
        overflow: hidden;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-img-wrap .about-img {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .about-img-wrap .about-img img {
        width: 100% !important;
        height: 100% !important;
        min-height: auto !important;
        display: block;
        border-radius: 0 !important;
        object-fit: cover;
        margin: 0 !important;
        padding: 0 !important;
    }

    .section-desc {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .about-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 0 !important;
    }

    .row.align-items-center>div {
        padding-left: 0;
        padding-right: 0;
    }

    .about-area.about-style-2 {
        padding-top: 30px !important;
    }

    .brand-area {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
    }

    .section-title-area.style-01 {
        padding-bottom: 5px !important;
    }

    .section-title span {
        font-size: 14px !important;
    }

    .section-title h2 {
        font-size: 22px !important;
    }

    /* ── Gallery Slider (About page) ── */
    .sriroof-gallery-slider.swiper-container {
        padding: 0 !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
        width: calc(100% + 10px) !important;
    }

    .sriroof-gallery-slider .swiper-slide a {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1.5;
        margin: 5px 0 !important;
        background: #fff;
        border-radius: 25px !important;
        border: 1px solid #eee !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: block;
        overflow: hidden;
    }

    .sriroof-gallery-slider .swiper-slide img {
        height: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        object-fit: cover;
    }

    .sriroof-gallery-slider .swiper-button-next,
    .sriroof-gallery-slider .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .sriroof-gallery-slider .swiper-button-prev {
        left: 10px !important;
    }

    .sriroof-gallery-slider .swiper-button-next {
        right: 10px !important;
    }

    /* ── Products & Features headings ── */
    .product-gallery-area {
        padding: 15px 0 10px !important;
        position: relative;
        z-index: 1;
        clear: both;
    }

    .product-gallery-area .section-title.mb-60 {
        margin-bottom: 10px !important;
        margin-top: 5px !important;
    }

    .product-gallery-area .section-title h2.title,
    .product-gallery-area h2.title {
        font-size: 18px !important;
        margin-bottom: 0 !important;
    }

    .jsw-section-title {
        font-size: 18px !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    /* ── Branch pages hero image ── */
    .home-visaul.inner-visaul img {
        max-height: 220px !important;
        object-fit: cover;
    }

    /* ── Branch page columns stack ── */
    .body-inside .col-sm-4,
    .body-inside .col-sm-8 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .body-inside .col-sm-4.sidebar-nav {
        margin-bottom: 15px;
    }

    /* Branch address block */
    .adress-block h3 {
        font-size: 20px;
    }

    .adress-block h5 {
        font-size: 14px;
    }

    /* ── Contact Page column stack ── */
    .contact-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .sidebar-banner {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .contact-header h1 {
        font-size: 24px !important;
    }

    /* ── Design page ── */
    .design-grid {
        padding: 10px 10px 40px !important;
        gap: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .design-item {
        width: 100% !important;
        max-width: 360px !important;
    }

    /* ── Modal (Design page) ── */
    .jsw-modal-container {
        width: 95% !important;
        max-width: 900px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .modal-body-split {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .modal-split-item {
        width: 100% !important;
    }

    .modal-split-item img {
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .modal-tech-header img {
        width: 100% !important;
        height: auto !important;
    }

    .jsw-modal-header h4 {
        font-size: 15px !important;
    }

    .modal-specs-footer {
        font-size: 13px !important;
    }

    /* ── Privilege Club ── */
    .privilege-body .col-sm-3,
    .privilege-body .col-sm-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .content-card {
        padding: 20px 15px !important;
    }

    /* ── Colour page shade selector ── */
    .shade-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .selector-controls {
        border-left: none !important;
        padding-left: 0 !important;
        flex: none !important;
        width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 575px  — Small phones: Surface Duo (540), plus most Androids
═══════════════════════════════════════════════════════ */
@media (max-width: 575px) {

    /* Contact form grid: 1 column */
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-group.full-width {
        grid-column: 1 !important;
    }

    /* Feature grid padding fix */
    .feature-grid-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .feature-item {
        width: calc(33.33% - 8px);
        min-width: 80px;
    }

    /* Hero: slightly shorter on small phones */
    .hero3-section-area {
        height: 40vh;
    }

    .jsw-hero-container {
        height: 280px;
    }

    /* Colour info-bar stacks */
    .info-bar {
        flex-direction: column !important;
        gap: 5px;
    }

    /* Branch page address inner columns stack */
    .body-inside .content-bx .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 20px;
    }

    /* Benefit grid — 1 column on very small */
    .benefit-grid {
        grid-template-columns: 1fr !important;
    }

    /* Privilege Club sidebar moves to top */
    .sidebar-nav-box {
        margin-bottom: 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 480px  — iPhone SE (375), Pixel 7 (412), Galaxy S8+ (360)
              ~Most common phone widths
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Captcha row stacks on small phones */
    .captcha-row {
        flex-direction: column;
        gap: 10px;
    }

    #captcha-display {
        text-align: center;
    }

    #captcha-input {
        max-width: 100%;
    }

    /* Form buttons stack */
    .form-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-whatsapp,
    .btn-reset {
        width: 100% !important;
        padding: 12px 20px !important;
    }

    /* Feature items */
    .feature-item {
        width: 30% !important;
        min-width: 80px !important;
        margin: 5px auto !important;
    }

    .feature-icon-circle {
        width: 65px;
        height: 65px;
    }

    /* Hero containers */
    .jsw-hero-container {
        height: 250px;
    }

    .hero3-section-area {
        height: 38vh;
    }

    /* Mobile nav font size */
    .mobile-nav li>a {
        font-size: 17px;
        padding: 10px 20px;
    }

    /* Branch image smaller on tiny screens */
    .home-visaul.inner-visaul img {
        max-height: 180px !important;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 20px !important;
    }

    .jsw-section-title {
        font-size: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 430px  — iPhone 14 Pro Max (430×932)
═══════════════════════════════════════════════════════ */
@media (max-width: 430px) {

    .hero3-section-area {
        height: 36vh;
    }

    /* Products grid: ensure cards are wide enough */
    #product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .blog-item img:not(.watermark) {
        height: 130px !important;
    }

    .blog-item .blog-content {
        padding: 6px 8px !important;
        min-height: 60px !important;
    }

    .blog-item .blog-content h4 {
        font-size: 11px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 390px  — iPhone 12 Pro (390×844)
═══════════════════════════════════════════════════════ */
@media (max-width: 390px) {

    .jsw-logo-section {
        padding-left: 10px;
    }

    .mobile-logo {
        max-height: 38px !important;
    }

    .mobile-nav li>a {
        font-size: 15px;
        padding: 10px 16px;
    }

    .hero3-section-area {
        height: 34vh;
    }

    .feature-item {
        min-width: 70px !important;
    }

    .feature-icon-circle {
        width: 58px;
        height: 58px;
    }

    .feature-title {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 375px  — iPhone SE 3rd gen (375×667), most common small phone
═══════════════════════════════════════════════════════ */
@media (max-width: 375px) {

    .hero3-section-area {
        height: 32vh;
    }

    .jsw-hero-container {
        height: 210px;
    }

    /* Tighter card titles */
    .blog-item .blog-content h4 {
        font-size: 10px !important;
        min-height: 30px !important;
    }

    /* Colour grid 3 columns */
    .color-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 360px  — Samsung Galaxy S8+ (360×740)
═══════════════════════════════════════════════════════ */
@media (max-width: 360px) {

    .jsw-logo-section {
        padding-left: 8px;
    }

    .mobile-logo {
        max-height: 34px !important;
    }

    .hero3-section-area {
        height: 30vh;
    }

    .feature-icon-circle {
        width: 54px;
        height: 54px;
    }

    .feature-title {
        font-size: 9px;
    }

    .section-title h2 {
        font-size: 18px !important;
    }

    .mobile-nav li>a {
        font-size: 14px;
        padding: 9px 14px;
    }
}

/* ═══════════════════════════════════════════════════════
   ≤ 344px  — Galaxy Z Fold 5 folded (344×882)
═══════════════════════════════════════════════════════ */
@media (max-width: 344px) {

    .jsw-logo-section {
        width: 55% !important;
        padding-left: 6px;
    }

    .jsw-main-nav-section {
        width: 45% !important;
    }

    .mobile-logo {
        max-height: 30px !important;
    }

    .hamburger {
        font-size: 24px;
    }

    .hero3-section-area {
        height: 28vh;
    }

    .jsw-hero-container {
        height: 190px;
    }

    .feature-item {
        width: 31% !important;
        min-width: 60px !important;
    }

    .feature-icon-circle {
        width: 50px;
        height: 50px;
    }

    .feature-title {
        font-size: 8.5px;
    }

    #product-list {
        gap: 6px !important;
    }

    .blog-item img:not(.watermark) {
        height: 110px !important;
    }

    .blog-item .blog-content h4 {
        font-size: 9px !important;
    }

    .mobile-nav li>a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .quick-btns a {
        font-size: 12px;
        padding: 10px 6px;
    }
}

/* ═══════════════════════════════════════════════════════
   UNIFIED TABLET ZONE — 768px to 1024px
   (Asus Zenbook Fold, Surface Pro 7, iPad Air, iPad Mini)
   Ensures consistent layout across all high-end tablets
═══════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Normalize Hero Height */
    .hero3-section-area {
        height: 55vh !important;
    }

    .breadcrumb-height {
        min-height: 200px !important;
    }

    /* Design Grid — Solid 2 per row for tablets */
    .design-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        padding: 30px !important;
    }

    .design-item {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Products List — 3 per row for tablets (better use of space) */
    #product-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    /* Benefit Grid — 3 per row */
    .benefit-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    /* Sidebars — Ensure they don't stack too early */
    .col-sm-3,
    .col-sm-4 {
        width: 30% !important;
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }

    .col-sm-9,
    .col-sm-8 {
        width: 70% !important;
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }

    /* Branch page adjustment */
    .adress-block h3 {
        font-size: 24px !important;
    }

    .adress-block h5 {
        font-size: 16px !important;
    }

    /* Centering Features for Tablets */
    .feature-grid-row {
        justify-content: center !important;
        gap: 30px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 40px !important;
        width: 100% !important;
    }

    .jsw-features-grid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .feature-item {
        width: calc(33.33% - 20px) !important;
        /* 3 columns for tablets as requested */
        min-width: 150px !important;
        margin: 10px 0 !important;
    }

    .feature-icon-circle {
        width: 100px !important;
        height: 100px !important;
        border: 1px dashed #214391 !important;
        /* Restoring "nice" dashed border */
        background: #fff !important;
        /* White background to make icon pop */
        border-radius: 50% !important;
        margin-bottom: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .feature-icon-circle img {
        max-width: 100% !important;
    }

    .feature-title {
        font-size: 14px !important;
        min-height: 34px !important;
    }

    /* Feature Detail layout - Restore Laptop Style Row/Overlap */
    .feature-detail-row {
        flex-direction: row !important;
        max-width: 760px !important;
        margin: 0 auto !important;
    }

    .feature-detail-row-reverse {
        flex-direction: row-reverse !important;
    }

    .feature-detail-circle {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
    }

    .feature-detail-card {
        padding: 30px 40px 30px 110px !important;
        margin-left: -100px !important;
        margin-top: 0 !important;
        border-radius: 100px !important;
        min-height: 140px !important;
    }

    .feature-detail-row-reverse .feature-detail-card {
        padding: 30px 110px 30px 40px !important;
        margin-right: -100px !important;
        margin-left: 0 !important;
    }

    .feature-detail-card ul li {
        font-size: 15px !important;
    }

    .feature-detail-item::before {
        top: 0 !important;
    }
}