/* 
 * Global Responsive Styles - Zubopact 2026
 * Ensures perfect display across all devices
 * Mobile-First â€¢ No Glitches â€¢ Smooth Transitions
 * REDESIGNED: Modern header & hero section
 */

/* ============================================
   REDESIGNED SITE HEADER - 2026 MODERN
   ============================================ */

/* Base body styles */
html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: #f5f5f5 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}
/* Modern Navbar - Clean white */
.navbar-premium {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    flex-shrink: 0 !important;
}
.navbar-premium .container-fluid {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    flex-wrap: nowrap !important;
}

/* Brand Logo */
.brand-logo {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin-right: 24px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.brand-logo i {
    font-size: 24px !important;
    color: var(--zp-brand) !important;
    background: var(--zp-gradient-brand) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
/* Nav Links */
.nav-link-trending {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--zp-text-secondary) !important;
    padding: 8px 16px !important;
    border-radius: var(--zp-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: var(--zp-transition) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-link-trending:hover {
    color: var(--zp-brand) !important;
    background: var(--zp-bg-muted) !important;
}

.nav-link-trending i {
    font-size: 16px !important;
}

/* Sign Up Button - compact navbar CTA */
.btn-signup {
    background: var(--zp-brand) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: var(--zp-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--zp-transition) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    letter-spacing: 0.1px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.btn-signup:hover {
    background: var(--zp-brand-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px var(--zp-brand-glow) !important;
}

/* Sign In Link */
.sign-in-link {
    color: var(--zp-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: var(--zp-radius-sm) !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: var(--zp-transition) !important;
}

.sign-in-link:hover {
    color: var(--zp-brand) !important;
    background: var(--zp-bg-muted) !important;
}

/* Navbar Toggler - 3 line hamburger (mobile only) */
.navbar-toggler {
    border: none !important;
    background: transparent !important;
    border-radius: 6px !important;
    padding: 8px 6px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
}

/* Hide toggler on desktop only */
@media (min-width: 992px) {

    .navbar-toggler,
    .mobile-hamburger {
        display: none !important;
    }
}

/* Show toggler on mobile */
@media (max-width: 991.98px) {

    .navbar-toggler,
    .navbar-premium .mobile-hamburger {
        display: flex !important;
    }
}

.navbar-toggler .toggler-bar {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: var(--zp-text-secondary) !important;
    border-radius: 2px !important;
    transition: var(--zp-transition) !important;
}

.navbar-toggler:hover .toggler-bar {
    background: var(--zp-text) !important;
    opacity: 1 !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}
/* Logged-in Nav Action Buttons (Dashboard, Community) */
.nav-action-btn {
    color: var(--zp-text-secondary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: var(--zp-radius-sm) !important;
    border: 1px solid var(--zp-border) !important;
    background: transparent !important;
    transition: var(--zp-transition) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.nav-action-btn:hover {
    color: var(--zp-brand) !important;
    background: var(--zp-bg-muted) !important;
    border-color: var(--zp-brand-light) !important;
}

.nav-action-btn i {
    font-size: 14px !important;
}

/* Logged-in Nav Icon Buttons (Messages, Theme Toggle) */
.nav-icon-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: var(--zp-radius-sm) !important;
    background: transparent !important;
    border: 1px solid var(--zp-border) !important;
    color: var(--zp-text-secondary) !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    transition: var(--zp-transition) !important;
}

.nav-icon-btn:hover {
    background: var(--zp-bg-muted) !important;
    color: var(--zp-brand) !important;
    border-color: var(--zp-brand-light) !important;
}

/* Dropdown Menus - clean white card on dark navbar */
.dropdown-menu {
    background: var(--zp-bg-card) !important;
    border: 1px solid var(--zp-border) !important;
    border-radius: var(--zp-radius-lg) !important;
    padding: 8px !important;
    box-shadow: var(--zp-shadow-xl) !important;
    min-width: 260px !important;
    z-index: 1035 !important;
    margin-top: 8px !important;
    animation: dropdownFadeIn 0.15s ease-out !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown-item {
    padding: 10px 14px !important;
    border-radius: var(--zp-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--zp-text-secondary) !important;
    transition: var(--zp-transition) !important;
    display: flex !important;
    align-items: center !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--zp-bg-muted) !important;
    color: var(--zp-brand) !important;
}

.dropdown-item:active {
    background: var(--zp-border) !important;
    color: var(--zp-brand-dark) !important;
}

.dropdown-item i {
    color: var(--zp-text-muted) !important;
    transition: color 0.15s ease !important;
}

.dropdown-item:hover i {
    color: var(--zp-brand) !important;
}

.dropdown-header {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--zp-brand) !important;
    padding: 8px 14px 4px !important;
}

.dropdown-divider {
    border-color: var(--zp-bg-muted) !important;
    margin: 4px 0 !important;
}
/* ============================================
   HERO SECTION - WHITE WITH BACKGROUND IMAGE
   ============================================ */

/* ============================================
   HERO SECTION — 2026 Premium
   ============================================ */
.hero-wrapper {
    background: var(--zp-bg) !important;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2400&q=80') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 92vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    padding: 80px 0 60px !important;
}
/* Gradient overlay for text readability */
.hero-overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.92) 35%,
            rgba(255, 255, 255, 0.55) 60%,
            rgba(255, 255, 255, 0.15) 85%,
            transparent 100%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
.hero-wrapper .container-lg {
    position: relative !important;
    z-index: 1 !important;
    padding: 0 24px !important;
}

.hero-wrapper h1 {
    font-size: clamp(34px, 5vw, 56px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -1.5px !important;
    color: var(--zp-text) !important;
    margin-bottom: 20px !important;
    text-shadow: none !important;
}

/* Hero subtitle */
.hero-subtitle {
    color: var(--zp-text-secondary) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    margin-bottom: 28px !important;
    max-width: 520px !important;
    text-shadow: none !important;
}

/* Watch video link */
.hero-watch-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--zp-text) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-bottom: 48px !important;
    transition: color 0.2s ease !important;
    text-shadow: none !important;
}

.hero-watch-link i {
    font-size: 22px !important;
    color: var(--zp-brand) !important;
}

.hero-watch-link:hover {
    color: var(--zp-brand) !important;
}

/* Hero CTA button (mobile only â€” replaces form on small screens) */
.hero-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--zp-gradient-glow) !important;
    color: #ffffff !important;
    padding: 16px 32px !important;
    border-radius: var(--zp-radius-lg) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    text-decoration: none !important;
    width: 100% !important;
    max-width: 400px !important;
    margin-bottom: 40px !important;
    transition: var(--zp-transition) !important;
    box-shadow: 0 4px 20px var(--zp-brand-glow) !important;
}

.hero-cta-btn:hover {
    background: var(--zp-brand-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px var(--zp-brand-glow) !important;
}

/* Hero stats row */
.hero-stats {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-top: 16px !important;
    padding-top: 32px !important;
    border-top: 1px solid var(--zp-border) !important;
}

.hero-stat {
    flex: 1;
    text-align: left;
}

.hero-stat h3 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--zp-text) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
    background: var(--zp-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat p {
    font-size: 13px !important;
    color: var(--zp-text-muted) !important;
    margin: 0 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--zp-border);
    margin: 0 20px;
    flex-shrink: 0;
}

/* Hero Search Form - clean white card */
.hero-search-form {
    background: var(--zp-bg-card) !important;
    border-radius: var(--zp-radius-xl) !important;
    padding: 32px 28px !important;
    box-shadow: var(--zp-shadow-xl) !important;
    border: 1px solid var(--zp-border) !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero-search-form h5 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--zp-text) !important;
    margin-bottom: 6px !important;
}

.hero-form-subtitle {
    font-size: 14px !important;
    color: var(--zp-text-muted) !important;
    margin-bottom: 24px !important;
    font-weight: 400 !important;
}

.hero-search-form .form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--zp-text-secondary) !important;
    margin-bottom: 6px !important;
}

