/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/*
 * TABLE OF CONTENTS
 * =================
 *
 * [A] CSS Custom Properties / Brand Colors
 * [B] Global Resets & Overrides
 * [C] Typography -- Uncode Heading Mobile Scaling
 * [D] Buttons
 * [E] Layout & Spacing Utilities
 * [F] Navigation -- Desktop
 * [G] Navigation -- Mobile
 * [H] Hero Section
 * [I] Service Cards + Hover Effects
 * [J] Practice / "Why Choose Aqua" Section
 * [K] Reviews Section
 * [L] Services Grid
 * [M] Mission Section
 * [N] Content Page Styles
 * [O] Blog / Post Content
 * [P] Footer
 * [Q] Miscellaneous
 */


/* ==========================================================================
   [A] CSS CUSTOM PROPERTIES / BRAND COLORS
   ========================================================================== */

:root {
    /* Figma Design Colors - Actual Values */
    --aps-cyan-light: #31c3f2;
    --aps-cyan-dark: #1d87af;
    --aps-navy: #00526d;
    --aps-text-dark: #03151c;
    --aps-bg-light: #f3f9fa;
    --aps-powder-blue: #c3e2ee;
    --aps-teal-blue: #307891;
    --aps-medium-blue: #469bbb;
    --aps-sky-blue: #a7e3f7;
    --aps-white: #ffffff;
}


/* ==========================================================================
   [B] GLOBAL RESETS & OVERRIDES
   ========================================================================== */

/* Link colors - content area */
.style-light .uncode_text_column a {
    color: #288AAF;
}
.style-light .uncode_text_column a:hover {
    color: #00526D;
    text-decoration: underline;
}

/* Primary button styling */
.btn-default.btn-primary,
.btn.btn-primary {
    background-color: var(--aps-cyan-dark) !important;
    border-color: var(--aps-cyan-dark) !important;
}

.btn-default.btn-primary:hover,
.btn.btn-primary:hover {
    background-color: var(--aps-navy) !important;
    border-color: var(--aps-navy) !important;
}

/* Link colors - global */
a {
    color: var(--aps-cyan-dark);
}

a:hover {
    color: var(--aps-navy);
}

/* Headings default color */
h1, h2, h3, h4, h5, h6 {
    color: var(--aps-navy);
}

/* Small / figcaption */
small, figcaption {
    font-size: 14px;
}


/* ==========================================================================
   [C] TYPOGRAPHY -- UNCODE HEADING MOBILE SCALING
   Uncode only scales .h1 and .h2 on mobile. These rules fill the gap so
   the heading hierarchy stays proportional on small screens.
   ========================================================================== */

@media (max-width: 959px) {
    .h3:not([class*="fontsize-"]):not(.aps-result-card-title):not(.aps-grid-card__name) {
        font-size: 26px;
        line-height: 34px;
    }
    .h5:not([class*="fontsize-"]):not(.aps-grid-card__name) {
        font-size: 20px;
        line-height: 28px;
    }
}


/* ==========================================================================
   [D] BUTTONS
   ========================================================================== */

.btn-color-285459 {
    display: inline-flex;
    justify-content: center;
    background: linear-gradient(to bottom, #31c3f2, #1d87af);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 195, 242, 0.3);
    border-image: none !important;
    border: 0px !important;
}

.btn-teal-outline {
    background: transparent !important;
    color: var(--aps-cyan-dark) !important;
    border: 2px solid var(--aps-cyan-dark);
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-teal-outline:hover {
    background: var(--aps-cyan-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 166, 165, 0.3);
}


/* ==========================================================================
   [E] LAYOUT & SPACING UTILITIES
   ========================================================================== */

/* --- Section Spacing --- */

.aps-section {
    padding: 100px 0;
}

.aps-section-sm {
    padding: 60px 0;
}

.aps-section-lg {
    padding: 140px 0;
}

@media (max-width: 768px) {
    .aps-section {
        padding: 60px 0;
    }
    
    .aps-section-sm {
        padding: 40px 0;
    }
    
    .aps-section-lg {
        padding: 80px 0;
    }
}

/* --- Utility Classes --- */

.aps-text-teal {
    color: var(--aps-cyan-dark) !important;
}

.aps-text-dark-teal {
    color: var(--aps-navy) !important;
}

.aps-bg-light-teal {
    background-color: var(--aps-powder-blue) !important;
}

.aps-bg-teal {
    background-color: var(--aps-cyan-dark) !important;
}

.aps-bg-dark-teal {
    background-color: var(--aps-navy) !important;
}

.aps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.aps-text-center {
    text-align: center;
}

.aps-mb-small {
    margin-bottom: 20px;
}

.aps-mb-medium {
    margin-bottom: 40px;
}

.aps-mb-large {
    margin-bottom: 60px;
}


/* ==========================================================================
   [F] NAVIGATION -- DESKTOP (>= 960px)
   Match Figma Design: https://www.figma.com/design/smSUmn8EPQlZhgWdi41syG/
   ========================================================================== */

@media (min-width: 960px) {
    /* Right-align navigation */
    .menu-horizontal-inner {
        display: flex !important;
        justify-content: flex-end !important;
    }
    
    /* Menu list - 24px spacing between items */
    #menu-main-menu.menu-primary-inner {
        display: flex !important;
        align-items: center !important;
        gap: 24px !important;
        flex-direction: row !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Menu items */
    #menu-main-menu.menu-primary-inner > li.menu-item {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Menu links - Typography to match Figma */
    #menu-main-menu.menu-primary-inner > li.menu-item > a {
        font-family: 'Nunito Sans', sans-serif !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        line-height: 20px !important;
        color: #03151c !important;
        text-decoration: none !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        transition: color 0.3s ease !important;
    }

    /* Link hover state */
    #menu-main-menu.menu-primary-inner > li.menu-item > a:hover {
        color: #1d87af !important;
        background: transparent !important;
    }

    /* Hide all menu arrows on desktop by default */
    #menu-main-menu.menu-primary-inner > li.menu-item > a > i.fa-dropdown,
    #menu-main-menu.menu-primary-inner > li.menu-item > a > i.fa-angle-right {
        display: none !important;
    }

    /* Show dropdown carets only on items with submenus */
    #menu-main-menu.menu-primary-inner > li.menu-item-has-children > a > i.fa-dropdown,
    #menu-main-menu.menu-primary-inner > li.menu-item-has-children > a > i.fa-angle-right {
        display: inline-block !important;
    }

    /* Hide mobile-only translate toggle on desktop */
    #menu-main-menu.menu-primary-inner > li.aps-lang-menu-item {
        display: none !important;
    }
}

/* Compact desktop nav for narrower viewports (960-1199px) */
@media (min-width: 960px) and (max-width: 1199px) {
    #menu-main-menu.menu-primary-inner {
        gap: 12px !important;
    }

    #menu-main-menu.menu-primary-inner > li.menu-item > a {
        font-size: 12px !important;
    }

    #menu-item-1030 {
        display: none !important;
    }
}

