/* 
   RESPONSIVE DESIGN - DESKTOP-FIRST APPROACH
   
   This file ONLY adds media queries for tablet and mobile.
   All desktop styles remain untouched.
   
   Breakpoints:
   - Desktop: No media query (existing styles apply)
   - Tablet: max-width: 1024px
   - Mobile: max-width: 768px
*/

/* ============================================================
   MOBILE VIEWPORT FIX
   ============================================================ */

@viewport {
    width: device-width;
    zoom: 1;
}

/* ============================================================
   TABLET BREAKPOINT (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    /* Ensure proper scrolling on tablet */
    body {
        overflow-x: hidden;
    }

    /* Container adjustments */
    .max-w-7xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .max-w-6xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Reduce padding for sections on tablet */
    section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Hero section on tablet */
    .hero-section {
        min-height: auto;
    }

    /* Adjust grid gaps on tablet */
    .grid {
        gap: 1.5rem;
    }

    /* Text adjustments for better readability on tablet */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.875rem;
        line-height: 1.25;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Ensure buttons are touchable */
    button, a.accent-btn, a[class*="btn"] {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    /* Card padding reduction */
    .rounded-3xl {
        padding: 1.5rem;
    }

    /* Prevent text overflow */
    .tracking-\[0\.28em\] {
        letter-spacing: 0.1em;
    }
}

/* ============================================================
   MOBILE BREAKPOINT (max-width: 768px)
   PREMIUM MOBILE EXPERIENCE
   ============================================================ */

