/* ============================================================
   DENTAVERSE — COMPREHENSIVE RESPONSIVE SYSTEM
   Optimized for ALL devices: Phones, Tablets, Laptops, Desktops, TVs
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   GLOBAL MOBILE-FIRST OVERFLOW PREVENTION
   ══════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll on ALL elements */
* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* Ensure all containers respect viewport width */
.container,
section,
div,
header,
footer,
main {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure images never overflow */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow */
p, h1, h2, h3, h4, h5, h6, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE GRID UTILITIES - MOBILE FIRST
   ══════════════════════════════════════════════════════════ */

/* ── EQUAL SIZE GRID (2 columns, 3 rows) ────────────────── */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.grid-box,
.box {
    border: 2px solid var(--brand-mid, #0066CC);
    background: white;
    min-height: 120px;
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.grid-box:hover,
.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    border-color: var(--brand-cyan, #00CCFF);
}

/* Mobile: Stack to 1 column */
@media (max-width: 640px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .grid-box,
    .box {
        min-height: 100px;
        padding: 15px;
    }
}

/* ── BENTO/MIXED SIZE GRID ──────────────────────────────── */
.bento-wrapper {
    display: flex;
    gap: 40px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.bento-group,
.left-group,
.right-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.bento-box {
    border: 2px solid var(--brand-mid, #0066CC);
    background: white;
    min-height: 100px;
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    border-color: var(--brand-cyan, #00CCFF);
}

/* Wide box spans full width */
.bento-wide,
.wide {
    grid-column: span 2;
    min-height: 80px;
}

/* Tall box spans 2 rows */
.bento-tall,
.tall {
    grid-row: span 2;
    min-height: 212px; /* 2 boxes + gap */
}

/* Mobile: Stack bento groups */
@media (max-width: 768px) {
    .bento-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 15px;
    }

    .bento-group,
    .left-group,
    .right-group {
        min-width: 100%;
        gap: 10px;
    }

    .bento-box {
        min-height: 80px;
        padding: 15px;
    }

    .bento-wide,
    .wide {
        min-height: 60px;
    }

    .bento-tall,
    .tall {
        grid-row: span 1;
        min-height: 80px;
    }
}

/* Extra small mobile: Single column */
@media (max-width: 480px) {
    .bento-group,
    .left-group,
    .right-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bento-wide,
    .wide {
        grid-column: span 1;
    }
}

/* ── FLEXIBLE GRID UTILITIES ────────────────────────────── */

/* 3 Column Grid */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 4 Column Grid */
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1024px) {
    .grid-4-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .grid-4-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Auto-fit Grid (responsive columns) */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 640px) {
    .grid-auto {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .grid-auto {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ── GRID ITEM UTILITIES ────────────────────────────────── */

/* Span utilities */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-full { grid-column: 1 / -1; }

.row-span-2 { grid-row: span 2; }
.row-span-3 { grid-row: span 3; }

/* Reset spans on mobile */
@media (max-width: 640px) {
    .span-2,
    .span-3,
    .span-4 {
        grid-column: span 1;
    }

    .row-span-2,
    .row-span-3 {
        grid-row: span 1;
    }
}

/* ── GAP UTILITIES ──────────────────────────────────────── */
.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 30px; }
.gap-xl { gap: 40px; }

/* ── CARD STYLES ────────────────────────────────────────── */
.card {
    background: white;
    border: 2px solid var(--bg-deep, #E0EAF8);
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(10, 37, 88, 0.12);
    border-color: var(--brand-cyan, #00CCFF);
}

.card-bordered {
    border: 2px solid var(--brand-mid, #0066CC);
}

.card-shadow {
    box-shadow: 0 4px 20px rgba(10, 37, 88, 0.08);
}

@media (max-width: 640px) {
    .card {
        padding: 16px;
        border-radius: 12px;
    }
}

/* ══════════════════════════════════════════════════════════
   MOBILE TEXT UTILITIES - Show/Hide Content
   ══════════════════════════════════════════════════════════ */

/* Hide on mobile - show on desktop */
.hide-mobile,
.desktop-only {
    display: block;
}

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

/* Show only on mobile - hide on desktop */
.show-mobile,
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile,
    .mobile-only {
        display: block !important;
    }
}

/* Text length control - 30% text on mobile */
.text-adaptive {
    display: block;
}

@media (max-width: 768px) {
    .text-adaptive {
        font-size: 0.8rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1; /* Only 1 line on mobile = ~30% of desktop */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Truncate text on mobile */
.mobile-truncate {
    display: block;
}

@media (max-width: 768px) {
    .mobile-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
}

/* Shorter text on mobile - 2 lines max */
.mobile-short {
    display: block;
}

@media (max-width: 768px) {
    .mobile-short {
        font-size: 0.8rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Compact spacing on mobile */
.mobile-compact {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .mobile-compact {
        margin-bottom: 0.4rem;
    }
}

/* Smaller headings on mobile */
@media (max-width: 768px) {
    .grid-box h1,
    .grid-box h2,
    .grid-box h3,
    .bento-box h1,
    .bento-box h2,
    .bento-box h3,
    .card h1,
    .card h2,
    .card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .grid-box h4,
    .grid-box h5,
    .grid-box h6,
    .bento-box h4,
    .bento-box h5,
    .bento-box h6,
    .card h4,
    .card h5,
    .card h6 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    /* Automatic text reduction - 30% of desktop */
    .grid-box p,
    .bento-box p,
    .card p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }

    /* Limit ALL paragraphs to 1 line on mobile (30% of desktop text) */
    .grid-box p:not(.mobile-full):not(.show-mobile),
    .bento-box p:not(.mobile-full):not(.show-mobile),
    .card p:not(.mobile-full):not(.show-mobile) {
        display: -webkit-box;
        -webkit-line-clamp: 1; /* Only 1 line = ~30% of typical 3-line desktop text */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Buttons and links smaller */
    .grid-box a,
    .grid-box button,
    .bento-box a,
    .bento-box button,
    .card a,
    .card button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Lists more compact */
    .grid-box ul,
    .grid-box ol,
    .bento-box ul,
    .bento-box ol,
    .card ul,
    .card ol {
        font-size: 0.8rem;
        line-height: 1.3;
        padding-left: 1.2rem;
    }

    .grid-box li,
    .bento-box li,
    .card li {
        margin-bottom: 0.2rem;
    }
}

/* Force full text on mobile (override auto-reduction) */
.mobile-full {
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-full {
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
    }
}

/* ══════════════════════════════════════════════════════════
   BREAKPOINT STRATEGY
   ══════════════════════════════════════════════════════════
   
   Small Phone:    320px - 374px  (iPhone SE, older Android)
   Phone:          375px - 767px  (iPhone 12/13/14, most Android)
   Tablet:         768px - 1023px (iPad, Android tablets)
   Laptop:         1024px - 1439px (MacBook Air, standard laptops)
   Desktop:        1440px - 1919px (MacBook Pro 16", iMac, Windows)
   Large Desktop:  1920px - 2559px (Full HD monitors)
   4K/TV:          2560px+         (4K monitors, large TVs)
   
   ══════════════════════════════════════════════════════════ */

/* ── BASE / MOBILE FIRST (320px+) ────────────────────────── */
/* Already defined in theme.css, these are overrides */

/* ── SMALL PHONES (320px - 374px) ─────────────────────────── */
@media (max-width: 374px) {
    :root {
        --nav-h: 56px;
    }

    .container {
        padding: 0 12px;
    }

    /* Header - Fixed positioning without overlap */
    .dv-header {
        height: var(--nav-h);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
    }

    /* Add padding to body to prevent content overlap */
    body {
        padding-top: var(--nav-h);
    }

    /* Ensure page content starts below header */
    main {
        padding-top: 0;
    }

    .page-hero,
    .hero-section,
    section:first-of-type {
        padding-top: 1.5rem !important;
    }

    .dv-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dv-nav-links {
        display: none;
    }

    .dv-hamburger {
        display: flex !important;
        min-width: 44px;
        min-height: 44px;
    }

    .dv-nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dv-nav-right .dv-btn-book {
        display: none;
    }

    .dv-logo {
        font-size: 0.9rem;
        gap: 6px;
    }

    .dv-logo-img {
        width: 28px;
        height: 28px;
    }

    .dv-btn-book {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }

    /* Mobile Menu */
    .dv-mobile-menu {
        padding: 1rem 1rem 1.5rem;
    }

    .dv-mobile-menu a {
        font-size: 0.95rem;
        padding: 0.9rem 0;
        min-height: 48px;
    }

    /* Footer - Better Mobile Layout */
    .dv-footer {
        padding: 2.5rem 0.75rem 1.5rem;
        text-align: center;
        background: #060f22;
    }

    .dv-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dv-footer-logo {
        font-size: 1.1rem;
        justify-content: center;
    }

    .dv-footer-logo img {
        width: 30px;
        height: 30px;
    }

    .dv-footer-about p {
        font-size: 0.85rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.6);
    }

    .dv-footer-social a {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .dv-footer-col {
        padding: 1.25rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dv-footer-col h5 {
        font-size: 0.75rem;
    }

    .dv-footer-col a {
        font-size: 0.9rem;
    }

    .dv-footer-bottom {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

/* ── STANDARD PHONES (375px - 767px) ──────────────────────── */
/* iPhone 12/13/14, Galaxy S21/S22, Pixel, OnePlus */
@media (min-width: 375px) and (max-width: 767px) {
    :root {
        --nav-h: 60px;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    /* Header - Fixed positioning without overlap */
    .dv-header {
        height: var(--nav-h);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
    }

    /* Add padding to body to prevent content overlap */
    body {
        padding-top: var(--nav-h);
    }

    /* Ensure page content starts below header */
    main {
        padding-top: 0;
    }

    .page-hero,
    .hero-section,
    section:first-of-type {
        padding-top: 2rem !important;
    }

    .dv-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .dv-logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .dv-logo-img {
        width: 32px;
        height: 32px;
    }

    .dv-nav-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .dv-btn-book {
        display: none; /* Hidden on mobile, shown in mobile menu */
    }

    .dv-hamburger {
        display: flex !important;
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobile Menu - Full Width */
    .dv-mobile-menu {
        padding: 1rem 1.5rem 1.5rem;
    }

    .dv-mobile-menu a {
        font-size: 1.05rem;
        padding: 1rem 0;
        min-height: 52px;
    }

    .dv-mobile-cta {
        margin-top: 1rem;
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Footer - Better Mobile Layout */
    .dv-footer {
        padding: 3rem 1rem 2rem;
        text-align: center;
        background: #060f22;
    }

    .dv-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .dv-footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .dv-footer-logo {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .dv-footer-logo img {
        width: 36px;
        height: 36px;
    }

    .dv-footer-about p {
        max-width: 100%;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 1.5rem;
    }

    .dv-footer-social {
        justify-content: center;
        gap: 0.8rem;
    }

    .dv-footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dv-footer-col {
        text-align: center;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dv-footer-col:first-of-type {
        border-top: none;
    }

    .dv-footer-col h5 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .dv-footer-col a {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.65);
        display: block;
    }

    .dv-footer-divider {
        margin: 2rem 0 1.5rem;
    }

    .dv-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.4);
    }
}
        text-align: center;
    }

    .dv-footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dv-footer-about p {
        max-width: 100%;
        text-align: center;
    }

    .dv-footer-social {
        justify-content: center;
    }

    .dv-footer-col {
        text-align: center;
    }

    .dv-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ── LARGE PHONES (414px - 767px) ─────────────────────────── */
/* iPhone Pro Max, Galaxy Note, OnePlus */
@media (min-width: 414px) and (max-width: 767px) {
    .dv-logo {
        font-size: 1.15rem;
    }

    .dv-logo-img {
        width: 34px;
        height: 34px;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .dv-mobile-menu a {
        font-size: 1.1rem;
    }
}

/* ── TABLETS (768px - 1023px) ─────────────────────────────── */
/* iPad, iPad Air, iPad Pro 11", Android tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --nav-h: 68px;
    }

    .container {
        padding: 0 32px;
        max-width: 100%;
    }

    /* Header - Show nav links, hide hamburger */
    .dv-header {
        height: var(--nav-h);
    }

    .dv-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .dv-logo {
        font-size: 1.25rem;
        gap: 10px;
    }

    .dv-logo-img {
        width: 36px;
        height: 36px;
    }

    .dv-nav-links {
        display: flex;
        gap: 1.5rem;
        justify-self: center;
    }

    .dv-nav-links a {
        font-size: 0.75rem;
    }

    .dv-nav-right {
        justify-self: end;
        gap: 1rem;
    }

    .dv-btn-book {
        display: inline-flex;
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .dv-hamburger {
        display: none;
    }

    .dv-mobile-menu {
        display: none !important;
    }

    /* Footer - 2 columns */
    .dv-footer {
        padding: 4rem 0 2rem;
    }

    .dv-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }

    .dv-footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }

    .dv-footer-about p {
        margin-left: auto;
        margin-right: auto;
    }

    .dv-footer-social {
        justify-content: center;
    }

    .dv-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ── LAPTOPS (1024px - 1439px) ────────────────────────────── */
/* MacBook Air, Standard Windows laptops, iPad Pro 12.9" */
@media (min-width: 1024px) and (max-width: 1439px) {
    :root {
        --nav-h: 72px;
    }

    .container {
        max-width: 1180px;
        padding: 0 40px;
    }

    /* Header - Full layout */
    .dv-header {
        height: var(--nav-h);
    }

    .dv-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .dv-logo {
        font-size: 1.35rem;
        gap: 12px;
    }

    .dv-logo-img {
        width: 38px;
        height: 38px;
    }

    .dv-nav-links {
        display: flex;
        gap: 2rem;
        justify-self: center;
    }

    .dv-nav-links a {
        font-size: 0.8rem;
    }

    .dv-nav-right {
        justify-self: end;
        gap: 1.5rem;
    }

    .dv-btn-book {
        display: inline-flex;
        padding: 0.65rem 1.4rem;
        font-size: 0.8rem;
    }

    .dv-hamburger {
        display: none;
    }

    /* Footer - 4 columns */
    .dv-footer {
        padding: 4.5rem 0 2rem;
    }

    .dv-footer-grid {
        grid-template-columns: 2.2fr 1fr 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }

    .dv-footer-about {
        text-align: left;
    }

    .dv-footer-about p {
        margin-left: 0;
        margin-right: 0;
    }

    .dv-footer-social {
        justify-content: flex-start;
    }

    .dv-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ── STANDARD DESKTOPS (1440px - 1919px) ──────────────────── */
/* MacBook Pro 16", iMac, Standard Windows desktops */
@media (min-width: 1440px) and (max-width: 1919px) {
    :root {
        --nav-h: 76px;
    }

    .container {
        max-width: 1280px;
        padding: 0 48px;
    }

    .dv-logo {
        font-size: 1.4rem;
        gap: 12px;
    }

    .dv-logo-img {
        width: 40px;
        height: 40px;
    }

    .dv-nav-links {
        gap: 2.5rem;
    }

    .dv-nav-links a {
        font-size: 0.85rem;
    }

    .dv-btn-book {
        padding: 0.7rem 1.6rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .section-subtitle {
        font-size: 1.15rem;
        max-width: 680px;
    }

    .dv-footer {
        padding: 5rem 0 2.5rem;
    }

    .dv-footer-grid {
        gap: 4rem;
    }

    .dv-footer-logo {
        font-size: 1.3rem;
    }

    .dv-footer-logo img {
        width: 36px;
        height: 36px;
    }
}

/* ── LARGE DESKTOPS / FULL HD (1920px - 2559px) ───────────── */
/* Full HD monitors, Large iMacs */
@media (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --nav-h: 80px;
    }

    .container {
        max-width: 1440px;
        padding: 0 60px;
    }

    .dv-logo {
        font-size: 1.5rem;
        gap: 14px;
    }

    .dv-logo-img {
        width: 44px;
        height: 44px;
    }

    .dv-nav-links {
        gap: 3rem;
    }

    .dv-nav-links a {
        font-size: 0.9rem;
    }

    .dv-btn-book {
        padding: 0.75rem 1.8rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 4rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
        max-width: 780px;
    }

    .btn {
        padding: 1.1rem 2.6rem;
        font-size: 1rem;
    }

    .dv-footer {
        padding: 6rem 0 3rem;
    }

    .dv-footer-grid {
        gap: 5rem;
    }

    .dv-footer-logo {
        font-size: 1.4rem;
    }

    .dv-footer-logo img {
        width: 40px;
        height: 40px;
    }

    .dv-footer-col h5 {
        font-size: 0.8rem;
    }

    .dv-footer-col a {
        font-size: 0.95rem;
    }
}

/* ── 4K MONITORS & LARGE TVs (2560px+) ────────────────────── */
/* 4K monitors, Large TVs, Ultra-wide displays */
@media (min-width: 2560px) {
    :root {
        --nav-h: 96px;
    }

    .container {
        max-width: 1800px;
        padding: 0 80px;
    }

    .dv-logo {
        font-size: 1.8rem;
        gap: 16px;
    }

    .dv-logo-img {
        width: 52px;
        height: 52px;
    }

    .dv-nav-links {
        gap: 4rem;
    }

    .dv-nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }

    .dv-btn-book {
        padding: 0.9rem 2.2rem;
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 5rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
        max-width: 980px;
    }

    .btn {
        padding: 1.3rem 3rem;
        font-size: 1.1rem;
    }

    .dv-footer {
        padding: 8rem 0 4rem;
    }

    .dv-footer-grid {
        gap: 6rem;
    }

    .dv-footer-logo {
        font-size: 1.8rem;
    }

    .dv-footer-logo img {
        width: 48px;
        height: 48px;
    }

    .dv-footer-col h5 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .dv-footer-col a {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    .dv-footer-about p {
        font-size: 1.05rem;
        max-width: 400px;
    }

    .dv-footer-social a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .dv-footer-bottom {
        font-size: 0.95rem;
    }
}

/* ══════════════════════════════════════════════════════════
   SPECIFIC DEVICE OPTIMIZATIONS
   ══════════════════════════════════════════════════════════ */

/* ── iPhone SE (375x667) ────────────────────────────────── */
@media (width: 375px) and (height: 667px) {
    :root {
        --nav-h: 58px;
    }

    .container {
        padding: 0 14px;
    }
}

/* ── iPhone 12/13/14 (390x844) ──────────────────────────── */
@media (width: 390px) and (height: 844px) {
    :root {
        --nav-h: 60px;
    }
}

/* ── iPhone 14 Pro Max (430x932) ────────────────────────── */
@media (width: 430px) and (height: 932px) {
    :root {
        --nav-h: 62px;
    }

    .dv-logo {
        font-size: 1.2rem;
    }
}

/* ── iPad (768x1024) ────────────────────────────────────── */
@media (width: 768px) and (height: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ── iPad Pro 11" (834x1194) ────────────────────────────── */
@media (width: 834px) and (height: 1194px) {
    .container {
        padding: 0 36px;
    }
}

/* ── iPad Pro 12.9" (1024x1366) ─────────────────────────── */
@media (width: 1024px) and (height: 1366px) {
    .container {
        padding: 0 48px;
    }
}

/* ── MacBook Air 13" (1440x900) ─────────────────────────── */
@media (width: 1440px) and (height: 900px) {
    .container {
        max-width: 1280px;
        padding: 0 48px;
    }
}

/* ── MacBook Pro 16" (1728x1117) ────────────────────────── */
@media (width: 1728px) and (height: 1117px) {
    .container {
        max-width: 1440px;
        padding: 0 56px;
    }
}

/* ══════════════════════════════════════════════════════════
   ORIENTATION HANDLING
   ══════════════════════════════════════════════════════════ */

/* ── Landscape on Mobile ────────────────────────────────── */
@media (max-width: 926px) and (orientation: landscape) {
    :root {
        --nav-h: 52px;
    }

    .dv-header {
        height: var(--nav-h);
    }

    .dv-logo {
        font-size: 1rem;
    }

    .dv-logo-img {
        width: 30px;
        height: 30px;
    }

    .dv-nav-links a {
        font-size: 0.75rem;
    }

    .dv-btn-book {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .dv-mobile-menu {
        max-height: calc(100vh - var(--nav-h));
    }
}

/* ── Portrait on Tablet ─────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .dv-nav-links {
        gap: 1.2rem;
    }

    .dv-nav-links a {
        font-size: 0.72rem;
    }
}

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY & PREFERENCES
   ══════════════════════════════════════════════════════════ */

/* ── High Contrast Mode ─────────────────────────────────── */
@media (prefers-contrast: high) {
    .dv-header {
        border-bottom: 2px solid var(--brand-dark);
    }

    .dv-nav-links a {
        font-weight: 700;
    }

    .dv-footer {
        border-top: 2px solid rgba(255, 255, 255, 0.2);
    }
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .dv-header,
    .dv-mobile-menu,
    .dv-mobile-menu a,
    .dv-nav-links a::after,
    .dv-btn-book,
    .btn {
        transition: none !important;
        animation: none !important;
    }
}

/* ── Dark Mode Support (Future) ─────────────────────────── */
@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode implementation */
    /* Currently using light theme only */
}

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════ */

@media print {
    .dv-header,
    .dv-hamburger,
    .dv-mobile-menu,
    .dv-btn-book,
    .btn,
    .dv-footer-social,
    #loader {
        display: none !important;
    }

    .dv-footer {
        background: white;
        color: black;
        border-top: 2px solid black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* ══════════════════════════════════════════════════════════
   UTILITY CLASSES FOR RESPONSIVE VISIBILITY
   ══════════════════════════════════════════════════════════ */

/* Hide on mobile */
.hide-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block !important;
    }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet {
        display: none !important;
    }
}

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

/* Show only on mobile */
.show-mobile {
    display: block !important;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}

/* Show only on tablet */
.show-tablet {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .show-tablet {
        display: block !important;
    }
}

/* Show only on desktop */
.show-desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    .show-desktop {
        display: block !important;
    }
}


/* ══════════════════════════════════════════════════════════
   ENHANCED GRID HOVER EFFECTS & ANIMATIONS
   ══════════════════════════════════════════════════════════ */

/* Beautiful hover effects for grid boxes */
.grid-box:hover,
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.15);
    border-color: var(--brand-cyan, #00CCFF);
}

/* Smooth transitions */
.grid-box,
.card,
.bento-box {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon hover animations */
.feature-icon,
.asc-icon {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-box:hover .feature-icon,
.card:hover .feature-icon,
.grid-box:hover .asc-icon,
.card:hover .asc-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Link hover effects */
.asc-link:hover {
    transform: translateX(5px);
    color: var(--brand-cyan, #00CCFF) !important;
}

/* Button hover effects */
.offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Gradient animation on hover for colored boxes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.grid-box:hover[style*="gradient"],
.card:hover[style*="gradient"] {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Subtle scale animation for decorative circles */
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Mobile: Reduce hover effects */
@media (max-width: 768px) {
    .grid-box:hover,
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 102, 204, 0.12);
    }
    
    .grid-box:hover .feature-icon,
    .card:hover .feature-icon,
    .grid-box:hover .asc-icon,
    .card:hover .asc-icon {
        transform: scale(1.05);
    }
}

/* Touch devices: Tap feedback */
@media (hover: none) and (pointer: coarse) {
    .grid-box:active,
    .card:active {
        transform: scale(0.98);
    }
}


/* ══════════════════════════════════════════════════════════
   DENTAVERSE — GLOBAL MOBILE POLISH
   Clean, minimal, easy-to-read on all phones
   ══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* ── TYPOGRAPHY ─────────────────────────────────────── */
    h1 { font-size: 1.75rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.4rem  !important; line-height: 1.25 !important; }
    h3 { font-size: 1.1rem  !important; line-height: 1.3 !important; }
    h4 { font-size: 0.95rem !important; line-height: 1.3 !important; }

    .section-title    { font-size: 1.5rem !important; margin-bottom: 0.6rem !important; }
    .section-subtitle { font-size: 0.85rem !important; margin-bottom: 1.5rem !important; line-height: 1.6 !important; }
    .section-eyebrow  { font-size: 0.68rem !important; }

    /* ── LIMIT ALL BODY TEXT TO 2 LINES ON MOBILE ───────── */
    /* Cards, grids, strips — keep it scannable */
    .wwa-card p,
    .feature-card p,
    .card p,
    .grid-box p,
    .bento-box p,
    .about-strip-card p,
    .mv-card p,
    .why-card p,
    .glass-card p,
    .tl-card p,
    .post-card p,
    .fact-card p,
    .step-content p {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
    }

    /* Hide secondary paragraphs in cards entirely */
    .wwa-card p + p,
    .card p + p,
    .grid-box p + p,
    .mv-card p + p,
    .why-card p + p,
    .tl-card p + p {
        display: none !important;
    }

    /* Headings inside cards — compact */
    .wwa-card h3,
    .card h4,
    .grid-box h3,
    .grid-box h4,
    .bento-box h3,
    .bento-box h4,
    .mv-card h3,
    .why-card h3,
    .tl-card h3,
    .feature-card h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.25 !important;
    }

    /* ── CARD PADDING & SPACING ─────────────────────────── */
    .wwa-card,
    .card,
    .grid-box,
    .bento-box,
    .mv-card,
    .why-card,
    .glass-card,
    .glass-card-gold,
    .tl-card,
    .feature-card,
    .about-strip-card {
        padding: 1rem 0.9rem !important;
        border-radius: 14px !important;
    }

    /* ── GRID GAPS ──────────────────────────────────────── */
    .wwa-grid,
    .grid-container,
    .grid-3-col,
    .grid-4-col,
    .grid-auto,
    .bento-wrapper,
    .mv-grid,
    .why-grid,
    .features-grid,
    .features .grid-3-col {
        gap: 0.75rem !important;
        padding: 0 !important;
    }

    /* ── ICONS — SMALLER ON MOBILE ──────────────────────── */
    .wwa-icon,
    .feature-icon,
    .mv-icon,
    .asc-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        margin-bottom: 0.7rem !important;
    }
    .wwa-icon svg,
    .feature-icon svg,
    .mv-icon svg,
    .asc-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* ── TAGS / BADGES ──────────────────────────────────── */
    .wwa-tag,
    .asc-tag,
    .section-eyebrow,
    .eyebrow {
        font-size: 0.62rem !important;
        padding: 0.25rem 0.6rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* ── HIDE LISTS INSIDE CARDS ON MOBILE ──────────────── */
    .wwa-list,
    .offer-list,
    .pc-features,
    .hw-features {
        display: none !important;
    }

    /* ── BUTTONS ────────────────────────────────────────── */
    .wwa-btn,
    .btn,
    .dv-btn-book {
        padding: 0.65rem 1.2rem !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }

    /* ── SECTION PADDING ────────────────────────────────── */
    section,
    .about-strip,
    .team-sec,
    .story-sec,
    .mv-sec,
    .features,
    .how-it-works,
    .stats,
    .testimonials,
    .newsletter {
        padding: 2.5rem 0 !important;
    }

    /* ── HERO SECTION ───────────────────────────────────── */
    .hero {
        padding-top: calc(var(--nav-h, 60px) + 1.5rem) !important;
        padding-bottom: 2rem !important;
        min-height: auto !important;
    }
    .hero h1 {
        font-size: 1.9rem !important;
        margin-bottom: 0.8rem !important;
    }
    .hero-desc {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
        /* Limit hero description to 3 lines */
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .hero-badge {
        font-size: 0.68rem !important;
        padding: 4px 12px !important;
        margin-bottom: 1rem !important;
    }
    .hero-actions {
        gap: 0.6rem !important;
    }
    .hero-actions .btn {
        padding: 0.75rem 1.4rem !important;
        font-size: 0.82rem !important;
    }

    /* ── PAGE HEROES (about, products, etc.) ────────────── */
    .about-hero,
    .page-hero,
    .products-hero,
    .blog-hero,
    .contact-hero {
        padding: calc(var(--nav-h, 60px) + 1.5rem) 0 2rem !important;
    }
    .about-hero h1,
    .page-hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    .about-hero p,
    .page-hero p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* ── STATS BAR ──────────────────────────────────────── */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        border-radius: 16px !important;
    }
    .hero-stat {
        padding: 1rem 0.75rem !important;
    }
    .stat-num {
        font-size: 1.6rem !important;
        margin-bottom: 0.2rem !important;
    }
    .stat-label {
        font-size: 0.6rem !important;
    }

    /* ── WHO WE ARE STRIP (index.html) ──────────────────── */
    .wwa-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .wwa-card:nth-child(1),
    .wwa-card:nth-child(2),
    .wwa-card:nth-child(3) { grid-column: auto !important; }
    .wwa-card:nth-child(4) { grid-column: 1 / -1 !important; }

    /* ── FEATURES GRID (index.html) ─────────────────────── */
    .features .grid-3-col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* ── HOW IT WORKS STEPS ─────────────────────────────── */
    .steps-wrapper {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .step-item {
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    .step-num {
        font-size: 1rem !important;
        width: 36px !important;
        height: 36px !important;
    }
    .step-content h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    /* ── STORY SECTION (about.html) ─────────────────────── */
    .story-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .story-visual {
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }
    .story-quote {
        font-size: 1.1rem !important;
    }
    .story-text p {
        font-size: 0.85rem !important;
        line-height: 1.65 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* ── MISSION / VISION (about.html) ──────────────────── */
    .mv-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .mv-card {
        padding: 1.2rem 1rem !important;
        border-radius: 16px !important;
    }
    .mv-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    .mv-num {
        font-size: 4rem !important;
    }

    /* ── TEAM GRID (about.html) ─────────────────────────── */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .team-card:nth-child(1),
    .team-card:nth-child(2),
    .team-card:nth-child(3),
    .team-card:nth-child(4) { grid-column: auto !important; }
    .team-card:nth-child(5) {
        grid-column: 1 / -1 !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }
    .team-card {
        padding: 1rem 0.6rem !important;
        border-radius: 18px !important;
    }
    .tm-avatar-wrap {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 0.6rem !important;
    }
    .tm-name {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }
    .tm-role {
        font-size: 0.62rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }
    .tm-qual {
        font-size: 0.58rem !important;
        line-height: 1.3 !important;
    }
    .tm-number {
        font-size: 0.65rem !important;
    }
    .tm-click-hint {
        display: none !important;
    }

    /* ── PRODUCTS / PRICING (products.html) ─────────────── */
    .pricing-grid,
    .pc-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .pc {
        padding: 1.2rem 1rem !important;
        border-radius: 16px !important;
    }
    .pc h3 {
        font-size: 1rem !important;
    }
    .pc-price {
        font-size: 1.8rem !important;
    }
    /* Show only first 3 features on mobile */
    .pc ul li:nth-child(n+4) {
        display: none !important;
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .hw-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* ── BLOG GRID (blog.html) ──────────────────────────── */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .featured-card {
        grid-template-columns: 1fr !important;
    }
    .post-card {
        border-radius: 14px !important;
    }
    .post-card h3 {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .post-card p,
    .post-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.78rem !important;
    }
    .cat-bar {
        gap: 0.4rem !important;
        padding: 0 !important;
    }
    .cat-pill {
        font-size: 0.72rem !important;
        padding: 0.35rem 0.8rem !important;
    }

    /* ── CONTACT PAGE (contact.html) ────────────────────── */
    .contact-grid,
    .cg {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .contact-highlights {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    .highlight-chip {
        padding: 0.7rem 0.8rem !important;
        border-radius: 12px !important;
    }
    .highlight-chip p,
    .highlight-chip span {
        font-size: 0.75rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* ── NEWSLETTER ─────────────────────────────────────── */
    .news-box,
    .newsletter-box {
        padding: 1.5rem 1rem !important;
        border-radius: 16px !important;
    }
    .news-box h2,
    .newsletter-box h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .news-box p,
    .newsletter-box p {
        font-size: 0.82rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .news-form,
    .newsletter-form {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }
    .news-form input,
    .newsletter-form input {
        width: 100% !important;
        font-size: 0.85rem !important;
    }

    /* ── FOOTER ─────────────────────────────────────────── */
    .dv-footer {
        padding: 2rem 1rem 1.5rem !important;
    }
    .dv-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        text-align: center !important;
    }
    .dv-footer-logo {
        justify-content: center !important;
        font-size: 1.1rem !important;
    }
    .dv-footer-about p {
        font-size: 0.8rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .dv-footer-col h5 {
        font-size: 0.7rem !important;
        margin-bottom: 0.6rem !important;
    }
    .dv-footer-col a {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    .dv-footer-social {
        justify-content: center !important;
        gap: 0.6rem !important;
    }
    .dv-footer-social a {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }
    .dv-footer-bottom {
        font-size: 0.72rem !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        text-align: center !important;
    }

    /* ── TESTIMONIALS ───────────────────────────────────── */
    .testi-panel,
    .testimonial-card {
        padding: 1.2rem 1rem !important;
        border-radius: 14px !important;
    }
    .testi-text,
    .testimonial-text {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .testi-name,
    .testimonial-name {
        font-size: 0.85rem !important;
    }
    .testi-role,
    .testimonial-role {
        font-size: 0.72rem !important;
    }

    /* ── TIMELINE (how-it-works.html) ───────────────────── */
    .timeline {
        padding-left: 1.2rem !important;
    }
    .tl-item {
        margin-bottom: 1.2rem !important;
    }
    .tl-card {
        padding: 1rem 0.9rem !important;
        border-radius: 14px !important;
    }
    .tl-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    /* ── GENERAL CONTAINER PADDING ──────────────────────── */
    .container {
        padding: 0 1rem !important;
    }

    /* ── DIVIDERS & DECORATIVE ELEMENTS ─────────────────── */
    .divider-brand {
        margin: 0 auto 1rem !important;
    }
    .section-header {
        margin-bottom: 1.5rem !important;
    }

    /* ── HIDE DECORATIVE ELEMENTS ON MOBILE ─────────────── */
    .hero-float-card,
    .story-badge,
    .how-img-badge,
    .mv-num {
        display: none !important;
    }

    /* ── HOW IT WORKS IMAGE ─────────────────────────────── */
    .how-img-wrap {
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .how-img-wrap img {
        border-radius: 16px !important;
    }

}

/* ── EXTRA SMALL PHONES (≤374px) ────────────────────────── */
@media (max-width: 374px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 0.95rem !important; }

    .wwa-card,
    .card,
    .grid-box,
    .team-card,
    .mv-card {
        padding: 0.8rem 0.7rem !important;
    }

    .wwa-icon,
    .feature-icon,
    .mv-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .tm-avatar-wrap {
        width: 52px !important;
        height: 52px !important;
    }

    .hero h1 {
        font-size: 1.6rem !important;
    }

    .stat-num {
        font-size: 1.4rem !important;
    }
}