/* --- Book Consultation Button (all breakpoints) --- */

/* Phone button in nav */
#menu-main-menu.menu-primary-inner > li.aps-phone > a {
    height: 40px !important;
    border-radius: 42px !important;
    background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #ffffff !important;
    letter-spacing: 1.5px !important;
}

#menu-main-menu.menu-primary-inner > li.aps-phone > a:hover {
    background: linear-gradient(180deg, #1d87af 0%, #0d6b6b 100%) !important;
}

#menu-main-menu.menu-primary-inner > li.aps-phone .fa-dropdown {
    display: none !important;
}


/* ==========================================================================
   [G] NAVIGATION -- MOBILE (< 960px)
   Phase 1: Header bar  |  Phase 2: Open menu panel  |  Phase 3: Polish
   ========================================================================== */

@media (max-width: 959px) {

    /* ------------------------------------------------------------------
       Icon spacing fix (aps-icon in h4)
       ------------------------------------------------------------------ */
    .uncode_text_column:has(h4 img.aps-icon) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    h4 img.aps-icon,
    h4 img.aps-icon.alignnone {
        position: static !important;
        display: inline-block !important;
        margin: 0 12px 0 0 !important;
        max-width: 40px !important;
        width: 40px !important;
        height: auto !important;
        vertical-align: middle !important;
        float: none !important;
        left: auto !important;
        top: auto !important;
    }

    /* ==================================================================
       PHASE 1 — MOBILE HEADER BAR (closed state)
       ================================================================== */

    /* 1-1  Hamburger icon — APS navy color */
    .mobile-menu-button .lines,
    .mobile-menu-button .lines::before,
    .mobile-menu-button .lines::after {
        background-color: #03151c !important;
    }
    .mobile-menu-button .lines {
        width: 24px !important;
        height: 2px !important;
    }
    .mobile-menu-button .lines::before,
    .mobile-menu-button .lines::after {
        width: 24px !important;
        height: 2px !important;
    }

    /* 1-2  Mobile CTA — teal call icon next to hamburger */
    .mmb-container {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .mmb-container .mobile-additional-icons {
        display: flex !important;
        align-items: center !important;
    }

    /* 1-4  Header bar — clean white + subtle shadow on sticky */
    .menu-container {
        background: #ffffff !important;
        transition: box-shadow 0.3s ease !important;
    }
    .menu-sticky .menu-container.ssm-nav-visible,
    .menu-sticky .menu-container.is-sticky {
        box-shadow: 0 2px 12px rgba(3, 21, 28, 0.08) !important;
    }

    /* ==================================================================
       PHASE 2 — MOBILE MENU PANEL (open state)
       ================================================================== */

    /* 2-base  Reset desktop flex to block + kill Uncode's 36px gaps */
    .menu-horizontal {
        padding-bottom: 0 !important;
    }
    .menu-horizontal-inner {
        padding: 4px 0 16px !important;
    }

    #menu-main-menu.menu-primary-inner {
        display: block !important;
        gap: 0 !important;
    }

    #menu-main-menu.menu-primary-inner > li.menu-item {
        display: block !important;
        margin: 0 !important;
    }

    /* 2-5  Menu item typography — match Figma brand */
    #menu-main-menu.menu-primary-inner > li.menu-item > a {
        font-family: 'Nunito Sans', sans-serif !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        line-height: 24px !important;
        color: #03151c !important;
        text-decoration: none !important;
        text-transform: none !important;
        letter-spacing: 0.3px !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
    }

    /* 2-6  Touch-friendly tap targets (min 48px) + horizontal padding */
    #menu-main-menu.menu-primary-inner > li.menu-item > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 24px !important;
        min-height: 48px !important;
    }

    /* 2-7  Dividers between items */
    #menu-main-menu.menu-primary-inner > li.menu-item {
        border-bottom: 1px solid #f0f2f5 !important;
    }
    #menu-main-menu.menu-primary-inner > li.menu-item:last-child {
        border-bottom: none !important;
    }

    /* 2-8  Active & hover states */
    #menu-main-menu.menu-primary-inner > li.menu-item > a:hover,
    #menu-main-menu.menu-primary-inner > li.menu-item > a:focus {
        color: #1d87af !important;
        background-color: #f8fdfe !important;
    }
    #menu-main-menu.menu-primary-inner > li.current-menu-item > a,
    #menu-main-menu.menu-primary-inner > li.current-menu-ancestor > a {
        color: #1d87af !important;
        font-weight: 700 !important;
    }
    #menu-main-menu.menu-primary-inner > li.current-menu-item > a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 3px !important;
        height: 24px !important;
        background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%) !important;
        border-radius: 0 2px 2px 0 !important;
    }
    #menu-main-menu.menu-primary-inner > li.current-menu-item {
        position: relative !important;
    }

    /* 2-9  Submenu / dropdown accordion */
    #menu-main-menu.menu-primary-inner > li.menu-item > a > i.fa-dropdown,
    #menu-main-menu.menu-primary-inner > li.menu-item > a > i.fa-angle-right {
        display: inline-block !important;
        font-size: 12px !important;
        color: #99a1af !important;
        transition: color 0.2s ease, transform 0.3s ease !important;
        margin-left: auto !important;
    }

    /* Rotate chevron when submenu is open */
    #menu-main-menu.menu-primary-inner > li.menu-item.open > a > i.fa-dropdown {
        transform: rotate(180deg) !important;
        color: #1d87af !important;
    }

    /* Submenu panel styling */
    #menu-main-menu.menu-primary-inner .sub-menu {
        background: #f8fdfe !important;
        border-top: 1px solid #e8f4f8 !important;
        padding: 4px 0 !important;
        margin: 0 !important;
    }

    #menu-main-menu.menu-primary-inner .sub-menu > li > a {
        font-family: 'Nunito Sans', sans-serif !important;
        font-weight: 400 !important;
        font-size: 15px !important;
        line-height: 22px !important;
        color: #4a5565 !important;
        padding: 12px 24px 12px 40px !important;
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
        text-decoration: none !important;
        transition: color 0.2s ease, background-color 0.2s ease !important;
    }

    #menu-main-menu.menu-primary-inner .sub-menu > li > a:hover,
    #menu-main-menu.menu-primary-inner .sub-menu > li > a:focus {
        color: #1d87af !important;
        background-color: #eff9fb !important;
    }

    #menu-main-menu.menu-primary-inner .sub-menu > li.current-menu-item > a {
        color: #1d87af !important;
        font-weight: 600 !important;
    }

    /* Hide sub-submenu arrows for cleaner look */
    #menu-main-menu.menu-primary-inner .sub-menu > li > a > i {
        font-size: 10px !important;
        color: #99a1af !important;
    }

    /* 2-9b  Translate toggle in mobile drawer */
    #menu-main-menu.menu-primary-inner > li.aps-lang-menu-item {
        border-bottom: none !important;
        padding: 12px 24px !important;
    }
    .aps-lang-toggle--mobile {
        justify-content: center !important;
        padding: 0 !important;
    }
    .aps-lang-toggle--mobile .aps-lang-label {
        color: #99a1af;
    }
    .aps-lang-toggle--mobile .aps-lang-sep {
        color: #d1d5db;
    }
    .aps-lang-toggle--mobile .aps-lang-btn {
        color: #4a5565;
    }
    .aps-lang-toggle--mobile .aps-lang-btn:hover {
        color: #1d87af;
    }
    .aps-lang-toggle--mobile .aps-lang-btn.active {
        color: #1d87af;
        background: rgba(49, 195, 242, 0.1);
    }

    /* 2-10  "Get Started" CTA — full-width teal pill at bottom */
    #menu-main-menu.menu-primary-inner > li.aps-phone {
        border-bottom: none !important;
        padding: 16px 24px 8px !important;
        margin-top: 8px !important;
    }

    #menu-main-menu.menu-primary-inner > li.aps-phone > a {
        height: 48px !important;
        border-radius: 42px !important;
        background: linear-gradient(180deg, #31c3f2 0%, #1d87af 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 24px !important;
        font-family: 'Nunito Sans', sans-serif !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        color: #ffffff !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        text-align: center !important;
        min-height: 48px !important;
        width: 100% !important;
        box-shadow: 0 4px 12px rgba(49, 195, 242, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    #menu-main-menu.menu-primary-inner > li.aps-phone > a:hover {
        background: linear-gradient(180deg, #1d87af 0%, #0d6b6b 100%) !important;
        box-shadow: 0 6px 20px rgba(49, 195, 242, 0.4) !important;
        color: #ffffff !important;
    }

    /* Hide the dropdown arrow on the Get Started button (must beat .menu-item + .fa-dropdown specificity) */
    #menu-main-menu.menu-primary-inner > li.aps-phone.menu-item > a > i.fa-dropdown,
    #menu-main-menu.menu-primary-inner > li.aps-phone.menu-item > a > i.fa-angle-right {
        display: none !important;
    }

    /* Close button (X state) — brand color */
    .open-overlay-menu .mobile-menu-button .lines {
        background-color: transparent !important;
    }
    .open-overlay-menu .mobile-menu-button .lines::before,
    .open-overlay-menu .mobile-menu-button .lines::after {
        background-color: #03151c !important;
    }

    /* ==================================================================
       PHASE 3 — POLISH & TRANSITIONS
       ================================================================== */

    /* 3-11  Menu panel slide — smooth height transition */
    .main-menu-container {
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow: hidden !important;
    }
    .open-overlay-menu .main-menu-container.open-items {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    /* Menu items fade-in stagger */
    #menu-main-menu.menu-primary-inner > li.menu-item {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease !important;
    }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item {
        opacity: 1;
        transform: translateY(0);
    }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(1) { transition-delay: 0.03s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(2) { transition-delay: 0.06s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(3) { transition-delay: 0.09s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(4) { transition-delay: 0.12s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(5) { transition-delay: 0.15s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(6) { transition-delay: 0.18s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(7) { transition-delay: 0.21s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(8) { transition-delay: 0.24s !important; }
    .open-overlay-menu #menu-main-menu.menu-primary-inner > li.menu-item:nth-child(9) { transition-delay: 0.27s !important; }

    /* 3-12  Subtle top separator below header when menu is open */
    .open-overlay-menu .menu-container {
        box-shadow: 0 1px 0 0 #e8f4f8 !important;
    }

    /* 3-13  Scroll behavior — ensure long menus (with submenus open) scroll properly */
    .open-overlay-menu .menu-horizontal-inner {
        max-height: calc(100vh - 86px) !important;
        max-height: calc(100dvh - 86px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        scrollbar-width: none !important;
    }
    .open-overlay-menu .menu-horizontal-inner::-webkit-scrollbar {
        display: none !important;
    }

    /* 3-14  Close X — slightly larger hit area + transition */
    .mobile-menu-button {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    .mobile-menu-button .lines,
    .mobile-menu-button .lines::before,
    .mobile-menu-button .lines::after {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Submenu expand/collapse animation */
    #menu-main-menu.menu-primary-inner .sub-menu {
        transition: max-height 0.3s ease, opacity 0.25s ease !important;
    }
}


/* ==========================================================================
   [H] HERO SECTION
   ========================================================================== */

/* Desktop */
.aps-hero h1 {
    color: #03151c !important;
    font-family: 'Libre Caslon Text', serif !important;
    font-size: 56px !important;
    font-weight: 400 !important;
    line-height: 64px !important;
    margin-bottom: 29px !important;
    text-shadow: none !important;
    margin-bottom: 16px !important;
}

.aps-hero p {
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    color: #03151c !important;
    margin-bottom: 29px !important;
    text-shadow: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .aps-hero {
        height: 740px !important;
        min-height: 740px !important;
        max-height: none !important;
        padding: 20px 24px 60px !important;
        align-items: flex-start !important;
    }
    
    .aps-hero .row-parent {
        padding: 20px 24px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .aps-hero .row-inner {
        align-items: flex-start !important;
    }
    
    .aps-hero .uncol,
    .aps-hero .uncell {
        justify-content: flex-start !important;
    }
    
    .page-body .aps-hero h1 {
        font-size: 41px !important;
        line-height: 48px !important;
        margin-bottom: 16px !important;
    }
    
    .aps-hero p {
        font-size: 22px !important;
        line-height: 25px !important;
        margin-bottom: 24px !important;
    }
    
    .aps-hero .btn-container.btn-inline {
        display: block !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        padding-left: 0px !important;
    }
    
    .aps-hero .btn {
        padding: 16px 36px !important;
        font-size: 15px !important;
        letter-spacing: 2px !important;
        height: auto !important;
        text-align: center !important;
    }
    
    .aps-hero .btn.btn-top-margin {
        margin-top: 0px !important;
    }
    
    .aps-hero .background-inner {
        background-position: 61% center !important;
        background-size: cover !important;
    }
}

/* Desktop hero background position */
@media (min-width: 960px) {
    .aps-hero .background-inner {
        background-position: 40% 20% !important;
    }
}

/* Tablet hero overrides */
@media (max-width: 959px) and (min-width: 769px) {
    .aps-hero .background-inner {
        background-image: url(https://aquapsurgery.wpenginepowered.com/wp-content/uploads/2026/02/pool-lady-tablet.jpg) !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .aps-hero {
        height: 500px !important;
        max-height: 500px !important;
        overflow: hidden !important;
    }

    .aps-hero h1 {
        margin-top: 60px !important;
        text-align: left !important;
    }

    .aps-hero p {
        text-align: left !important;
    }

    .aps-hero .wpb_column.align_right .uncont {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .aps-hero .row-internal,
    .aps-hero .row-child,
    .aps-hero .row-child > .row-inner {
        text-align: left !important;
    }

    .main-container .aps-hero .row .uncont:not(.overflow-hidden-mask) {
        max-width: 444px !important;
    }
}

/* Mobile image override */
@media (max-width: 768px) {
    .aps-hero .background-inner {
        background-image: url(https://aquapsurgery.wpenginepowered.com/wp-content/uploads/2026/02/straw-woman-pool-mobile.jpg) !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}


/* ==========================================================================
   [I] SERVICE CARDS + HOVER EFFECTS
   "Transformative Care" section — requires .aps-service-cards on the row
   ========================================================================== */

/* Service cards wrapper */
.aps-service-cards .row.row-child {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    min-height: 595.757px;
}

/* Individual service card columns - fixed width matching Figma */
.aps-service-cards .wpb_column.col-lg-4 {
    width: 316px;
}

/* Service card images - 316px wide, 462px tall, 10px border-radius matching Figma */
.aps-service-cards .uncode-single-media-wrapper img {
    width: 316px !important;
    height: 462px !important;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Service card titles - Bold, uppercase, 16px, letter-spacing 3px matching Figma */
.aps-service-cards .vc_custom_heading_wrap h3.font-172060,
.aps-service-cards h3.font-172060.h5.text-uppercase {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #03151c;
    margin: 0;
    padding-top: 16px;
}

/* Service card descriptions - Regular, 17px, line-height 24px matching Figma */
.aps-service-cards .text-top-reduced p {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    color: #03151c;
    margin: 0;
    padding-top: 4px;
}

/* Card positioning - Body (left card) */
.aps-service-cards .wpb_column.col-lg-4:first-child {
    position: absolute;
    left: 0;
    top: 164.672px;
}

/* Card positioning - Breast (middle card, offset upward) */
.aps-service-cards .wpb_column.col-lg-4.shift_y_neg_double {
    position: absolute;
    left: 332px;
    top: 85.573px;
}

/* Card positioning - Face (right card) */
.aps-service-cards .wpb_column.col-lg-4:last-child:not(.shift_y_neg_double) {
    position: absolute;
    left: 664px;
    top: 128.63px;
}

/* Ensure cards have proper spacing */
.aps-service-cards .wpb_column.col-lg-4 .uncol {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Image wrapper spacing */
.aps-service-cards .uncode-single-media {
    margin-bottom: 0;
}

/* Heading wrapper spacing */
.aps-service-cards .vc_custom_heading_wrap {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .aps-service-cards .row.row-child {
        min-height: auto;
        height: auto;
    }
    
    .aps-service-cards .wpb_column.col-lg-4 {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .aps-service-cards .uncode-single-media-wrapper img {
        position: relative;
        width: 100% !important;
        max-width: 316px;
        height: auto !important;
        aspect-ratio: 316 / 462;
    }
    
    /* padding-bottom fallback for Safari < 15 (aspect-ratio unsupported) */
    @supports not (aspect-ratio: 1/1) {
        .aps-service-cards .uncode-single-media-wrapper {
            position: relative;
            height: 0;
            padding-bottom: 146.2%; /* 462 / 316 × 100 */
            overflow: hidden;
        }
        .aps-service-cards .uncode-single-media-wrapper img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
        }
    }
}

@media (max-width: 768px) {
    .aps-service-cards .uncode-single-media-wrapper img {
        max-width: 100%;
    }
}

/* --- Hover Effects --- */

.wpb_column.column_child:has(a.single-media-link) {
  position: relative;
}

a.single-media-link,
a.col-link.custom-link {
  position: relative !important;
  display: inline-block !important;
  border-radius: 20px;
}

a.single-media-link,
a.single-media-link .t-entry-visual,
a.col-link.custom-link .t-entry-visual {
  overflow: hidden !important;
  border-radius: 20px;
}

a.single-media-link:hover img {
  transform: scale(1.05);
}

.wpb_column.column_child:has(a.col-link:hover) a.single-media-link img {
  transform: scale(1.05);
}

a.single-media-link img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  display: block;
  width: 100%;
}


/* ==========================================================================
   [J] PRACTICE / "WHY CHOOSE AQUA" SECTION
   ========================================================================== */

/* Desktop layout */
.vc_row.aps-practice {
    position: relative;
    height: 720.978px;
    overflow: hidden;
    background-color: #ffffff;
}

.vc_row.aps-practice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5.64%;
    width: 111.27%;
    height: 100%;
    /* Intentionally none by default; set via page/theme options when needed */
    background-image: none;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.vc_row.aps-practice .row-container {
    position: relative;
    height: 100%;
    z-index: 1;
}

/* Title - positioned at top, separate from content */
.vc_row.aps-practice .vc_custom_heading,
.vc_row.aps-practice .vc_custom_heading h2,
.vc_row.aps-practice > .row-container > .row > .row-inner > .vc_column > .vc_custom_heading {
    position: absolute;
    left: calc(50% - 570.37px);
    top: 108px;
    width: 580.368px;
    font-family: 'Libre Caslon Text', serif;
    font-weight: 400;
    font-size: 36px;
    line-height: normal;
    color: #03151c;
    white-space: pre-wrap;
    margin: 0;
    text-align: left;
    z-index: 2;
}

.vc_row.aps-practice .vc_custom_heading em,
.vc_row.aps-practice .vc_custom_heading h2 em,
.vc_row.aps-practice .vc_custom_heading i,
.vc_row.aps-practice .vc_custom_heading h2 i {
    font-style: italic;
    font-weight: 400;
}

/* Values section - positioned below title */
.vc_row.aps-practice .values,
.vc_row.aps-practice .vc_column_text {
    position: absolute;
    left: calc(50% - 280.18px);
    top: 260.44px;
    width: 580.368px;
    display: flex;
    flex-direction: column;
    gap: 29px;
    align-items: flex-start;
    z-index: 1;
}

.vc_row.aps-practice .value-item {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    justify-items: start;
}

.vc_row.aps-practice .value-icon,
.vc_row.aps-practice img[class*="icon"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    overflow: hidden;
    z-index: 1;
}

.vc_row.aps-practice .value-item:nth-child(2) .value-icon,
.vc_row.aps-practice .value-item:nth-child(2) img[class*="icon"] {
    width: 40px;
    height: 40px;
}

.vc_row.aps-practice .value-item:nth-child(3) .value-icon,
.vc_row.aps-practice .value-item:nth-child(3) img[class*="icon"] {
    width: 40px;
    height: 40px;
}

.vc_row.aps-practice .value-title,
.vc_row.aps-practice h3,
body.home .vc_row.aps-practice h4 {
    margin-left: 52px;
    margin-top: 10px;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: normal !important;
    color: #03151c !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin-bottom: 0;
}

.vc_row.aps-practice .value-item:nth-child(2) .value-title,
.vc_row.aps-practice .value-item:nth-child(2) h3,
.vc_row.aps-practice .value-item:nth-child(2) h4 {
    margin-top: 10px;
}

.vc_row.aps-practice .value-item:nth-child(3) .value-title,
.vc_row.aps-practice .value-item:nth-child(3) h3,
.vc_row.aps-practice .value-item:nth-child(3) h4 {
    margin-top: 10px;
}

.vc_row.aps-practice .value-description,
.vc_row.aps-practice p {
    margin-top: 12px !important;
    margin-left: 0;
    width: 580.368px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    color: #03151c !important;
    white-space: pre-wrap;
}

.vc_row.aps-practice .value-item:nth-child(2) .value-description,
.vc_row.aps-practice .value-item:nth-child(2) p {
    margin-top: 36.47px;
}

.vc_row.aps-practice .value-item:nth-child(3) .value-description,
.vc_row.aps-practice .value-item:nth-child(3) p {
    margin-top: 36.13px;
}

.vc_row.aps-practice .btn-primary,
.vc_row.aps-practice .vc_btn,
.vc_row.aps-practice a[class*="button"] {
    position: absolute;
    left: 149.63px;
    top: 594.93px;
    width: 284.725px;
    height: 46px;
    background: linear-gradient(to bottom, #31c3f2, #1d87af);
    border: none;
    border-radius: 42px;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .vc_row.aps-practice .value-icon,
    .vc_row.aps-practice img[class*="icon"] {
        width: 36px;
        height: 36px;
    }
    
    .vc_row.aps-practice .value-title,
    .vc_row.aps-practice h3,
    body.home .vc_row.aps-practice h4 {
        margin-left: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vc_row.aps-practice {
        height: auto !important;
        min-height: auto !important;
        padding: 60px 24px !important;
    }
    
    .vc_row.aps-practice .vc_custom_heading,
    .vc_row.aps-practice .vc_custom_heading h2,
    .vc_row.aps-practice h2 {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 28px !important;
        line-height: 36px !important;
        margin-bottom: 32px !important;
    }
    
    .vc_row.aps-practice .vc_column_text,
    .vc_row.aps-practice .values {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .vc_row.aps-practice p,
    .vc_row.aps-practice .value-description {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
    }
    
    .vc_row.aps-practice .value-icon,
    .vc_row.aps-practice img[class*="icon"] {
        position: relative !important;
        display: inline-block !important;
        width: 36px !important;
        height: 36px !important;
        margin-right: 12px !important;
        vertical-align: middle !important;
    }
    
    .vc_row.aps-practice h3,
    .vc_row.aps-practice h4,
    .vc_row.aps-practice .value-title {
        margin-left: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .vc_row.aps-practice .btn-primary,
    .vc_row.aps-practice .vc_btn,
    .vc_row.aps-practice a[class*="button"] {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        margin-top: 32px !important;
    }
    
    /* Remove extra horizontal padding from single-h-padding rows on mobile */
    .vc_row.aps-practice .row.single-h-padding.row-parent,
    .vc_row.aps-practice .row-parent.single-h-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .vc_row.aps-practice .row.single-h-padding .row-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* APS Providers - remove extra horizontal padding on mobile */
    .aps-providers .row.single-h-padding.row-parent,
    .aps-providers .row-parent.single-h-padding,
    .vc_row.aps-providers .row.single-h-padding.row-parent,
    .vc_row.aps-providers .row-parent.single-h-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .aps-providers .row.single-h-padding .row-inner,
    .vc_row.aps-providers .row.single-h-padding .row-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* ==========================================================================
   [K] REVIEWS SECTION
   Carousel edge-to-edge on mobile, but headline keeps padding
   ========================================================================== */

@media (max-width: 959px) {
    /* Ensure headline rows keep their padding */
    .aps-reviews .row-parent.single-h-padding:has(h2),
    .aps-reviews .row-parent.single-h-padding:has(.vc_custom_heading),
    .aps-reviews .row-parent.single-h-padding:has(.vc_custom_heading_wrap),
    .vc_row.aps-reviews .row-parent.single-h-padding:has(h2),
    .vc_row.aps-reviews .row-parent.single-h-padding:has(.vc_custom_heading),
    .vc_row.aps-reviews .row-parent.single-h-padding:has(.vc_custom_heading_wrap) {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    /* Make carousel containers extend edge-to-edge using negative margins */
    .aps-reviews .owl-carousel,
    .aps-reviews .carousel-container,
    .aps-reviews .testimonials-row,
    .aps-reviews .aps-testimonials-row,
    .aps-reviews .aps-testimonials-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove padding from carousel row containers ONLY (not headline rows) */
    .aps-reviews .row-parent:has(.owl-carousel):not(:has(h2)),
    .aps-reviews .row-parent:has(.carousel-container):not(:has(h2)),
    .aps-reviews .row-parent:has(.testimonials-row):not(:has(h2)),
    .aps-reviews .row-parent:has(.aps-testimonials-row):not(:has(h2)),
    .aps-reviews .row-parent:has(.aps-testimonials-wrapper):not(:has(h2)),
    .vc_row.aps-reviews .row-parent:has(.owl-carousel):not(:has(h2)),
    .vc_row.aps-reviews .row-parent:has(.carousel-container):not(:has(h2)),
    .vc_row.aps-reviews .row-parent:has(.testimonials-row):not(:has(h2)),
    .vc_row.aps-reviews .row-parent:has(.aps-testimonials-row):not(:has(h2)),
    .vc_row.aps-reviews .row-parent:has(.aps-testimonials-wrapper):not(:has(h2)) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure carousel inner elements also extend edge-to-edge */
    .aps-reviews .owl-stage-outer,
    .aps-reviews .owl-stage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* ==========================================================================
   [L] SERVICES GRID
   ========================================================================== */

.aps-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.aps-service-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.aps-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.aps-service-card img {
    width: 100%;
    height: auto;
    display: block;
}

.aps-service-card-middle {
    transform: translateY(-40px);
}

@media (max-width: 768px) {
    .aps-services-grid {
        grid-template-columns: 1fr;
    }
    
    .aps-service-card-middle {
        transform: translateY(0);
    }
}


/* ==========================================================================
   [M] MISSION SECTION
   ========================================================================== */

.aps-mission-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.aps-mission-image {
    flex: 0 0 400px;
}

.aps-mission-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 8px solid var(--aps-powder-blue);
}

.aps-mission-content {
    flex: 1;
}

.aps-mission-content h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.aps-mission-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .aps-mission-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .aps-mission-image {
        flex: 0 0 auto;
    }
    
    .aps-mission-content h2 {
        font-size: 32px;
    }
}


/* ==========================================================================
   [N] CONTENT PAGE STYLES
   Scoped to .page-body to avoid global overrides
   Figma: https://www.figma.com/design/sLbraXkyKKUcQ0OrCpmyto/content-page
   ========================================================================== */

/* --- Breadcrumbs ---
   Every element identical: Nunito Sans 600 12px, 0.8px tracking, uppercase.
   Only COLOR differs: links #1d87af, separator + current #99a1af.
   -------------------------------------------------------- */

.page-body .uncode_breadcrumbs_wrap ol.breadcrumb,
.uncode_breadcrumbs_wrap ol.breadcrumb {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-body .uncode_breadcrumbs_wrap ol.breadcrumb li,
.uncode_breadcrumbs_wrap ol.breadcrumb li {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    line-height: 1.6 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-body .uncode_breadcrumbs_wrap ol.breadcrumb li a,
.uncode_breadcrumbs_wrap ol.breadcrumb li a {
    color: #1d87af !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.page-body .uncode_breadcrumbs_wrap ol.breadcrumb li a:hover,
.uncode_breadcrumbs_wrap ol.breadcrumb li a:hover {
    color: #31c3f2 !important;
}

.page-body .uncode_breadcrumbs_wrap ol.breadcrumb li.current,
.uncode_breadcrumbs_wrap ol.breadcrumb li.current {
    color: #99a1af !important;
    flex: 0 0 auto !important;
}

/* Separator — same font/size/weight as everything else, just gray
   Boost specificity + !important to override theme's li + li::before */
.page-body .uncode_breadcrumbs_wrap ol.breadcrumb li + li::before,
.uncode_breadcrumbs_wrap ol.breadcrumb li + li::before,
.page-body .uncode_breadcrumbs_wrap.bc-separator-triangle ol.breadcrumb li + li::before,
.uncode_breadcrumbs_wrap.bc-separator-triangle ol.breadcrumb li + li::before,
.page-body .uncode_breadcrumbs_wrap.bc-separator-slash ol.breadcrumb li + li::before,
.uncode_breadcrumbs_wrap.bc-separator-slash ol.breadcrumb li + li::before {
    content: "/" !important;
    display: inline-block !important;
    font-size: 12px !important;
    color: #99a1af !important;
    margin: 0 8px !important;
    padding: 0 !important;
}

/* --- H1 Page Title --- */
.page-body h1 {
    font-family: 'Libre Caslon Text', serif !important;
    font-weight: 400 !important;
    font-size: 60px !important;
    line-height: 75px !important;
    color: #03151c !important;
}

/* --- Lead/Intro Text (italic subhead) --- */
.page-body .uncode_text_column h3 em,
.page-body .uncode_text_column h3 i,
.page-body .vc_custom_heading h3 em,
.page-body .vc_custom_heading h3 i {
    font-family: 'Libre Caslon Text', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    line-height: 39px !important;
    color: #4a5565 !important;
}

/* --- Body Paragraphs --- */
.page-body .uncode_text_column p {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 300 !important;
    font-size: 17px !important;
    line-height: 30.6px !important;
}
.page-body .style-light .uncode_text_column p, .page-body .style-light .uncode_text_column ul li {
    color: #222222 !important;
}
.page-body .style-dark .uncode_text_column p, .page-body .style-dark .uncode_text_column ul li {
    color: #ffffff !important;
}

/* --- H2 Section Headings (The Procedure, Recovery & Results) --- */
.page-body .uncode_text_column h2 {
    font-family: 'Libre Caslon Text', serif !important;
    font-weight: 400 !important;
    font-size: 36px !important;
    line-height: 49.5px !important;
    color: #03151c !important;
}

/* --- H3 Standard Section Headings --- */
.page-body .uncode_text_column h3 {
    font-family: 'Libre Caslon Text', serif !important;
    font-weight: 400 !important;
    font-size: 36px !important;
    line-height: 49.5px !important;
    color: #03151c !important;
}

/* --- H4 Sub-section Headings (Implant Types) - Teal uppercase --- */
/* Exclude aps-practice section which has its own H4 styling */
.page-body .vc_row:not(.aps-practice) .uncode_text_column h4 {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #1d87af !important;
}

/* --- Bullet Block --- 
   Callout with cyan left border
   Add class "aps-bullet-block" to the text column in WPBakery
   Figma specs: bg #f3f9fa, border-left 4px #31c3f2, rounded-tr/br 14px
   -------------------------------------------------------- */

/* Kill padding on column that contains bullet block */
.page-body .wpb_column:has(.aps-bullet-block) {
    padding-left: 0 !important;
}

/* Target the closest cell container that holds the bullet block */
.page-body .uncell:has(> .uncont > .uncode_text_column.aps-bullet-block) {
    background-color: #f3f9fa !important;
    border-left: 4px solid #31c3f2 !important;
    border-radius: 0 14px 14px 0 !important;
    padding: 32px !important;
}

/* Reset the inner text column - parent already has the styling */
.page-body .uncode_text_column.aps-bullet-block {
    background-color: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* H3 inside bullet block - Nunito Sans Bold, 20px, 2px tracking, uppercase */
.page-body .uncode_text_column.aps-bullet-block h3 {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #03151c !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

/* Bullet list container - 8px left offset from heading */
.page-body .uncode_text_column.aps-bullet-block ul {
    list-style: none !important;
    padding: 0 0 0 8px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* List items - 22px indent for text, relative for bullet positioning */
.page-body .uncode_text_column.aps-bullet-block ul li {
    position: relative !important;
    padding-left: 22px !important;
    margin: 0 !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    line-height: 27.625px !important;
    color: #4a5565 !important;
}

/* Cyan bullet - 6px circle at top 10px */
.page-body .uncode_text_column.aps-bullet-block ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #31c3f2 !important;
    border-radius: 50% !important;
}

/* Kill any default list styling that might interfere */
.page-body .uncode_text_column.aps-bullet-block ul li::marker {
    content: none !important;
}

/* --- CTA Block --- 
   "Ready to start your journey?" section
   Add class "cta-block" to the text column in WPBakery
   -------------------------------------------------------- */

.page-body .uncode_text_column.cta-block {
    border-top: 1px solid #f3f4f6 !important;
    padding-top: 32px !important;
    margin-top: 48px !important;
}

/* H5 CTA heading */
.page-body .uncode_text_column.cta-block h5 {
    font-family: 'Libre Caslon Text', serif !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    color: #03151c !important;
    margin-bottom: 24px !important;
}

/* --- Content Page Mobile --- */

@media (max-width: 768px) {
    /* H1 mobile */
    .page-body h1 {
        font-size: 36px !important;
        line-height: 44px !important;
    }
    
    /* Lead text mobile */
    .page-body .uncode_text_column h3 em,
    .page-body .uncode_text_column h3 i,
    .page-body .vc_custom_heading h3 em,
    .page-body .vc_custom_heading h3 i {
        font-size: 20px !important;
        line-height: 32px !important;
    }
    
    /* H2 mobile */
    .page-body .uncode_text_column h2 {
        font-size: 28px !important;
        line-height: 38px !important;
    }
    
    /* H3 mobile */
    .page-body .uncode_text_column h3 {
        font-size: 28px !important;
        line-height: 38px !important;
    }
    
    /* Bullet block mobile */
    .page-body .uncode_text_column.aps-bullet-block {
        padding: 24px !important;
        border-radius: 0 10px 10px 0 !important;
    }
    
    /* H5 CTA mobile */
    .page-body .uncode_text_column.cta-block h5 {
        font-size: 20px !important;
        line-height: 28px !important;
    }
}


/* ==========================================================================
   [O] BLOG / POST CONTENT STYLES
   Blog content sits in .post-content, not .uncode_text_column, so our
   content-page scoped rules don't reach it.
   ========================================================================== */

.post-content :is(p, li, dt, dd, dl, address, label, pre, code, .tab-excerpt) a:not(.btn):not([class*="btn-"]) {
    color: #288AAF;
    text-decoration: underline;
}
.post-content :is(p, li, dt, dd, dl, address, label, pre, code, .tab-excerpt) a:not(.btn):not([class*="btn-"]):hover {
    color: #00526D;
}

.post-content strong,
.post-content b {
    font-weight: 700;
}

.post-content ul:not(.no-list) {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 1.5em;
}
.post-content ol:not(.no-list) {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 1.5em;
}
.post-content ul:not(.no-list) li,
.post-content ol:not(.no-list) li {
    margin-bottom: 0.4em;
    line-height: 1.75;
}


/* ==========================================================================
   [P] FOOTER
   ========================================================================== */

.aps-footer h3,
.aps-footer h3 span {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    color: white !important;
}

.aps-footer a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aps-footer a:hover {
    color: white !important;
    text-decoration: underline;
    text-decoration-color: white;
}

/* --- Google Translate: hide default widget chrome --- */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
body > .skiptranslate {
    display: none !important;
}
body { top: 0 !important; }

/* --- Footer translate section (under Connect column) --- */
.aps-translate-section {
    margin-top: 20px;
}

.aps-translate-heading {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    color: white !important;
    margin-bottom: 10px !important;
}

.aps-lang-toggle--footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Nunito Sans', sans-serif;
}

.aps-lang-sep {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    -webkit-user-select: none;
    user-select: none;
}

.aps-lang-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.aps-lang-btn:hover {
    color: #ffffff;
}

.aps-lang-btn.active {
    color: #ffffff;
    background: rgba(49, 195, 242, 0.25);
}

/* --- Mobile nav drawer translate label --- */
.aps-lang-label {
    font-size: 13px;
    font-weight: 600;
    color: #99a1af;
    letter-spacing: 0.5px;
    margin-right: 2px;
}


/* ==========================================================================
   [Q] MISCELLANEOUS
   ========================================================================== */

/* Tighten vc_custom_heading_wrap top margin inside row-unique-0 rows */
#row-unique-0 .vc_custom_heading_wrap {
    margin-top: 18px !important;
}

.aps-provider-circle img {
    border: 5px solid #eeeeee ! important;
}
hr.separator-break.separator-accent {
    border-color: #45C8F5 !important;
    border-top-width: 4px;
}

/* Divider full-width fix */
.uncode-divider-wrap {
    width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
    right: auto !important;
    max-width: none !important;
}

.uncode-divider-wrap.uncode-divider-flip {
    transform: scaleX(-1) translateZ(0px) !important;
}

.uncode-divider-wrap img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: fill !important;
}

/* ==========================================================================
   [S] NEXTPATIENT BOOKING WIDGET
   ========================================================================== */

#nextpatient-widget {
    font-family: 'Nunito Sans', sans-serif !important;
}

.nextpatient-box {
    max-width: 860px !important;
    padding-bottom: 0 !important;
}

/* ---- Criteria / Filter Row ---- */

.nextpatient-criteria-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 28px !important;
    align-items: flex-end !important;
}
/* Safari < 14.1 flex gap fallback */
.nextpatient-criteria-box + .nextpatient-criteria-box {
    margin-left: 20px !important;
}

.nextpatient-criteria-box {
    flex: 1 1 200px !important;
    margin-right: 0 !important;
    min-width: 180px !important;
}

.nextpatient-criteria-label {
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: var(--aps-navy) !important;
    margin: 0 0 6px 0 !important;
}

.nextpatient-criteria-box select {
    width: 100% !important;
    height: 46px !important;
    font-size: 15px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    color: var(--aps-text-dark) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300526d' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    border: 2px solid var(--aps-powder-blue) !important;
    border-radius: 8px !important;
    padding: 0 40px 0 14px !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.nextpatient-criteria-box select:focus {
    border-color: var(--aps-cyan-dark) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(49, 195, 242, 0.15) !important;
}

/* ---- Provider Cards ---- */

.nextpatient-provider-table {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    text-align: left !important;
}
/* Safari < 14.1 flex gap fallback */
.nextpatient-provider-table .nextpatient-provider + .nextpatient-provider {
    margin-top: 14px !important;
}

.nextpatient-provider-table .nextpatient-provider {
    display: flex !important;
    align-items: stretch !important;
    background: #fff !important;
    border: 1px solid var(--aps-powder-blue) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(0, 82, 109, 0.07) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
    /* Safari: forces GPU layer so overflow:hidden clips the photo correctly */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    isolation: isolate !important;
}

.nextpatient-provider-table .nextpatient-provider:hover {
    box-shadow: 0 6px 28px rgba(0, 82, 109, 0.13) !important;
    transform: translateY(-2px) !important;
}

/* Photo: large cell (desktop) */
.nextpatient-provider-table .nextpatient-provider-image-cell {
    display: block !important;
    flex: 0 0 155px !important;
    width: 155px !important;
    min-height: 175px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center top !important;
    border-radius: 0 !important;
}

/* Text content cell */
.nextpatient-provider-table .nextpatient-provider-provider-cell {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 !important;
    padding: 20px 24px !important;
    vertical-align: unset !important;
}

/* Name + "More" header block */
.nextpatient-provider-table .nextpatient-provider-name-block {
    display: block !important;
    margin-bottom: 6px !important;
}

/* Provider name */
.nextpatient-provider-table .nextpatient-provider-name {
    font-size: 19px !important;
    line-height: 25px !important;
    color: var(--aps-navy) !important;
    font-family: 'Nunito Sans', sans-serif !important;
    text-align: left !important;
}

.nextpatient-provider-table .nextpatient-provider-name b {
    font-weight: 700 !important;
}

/* "More" profile link row */
.nextpatient-provider-table .nextpatient-provider-blurb {
    text-align: left !important;
    font-size: 13px !important;
    margin: 3px 0 12px 0 !important;
    line-height: 20px !important;
}

.nextpatient-profile-url,
.nextpatient-provider-table .nextpatient-profile-url {
    font-size: 12px !important;
    color: var(--aps-cyan-dark) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.nextpatient-profile-url:hover,
.nextpatient-provider-table .nextpatient-profile-url:hover {
    color: var(--aps-navy) !important;
    text-decoration: underline !important;
}

/* Next appointment pill */
.nextpatient-provider-table .next-appt-block {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    background: var(--aps-bg-light) !important;
    border: 1px solid var(--aps-powder-blue) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    margin: 0 !important;
}

.nextpatient-provider-table .next-appt-block .time-line {
    font-size: 14px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    color: var(--aps-teal-blue) !important;
    letter-spacing: 0.2px !important;
    line-height: 22px !important;
}

.nextpatient-provider-table .next-appt-block .time-line b {
    color: var(--aps-navy) !important;
    font-weight: 700 !important;
}

.nextpatient-provider-table .next-appt-block .explanation {
    font-size: 12px !important;
    color: #7a959f !important;
    line-height: 18px !important;
    font-style: italic !important;
}

/* No times available */
.nextpatient-no-times-available {
    color: var(--aps-teal-blue) !important;
    font-style: italic !important;
    font-size: 15px !important;
}

/* Call / no times fallback */
.nextpatient-provider-table .call-no-times {
    font-size: 14px !important;
    color: var(--aps-teal-blue) !important;
    margin: 6px 0 0 0 !important;
}

/* ---- Time Slot Buttons ---- */

.nextpatient-provider-table .nextpatient-provider-times {
    text-align: left !important;
    padding: 8px 0 5px 0 !important;
}

.nextpatient-provider-table .nextpatient-slot-time {
    background-image: none !important;
    background: var(--aps-bg-light) !important;
    border: 2px solid var(--aps-powder-blue) !important;
    border-radius: 8px !important;
    color: var(--aps-navy) !important;
    font-weight: 600 !important;
    font-family: 'Nunito Sans', sans-serif !important;
    width: 105px !important;
    height: auto !important;
    padding: 6px 4px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.nextpatient-provider-table .nextpatient-slot-time:hover {
    background: var(--aps-cyan-dark) !important;
    background-image: none !important;
    border-color: var(--aps-cyan-dark) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(29, 135, 175, 0.3) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.nextpatient-box a.nextpatient-slot-time,
.nextpatient-box a.nextpatient-slot-time:visited {
    color: var(--aps-navy) !important;
}

.nextpatient-box a.nextpatient-slot-time:hover {
    color: #fff !important;
}

.nextpatient-provider-table .nextpatient-slot-time-day {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--aps-teal-blue) !important;
    line-height: 16px !important;
    padding-bottom: 2px !important;
}

.nextpatient-provider-table .nextpatient-slot-time-time {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--aps-navy) !important;
    line-height: 20px !important;
}

/* "More..." times link */
.nextpatient-provider-table .nextpatient-provider-more-times {
    margin-top: 8px !important;
    text-align: left !important;
}

.nextpatient-provider-table .nextpatient-provider-more-times a,
.nextpatient-provider-table .nextpatient-slot-time-more {
    color: var(--aps-cyan-dark) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.nextpatient-provider-table .nextpatient-provider-more-times a:hover {
    color: var(--aps-navy) !important;
    text-decoration: underline !important;
}

/* "More..." button that shows inline next to time slots */
.nextpatient-provider-table a.nextpatient-slot-time.nextpatient-slot-time-more {
    background: transparent !important;
    background-image: none !important;
    border: 2px dashed var(--aps-powder-blue) !important;
    color: var(--aps-cyan-dark) !important;
    font-size: 13px !important;
    line-height: 40px !important;
    box-shadow: none !important;
}

.nextpatient-provider-table a.nextpatient-slot-time.nextpatient-slot-time-more:hover {
    border-color: var(--aps-cyan-dark) !important;
    background: var(--aps-bg-light) !important;
    color: var(--aps-navy) !important;
    transform: none !important;
}

/* ---- Mobile: honour original NextPatient pattern ---- */
/* Hide the big hero image, use the small inline headshot instead */
@media (max-width: 600px) {

    /* Dropdowns stack full-width */
    .nextpatient-criteria-container {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .nextpatient-criteria-box {
        flex: 1 1 auto !important;
        min-width: unset !important;
        width: 100% !important;
    }

    /* Reset the Safari gap fallback margin when stacked */
    .nextpatient-criteria-box + .nextpatient-criteria-box {
        margin-left: 0 !important;
        margin-top: 12px !important;
    }

    /* Card: keep as a single flex column, just adjust padding */
    .nextpatient-provider-table .nextpatient-provider {
        flex-direction: row !important;
    }

    /* Hide the big background-image cell on mobile */
    .nextpatient-provider-table .nextpatient-provider-image-cell {
        display: none !important;
    }

    /* Text cell fills full width */
    .nextpatient-provider-table .nextpatient-provider-provider-cell {
        padding: 16px !important;
        justify-content: flex-start !important;
    }

    /* Name block: small photo + name side-by-side (original pattern) */
    .nextpatient-provider-table .nextpatient-provider-name-block {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 10px !important;
    }

    /* Show the small photo */
    .nextpatient-provider-table .nextpatient-provider-name-block-left {
        display: block !important;
        flex: 0 0 64px !important;
    }

    .nextpatient-provider-table .nextpatient-provider-small-photo {
        width: 64px !important;
        height: 80px !important;
        background-size: cover !important;
        background-position: center top !important;
        border-radius: 8px !important;
        border: 2px solid var(--aps-powder-blue) !important;
        display: block !important;
    }

    /* Name + More link stacks naturally */
    .nextpatient-provider-table .nextpatient-provider-name-block-right {
        display: block !important;
        flex: 1 !important;
    }

    .nextpatient-provider-table .nextpatient-provider-name {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    /* Next appt pill goes full-width */
    .nextpatient-provider-table .next-appt-block {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Time slots centered on mobile */
    .nextpatient-provider-table .nextpatient-provider-times {
        text-align: center !important;
    }

    .nextpatient-provider-table .nextpatient-provider-more-times {
        text-align: center !important;
    }
}


/* ==========================================================================
   [R] MOBILE TYPOGRAPHY OVERRIDES (< 600px)
   ========================================================================== */

@media (max-width: 600px) {

    /* H4 icon headings (Why Aqua section) — reduce size so text fits on one line */
    .page-body .vc_row:not(.aps-practice) .uncode_text_column h4 {
        font-size: 16px !important;
        letter-spacing: 1px !important;
    }

}


