/* ==========================================================================
   DHAKA HOLIDAY - MASTER MULTI-DEVICE RESPONSIVE ENGINE
   Strictly Engineered across Exactly 3 Primary Device Categories:
   1. 📱 PHONE (<768px down to 320px) — Small, Standard, Large, Portrait & Landscape
   2. 📱 TABLET / iPad (768px to 1024px) — Portrait & Landscape
   3. 🖥️ PC / DESKTOP (1024px, 1280px, 1440px, 1920px+)
   Theme: Crimson / Ruby Red & Obsidian Luxury Slate
   ========================================================================== */

/* ==========================================================================
   SECTION 0: UNIVERSAL RESPONSIVE FOUNDATION & OVERFLOW PROTECTION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

img, video, iframe, canvas, svg, object {
    max-width: 100% !important;
    height: auto;
}

/* Ensure no text or words cause horizontal container overflow */
h1, h2, h3, h4, h5, h6, p, a, span, label, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Background Ambient Glow Elements: Strictly constrain within viewport */
.hero-overlay,
.about-hero-glow,
.contact-hero-glow,
div[style*="radial-gradient(circle"] {
    max-width: 100vw !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Navigation Drawer Backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 15, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Hide floating concierge & job button when navigation drawer or modal is open */
body.nav-open .floating-chat-container,
body.nav-open .floating-job-container,
body.nav-open .back-to-top,
.modal-backdrop.open ~ .floating-chat-container,
.modal-backdrop.open ~ .floating-job-container,
.modal-backdrop.open ~ .back-to-top {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

/* ==========================================================================
   SECTION 1: 🖥️ PC / DESKTOP OPTIMIZATIONS (min-width: 1025px)
   ========================================================================== */
@media (min-width: 1025px) {
    .container {
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .site-header .navbar {
        height: 88px;
    }

    .site-header.scrolled .navbar {
        height: 74px;
    }

    .header-main-logo {
        height: 48px !important;
        max-height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .site-header.scrolled .header-main-logo {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
    }

    .mobile-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 2.5rem !important;
        box-shadow: none !important;
    }

    /* Multi-column grids on desktop */
    .packages-grid,
    .holiday-packages-grid,
    .visa-cards-grid,
    .destinations-grid,
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.2rem !important;
    }

    .pillars-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.8rem !important;
    }

    .offices-grid,
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.2rem !important;
    }

    .footer-top {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.1fr !important;
        gap: 2rem !important;
    }
}