.hero-search-form .form-control,
.hero-search-form .form-select {
    background: var(--zp-bg-muted) !important;
    border: 1px solid var(--zp-border) !important;
    border-radius: var(--zp-radius-md) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--zp-text) !important;
    font-weight: 500 !important;
    transition: var(--zp-transition) !important;
}

.hero-search-form .form-control::placeholder {
    color: var(--zp-text-muted) !important;
}

.hero-search-form .form-control:focus,
.hero-search-form .form-select:focus {
    border-color: var(--zp-brand) !important;
    box-shadow: 0 0 0 3px var(--zp-brand-glow) !important;
    outline: none !important;
    background: var(--zp-bg) !important;
}

.hero-search-form .btn-primary {
    background: var(--zp-gradient-glow) !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: var(--zp-radius-md) !important;
    box-shadow: 0 4px 15px var(--zp-brand-glow) !important;
    transition: var(--zp-transition) !important;
    color: #ffffff !important;
}

.hero-search-form .btn-primary:hover {
    background: var(--zp-brand-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px var(--zp-brand-glow) !important;
}

.hero-search-form .mb-3 {
    margin-bottom: 16px !important;
}

/* Mobile Bottom Navigation - REMOVED (redundant with top nav hamburger menu) */
.mobile-bottom-nav {
    display: none !important;
}

/* ============================================
   BASE RESPONSIVE RESETS
   ============================================ */

/* Prevent horizontal scroll on all devices */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* Smooth scrolling everywhere */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Better box model for everything */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Responsive images and media */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
td,
th,
label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Touch-friendly tap targets */
button,
a,
input[type="submit"],
input[type="button"],
.btn {
    min-height: 44px;
    min-width: 44px;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

/* Fluid typography using clamp() */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.4;
}

h4,
h5,
h6 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

p,
li,
td,
th {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE CONTAINERS
   ============================================ */

.container,
.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================
   RESPONSIVE GRID UTILITIES
   ============================================ */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   TABLET STYLES (768px - 991px)
   ============================================ */

@media (min-width: 768px) and (max-width: 991px) {

    /* Two column layouts */
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Adjust card sizes */
    .card {
        margin-bottom: 15px;
    }

    /* Table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Sidebar adjustments */
    .sidebar-wrapper {
        width: 250px;
    }
}

/* ============================================
   MOBILE LANDSCAPE (576px - 767px)
   ============================================ */

@media (min-width: 576px) and (max-width: 767px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stats-container,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Flexbox layouts */
    .d-flex.flex-wrap {
        gap: 10px;
    }

    /* Cards */
    .card-body {
        padding: 15px;
    }
}

/* ============================================
   MOBILE PORTRAIT (max-width: 575px)
   ============================================ */

@media (max-width: 575px) {

    /* Single column everything */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .stats-container,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Smaller padding */
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-body {
        padding: 12px;
    }

    /* Stack flex items */
    .d-flex:not(.mobile-row) {
        flex-direction: column;
    }

    .d-flex.justify-content-between:not(.mobile-row) {
        align-items: stretch;
        gap: 10px;
    }

    /* Full width buttons */
    .btn:not(.btn-sm):not(.btn-icon) {
        width: 100%;
        text-align: center;
    }

    /* Tables scroll horizontally */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Form inputs */
    .form-control,
    .form-select,
    input,
    textarea,
    select {
        font-size: 16px !important;
        /* Prevents iOS zoom */
    }
}

/* ============================================
   EXTRA SMALL DEVICES (max-width: 380px)
   ============================================ */

@media (max-width: 380px) {

    /* Even smaller text */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Tighter spacing */
    .container,
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .card-body {
        padding: 10px;
    }

    /* Smaller buttons */
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ============================================
   CONTENT SPACING
   ============================================ */

@media (max-width: 991px) {

    main,
    .main-content,
    .content-wrapper,
    .dashboard-container {
        padding-bottom: 20px;
    }
}

/* ============================================
   DESKTOP LAYOUT FIXES
   ============================================ */

/* Z-INDEX HIERARCHY (Bootstrap 5 aligned):
   - Page content: auto (0)
   - Hero section: 1 (allows form overlap)
   - Navbar (sticky): 1030
   - Dropdowns: 1035
   - Offcanvas backdrop: 1040
   - Offcanvas sidebar: 1045
   - Modal backdrop: 1050
   - Modal: 1055
*/

/* Navbar z-index - must stay above page content but below offcanvas */
.navbar,
.navbar-premium {
    z-index: 1030 !important;
    position: sticky !important;
    top: 0 !important;
    margin-top: 0 !important;
}

/* Dropdown menus above navbar */
.dropdown-menu {
    z-index: 1035 !important;
}

/* Navbar - keep items inline on desktop */
@media (min-width: 992px) {
    .navbar-premium {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .navbar-premium .container-fluid {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    /* Desktop nav links container */
    .navbar-premium .d-none.d-lg-flex {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    /* Right actions container */
    .navbar-right-actions {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Nav dropdown buttons - consistent size */
    .nav-link-trending {
        white-space: nowrap !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    /* Dropdown menus */
    .dropdown {
        position: relative !important;
    }

    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        margin-top: 8px !important;
    }

    /* Dropdown button caret indicator */
    .nav-link-trending::after {
        content: '' !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
        margin-left: 4px !important;
        vertical-align: middle !important;
        border-top: 4px solid currentColor !important;
        border-right: 4px solid transparent !important;
        border-left: 4px solid transparent !important;
        opacity: 0.5 !important;
        transition: transform 0.2s ease !important;
    }

    .dropdown.show .nav-link-trending::after {
        transform: rotate(180deg) !important;
    }
}

/* Hero form desktop styling */
@media (min-width: 1200px) {
    .hero-wrapper {
        min-height: 100vh !important;
        padding: 80px 0 60px !important;
    }

    .hero-wrapper .row {
        align-items: center !important;
    }

    .hero-wrapper .col-xl-7 {
        flex: 0 0 58% !important;
        max-width: 58% !important;
    }

    .hero-wrapper .col-xl-5 {
        flex: 0 0 42% !important;
        max-width: 42% !important;
    }

    .hero-search-form {
        max-width: 420px !important;
        margin-left: auto !important;
    }

    .hero-stats {
        max-width: 520px !important;
    }
}

/* ============================================
   HEADER & NAVIGATION FIXES
   ============================================ */

@media (max-width: 991px) {

    /* Hide desktop nav items */
    .d-none.d-lg-flex {
        display: none !important;
    }

    /* Show mobile elements */
    .d-lg-none {
        display: flex !important;
    }

    /* Navbar adjustments */
    .navbar,
    .navbar-premium {
        padding: 4px 16px !important;
        height: 52px;
        min-height: 52px;
    }

    .navbar-premium .container-fluid {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
    }

    /* Hide ALL right-side action buttons on mobile â€” everything goes in hamburger */
    .navbar-right-actions {
        display: none !important;
    }

    /* Logo - bigger and more visible, auto-center */
    .brand-logo {
        font-size: 20px !important;
        font-weight: 800 !important;
        gap: 6px !important;
        padding: 8px 0 !important;
        margin: 0 auto !important;
        padding-right: 40px !important;
        /* offset for visual centering vs hamburger */
    }

    .brand-logo i {
        font-size: 22px !important;
    }

    /* Hamburger on the left side */
    .navbar-premium .mobile-hamburger,
    .mobile-hamburger {
        order: -1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 8px 6px !important;
        border: none !important;
        border-radius: 6px !important;
        background: transparent !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        margin-right: 8px !important;
        margin-left: 0 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .mobile-hamburger .toggler-bar {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background: #334155 !important;
        border-radius: 2px !important;
        transition: all 0.25s ease !important;
    }

    .mobile-hamburger:hover .toggler-bar {
        background: #1e293b !important;
    }

    .mobile-hamburger:focus {
        box-shadow: none !important;
        outline: none !important;
    }
}

@media (max-width: 575px) {

    .navbar,
    .navbar-premium {
        padding: 4px 12px !important;
        height: 48px;
        min-height: 48px;
    }

    /* Logo - still prominent on small screens */
    .brand-logo {
        font-size: 18px !important;
        font-weight: 800 !important;
        padding-right: 34px !important;
    }

    .brand-logo i {
        font-size: 20px !important;
    }

    /* Hamburger size on smaller phones */
    .mobile-hamburger {
        padding: 6px 5px !important;
    }

    .mobile-hamburger .toggler-bar {
        width: 20px !important;
    }
}

@media (max-width: 400px) {

    .navbar,
    .navbar-premium {
        padding: 4px 10px !important;
        height: 46px;
    }

    .brand-logo {
        font-size: 16px !important;
        padding-right: 30px !important;
    }

    .brand-logo i {
        font-size: 18px !important;
    }

    .mobile-hamburger {
        padding: 5px 4px !important;
    }

    .mobile-hamburger .toggler-bar {
        width: 18px !important;
    }
}

/* ============================================
   FORM RESPONSIVE FIXES
   ============================================ */

@media (max-width: 767px) {

    /* Stack form groups */
    .form-group,
    .mb-3,
    .mb-4 {
        margin-bottom: 15px !important;
    }

    /* Full width inputs */
    .form-control,
    .form-select {
        width: 100%;
    }

    /* Input groups */
    .input-group {
        flex-wrap: wrap;
    }

    .input-group>.form-control {
        min-width: 100%;
        margin-bottom: 8px;
        border-radius: 8px !important;
    }

    .input-group>.btn {
        width: 100%;
        border-radius: 8px !important;
    }

    /* Labels */
    label {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* ============================================
   CARD RESPONSIVE FIXES
   ============================================ */

@media (max-width: 767px) {
    .card {
        margin-bottom: 15px;
        border-radius: 12px !important;
    }

    .card-header {
        padding: 12px 15px;
        font-size: 14px;
    }

    .card-body {
        padding: 15px;
    }

    .card-footer {
        padding: 12px 15px;
    }

    /* Profile cards */
    .profile-card,
    .user-card {
        text-align: center;
    }

    .profile-avatar,
    .user-avatar {
        margin: 0 auto 15px;
    }
}

/* ============================================
   TABLE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 767px) {
    .table-responsive {
        border: 0;
        margin-bottom: 15px;
    }

    .table {
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Action buttons in tables */
    .table .btn {
        padding: 5px 10px;
        font-size: 12px;
        min-height: 32px;
        min-width: 32px;
    }

    .table .btn-group {
        display: flex;
        gap: 4px;
    }
}

/* ============================================
   MODAL RESPONSIVE FIXES
   ============================================ */

@media (max-width: 575px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* ============================================
   DROPDOWN RESPONSIVE FIXES
   ============================================ */

@media (max-width: 767px) {
    .dropdown-menu {
        min-width: auto !important;
        max-width: calc(100vw - 30px);
        right: 15px !important;
        left: auto !important;
    }

    .dropdown-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ============================================
   SIDEBAR RESPONSIVE (ADMIN)
   ============================================ */

@media (max-width: 992px) {
    .sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* ============================================
   STATS & DASHBOARD RESPONSIVE
   ============================================ */

@media (max-width: 767px) {

    .stat-card,
    .stat-box {
        padding: 15px;
        margin-bottom: 10px;
    }

    .stat-card .number,
    .stat-box-number {
        font-size: 24px;
    }

    .stat-card h6,
    .stat-box-label {
        font-size: 12px;
    }

    /* Dashboard header */
    .header-section,
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .header-left,
    .header-right {
        width: 100%;
    }

    .header-left {
        flex-direction: column;
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
    }
}

/* ============================================
   PROFILE PAGES RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .profile-header {
        height: 120px !important;
    }

    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
        margin-top: -40px !important;
    }

    .profile-name {
        font-size: 18px !important;
    }

    .profile-title {
        font-size: 13px !important;
    }

    .profile-info {
        padding: 10px 15px !important;
    }

    .profile-stat {
        padding: 8px 0 !important;
    }
}

/* ============================================
   FEED & COMMUNITY RESPONSIVE
   ============================================ */

@media (max-width: 767px) {

    .feed-card,
    .post-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .feed-title {
        font-size: 16px;
    }

    .post-content {
        font-size: 14px;
    }

    .post-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-actions .btn {
        flex: 1;
        min-width: 80px;
    }
}

/* ============================================
   ANIMATION & TRANSITION PERFORMANCE
   ============================================ */

/* Reduce animations on mobile for performance */
@media (max-width: 767px) {

    *,
    *::before,
    *::after {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }

    /* Disable transform animations on low-end devices */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation: none !important;
            transition: none !important;
        }
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .mobile-bottom-nav,
    .sidebar,
    .navbar,
    .mobile-menu-btn,
    .sidebar-overlay,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 20px !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hide on specific breakpoints */
@media (max-width: 575px) {
    .hide-xs {
        display: none !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .hide-sm {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hide-md {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hide-lg {
        display: none !important;
    }
}

/* Show only on specific breakpoints */
@media (min-width: 576px) {
    .show-xs-only {
        display: none !important;
    }
}

@media (max-width: 575px),
(min-width: 768px) {
    .show-sm-only {
        display: none !important;
    }
}

/* Text alignment responsive */
@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }

    .text-left-mobile {
        text-align: left !important;
    }
}

/* Spacing utilities */
@media (max-width: 767px) {
    .p-mobile-0 {
        padding: 0 !important;
    }

    .p-mobile-2 {
        padding: 0.5rem !important;
    }

    .p-mobile-3 {
        padding: 1rem !important;
    }

    .m-mobile-0 {
        margin: 0 !important;
    }

    .m-mobile-2 {
        margin: 0.5rem !important;
    }

    .m-mobile-3 {
        margin: 1rem !important;
    }
}

/* Full width on mobile */
@media (max-width: 767px) {
    .w-mobile-100 {
        width: 100% !important;
    }
}

/* Stack on mobile (force vertical) */
@media (max-width: 767px) {
    .stack-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .stack-mobile>* {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .stack-mobile>*:last-child {
        margin-bottom: 0;
    }
}

/* Keep row on mobile */
.mobile-row {
    flex-direction: row !important;
}

/* ============================================
   HERO SECTION RESPONSIVE FIXES
   ============================================ */

@media (max-width: 1199px) {
    .hero-wrapper {
        min-height: auto !important;
        padding: 40px 0 32px !important;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.92) !important;
    }

    .hero-wrapper .container-lg {
        padding: 0 20px !important;
    }

    .hero-wrapper .row {
        flex-direction: column !important;
    }

    .hero-wrapper .col-xl-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .hero-wrapper h1 {
        font-size: 32px !important;
        text-align: center !important;
        margin-bottom: 16px !important;
        color: #1a1a1a !important;
        text-shadow: none !important;
    }

    .hero-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 15px !important;
        color: #444444 !important;
        text-shadow: none !important;
    }

    .hero-watch-link {
        display: none !important;
    }

    .hero-cta-btn {
        margin: 0 auto 32px !important;
    }

    .hero-stats {
        justify-content: center !important;
        padding-top: 24px !important;
    }

    .hero-stat {
        text-align: center !important;
    }

    .hero-stat h3 {
        font-size: 22px !important;
        color: #1a1a1a !important;
        text-shadow: none !important;
    }

    .hero-stat p {
        font-size: 11px !important;
        color: #666666 !important;
    }

    .hero-stat-divider {
        margin: 0 12px !important;
        height: 32px !important;
        background: rgba(0, 0, 0, 0.15) !important;
    }
}

@media (max-width: 575px) {
    .hero-wrapper {
        padding: 28px 0 24px !important;
    }

    .hero-wrapper .container-lg {
        padding: 0 16px !important;
    }

    .hero-wrapper h1 {
        font-size: 26px !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .hero-cta-btn {
        padding: 14px 24px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    .hero-stats {
        padding-top: 20px !important;
    }

    .hero-stat h3 {
        font-size: 20px !important;
    }

    .hero-stat p {
        font-size: 10px !important;
    }

    .hero-stat-divider {
        margin: 0 8px !important;
        height: 28px !important;
    }
}

@media (max-width: 400px) {
    .hero-wrapper {
        padding: 20px 0 20px !important;
    }

    .hero-wrapper .container-lg {
        padding: 0 12px !important;
    }

    .hero-wrapper h1 {
        font-size: 22px !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    .hero-cta-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .hero-stat h3 {
        font-size: 18px !important;
    }

    .hero-stat p {
        font-size: 9px !important;
    }

    .hero-stat-divider {
        margin: 0 6px !important;
    }
}

/* ============================================
   TICKER & ANIMATION FIXES
   ============================================ */

@media (max-width: 767px) {

    /* Slow down ticker animations on mobile */
    .ticker-track {
        animation-duration: 20s !important;
    }
}

/* ============================================
   IMAGE & CARD GALLERY FIXES
   ============================================ */

@media (max-width: 575px) {

    /* Profile cards in scroll containers */
    .featured-profiles-scroll .col-6 {
        flex: 0 0 75% !important;
        min-width: 75% !important;
    }
}

/* ============================================
   TOUCH SCROLLING FIXES
   ============================================ */

/* Smooth momentum scrolling on iOS */
.scroll-container,
.overflow-auto,
.table-responsive,
[style*="overflow-x: auto"],
[style*="overflow: auto"] {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ============================================
   FIXED ELEMENT Z-INDEX FIXES
   ============================================ */

@media (max-width: 991px) {

    /* Ensure modals appear above offcanvas */
    .modal {
        z-index: 1055 !important;
    }

    .modal-backdrop {
        z-index: 1050 !important;
    }

    /* Ensure dropdowns appear above navbar */
    .dropdown-menu.show {
        z-index: 1035 !important;
    }

    /* Toast/notification positioning */
    .toast-container,
    .notification-container {
        bottom: 60px !important;
    }
}

/* ============================================
   INPUT ZOOM PREVENTION (iOS)
   ============================================ */

@media (max-width: 767px) {

    /* Prevent zoom on input focus in iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ============================================
   ORIENTATION CHANGE FIXES
   ============================================ */

@media (orientation: landscape) and (max-height: 500px) {
    .hero-wrapper {
        min-height: auto !important;
        padding: 30px 0 !important;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.94) !important;
    }
}

/* ============================================
   COMPREHENSIVE PHONE OPTIMIZATION 2026
   Covers all models: 320px (iPhone SE) to 428px (iPhone 14 Pro Max)
   ============================================ */

/* --- Section Title Scaling (override inline font-sizes) --- */
@media (max-width: 767px) {
    .zp-section-title {
        font-size: 24px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
    }

    .zp-section-subtitle {
        font-size: 15px !important;
    }
}

@media (max-width: 400px) {
    .zp-section-title {
        font-size: 20px !important;
        letter-spacing: -0.3px !important;
    }

    .zp-section-subtitle {
        font-size: 14px !important;
    }
}

/* --- Dashboard Action/Info Row Wrapping --- */
@media (max-width: 575px) {
    .zp-action-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .zp-action-row>* {
        flex-shrink: 0 !important;
    }

    .zp-info-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .zp-info-row>span {
        flex: 0 0 auto !important;
    }

    /* Job items body content */
    .job-item {
        padding: 12px !important;
    }

    .job-item .job-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .job-item .job-info {
        font-size: 12px !important;
    }
}

/* --- Hero Stats Wrapping on Small Phones --- */
@media (max-width: 380px) {
    .hero-stats {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .hero-stat {
        flex: 0 0 auto !important;
        min-width: 80px !important;
    }

    .hero-stat-divider {
        display: none !important;
    }

    .hero-stat h3 {
        font-size: 16px !important;
    }

    .hero-stat p {
        font-size: 9px !important;
    }
}

/* --- Tablet section padding (smooth step-down from desktop 80px) --- */
@media (max-width: 991px) {

    section.py-6,
    section.py-5 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* --- General Phone Layout Improvements --- */
@media (max-width: 575px) {

    /* Page section padding reduction */
    section.py-6,
    section.py-5 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    /* Prevent ANY horizontal overflow */
    body,
    html {
        overflow-x: hidden !important;
    }

    /* Fix absolute positioned badges causing overflow */
    .position-absolute.start-100 {
        display: none !important;
    }

    /* Cards - better mobile spacing */
    .card {
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .card-body {
        padding: 14px !important;
    }

    /* Pricing cards */
    .bg-soft-gray .col-lg-4 .p-4 {
        padding: 20px !important;
    }

    /* Feature cards with inline padding */
    [style*="padding: 28px"] {
        padding: 18px !important;
    }

    [style*="padding: 30px"] {
        padding: 18px !important;
    }

    /* Icon boxes - scale down */
    [style*="width: 64px"][style*="height: 64px"] {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
    }

    [style*="width: 48px"][style*="height: 48px"]:not(img) {
        width: 40px !important;
        height: 40px !important;
    }

    /* Stats grid on dashboards */
    .stats-grid,
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .stat-box {
        padding: 12px 10px !important;
    }

    .stat-box-number {
        font-size: 20px !important;
    }

    .stat-box-label {
        font-size: 11px !important;
    }

    /* Feed cards on dashboards */
    .feed-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .section-title {
        font-size: 15px !important;
    }

    /* Sidebar (when shown in single-col) */
    .right-sidebar {
        padding: 14px !important;
    }

    /* Offcanvas mobile sidebar improvements */
    .offcanvas-mobile {
        width: 85% !important;
        max-width: 320px !important;
    }

    .offcanvas-mobile .offcanvas-header {
        padding: 16px !important;
    }

    .mobile-submenu-item {
        padding: 10px 16px 10px 32px !important;
        font-size: 13px !important;
    }

    .mobile-menu-toggle {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    /* FAQ accordion on phone */
    .accordion-button {
        font-size: 14px !important;
        padding: 14px 16px !important;
    }

    .accordion-body {
        padding: 14px 16px !important;
        font-size: 13px !important;
    }

    /* Nav tabs (How It Works section) */
    .nav-tabs {
        gap: 6px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .nav-tabs .nav-link {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }

    /* Table improvements */
    .table-responsive {
        margin: 0 -10px !important;
        padding: 0 10px !important;
        border-radius: 0 !important;
    }

    /* Badge/tag overflow */
    .badge,
    .profile-count-badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    /* Input group stacking */
    .input-group {
        flex-direction: column !important;
    }

    .input-group>.form-control,
    .input-group>.btn,
    .input-group>.input-group-text {
        width: 100% !important;
        border-radius: 8px !important;
    }

    /* Testimonial cards */
    .card.h-100 {
        margin-bottom: 0 !important;
    }

    /* Make images always fit */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix long email/url text overflow */
    a,
    span,
    p,
    td,
    th,
    div {
        word-break: break-word !important;
    }
}

/* --- Extra Small Phones (iPhone SE, Galaxy A series) --- */
@media (max-width: 380px) {

    /* Even tighter layout */
    .container,
    .container-fluid,
    .container-lg {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    section.py-6,
    section.py-5 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* Stats grid force single column on tiny phones */
    .stats-grid,
    .stats-container {
        grid-template-columns: 1fr !important;
    }

    /* Dashboard feed cards */
    .feed-card {
        padding: 10px !important;
    }

    .section-title {
        font-size: 14px !important;
    }

    /* Smaller buttons */
    .btn:not(.btn-sm) {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    /* Pricing row - ensure stacking */
    .row.g-4>[class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Profile card avatar resize */
    .profile-avatar,
    .user-avatar {
        width: 64px !important;
        height: 64px !important;
    }
}

/* --- Dashboard Grid Layout Phone Fix --- */
@media (max-width: 767px) {

    /* Force single column on all dashboard grids */
    .main-wrapper {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px !important;
    }

    /* Hide desktop sidebars (they go into mobile sidebar) */
    .main-wrapper>.right-sidebar:not(.mobile-visible) {
        display: block !important;
        order: -1 !important;
    }

    /* Dashboard page title */
    .page-title {
        font-size: 20px !important;
    }

    .page-subtitle {
        font-size: 13px !important;
    }

    /* Quick action buttons in sidebar */
    .btn-primary-custom {
        font-size: 13px !important;
        padding: 10px 14px !important;
    }
}

/* --- Explore Page Phone Fix --- */
@media (max-width: 575px) {
    .profile-card {
        padding: 12px !important;
    }

    .profile-card .card-actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .profile-card .card-actions .btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* --- Login/Signup Phone Fix --- */
@media (max-width: 480px) {

    .lv-grid,
    .sf-grid {
        grid-template-columns: 1fr !important;
    }

    .lv-visual,
    .sf-visual {
        display: none !important;
    }

    .lv-form,
    .sf-form-wrapper {
        padding: 24px 16px !important;
    }

    .lv-top h2,
    .sf-form-wrapper h2 {
        font-size: 22px !important;
    }
}

/* --- Community Page Phone Fix --- */
@media (max-width: 680px) {
    .cf-feed-grid {
        grid-template-columns: 1fr !important;
    }

    .cf-sidebar-left,
    .cf-sidebar-right {
        display: none !important;
    }

    .cf-post-card {
        padding: 14px !important;
        border-radius: 10px !important;
    }

    .cf-post-actions {
        gap: 4px !important;
    }

    .cf-post-actions .cf-action {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

/* --- Contact Page Phone Fix --- */
@media (max-width: 575px) {
    .contact-hero {
        padding: 50px 0 40px !important;
    }

    .contact-card {
        padding: 16px !important;
    }

    /* Force contact info card grid to single column */
    .row.g-4>.col-md-4 {
        margin-bottom: 12px !important;
    }
}

/* --- About Page Phone Fix --- */
@media (max-width: 575px) {
    .about-hero {
        padding: 50px 0 40px !important;
        min-height: auto !important;
    }

    /* Timeline padding reduction */
    [style*="padding-left: 64px"] {
        padding-left: 32px !important;
    }

    /* Team member cards */
    .team-card {
        padding: 16px !important;
    }

    /* Values/features grid */
    .row.g-4>.col-md-6.col-lg-3,
    .row.g-4>.col-md-6.col-lg-4 {
        margin-bottom: 12px !important;
    }
}

/* --- Safe Area Insets (iPhone notch devices) --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .navbar-premium {
        padding-top: env(safe-area-inset-top) !important;
    }
}

/* --- Smooth Touch Scrolling (all mobile) --- */
@media (max-width: 991px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    a,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: transparent;
    }

    /* Momentum scrolling for overflow containers */
    .offcanvas-body,
    .mobile-submenu,
    .modal-body,
    .table-responsive {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* (Print styles are defined earlier in this file) */