@media (max-width: 768px) {
    /* ========================================
       CORE MOBILE VIEWPORT & BODY
       ======================================== */
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        scroll-behavior: smooth;
        background: #ffffff;
    }

    /* ========================================
       AGGRESSIVE MOBILE PADDING OVERRIDE
       ======================================== */
    
    [class*="px-"],
    [class*="pl-"],
    [class*="pr-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    [class*="max-w-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* ========================================
       TEXT TRUNCATION WITH "VIEW MORE"
       ======================================== */
    
    .mobile-text-collapsed {
        display: -webkit-box !important;
        -webkit-line-clamp: var(--mobile-line-clamp, 5) !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-text-toggle {
        display: block !important;
        width: 100%;
        margin-top: 0.5rem !important;
        background: transparent !important;
        border: none !important;
        color: #0a4d8f !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        padding: 0.5rem 0 !important;
        text-align: left !important;
        transition: color 0.2s ease !important;
    }

    .mobile-text-toggle:hover {
        color: #1e7ea8 !important;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        letter-spacing: -0.01em;
        font-weight: 700;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.35;
        letter-spacing: -0.01em;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    h4 {
        font-size: 1.125rem;
        line-height: 1.4;
        font-weight: 600;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .text-sm {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .text-lg {
        font-size: 1.0625rem;
        line-height: 1.6;
    }

    .text-xl {
        font-size: 1.125rem;
        line-height: 1.5;
    }

    .text-2xl {
        font-size: 1.375rem;
        line-height: 1.4;
    }

    .text-3xl {
        font-size: 1.625rem;
        line-height: 1.3;
    }

    .text-4xl {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    /* ========================================
       SECTIONS - PREMIUM SPACING
       ======================================== */
    
    section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-24 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-20 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .py-16 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* ========================================
       CONTAINERS & MAX-WIDTH
       ======================================== */
    
    .max-w-7xl,
    .max-w-6xl {
        max-width: 100%;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* ========================================
       GRIDS - MOBILE STACKING
       ======================================== */
    
    .grid {
        gap: 0.75rem;
    }

    .gap-10 {
        gap: 0.75rem;
    }

    .gap-16 {
        gap: 0.75rem;
    }

    .gap-6 {
        gap: 0.625rem;
    }

    .gap-8 {
        gap: 0.75rem;
    }

    .lg\:grid-cols-2,
    .lg\:grid-cols-\[0\.95fr_1\.05fr\],
    .lg\:grid-cols-\[1\.3fr_0\.9fr\],
    .lg\:grid-cols-\[1\.1fr_0\.9fr\],
    .sm\:grid-cols-2,
    .sm\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* ========================================
       FLEX LAYOUTS - MOBILE STACKING
       ======================================== */
    
    .flex-row {
        flex-direction: column;
    }

    .sm\:flex-row {
        flex-direction: column;
    }

    /* ========================================
       HERO SECTION - PREMIUM MOBILE
       ======================================== */
    
    .hero-section,
    .min-h-screen {
        min-height: 50vh;
        height: auto;
        padding-top: 0;
        padding-bottom: 2rem;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-carousel {
        min-height: 50vh;
        height: auto;
        padding-bottom: 0 !important;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Ensure hero carousel respects navbar spacing */
    .hero-carousel {
        margin-top: 0 !important;
    }

    main {
        margin-top: 0;
    }

    .hero-section .relative {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .text-5xl,
    .text-6xl {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .sm\:text-6xl {
        font-size: 1.75rem;
    }

    /* ========================================
       BUTTONS - TOUCH FRIENDLY
       ======================================== */
    
    button,
    a.button-primary,
    a.button-secondary,
    a.accent-btn,
    [class*="rounded-full"]:is(a, button) {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Keep hero carousel dots compact on mobile/tablet */
    .hero-dot {
        min-height: 8px !important;
        min-width: 8px !important;
        padding: 0 !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
    }

    .hero-dot.active {
        min-width: 24px !important;
    }

    .px-8,
    .px-10 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .py-4 {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }

    /* ========================================
       CARDS - PREMIUM MOBILE LAYOUT
       ======================================== */
    
    .rounded-3xl {
        border-radius: 1rem;
        padding: 0.5rem !important;
        margin-bottom: 0.75rem;
    }

    .rounded-2xl {
        border-radius: 0.875rem;
        padding: 0.5rem !important;
    }

    .rounded-\[1\.5rem\] {
        border-radius: 1rem;
        padding: 0.5rem !important;
    }

    .p-8 {
        padding: 0.5rem !important;
    }

    .p-6 {
        padding: 0.5rem !important;
    }

    .p-5 {
        padding: 0.5rem !important;
    }

    /* Article cards - proper spacing */
    article {
        padding: 0.5rem !important;
        gap: 0.75rem;
    }

    /* ========================================
       SPACING UTILITIES - MOBILE RHYTHM
       ======================================== */
    
    .mt-10 {
        margin-top: 1.5rem;
    }

    .mt-8 {
        margin-top: 1.25rem;
    }

    .mt-6 {
        margin-top: 1rem;
    }

    .mt-4 {
        margin-top: 0.75rem;
    }

    .mt-3 {
        margin-top: 0.5rem;
    }

    .mb-12 {
        margin-bottom: 1.5rem;
    }

    .mb-8 {
        margin-bottom: 1.25rem;
    }

    /* Stacked elements with proper breathing */
    .space-y-5 > * + * {
        margin-top: 1.25rem;
    }

    .space-y-6 > * + * {
        margin-top: 1.25rem;
    }

    .space-y-8 > * + * {
        margin-top: 1.5rem;
    }

    /* ========================================
       IMAGES - RESPONSIVE & CRISP
       ======================================== */
    
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Picture elements */
    picture img {
        width: 100%;
        height: auto;
    }

    /* ========================================
       LISTS & TEXT CONTENT
       ======================================== */
    
    ul, ol {
        margin-left: 1.5rem;
    }

    li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    /* Letter spacing reduction on mobile */
    .tracking-\[0\.28em\] {
        letter-spacing: 0.08em;
    }

    .tracking-\[0\.3em\] {
        letter-spacing: 0.1em;
    }

    .tracking-\[0\.2em\] {
        letter-spacing: 0.08em;
    }

    .tracking-\[0\.35em\] {
        letter-spacing: 0.1em;
    }

    /* ========================================
       INLINE FLEX - MOBILE ADJUSTMENTS
       ======================================== */
    
    .inline-flex {
        min-height: 44px;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    /* ========================================
       SHADOWS - MOBILE OPTIMIZATION
       ======================================== */
    
    .shadow-lg,
    .shadow-xl {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

    .shadow-soft,
    .shadow-softmd {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    }

    .shadow-sm {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }



    /* ========================================
       STUDENT LIFE SECTION - IMAGE MOVED AFTER CONTENT (MOBILE ONLY)
       ======================================== */
    
    /* Reorder grid to flex layout: content first, image second */
    #life .grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Move image to bottom using explicit order */
    #life .grid > .mel-reveal:first-of-type {
        order: 2 !important;
    }

    /* Keep content at top */
    #life .grid > .mel-reveal:last-of-type {
        order: 1 !important;
    }

    /* ========================================
       FORM ELEMENTS - TOUCH FRIENDLY
       ======================================== */
    
    input,
    textarea,
    select {
        font-size: 1rem;
        padding: 0.875rem;
        min-height: 48px;
        width: 100%;
        border-radius: 0.875rem;
    }

    textarea {
        min-height: 120px;
        resize: vertical;
    }

    /* ========================================
       ANIMATIONS - SMOOTH & SUBTLE
       ======================================== */
    
    * {
        -webkit-tap-highlight-color: transparent;
    }

    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Smooth transitions */
    a, button {
        transition: all 0.2s ease;
    }

    /* ========================================
       HEADER & FOOTER - MOBILE RESPONSIVE
       ======================================== */
    
    header .mx-auto {
        flex-wrap: wrap;
    }

    footer {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    footer .grid {
        gap: 2rem;
    }

    /* ========================================
       MODAL & OVERLAY FIXES
       ======================================== */
    
    .opacity-30 {
        opacity: 0.35;
    }

    /* ========================================
       PREVENT LAYOUT SHIFT
       ======================================== */
    
    * {
        box-sizing: border-box;
    }

    body, html {
        scrollbar-gutter: stable;
    }

    .py-24 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .py-28 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Typography - Mobile friendly sizes */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .text-sm {
        font-size: 0.875rem;
    }

    .text-lg {
        font-size: 1rem;
    }

    /* Grid layouts - single column on mobile */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .lg\:grid-cols-\[1\.3fr_0\.9fr\] {
        grid-template-columns: 1fr !important;
    }

    .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .gap-16 {
        gap: 0.5rem !important;
    }

    .gap-10 {
        gap: 0.5rem !important;
    }

    .gap-8 {
        gap: 0.5rem !important;
    }

    .gap-6 {
        gap: 0.5rem !important;
    }

    .gap-4 {
        gap: 0.375rem !important;
    }

    /* Flex layouts - stack on mobile */
    .flex-row {
        flex-direction: column;
    }

    .sm\:flex-row {
        flex-direction: column;
    }

    /* Hero section - mobile optimized */
    .hero-section {
        min-height: 60vh;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .min-h-screen {
        min-height: 60vh;
    }

    /* Hero content grid - stack */
    .hero-section .grid {
        grid-template-columns: 1fr;
    }

    /* Hero text content */
    .hero-section h1 {
        font-size: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .sm\:text-6xl {
        font-size: 1.5rem;
    }

    .text-5xl {
        font-size: 1.5rem;
    }

    .text-4xl {
        font-size: 1.375rem;
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    /* Hero buttons - stack vertically */
    .hero-section .flex {
        flex-direction: column;
        gap: 1rem;
    }

    .flex-col {
        flex-direction: column;
    }

    .sm\:flex-row {
        flex-direction: column;
    }

    /* Buttons - touch-friendly */
    button, 
    a[class*="btn"], 
    .accent-btn,
    [class*="rounded-full"] {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Cards - mobile spacing */
    .rounded-3xl {
        padding: 0.5rem !important;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .rounded-2xl {
        padding: 0.5rem !important;
        border-radius: 0.75rem;
    }

    .p-8 {
        padding: 0.5rem !important;
    }

    .p-5 {
        padding: 0.5rem !important;
    }

    /* Hero content from inline styles */
    .hero-content {
        padding: 0.5rem !important;
    }

    /* Spacing utilities */
    .mt-8 {
        margin-top: 1.25rem;
    }

    .mt-6 {
        margin-top: 1rem;
    }

    .mt-4 {
        margin-top: 0.75rem;
    }

    .mt-10 {
        margin-top: 1.5rem;
    }

    /* Space between stacked items */
    .space-y-4 > * + * {
        margin-top: 0.75rem;
    }

    .space-y-6 > * + * {
        margin-top: 1rem;
    }

    /* Lists - better mobile spacing */
    ul, ol {
        margin-left: 1.25rem;
    }

    li {
        margin-bottom: 0.5rem;
    }

    /* Inline flex items - mobile adjustments */
    .inline-flex {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .gap-3 {
        gap: 0.75rem;
    }

    .tracking-\[0\.28em\] {
        letter-spacing: 0.08em;
    }

    .tracking-\[0\.3em\] {
        letter-spacing: 0.1em;
    }

    .tracking-\[0\.2em\] {
        letter-spacing: 0.08em;
    }

    /* Prevent text overflow */
    .max-w-2xl {
        max-width: 100%;
    }

    .max-w-6xl {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .max-w-7xl {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Background elements - mobile sizing */
    .absolute {
        width: 100%;
        height: 100%;
    }

    /* Text centering on mobile */
    h1, h2, h3 {
        line-height: 1.2;
    }

    /* University Landing Pages - Mobile Image Sizing (NO CROP - Fit to Width) */
    /* Target all images in mel-wrap with rounded class */
    .mel-wrap img.rounded-\[2rem\],
    .mel-wrap .relative img,
    .mel-wrap picture img {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Direct targeting of section images */
    section img.object-cover {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* Fallback for any university page images */
    [alt*="Melbourne"] img,
    img[alt*="Melbourne"] {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* Picture elements wrapper fix */
    .mel-wrap picture {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .mel-wrap picture img {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* Navigation bar - mobile adjustments */
    header {
        padding: 0.75rem 0.75rem;
    }

    /* Shadow adjustments for mobile */
    .shadow-lg,
    .shadow-xl {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Opacity adjustments */
    .opacity-30 {
        opacity: 0.4;
    }

    /* Gradient text handling */
    .hero-highlight {
        text-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
    }

    /* Card animation delays - stagger on mobile */
    .section-card {
        animation-delay: 0s;
        margin-bottom: 0.75rem;
    }

    /* Badge sizing */
    .inline-flex.items-center.gap-3.rounded-full {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    /* Prevent content shifting */
    * {
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Ensure touch-friendly links */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Form elements - mobile friendly */
    input,
    textarea,
    select {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 44px;
        width: 100%;
    }

    /* Reduce animation intensity on mobile */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ============================================================
   EXTRA SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
    section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .rounded-3xl {
        padding: 0.375rem !important;
    }

    button, a[class*="btn"] {
        width: 100%;
    }

    /* University Landing Pages - Extra-small mobile (480px) - NO CROP, Fit to Width */
    .mel-wrap img,
    .uni-wrap img {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    .mel-wrap picture img,
    .uni-wrap picture img {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    img.object-cover {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    }

    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* ============================================================
   UTILITIES FOR MOBILE-SPECIFIC FIXES
   ============================================================ */

.no-overflow {
    overflow: hidden;
}

.touch-friendly {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }

    .show-on-desktop {
        display: block !important;
    }
}

/* Hero dots: force stable size across all breakpoints */
.hero-pagination .hero-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    padding: 0 !important;
    display: block !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.hero-pagination .hero-dot.active {
    width: 24px !important;
    height: 8px !important;
    min-width: 24px !important;
    min-height: 8px !important;
}

/* ======================================================
   PREMIUM MOBILE/TABLET NAVBAR SYSTEM
====================================================== */

@media (max-width: 1024px) {
  /* Hide all desktop navbar content */
  header > .mx-auto,
  header nav,
  header .hidden,
  header .md\:flex {
    display: none !important;
  }

  /* Repurpose header as navbar background container */
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 72px !important;
    z-index: 999998 !important;

    background: #ffffff !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;

    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Create spacing below navbar */
  main {
    margin-top: 72px !important;
    padding-top: 0 !important;
  }

  /* Full-width elegant mobile navbar */
  .mobile-top-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(0) !important;

    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    z-index: 1000000 !important;

    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    border-radius: 0 !important;
    padding: 0 12px !important;
    min-height: 72px !important;

    visibility: visible !important;
    opacity: 1 !important;

    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.35) !important;
    border: none !important;
  }

  .mobile-nav-brand {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    height: 100% !important;
    min-width: 52px !important;
  }

  .mobile-nav-brand img {
    display: block !important;
    width: auto !important;
    height: 40px !important;
    object-fit: contain !important;
  }

  .mobile-nav-items {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  /* Mobile navbar items */
  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 4px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    color: #000 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.2s ease !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
  }

  .mobile-nav-item:active,
  .mobile-nav-item.mobile-nav-active {
    color: #0a4d8f !important;
  }

  /* Mobile navbar icons */
  .mobile-nav-icon {
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.08)) !important;
    position: relative !important;
  }

  /* SVG icons with black stroke and white fill */
  .mobile-nav-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #000 !important;
    stroke-width: 1.5 !important;
    fill: #fff !important;
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
  }

  .mobile-nav-item.mobile-nav-active .mobile-nav-icon svg {
    stroke: #0a4d8f !important;
    fill: #e8f0f8 !important;
  }

  /* Mobile navbar label */
  .mobile-nav-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12px !important;
    text-transform: uppercase !important;
  }

  /* Hero section below navbar */
  .hero-section,
  .hero-carousel,
  .min-h-screen {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Hide hero text overlays */
  .hero-content,
  .hero-text,
  .hero-section h1,
  .hero-section p,
  .hero-section button,
  .hero-section .btn {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  /* Desktop should show the same rounded icon navbar as the screenshot */
  header {
    display: none !important;
  }

  main {
    margin-top: 64px !important;
    padding-top: 0 !important;
  }

  .mobile-top-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 64px !important;
    padding: 0 24px !important;
    gap: 16px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.09), 0 1px 0 rgba(148, 163, 184, 0.28) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    z-index: 1000000 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav-brand {
    min-width: 92px !important;
    justify-content: flex-start !important;
  }

  .mobile-nav-brand img {
    height: 36px !important;
  }

  .mobile-nav-items {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    gap: 14px !important;
  }

  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 1 0 !important;
    padding: 0 8px !important;
    min-width: 0 !important;
    font-size: 0.72rem !important;
  }

  .mobile-nav-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .mobile-nav-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-nav-label {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }
}