/* ==========================================================================
   SECTION 2: 📱 TABLET / iPad OPTIMIZATIONS (768px to 1024px)
   Portrait (768px - 834px) & Landscape (834px - 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1.5rem !important;
    }

    /* Tablet Navigation */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .site-header .navbar {
        height: 78px !important;
    }

    .header-main-logo {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* On tablets <= 992px, use clean mobile hamburger */
    @media (max-width: 992px) {
        .mobile-toggle {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: #F8FAFC;
            color: #0F172A;
            border: 1.5px solid #E2E8F0;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .mobile-toggle:hover,
        .mobile-toggle.active {
            background: #FEE2E2;
            color: #DC2626;
            border-color: rgba(220, 38, 38, 0.4);
        }

        .nav-menu {
            position: fixed;
            top: 78px;
            left: -100%;
            width: 380px;
            max-width: 85vw;
            height: calc(100vh - 78px);
            background: #FFFFFF;
            flex-direction: column;
            align-items: stretch;
            padding: 2rem 1.75rem;
            gap: 0.6rem;
            transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            overflow-y: auto;
            z-index: 10001 !important;
        }

        .nav-menu.open {
            left: 0;
        }
    }

    /* On tablets 993px - 1024px, show compact desktop menu */
    @media (min-width: 993px) {
        .mobile-toggle {
            display: none !important;
        }
        .nav-menu {
            display: flex !important;
            gap: 1.5rem !important;
        }
        .nav-link {
            font-size: 0.95rem !important;
            padding: 0.45rem 0.2rem !important;
        }
    }

    /* Hero Section on Tablet */
    .hero-section {
        padding: 4.5rem 0 3.75rem !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3rem) !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        max-width: 720px;
    }

    /* 2-Column Search Layout on Tablet */
    .search-cards-row,
    .search-cards-row.flight-row,
    .search-cards-row.flight-row.roundtrip-active,
    .search-cards-row.tours-row,
    .search-cards-row.hotels-row,
    .search-cards-row.visa-row,
    .search-cards-row.cruise-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.15rem !important;
    }

    .search-cards-row.hotels-row > :first-child {
        grid-column: 1 / -1;
    }

    .btn-swap-airports {
        grid-column: 1 / -1;
        margin: 0.25rem auto;
        transform: rotate(90deg);
    }

    .search-action-center {
        margin-top: 1.75rem !important;
    }

    .btn-hero-search {
        padding: 0.95rem 3.5rem !important;
        font-size: 1.05rem !important;
        max-width: 100% !important;
    }

    /* Trust Stats Row on Tablet: Exactly 4 balanced stats */
    .hero-stats-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
        margin-top: 2.5rem !important;
        padding-top: 1.75rem !important;
    }

    .hero-stat-item {
        min-width: 0 !important;
    }

    .hero-stat-item .stat-number,
    .hero-stat-num {
        font-size: 1.85rem !important;
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
    }

    .hero-stat-item .stat-number span.plus {
        display: inline !important;
        white-space: nowrap !important;
    }

    .hero-stat-item .stat-label {
        font-size: 0.82rem !important;
    }

    /* All Card Grids on Tablet: Strictly 2 Columns (No awkward 1-column stretching) */
    .packages-grid,
    .holiday-packages-grid,
    .visa-cards-grid,
    .destinations-grid,
    .reviews-grid,
    div[style*="minmax(340px"],
    div[style*="minmax(320px"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.6rem !important;
        max-width: 100% !important;
    }

    .visa-service-card {
        padding: 1.8rem 1.6rem !important;
        border-radius: 18px !important;
    }

    .holiday-card {
        padding: 0 !important;
        border-radius: 20px !important;
    }

    /* Pillars & Concerns on Tablet */
    .pillars-grid,
    .concerns-grid,
    .offices-grid,
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.6rem !important;
    }

    .founder-grid {
        grid-template-columns: 280px 1fr !important;
        gap: 2rem !important;
    }

    /* Detail Pages on Tablet */
    .package-single-banner {
        height: 340px !important;
        margin-bottom: 2rem !important;
    }
    .package-gallery-grid {
        grid-template-columns: 1fr 1fr !important;
        height: 320px !important;
    }

    .package-detail-layout,
    .visa-detail-layout,
    .contact-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .package-sidebar-col {
        position: static !important;
        width: 100% !important;
    }

    /* Custom Trip on Tablet */
    .custom-trip-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }

    /* Footer on Tablet: 2 Columns */
    .footer-top {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem !important;
    }

    .footer-bottom {
        flex-direction: row !important;
        justify-content: space-between !important;
        text-align: left !important;
    }
}

/* ==========================================================================
   SECTION 3: 📱 PHONE OPTIMIZATIONS (<768px down to 320px)
   Covers Small (320-360px), Standard (375-414px), Large (414-480px),
   and Landscape (480-768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    .container {
        padding: 0 1.15rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mobile Header */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 10000 !important;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    }

    .site-header .navbar {
        height: 70px !important;
    }

    .site-header.scrolled .navbar {
        height: 62px !important;
    }

    .header-brand-wrap {
        max-width: calc(100% - 56px) !important;
        display: flex;
        align-items: center;
    }

    .header-main-logo {
        height: 38px !important;
        max-height: 38px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .site-header.scrolled .header-main-logo {
        height: 33px !important;
        max-height: 33px !important;
        width: auto !important;
    }

    /* Mobile Hamburger Toggle (Minimum 44x44px Touch Target) */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px;
        background: #F8FAFC;
        color: #0F172A;
        border: 1.5px solid #E2E8F0;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-toggle:hover,
    .mobile-toggle.active {
        background: #FEE2E2;
        color: #DC2626;
        border-color: rgba(220, 38, 38, 0.35);
    }

    /* Mobile Navigation Drawer */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 320px !important;
        max-width: 86vw !important;
        height: calc(100vh - 70px) !important;
        background: #FFFFFF !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1.75rem 1.4rem !important;
        gap: 0.5rem !important;
        transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 10001 !important;
    }

    .nav-menu.open {
        left: 0 !important;
    }

    .nav-link {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        width: 100% !important;
        padding: 0.85rem 1.15rem !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        color: #1E293B !important;
        min-height: 46px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #FEF2F2 !important;
        color: #DC2626 !important;
        padding-left: 1.35rem !important;
    }

    /* Prevent auto-zoom on iOS when tapping inputs */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Hero Section on Phones */
    .hero-section {
        padding: 3.25rem 0 2.5rem !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.4rem) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 0.65rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.75rem !important;
    }

    /* Swipeable Hero Search Tabs */
    .hero-search-container {
        padding: 0;
        background: #FFFFFF !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
        width: 100% !important;
    }

    .search-tabs-nav {
        justify-content: flex-start !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        width: 100% !important;
        padding: 0.4rem 0.65rem 0 !important;
        gap: 0.35rem !important;
        border-bottom: 1px solid #F1F5F9 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        scroll-padding-left: 0.65rem;
    }

    .search-tabs-nav::-webkit-scrollbar {
        display: none !important;
    }

    .search-tab-btn {
        padding: 0.75rem 0.95rem !important;
        font-size: 0.88rem !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
        border-radius: 8px 8px 0 0 !important;
        min-height: 44px !important;
    }

    .hero-search-box {
        padding: 1.25rem 1rem 1.6rem !important;
        border-radius: 0 0 20px 20px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* 1-Column Search on Phones */
    .search-cards-row,
    .search-cards-row.flight-row,
    .search-cards-row.flight-row.roundtrip-active,
    .search-cards-row.tours-row,
    .search-cards-row.hotels-row,
    .search-cards-row.visa-row,
    .search-cards-row.cruise-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .custom-dropdown-menu {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: 260px !important;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    }

    .btn-hero-search {
        width: 100% !important;
        padding: 0.95rem 1.5rem !important;
        font-size: 1.05rem !important;
        height: 52px !important;
        margin-top: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Trust Stats Row on Mobile: Exactly 2x2 Grid */
    .hero-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.85rem !important;
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
        width: 100% !important;
        max-width: 480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .hero-stat-item {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 14px !important;
        padding: 0.95rem 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .hero-stat-item .stat-number,
    .hero-stat-num {
        font-size: 1.6rem !important;
        line-height: 1.15 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        color: #FFFFFF !important;
    }

    .hero-stat-item .stat-number span.plus {
        display: inline !important;
        white-space: nowrap !important;
        color: #FF6B6B !important;
        font-size: 0.88em !important;
        font-weight: 800 !important;
    }

    .hero-stat-item .stat-label {
        font-size: 0.76rem !important;
        color: #94A3B8 !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        margin-top: 0.35rem !important;
        text-align: center !important;
    }

    /* All Card Grids Stack into 1 Column on Mobile */
    .packages-grid,
    .holiday-packages-grid,
    .visa-cards-grid,
    .destinations-grid,
    .reviews-grid,
    .pillars-grid,
    .concerns-grid,
    .offices-grid,
    .mission-vision-grid,
    div[style*="minmax(340px"],
    div[style*="minmax(320px"],
    div[style*="minmax(280px"],
    div[style*="minmax(260px"],
    div[style*="minmax(240px"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.35rem !important;
        width: 100% !important;
    }

    .visa-service-card,
    .pillar-card,
    .head-card,
    .concern-card,
    .office-card {
        padding: 1.6rem 1.3rem !important;
        border-radius: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .holiday-card {
        padding: 0 !important;
        border-radius: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Action Buttons inside Cards on Mobile */
    .visa-service-card div[style*="grid-template-columns: 1fr 1fr"],
    .holiday-card div[style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }

    .visa-service-card .btn,
    .holiday-card .btn {
        font-size: 0.88rem !important;
        padding: 0.8rem 0.5rem !important;
        min-height: 44px !important;
    }

    /* Section Headings */
    .section-title,
    h2[style*="font-size: 2.8rem"],
    h2[style*="font-size: 3.2rem"],
    .about-section-heading {
        font-size: clamp(1.75rem, 5vw, 2.3rem) !important;
        line-height: 1.25 !important;
    }

    /* Detail Pages on Mobile */
    .package-single-banner {
        height: 240px !important;
        margin-bottom: 1.75rem !important;
        border-radius: var(--radius-lg) !important;
    }
    .package-gallery-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        margin-bottom: 1.75rem !important;
    }

    .gallery-main-col {
        height: 240px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .gallery-sub-col {
        display: none !important;
    }

    .package-detail-layout,
    .visa-detail-layout,
    .contact-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .package-sidebar-col,
    .package-sidebar-card,
    .package-content-card,
    .contact-form-card,
    .contact-info-card,
    .air-ticket-card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Trip Type Pills on air-ticket.php */
    #tripTypeContainer {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .trip-type-label {
        padding: 0.85rem 1rem !important;
        min-height: 44px !important;
    }

    .air-submit-btn {
        padding: 1.05rem 1.25rem !important;
        font-size: 1.05rem !important;
        width: 100% !important;
    }

    /* Custom Trip Page */
    .custom-tour-banner {
        padding: 1.6rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .custom-trip-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .hotel-tier-select {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .estimated-price-box {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: left !important;
        padding: 1.25rem !important;
    }

    /* Tables Mobile Styling */
    div[style*="overflow-x: auto"] {
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    div[style*="overflow-x: auto"] table {
        min-width: 480px !important;
    }

    div[style*="overflow-x: auto"] th,
    div[style*="overflow-x: auto"] td {
        padding: 0.75rem 0.85rem !important;
        font-size: 0.88rem !important;
    }

    /* Modals & Booking Wizard on Mobile */
    .modal-backdrop {
        padding: 0.75rem !important;
    }

    .modal-container {
        width: 100% !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 18px !important;
        max-height: 92vh !important;
    }

    .modal-close-btn {
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .wizard-steps-header {
        padding: 0.75rem 0.65rem !important;
        overflow-x: auto !important;
    }

    .step-label {
        display: none !important;
    }

    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* FAQ Details & Summary on Mobile */
    .seo-faq-item summary {
        font-size: 0.98rem !important;
        gap: 0.5rem;
    }

    .seo-faq-item summary span[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Footer on Mobile */
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 2.25rem !important;
        text-align: left !important;
    }

    .footer-brand {
        text-align: left !important;
    }

    .footer-socials {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    .footer-sister-concern {
        align-items: center !important;
        text-align: center !important;
    }

    .sister-logos-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    .sister-logo-card {
        padding: 8px 14px !important;
    }

    /* Floating Job Application Button (Left Side) */
    .floating-job-container {
        bottom: 24px !important;
        left: 16px !important;
        right: auto !important;
        z-index: 950 !important;
    }

    .floating-job-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .floating-job-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    .floating-job-top-badge {
        font-size: 0.65rem !important;
        padding: 0.22rem 0.55rem !important;
        bottom: calc(100% + 5px) !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Floating Chat Buttons (Right Side) */
    .floating-chat-container {
        bottom: 16px !important;
        right: 16px !important;
        left: auto !important;
        gap: 10px !important;
        z-index: 950 !important;
    }

    .floating-chat-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .floating-chat-btn svg {
        width: 25px !important;
        height: 25px !important;
    }

    .back-to-top {
        bottom: 135px !important;
        right: 19px !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 940 !important;
    }
}

/* ==========================================================================
   SECTION 4: 📱 SMALL MOBILE PHONES (max-width: 480px down to 320px)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.85rem !important;
    }

    .site-header .navbar {
        height: 64px !important;
    }

    .site-header.scrolled .navbar {
        height: 56px !important;
    }

    .header-brand-wrap {
        max-width: calc(100% - 50px) !important;
    }

    .header-main-logo {
        height: 32px !important;
        max-height: 32px !important;
        width: auto !important;
    }

    .site-header.scrolled .header-main-logo {
        height: 28px !important;
        max-height: 28px !important;
        width: auto !important;
    }

    .mobile-toggle {
        width: 40px !important;
        height: 40px !important;
    }

    .nav-menu {
        top: 64px !important;
        height: calc(100vh - 64px) !important;
        padding: 1.4rem 1.15rem !important;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2rem) !important;
    }

    .hero-subtitle {
        font-size: 0.88rem !important;
    }

    .hero-search-box {
        padding: 1rem 0.75rem 1.4rem !important;
    }

    .search-tab-btn {
        padding: 0.65rem 0.8rem !important;
        font-size: 0.82rem !important;
    }

    .search-input-card {
        padding: 0.75rem 0.85rem !important;
    }

    .hero-stats-row {
        gap: 0.65rem !important;
    }

    .hero-stat-item {
        padding: 0.75rem 0.35rem !important;
        border-radius: 12px !important;
    }

    .hero-stat-item .stat-number,
    .hero-stat-num {
        font-size: 1.35rem !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }

    .hero-stat-item .stat-label {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    .visa-service-card {
        padding: 1.35rem 1rem !important;
    }

    .holiday-card {
        padding: 0 !important;
    }

    /* Stack card buttons if very narrow (<360px) */
    @media (max-width: 360px) {
        .visa-service-card div[style*="grid-template-columns: 1fr 1fr"],
        .holiday-card div[style*="grid-template-columns: 1fr 1fr"] {
            grid-template-columns: 1fr !important;
            gap: 0.5rem !important;
        }
        .header-main-logo {
            height: 27px !important;
        }
    }

    .footer-logo-badge {
        padding: 6px 14px !important;
        border-radius: 12px !important;
    }

    .footer-main-logo {
        height: 38px !important;
    }

    .modal-container {
        border-radius: 14px !important;
    }
}

/* ==========================================================================
   SECTION 5: 📱 PHONE LANDSCAPE ORIENTATION (Short Height Optimization)
   ========================================================================== */
@media (max-width: 767.98px) and (orientation: landscape) {
    .site-header .navbar {
        height: 56px !important;
    }

    .nav-menu {
        top: 56px !important;
        height: calc(100vh - 56px) !important;
        padding: 1.25rem 1.5rem !important;
    }

    .hero-section {
        padding: 2.25rem 0 2rem !important;
    }

    .modal-container {
        max-height: 86vh !important;
    }
}

/* ==========================================================================
   SECTION 6: 🏆 RESPONSIVE TOPBAR & HEADER CTA OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 992px) {
    .topbar .container {
        justify-content: center !important;
        text-align: center;
    }
    .topbar-contact {
        display: none !important;
    }
    .btn-header-cta {
        display: none !important;
    }
    .mobile-drawer-cta {
        display: block !important;
        margin-top: 1.5rem !important;
        padding-top: 1.25rem !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0.35rem 0 !important;
    }
    .topbar-sister-badge {
        font-size: 0.72rem !important;
        gap: 0.4rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .topbar-sister-badge .badge-icon {
        width: 17px !important;
        height: 17px !important;
    }
    .topbar-sister-badge .badge-icon svg {
        width: 10px !important;
        height: 10px !important;
    }
    .topbar-sister-badge .badge-title {
        font-size: 0.72rem !important;
    }
    .topbar-sister-badge .badge-sub {
        font-size: 0.7rem !important;
    }
    .header-main-logo {
        height: 38px !important;
    }
    .header-brand-sister-tag {
        font-size: 0.58rem !important;
        letter-spacing: 0.5px !important;
    }
}

