/*
Theme Name: Greenlane Dental Care
Theme URI: https://www.greenlanedentalcare.co.uk/
Author: GreenLane Dental Care
Description: Custom WordPress theme for Greenlane Dental Care dental practice
Text Domain: greenlane-custom
*/

/* Base Reset & Variables */
:root {
    --color-primary: #39B7EA;
    --color-primary-dark: #3D76AD;
    --color-secondary: #3c76ad;
    --color-text: #2C3E50;
    --color-text-light: #5D6D7E;
    --color-white: #FFFFFF;
    --color-bg: #F8F9FA;
    --color-border: #E5E7EB;
    --color-contact-bg: #f1f1f1;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --top-bar-height: 40px;
    --header-height: 100px;
    --logo-box-width: 200px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4em;
    color: #6D6E71;
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {

    line-height: 1.3;
    margin: 0 0 1rem;
}

h1, h2, h3 {
    font-weight: normal;
}

h1 { 

    font-size: 2.75rem; 
    color: #6D6E71;
}

h2 { 
    font-family: Georgia, serif;
    font-size: 36px; 
    color: #6D6E71;
}

h3 { 
    font-family: Georgia, serif;
    font-size: 24px; 
    color: #6D6E71;
}

h4 { 
    font-family: var(--font-heading);
    font-size: 1.5rem; 
    color: #6D6E71;
}

h5 { 
    font-family: var(--font-heading);
    font-size: 1.25rem; 
    color: #6D6E71;
}

h6 { 
    font-family: var(--font-heading);
    font-size: 1rem; 
    color: #6D6E71;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--color-primary);
    border-bottom: 3px solid var(--color-primary-dark);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--top-bar-height);
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-address {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 700;
}

.top-bar-right {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.top-bar-separator {
    width: 1px;
    height: 100%;
    min-height: var(--top-bar-height);
    background: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
    height: 100%;
}

.top-bar-link:hover {
    color: var(--color-white);
    opacity: 0.8;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.site-header {
    position: relative;
    z-index: 99;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
}

.header-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo Box */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    margin-bottom: -65px;
    border-radius: 0;

}

.site-logo img {
    padding: 12px 12px 6px 12px;
}

.site-logo .custom-logo-link {
    display: block;
}

.site-logo .custom-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
}

/* Header Right Section */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1;
    max-width: calc(100% - var(--logo-box-width) - 2rem);
}

/* Header Top Row - Contact & CTA */
.header-top-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.header-contact-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-contact-bg);
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.header-contact-text {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.contact-label {
    font-size: 1rem;
    color: var(--color-primary-dark);
    font-weight: 400;
    line-height: 1;
    padding-bottom: 0.2rem;
}

.contact-phone {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    line-height: 1;
}

.contact-phone:hover {
    color: var(--color-primary);
}

/* Appointment Button */
.btn-appointment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-left: 0.5rem;
}

.btn-appointment:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-appointment svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Header Navigation Row */
.header-nav-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.main-navigation .primary-menu {
    display: flex;
    align-items: flex-end;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: flex-end;
}

.main-navigation > ul,
.main-navigation .primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: flex-end;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    font-size: 15px;
    margin: 9px 5px 0 5px;
    padding: 6px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-primary);
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(61, 118, 173, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-navigation .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-navigation .sub-menu li:last-child {
    border-bottom: none;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 15px;
    margin: 0;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background-color: rgba(61, 118, 173, 1);
}

/* Two-column dropdown for Cosmetic Dentistry and large menus */
.menu-item-cosmetic-dentistry > .sub-menu,
.menu-item-large-dropdown > .sub-menu {
    width: 440px;
    min-width: 440px;
}

.menu-item-cosmetic-dentistry:hover > .sub-menu,
.menu-item-large-dropdown:hover > .sub-menu {
    display: flex !important;
    flex-wrap: wrap;
}

.menu-item-cosmetic-dentistry > .sub-menu > li,
.menu-item-large-dropdown > .sub-menu > li {
    width: 50%;
    display: block;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-item-cosmetic-dentistry > .sub-menu > li:nth-child(odd),
.menu-item-large-dropdown > .sub-menu > li:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-item-cosmetic-dentistry > .sub-menu > li a,
.menu-item-large-dropdown > .sub-menu > li a {
    white-space: normal;
}

.menu-item-cosmetic-dentistry > .sub-menu > li a,
.menu-item-large-dropdown > .sub-menu > li a {
    white-space: normal;
}

/* Menu Toggle (Desktop - hidden) */
.menu-toggle {
    display: none;
}

/* Mobile Menu Bar (hidden on desktop) */
.mobile-menu-bar {
    display: none;
}

.mobile-menu-dropdown {
    display: none;
}

/* Body when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Phone Section (hidden on desktop) */
.mobile-phone-section {
    display: none;
}

/* Header scroll effect */
.site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 440px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    border-bottom: 6px solid var(--color-primary-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    padding-left: 1.5rem;
}

.hero-inner {
    max-width: 500px;
    padding-left: 3.5rem;
}

.hero-title {
    font-size: 40px;
    font-weight: normal;
    color: #FFF;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 2px #888;
    line-height: 1.4em;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px #888;
    line-height: 1.5;
}

.hero-subtitle:empty,
.hero-subtitle.empty {
    margin-bottom: 0.5rem;
    min-height: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.hero-btn-solid {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    padding: 0.5rem 0.75rem;
}

.hero-btn-solid:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Homepage Hero Bottom Strip */
.hero-bottom-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(61, 118, 173, 0.6);
    height: 50px;
    z-index: 3;
}

.hero-bottom-strip-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-featured-box {
    position: relative;
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 0.95rem 3.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-left: 0;
}

.hero-featured-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 10px solid var(--color-primary-dark);
}

/* Homepage hero needs extra padding for the bottom strip */
.hero-homepage {
    padding-bottom: 50px;
}

.hero-homepage .hero-content {
    padding-bottom: 4rem;
}

/* Hero Responsive */
@media (max-width: 968px) {
    .hero-section {
        min-height: 350px;
    }
    
    .hero-content {
        padding-left: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

/* Main Content */
.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* Page Content Sections */
.entry-content {
    overflow-x: hidden;
    padding-top: 3rem;
}

.entry-content > .wp-block-group {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Full-width sections - break out of container */
.entry-content > .wp-block-group.page-cta-section,
.entry-content > .wp-block-group.crowns-info-section,
.entry-content > .wp-block-group.new-patients-section,
.entry-content > .wp-block-group.air-polish-section,
.entry-content > .wp-block-group.contact-section,
.entry-content > .wp-block-group.whitening-info-section,
.entry-content > .wp-block-group.invi-video-section,
.entry-content > .wp-block-group.invi-how-section,
.entry-content > .wp-block-cover.testimonial-section,
.entry-content > .wp-block-sidcup-treatment-grid,
.entry-content > .wp-block-sidcup-faq-accordion,
.entry-content .testimonial-section-custom {
    max-width: none;
}

/* Reset padding for full-width html blocks */
.entry-content > .wp-block-html {
    margin: 0;
    padding: 0;
    max-width: none;
}

/* Homepage Intro Section */
.home-intro-section {
    padding: 3rem 0!important;
}

.home-intro-section h2 {
    margin-bottom: 0.5rem;
    color: #297dbd; /* Explicitly blue per homepage spec */
}

.home-intro-section h3 {
    margin-bottom: 1.5rem;
}

.home-intro-section p {
    margin-bottom: 1rem;
}

.home-intro-section p a {
    color: #297dbd;

}

.home-intro-section p a:hover {
    color: var(--color-primary);
}

/* Home intro video embed */
.home-intro-section .wp-block-embed,
.home-intro-section .wp-block-embed-youtube {
    margin-top: 0;
}

.home-intro-section figure.wp-block-embed {
    margin: 0;
}

/* About Page Styles */
.page-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.page-intro h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1rem;
}

.page-intro p {
    font-size: 16px;
    color: #6D6E71;
}

.about-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.about-columns h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 1rem;
}

.about-columns h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.about-columns h3:first-child {
    margin-top: 0;
}

.about-columns p {
    margin-bottom: 1rem;
}

.about-cta {
    text-align: center;
    padding: 2rem 0;
}

.about-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.about-cta .btn-primary:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .about-columns {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MEET OUR TEAM PAGE
   ============================================ */
.team-intro h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
}

.team-intro h1 .highlight {
    color: #3D76AD;
}

/* Team Header Bar */
.team-header-bar {
    background: #3D76AD;
    border-top: 5px solid #39B7EA;
    padding: 0.5rem 0;
    text-align: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    margin-top: 2rem;
}

.team-header-bar h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #fff;
    margin: 0;
}

/* Team Grid Section */
.team-grid-section {
    background: #fff;
    padding: 3rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    border-bottom: 9px solid #39B7EA;
}

.team-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Team Card */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-card-image {
    position: relative;
    border-top: 3px solid #3D76AD;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.team-card:hover .team-card-info {
    transform: translateY(100%);
}

.team-card-info h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    color: #6D6E71;
    margin: 0 0 0.25rem;
    font-weight: normal;
}

.team-card-info h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #297DBD;
    margin: 0 0 0.5rem;
}

.team-card-info .qual {
    font-size: 14px;
    color: #6D6E71;
    margin: 0 0 0.25rem;
}

.team-card-info .gdc {
    font-size: 14px;
    color: #6D6E71;
    margin: 0;
}

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

@media (max-width: 850px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .team-intro h1 {
        font-size: 28px;
    }
}

/* ============================================
   PRACTICE TOUR PAGE
   ============================================ */
.tour-intro {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.tour-intro h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
}

.tour-intro h1 .highlight {
    color: #3D76AD;
}

.tour-intro p {
    color: #6D6E71;
    max-width: 800px;
    margin: 1rem auto 0;
}

.tour-header-bar, .team-header-bar,
.wp-block-group.tour-header-bar {
    background: #3D76AD;
    border-top: 5px solid #39B7EA;
    padding: 0.5rem 0;
    text-align: center;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: none !important;
    margin-top: 2rem;
}

.tour-header-bar h2,
.wp-block-group.tour-header-bar h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #fff;
    margin: 0;
}

/* Masonry Gallery */
.masonry-gallery-section {
    background: #fff;
    padding: 2rem 0 3rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    border-bottom: 9px solid #39B7EA;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }

.masonry-gallery {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    column-gap: 1rem;
}

.masonry-gallery.columns-2 { column-count: 2; }
.masonry-gallery.columns-3 { column-count: 3; }
.masonry-gallery.columns-4 { column-count: 4; }
.masonry-gallery.columns-5 { column-count: 5; }
.masonry-gallery.columns-6 { column-count: 6; }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.masonry-item a {
    display: block;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@media (max-width: 1100px) {
    .masonry-gallery.columns-4,
    .masonry-gallery.columns-5,
    .masonry-gallery.columns-6 {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-gallery.columns-3,
    .masonry-gallery.columns-4,
    .masonry-gallery.columns-5,
    .masonry-gallery.columns-6 {
        column-count: 2;
    }
    
    .tour-intro h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1 !important;
        max-width: 400px;
    }
}

/* ============================================
   TEAM MEMBER INDIVIDUAL PAGE
   ============================================ */
.team-member-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 3rem;
}

.team-member-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.team-member-image {
    flex: 0 0 300px;
    border-top: 3px solid #3D76AD;
}

.team-member-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-member-details {
    flex: 1;
    padding-top: 1rem;
}

.team-member-details h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.team-member-details h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #297DBD;
    margin-bottom: 0.75rem;
}

.team-member-details .qual {
    font-size: 14px;
    color: #6D6E71;
    margin-bottom: 0.25rem;
}

.team-member-details .gdc {
    font-size: 14px;
    color: #6D6E71;
}

.team-member-content {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.team-member-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.team-member-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}



@media (max-width: 768px) {
    .team-member-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .team-member-image {
        flex: none;
        max-width: 300px;
    }
    
    .team-member-details h1 {
        font-size: 28px;
    }
}

/* ============================================
   ROUTINE DENTISTRY PAGE
   ============================================ */
.routine-dentistry-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.routine-dentistry-page h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 2rem;
    text-align: left;
}

.routine-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.routine-columns h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #6D6E71;
    margin-bottom: 1rem;
}

.routine-columns p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.routine-columns ul {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
}

.routine-columns ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.routine-right .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.routine-right .btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.routine-right .btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Routine Separator */
.routine-separator {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
    height: 1px;
    background: #ddd;
}

/* Footer Note */
.routine-footer-note {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    text-align: center;
}

.routine-footer-note p {
    color: #6D6E71;
    line-height: 1.6;
}

.routine-footer-note a {
    color: var(--color-primary);

}

.routine-footer-note a:hover {
    color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .routine-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .air-polish-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .air-polish-content {
        order: 1;
    }
    
    .air-polish-image {
        order: 2;
    }
}

/* ============================================
   GENERAL DENTAL PAGES (Hygienist, Children's)
   ============================================ */
.general-dental-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.general-dental-page h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 2rem;
    text-align: left;
}

.general-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.general-columns h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #6D6E71;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.general-columns h3:first-child {
    margin-top: 0;
}

.general-columns p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.general-columns ul {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
}

.general-columns ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.general-columns .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.general-columns .btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.general-columns .btn-primary svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .general-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   COSMETIC DENTISTRY PAGES
   ============================================ */
.cosmetic-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Centered Page Header */
.page-header-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.page-header-centered h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1rem;
}

.page-header-centered h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    margin-bottom: 1rem;
}

.page-header-centered p {
    font-size: 16px;
    line-height: 1.6;
}

/* Cosmetic Columns */
.cosmetic-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cosmetic-page h1,
.cosmetic-columns h1 {
    font-family: Georgia, serif !important;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1rem;

}

.cosmetic-columns h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1rem;
}

.cosmetic-columns h2.secondary-blue {
    color: #3D76AD;
    font-size: 24px!important;
}

.cosmetic-columns h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #6D6E71;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.cosmetic-columns h3:first-of-type {
    margin-top: 0;
}

.cosmetic-columns p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cosmetic-columns .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent!important;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.cosmetic-columns .btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.cosmetic-columns .btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Cosmetic FAQ within page */
.cosmetic-faq {
    margin-top: 1rem;
}

.cosmetic-faq .faq-item {
    border-bottom: 1px solid #ddd;
}

.cosmetic-faq .faq-item:first-child {
    border-top: 1px solid #ddd;
}

.cosmetic-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #6D6E71;
    font-weight: normal;
    transition: color 0.2s ease;
}

.cosmetic-faq .faq-question:hover {
    color: var(--color-primary);
}

.cosmetic-faq .faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.cosmetic-faq .faq-item.active .faq-question::after {
    content: '−';
}

.cosmetic-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.cosmetic-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}

.cosmetic-faq .faq-answer p {
    margin: 0 0 0.75rem;
    color: #6D6E71;
    font-size: 14px;
}

/* White Fillings Page FAQ - Blue Background Style */
.white-fillings-page .wp-block-details {
    margin-bottom: 0.5rem;
}

.white-fillings-page .wp-block-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #fff;
    font-weight: normal;
    background-color: #38B7EA;
    transition: background-color 0.2s ease;
    list-style: none;
}

.white-fillings-page .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.white-fillings-page .wp-block-details summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    transition: transform 0.3s ease;
}

.white-fillings-page .wp-block-details[open] summary::after {
    content: '−';
}

.white-fillings-page .wp-block-details summary:hover {
    background-color: #2da3d4;
}

.white-fillings-page .wp-block-details {
    border: 2px solid #38B7EA;
    border-top: none;
}

.white-fillings-page .wp-block-details > *:not(summary) {
    padding: 0 1.25rem;
    background-color: #fff;
}

.white-fillings-page .wp-block-details > *:not(summary):first-of-type {
    padding-top: 1.25rem;
}

.white-fillings-page .wp-block-details > *:not(summary):last-child {
    padding-bottom: 1.25rem;
}

.white-fillings-page .wp-block-details p {
    margin: 0 0 0.75rem;
    color: #6D6E71;
    font-size: 14px;
}

.white-fillings-page .wp-block-details p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cosmetic-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .crowns-info-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Content Button with Calendar Icon */
.btn-appointment-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-appointment-content .wp-block-button__link:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-appointment-content .wp-block-button__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   VIDEO EMBED RESPONSIVE STYLES
   ============================================ */

/* Base embed styles */
.wp-block-embed,
.wp-block-embed-youtube,
.wp-block-video {
    margin: 0;
    max-width: 100%;
    width: 100%;
    clear: both;
}

/* Figure wrapper */
figure.wp-block-embed {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* The embed wrapper - responsive 16:9 container */
.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

/* Iframe inside wrapper - override inline width/height attributes */
.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video,
.wp-block-embed__wrapper object,
.wp-block-embed__wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: 0;
}

/* Override inline width/height on iframes */
.wp-block-embed__wrapper iframe[width],
.wp-block-embed__wrapper iframe[height] {
    width: 100% !important;
    height: 100% !important;
}

/* WordPress aspect ratio classes */
.wp-has-aspect-ratio .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    padding-bottom: 56.25%;
}

.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
    padding-bottom: 75%;
}

.wp-embed-aspect-1-1 .wp-block-embed__wrapper {
    padding-bottom: 100%;
}

/* Fix for embeds in flex columns */
.wp-block-column figure.wp-block-embed {
    display: block;
    width: 100%;
}

.wp-block-column .wp-block-embed__wrapper {
    width: 100%;
}

/* Our Treatments Section */
.treatments-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    text-align: center;
}

.treatments-title-bar {
    background: var(--color-primary-dark);
    border-top: 5px solid var(--color-primary);
    padding: 1.5rem 0;
}

.treatments-title-bar h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #fff;
    margin: 0;
}

.treatments-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.treatments-content .treatments-intro {
    color: #6D6E71;
 
    margin: 0 auto 1.5rem;
}

.treatments-content h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.treatments-content .treatments-highlight {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.treatments-content .btn-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #38b7ea;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.treatments-content .btn-info:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.treatments-content .btn-info svg {
    width: 18px;
    height: 18px;
}

/* Treatment Grid */
.treatments-grid-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.treatment-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.treatment-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.treatment-tile-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.treatment-tile .tile-text {
    transition: opacity 0.3s ease;
}

.treatment-tile h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.treatment-tile p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.treatment-tile .tile-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.treatment-tile .tile-hover svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

.treatment-tile .tile-hover span {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.treatment-tile:hover .tile-text {
    opacity: 0;
}

.treatment-tile:hover .tile-hover {
    opacity: 1;
}

.treatment-tile:hover .treatment-tile-overlay {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.treatment-tile a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

@media (max-width: 992px) {
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .treatments-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 1rem;
    }
    
    .treatment-tile {
        aspect-ratio: 1 / 1;
    }
}

/* FAQ Section */
.faq-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    display: flex;
    min-height: 500px;
}

/* FAQ inside columns - don't break out */
.wp-block-column .faq-section,
.wp-block-column .faq-section.faq-simple {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-height: auto;
    display: block;
}

.wp-block-column .faq-section .faq-content {
    max-width: 100%;
    padding: 0;
}

.wp-block-column .faq-section .faq-content-inner {
    max-width: 100%;
    margin: 0;
}

.wp-block-column .faq-section .faq-image {
    display: none;
}

.faq-content {
    flex: 1;
    max-width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-content-inner {
    max-width: 600px;
    margin-left: auto;
}

.faq-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

/* Accordion Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    margin-bottom: 0.5rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #fff;
    font-weight: normal;
    background-color: #38B7EA;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #2da3d4;
}

/* Hide the ::after since we use .faq-icon in HTML */
.faq-question::after {
    display: none;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
    border: 2px solid #38B7EA;
    border-top: none;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1.25rem;
}

.faq-answer p {
    margin: 0 0 0.5rem;
    color: #6D6E71;
}

.faq-answer ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #6D6E71;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-content h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.faq-button {
    margin-top: 2rem;
}

.faq-button .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-button .btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

@media (max-width: 992px) {
    .faq-section {
        flex-direction: column;
    }
    
    .faq-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .faq-content-inner {
        max-width: 100%;
        margin: 0;
    }
    
    .faq-image {
        min-height: 300px;
    }
}

/* Contact Form 7 Styling */
.contact-form-column .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form-column .wpcf7-form br {
    display: none;
}

.contact-form-column .wpcf7-form > p {
    display: contents;
}

/* Target the form control wrappers */
.contact-form-column .wpcf7-form-control-wrap {
    display: block;
}

/* First Name field - using data-name or class */
.contact-form-column .wpcf7-form-control-wrap[data-name="fname"],
.contact-form-column span.fname {
    grid-column: 1;
    grid-row: 1;
}

/* Last Name field */
.contact-form-column .wpcf7-form-control-wrap[data-name="lname"],
.contact-form-column span.lname {
    grid-column: 2;
    grid-row: 1;
}

/* Email field */
.contact-form-column .wpcf7-form-control-wrap[data-name="your-email"],
.contact-form-column span.your-email {
    grid-column: 1;
    grid-row: 2;
}

/* Phone field */
.contact-form-column .wpcf7-form-control-wrap[data-name="phone"],
.contact-form-column span.phone {
    grid-column: 2;
    grid-row: 2;
}

/* Message textarea */
.contact-form-column .wpcf7-form-control-wrap[data-name="your-message"],
.contact-form-column span.your-message {
    grid-column: 1 / -1;
    grid-row: 3;
}

/* Submit button */
.contact-form-column .wpcf7-form input[type="submit"] {
    grid-column: 1 / -1;
    grid-row: 4;
}

.contact-form-column .wpcf7-form input[type="text"],
.contact-form-column .wpcf7-form input[type="email"],
.contact-form-column .wpcf7-form input[type="tel"],
.contact-form-column .wpcf7-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.contact-form-column .wpcf7-form input::placeholder,
.contact-form-column .wpcf7-form textarea::placeholder {
    color: #999;
}

.contact-form-column .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form-column .wpcf7-form input[type="submit"] {
    background: var(--color-primary-dark);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    width: auto;
    justify-self: start;
}

.contact-form-column .wpcf7-form input[type="submit"]:hover {
    background: #2c5a8a;
}

/* CF7 validation messages styling */
.contact-form-column .wpcf7-form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1rem;
    border-radius: 4px;
}

.contact-form-column .wpcf7-form .wpcf7-not-valid-tip {
    color: #fff;
    font-size: 12px;
    margin-top: 0.25rem;
}

/* Map Styling */
.contact-map-column iframe {
    width: 100%;
    height: 350px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }
    
    .contact-form-column .wpcf7-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form-column .wpcf7-form-control-wrap[data-name="fname"],
    .contact-form-column .wpcf7-form-control-wrap[data-name="lname"],
    .contact-form-column .wpcf7-form-control-wrap[data-name="your-email"],
    .contact-form-column .wpcf7-form-control-wrap[data-name="phone"],
    .contact-form-column .wpcf7-form-control-wrap[data-name="your-message"],
    .contact-form-column .wpcf7-form input[type="submit"],
    .contact-form-column .wpcf7-form .wpcf7-response-output {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Association Logos Section */
.association-logos-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: #fff;
    padding: 2rem 0;
}

.association-logos-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.association-logos-inner img {
    height: 140px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.association-logos-inner img:hover {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    position: relative;
    margin-top: 13px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    height: 1px;
    background: #39B7EA;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 11px;
    background: #3D76AD;
    border-top: 1px solid #D7F1FB;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h5 {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 1.25rem;
    font-weight: normal;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #fff;
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-list li a:hover {
    color: var(--color-primary);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--color-primary);
}

/* Footer Hours */
.footer-column:nth-child(2),
.footer-column:nth-child(3) {
    text-align: center;
}

.footer-column:nth-child(2) h5,
.footer-column:nth-child(3) h5 {
    text-align: center;
}

.footer-hours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-hours li {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-hours li:last-child {
    border-bottom: none;
}

.footer-hours .day {
    color: #fff;
    min-width: 80px;
    text-align: right;
}

.footer-hours .time {
    min-width: 120px;
    text-align: left;
}

/* Footer Treatments Menu */
.footer-treatments-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer-treatments-menu li {
    margin-bottom: 0.5rem;
}

.footer-treatments-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-treatments-menu a:hover {
    color: #fff;
}

/* Footer CTA Buttons */
.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-footer-primary,
.btn-footer-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--color-primary-dark);
    color: #fff;
    border: 2px solid var(--color-primary-dark);
}

.btn-footer-primary:hover,
.btn-footer-secondary:hover {
    background: #2c5a8a;
    border-color: #2c5a8a;
    color: #fff;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: #297DBD;
    padding: 1rem 0;
}

.footer-bottom-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left .copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-bottom-right {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary-dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.go-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-left {
        flex-direction: column;
    }
    
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Association Logos */
.association-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.association-logos img {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.association-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-secondary)!important;
    color: var(--color-text);
}

.btn-secondary:hover {
    background: #C4A030;
}

/* Responsive */
@media (max-width: 1100px) {
    .header-right {
        max-width: calc(100% - 160px - 1rem);
    }
    
    .site-logo {
        min-width: 160px;
    }
    
    .site-logo img,
    .site-logo .custom-logo {
        height: 100px;
        max-width: 140px;
    }
    
    .main-navigation a {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 968px) {
    /* Hide desktop navigation only on mobile */
    .header-right {
        display: none !important;
    }
    
    .header-nav-row {
        display: none;
    }
    
    /* Top bar mobile - keep visible, stack and center */
    .top-bar {
        display: block !important;
    }
    
    .top-bar-inner {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .top-bar-address {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .social-links {
        display: flex !important;
        align-items: center;
    }
    
    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .top-bar-separator {
        display: inline-block;
    }
    
    .top-bar-link {
        display: inline-block;
    }
    
    /* Show mobile menu bar - centered */
    .mobile-menu-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--color-primary);
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 1001;
        border-bottom: 1px solid #ffffff;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: none;
        border: none;
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle i {
        font-size: 1.25rem;
    }
    
    /* Mobile Menu Dropdown */
    .mobile-menu-dropdown {
        display: block;
        position: fixed;
        top: 50px; /* Height of the menu bar */
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--color-primary);
        transition: max-height 0.3s ease;
        z-index: 1000;
    }
    
    .mobile-menu-dropdown.is-active {
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }
    
    .mobile-nav .mobile-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav .mobile-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .mobile-nav .mobile-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
    }
    
    .mobile-nav .mobile-menu a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .mobile-nav .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: rgba(0,0,0,0.15);
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-nav .menu-item-has-children.is-open > .sub-menu {
        display: block;
        max-height: 500px;
    }
    
    .mobile-nav .sub-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-nav .sub-menu a {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }
    
    /* Dropdown toggle for items with children */
    .mobile-nav .menu-item-has-children {
        position: relative;
    }
    
    .mobile-nav .menu-item-has-children > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-right: 1.5rem;
    }
    
    .mobile-nav .menu-item-has-children > a::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        color: #fff;
        margin-left: auto;
        flex-shrink: 0;
        width: 24px;
        text-align: center;
    }
    
    .mobile-nav .menu-item-has-children.is-open > a::after {
        content: '−';
    }
    
    /* Override desktop two-column dropdown styles on mobile */
    .mobile-nav .menu-item-cosmetic-dentistry > .sub-menu,
    .mobile-nav .menu-item-large-dropdown > .sub-menu {
        width: 100% !important;
        min-width: 100% !important;
        display: none !important;
        flex-wrap: nowrap !important;
        position: static !important;
    }
    
    .mobile-nav .menu-item-cosmetic-dentistry.is-open > .sub-menu,
    .mobile-nav .menu-item-large-dropdown.is-open > .sub-menu {
        display: block !important;
    }
    
    .mobile-nav .menu-item-cosmetic-dentistry > .sub-menu > li,
    .mobile-nav .menu-item-large-dropdown > .sub-menu > li {
        width: 100% !important;
        border-right: none !important;
    }
    
    /* Header on mobile - centered logo + phone */
    .site-header {
        border-bottom: none;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem;
    }
    
    /* Centered bigger logo */
    .site-logo {
        margin: 0 auto;
        box-shadow: none;
        margin-bottom: 0;
    }
    
    .site-logo img,
    .site-logo .custom-logo {
        height: 180px;
        max-width: 280px;
        padding: 0.5rem;
    }
    
    /* Mobile phone section - visible on mobile */
    .mobile-phone-section {
        display: block;
        margin-top: 1rem;
    }
    
    .mobile-phone-number {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: #fff;
        padding: 0.75rem 1.5rem;
        border-radius: 4px;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color-primary);
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .mobile-phone-number i {
        font-size: 1rem;
    }
    
    .mobile-phone-number:hover {
        color: var(--color-primary-dark);
    }
    
    /* Content padding for readability */
    .entry-content {
        padding: 0 1rem;
    }
    
    .entry-content > .wp-block-group {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero adjustments */
    .hero-section {
        min-height: 250px;
        background-position: center center;
        margin-bottom: 3rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-inner {
        max-width: 100%;
        padding-left: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Footer mobile */
    .footer-main {
        padding: 2rem 1rem;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 2rem;
    }
    

    
    /* General content padding */
    .page-intro,
    .cosmetic-page,
    .routine-dentistry-page,
    .general-dental-page,
    .team-intro,
    .contact-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .invi-video-section, .invi-why-section, .invi-benefits-section, .invi-how-section {
        width: 100%!important;
    }
    
    /* Two column layouts stack */
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
    
    /* Tables responsive */
    .fee-guide-table-section,
    .finance-table-section {
        overflow-x: auto;
    }
    
    .fee-guide-table-section table,
    .finance-table-section table {
        min-width: 500px;
    }
    
    /* Video embeds responsive - COMPREHENSIVE FIX */
    .wp-block-embed,
    .wp-block-embed-youtube,
    .wp-block-video,
    figure.wp-block-embed {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        display: block !important;
    }
    
    .wp-block-embed__wrapper {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important;
        overflow: hidden !important;
    }
    
    .wp-block-embed__wrapper iframe,
    .wp-block-embed__wrapper video,
    .wp-block-embed__wrapper object,
    .wp-block-embed__wrapper iframe[width],
    .wp-block-embed__wrapper iframe[height] {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border: 0 !important;
    }
    
    /* Home intro section video */
    .home-intro-section .wp-block-column:last-child {
        margin-top: 1.5rem;
    }
    
    .home-intro-section figure.wp-block-embed {
        margin: 0 !important;
    }
    
    /* Override inline flex-basis on columns */
    .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
    }
    
    /* Team grid responsive */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .team-member-card {
        min-width: auto;
    }
    
    /* CTA sections */
    .page-cta-section .wp-block-columns {
        text-align: center;
    }
    
    .page-cta-section .wp-block-buttons {
        justify-content: center !important;
    }
    
    /* Smile gallery grid */
    .smile-cases-row {
        grid-template-columns: 1fr;
    }
    
    /* Contact form sections */
    .contact-section .contact-inner {
        flex-direction: column;
    }
    
    .contact-section .contact-form-col,
    .contact-section .contact-map-col {
        width: 100%;
    }
    
    /* FAQ styling */
    .faq-accordion,
    .veneers-faq,
    .facial-faq {
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .site-logo img,
    .site-logo .custom-logo {
        height: 150px;
        max-width: 240px;
    }
    
    .mobile-phone-number {
        font-size: 1.1rem;
        padding: 0.6rem 1.25rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    /* Team grid single column on small screens */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact info grid */
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Full width sections padding */
    .full-width-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* New patients buttons */
    .new-patients-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .np-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   INVISALIGN PAGE (Gutenberg Blocks)
   ============================================ */
.invi-title {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 1rem;
}

.invi-title .body-color {
    color: #6D6E71;
}

.invi-title .secondary-blue {
    color: #297DBD;
}

.invi-title .secondary-gold {
    color: #D4AF37;
}

h2.primary-blue {
    color: var(--color-primary) !important;
}

h2.secondary-blue {
    color: #3D76AD !important;
}

/* Invisalign Video Section */
.invi-video-section {
    background: var(--color-primary);
    padding: 3rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.invi-video-section > .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.invi-video-section h2,
.invi-video-section h3,
.invi-video-section p {
    color: #fff;
}

/* Invisalign Why Section */
.invi-why-section {
    padding: 3rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: #fff;
}

.invi-why-section > .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Feature Items in Gutenberg */
.invi-feature {
    margin-bottom: 1.5rem;
    padding: 0;
}

.invi-feature .feature-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #3D76AD;
    margin-bottom: 0.25rem;
}

.invi-feature p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Invisalign Features with Circle Icons */
.invi-features .invi-feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.invi-features .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #9E9E9F;
    border-radius: 50%;
    flex-shrink: 0;
}

.invi-features .feature-icon i {
    color: #fff;
    font-size: 14px;
}

.invi-features .feature-content h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #3D76AD;
    margin: 0 0 0.25rem;
}

.invi-features .feature-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6D6E71;
}

/* Smile Case in Invisalign Page */
.invi-why-section .smile-case {
    margin: 1.5rem 0;
}

.invi-why-section .smile-case .case-images {
    display: flex;
    gap: 1rem;
}

.invi-why-section .smile-case .case-image {
    position: relative;
    flex: 1;
}

.invi-why-section .smile-case .case-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.invi-why-section .smile-case .case-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(61, 118, 173, 0.9);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 14px;
    font-weight: 600;
}

/* Invisalign Benefits Section */
.invi-benefits-section {
    padding: 3rem 0;

    background: #fff;
}

.invi-benefits-section > * {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.invi-benefits-section h2.secondary-blue {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #3D76AD;
    margin-bottom: 2rem;
}

.invi-benefits-section .wp-block-columns {
    display: flex;
    gap: 2rem;
}

.invi-benefits-section .wp-block-column {
    flex: 1;
    min-width: 0;
}

.invi-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.invi-benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.invi-benefits-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Invisalign How Section */
.invi-how-section {
    background: var(--color-primary);
    padding: 3rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.invi-how-section > .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.invi-how-section h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.invi-how-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: how-item;
}

.invi-how-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
    line-height: 1.6;
    counter-increment: how-item;
}

.invi-how-list li::before {
    content: counter(how-item) ".";
    position: absolute;
    left: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    color: #3D76AD;
}

.invi-how-image-col .wp-block-image {
    padding: 1rem;
}

.invi-how-image-col .wp-block-image img {
    border: 2px solid #fff;
}

@media (max-width: 768px) {
    .invi-video-section .wp-block-columns,
    .invi-why-section .wp-block-columns,
    .invi-benefits-section .wp-block-columns,
    .invi-how-section .wp-block-columns {
        flex-direction: column;
    }
}

/* WordPress Specific - Only default wp-block-button (no custom class) */
.wp-block-button:not([class*="btn-"]) > .wp-block-button__link {
    background: var(--color-primary);
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.wp-block-button:not([class*="btn-"]) > .wp-block-button__link:hover {
    background: var(--color-primary-dark);
}

.alignwide {
    max-width: calc(var(--container-width) + 100px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ============================================
   TEETH WHITENING PAGE
   ============================================ */
.teeth-whitening-page h1 {
    color: #6D6E71;
}

.whitening-benefits-section {
    padding: 2rem 0 3rem;
}

.whitening-benefits-section h2 {
    color: #6D6E71;
    margin-bottom: 1rem;
}

.whitening-benefits-section h3 {
    color: #6D6E71;
    margin-bottom: 2rem;
    font-weight: normal;
}

/* Blue Checkmark List */
.blue-checkmark-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.blue-checkmark-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blue-checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Whitening Info Section - Full Width Blue Background */
.whitening-info-section {
    background: var(--color-primary);
    color: #fff;
    padding: 3rem 0;
}

/* Whitening Info Section */
.whitening-info-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.whitening-info-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.whitening-info-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.whitening-info-section p {
    color: #fff;
}

/* Separator/Divider Styling */
.wp-block-separator.routine-separator {
    max-width: var(--container-width);
    margin: 2rem auto;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   FULL-WIDTH SECTION STYLES (Gutenberg Blocks)
   ============================================ */

/* Page CTA Section */
.page-cta-section {
    background: #3D76AD;
    padding: 2rem 1.5rem;
}

.page-cta-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.page-cta-section p {
    color: #fff;
    margin: 0;
}

/* Crowns Info Section */
.crowns-info-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.crowns-info-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.crowns-info-section h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.crowns-info-section ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: item;
}

.crowns-info-section ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    counter-increment: item;
    line-height: 1.5;
}

.crowns-info-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    color: #3D76AD;
}

/* New Patients Section */
.new-patients-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
    text-align: center;
}

.new-patients-section .new-patients-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.new-patients-section h2,
.new-patients-section p {
    color: #fff;
}

.new-patients-section h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 1rem;
}

.new-patients-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.new-patients-section .wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* New Patients Buttons with Icons */
.new-patients-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.np-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.np-btn svg {
    flex-shrink: 0;
}

.np-btn-info {
    background-color: #fff;
    color: #3D76AD;
    border: 2px solid #3D76AD;
}

.np-btn-info:hover {
    background-color: #3D76AD;
    color: #fff;
}

.np-btn-calendar {
    background: #38b7ea;
    color: #ffffff;
    border: 2px solid #38b7ea;
}

.np-btn-calendar:hover {
    background: #2da3d4;
    border-color: #2da3d4;
}

/* Air Polish Section */
.air-polish-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.air-polish-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.air-polish-section h2,
.air-polish-section h3,
.air-polish-section p {
    color: #fff;
}

/* Contact Section */
.contact-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.contact-section .contact-inner,
.contact-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}

.contact-section .contact-form-column,
.contact-section .contact-map-column {
    flex: 1;
}

.contact-section h2 {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-section .contact-inner {
        flex-direction: column;
    }
}

/* Testimonial Section Custom */
.testimonial-section-custom {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.testimonial-circle-wrapper {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.testimonial-circle-img {
    width: 40px;
    height: auto;
    display: block;
}

.testimonial-bg {
    background-size: cover;
    background-position: center;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.testimonial-content-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.testimonial-text {
    flex: 1;
    position: relative;
    padding-left: 80px;
}

.testimonial-text .quote-icon {
    position: absolute;
    left: 0;
    top: -10px;
    width: 120px;
    height: auto;
    opacity: 0.7;
}

.testimonial-text h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    color: #fff;
    margin-bottom: 1rem;
}

.testimonial-text .testimonial-quote {
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

.testimonial-action {
    flex-shrink: 0;
}

.testimonial-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.testimonial-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .testimonial-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-text {
        padding-left: 0;
    }
    
    .testimonial-text .quote-icon {
        position: static;
        margin: 0 auto 1rem;
    }
}

/* Invi Video Section */
.invi-video-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.invi-video-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.invi-video-section h2,
.invi-video-section h3,
.invi-video-section p {
    color: #fff;
}

/* Invi How Section */
.invi-how-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.invi-how-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.invi-how-section h2 {
    color: #fff;
}

.invi-how-section ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: item;
}

.invi-how-section ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    counter-increment: item;
    line-height: 1.6;
}

.invi-how-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    color: #3D76AD;
}

/* ============================================
   GUTENBERG BUTTON OVERRIDES
   Reset and apply proper styles for all custom button classes
   ============================================ */

/* Reset all custom button wrappers - prevent double styling */
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-info .wp-block-button__link,
.wp-block-button.btn-cta-outline .wp-block-button__link,
.wp-block-button.btn-outline .wp-block-button__link,
.wp-block-button.btn-white .wp-block-button__link,
.wp-block-button.btn-outline-white .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

/* Primary button (blue with white text) */
.wp-block-button.btn-primary .wp-block-button__link {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.wp-block-button.btn-primary .wp-block-button__link:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Info button (same as primary) */
.wp-block-button.btn-info .wp-block-button__link {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.wp-block-button.btn-info .wp-block-button__link:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* CTA Outline button (white outline on dark bg) */
.wp-block-button.btn-cta-outline .wp-block-button__link {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.wp-block-button.btn-cta-outline .wp-block-button__link:hover {
    background: #fff;
    color: #3D76AD;
}

/* White button with blue text */
.wp-block-button.btn-white .wp-block-button__link {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.wp-block-button.btn-white .wp-block-button__link:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* Outline button (transparent with white border) */
.wp-block-button.btn-outline .wp-block-button__link {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.wp-block-button.btn-outline .wp-block-button__link:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Outline white button */
.wp-block-button.btn-outline-white .wp-block-button__link {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.wp-block-button.btn-outline-white .wp-block-button__link:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Body color button (grey/body text color) */
.wp-block-button.btn-body-color .wp-block-button__link {
    background: #6D6E71;
    color: #fff;
    border-color: #6D6E71;
}

.wp-block-button.btn-body-color .wp-block-button__link:hover {
    background: #5a5b5e;
    border-color: #5a5b5e;
}

/* Icon Buttons with FontAwesome */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-icon i {
    font-size: 0.9em;
}

/* Primary Blue Button */
.btn-primary-blue {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary-blue:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* Secondary Blue Button */
.btn-secondary-blue {
    background: #297DBD;
    color: #fff;
}

.btn-secondary-blue:hover {
    background: #1e6aa3;
    color: #fff;
}

/* Outline White Button with Icon */
.btn-outline-white-icon {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white-icon:hover {
    background: #fff;
    color: var(--color-primary);
}

/* ============================================
   SMILE GALLERY PAGE
   ============================================ */
/* Smile Gallery Page Intro - centered, fixed width */
.smile-gallery-intro {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.smile-gallery-intro h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1rem;
}

.smile-gallery-intro p {
    color: #6D6E71;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Smile Gallery Block - full width backgrounds, centered content */
.smile-gallery-block {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Gallery Header - full width blue */
.smile-gallery-header {
    background: #3D76AD;
    border-top: 5px solid #39B7EA;
    padding: 1.5rem;
}

.smile-gallery-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.smile-gallery-header h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #fff;
    margin: 0;
    text-align: center;
}

/* Gallery Grid - full width white */
.smile-gallery-grid {
    background: #fff;
    padding: 2rem 0 3rem;
}

.smile-gallery-grid-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Smile Cases Row - 2 pairs per row */
.smile-cases-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.smile-cases-row:last-child {
    margin-bottom: 0;
}

/* Individual Case */
.smile-case {
    text-align: center;
}

/* Images Container - side by side */
.smile-images {
    display: flex;
    width: 100%;
}

.smile-img {
    flex: 1;
    position: relative;
}

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

/* Image Captions - overlay bottom of image */
.smile-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.smile-before .smile-caption {
    background: #39B7EA;
}

.smile-after .smile-caption {
    background: #3D76AD;
}

/* Case Labels */
.case-label {
    margin-top: 0.75rem;
    font-size: 14px;
    color: #6D6E71;
}

.case-number {
    color: #3D76AD;
    font-weight: 600;
}

@media (max-width: 768px) {
    .smile-cases-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .smile-images {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ============================================
   DENTAL VENEERS PAGE
   ============================================ */
.veneers-page {
    padding: 2rem 1.5rem;
}

.veneers-page h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.veneers-page h2 {
    font-family: Georgia, serif;
    color: #6D6E71;
}

/* Veneers Info Section - Primary Blue */
.veneers-info-section {
    background: var(--color-primary);
    padding: 3rem 1.5rem;
}

.veneers-info-section .wp-block-columns {
    max-width: var(--container-width);
    margin: 0 auto;
}

.veneers-info-section h2,
.veneers-info-section p {
    color: #fff;
}

.veneers-info-section h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 1rem;
}

.veneers-info-section .wp-block-buttons {
    margin-top: 2rem;
}

/* Full-width override */
.entry-content > .wp-block-group.veneers-info-section {
    max-width: none;
}

/* Veneers Details Section */
.veneers-details-section {
    padding: 3rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.veneers-details-section h2 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.veneers-details-section .wp-block-columns {
    display: flex;
    gap: 2rem;
}

.veneers-details-section .wp-block-column {
    flex: 1;
    min-width: 0;
}

.veneers-details-section .veneers-faq {
    position: relative;
}

/* Veneers Checklist */
.veneers-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.veneers-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #6D6E71;
}

.veneers-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1em;
}

.veneers-checklist li strong {
    color: #6D6E71;
}

/* Veneers FAQ - Blue Background Style */
.veneers-faq .faq-item {
    margin-bottom: 0.5rem;
}

.veneers-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #fff;
    font-weight: normal;
    background-color: #38B7EA;
    transition: background-color 0.2s ease;
}

.veneers-faq .faq-question:hover {
    background-color: #2da3d4;
}

.veneers-faq .faq-question::after {
    display: none;
}

.veneers-faq .faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    transition: transform 0.3s ease;
}

.veneers-faq .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.veneers-faq .faq-item.active .faq-question::after {
    content: '−';
}

.veneers-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
    border: 2px solid #38B7EA;
    border-top: none;
}

.veneers-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem;
}

.veneers-faq .faq-answer p {
    margin: 0 0 0.75rem;
    color: #6D6E71;
    font-size: 14px;
    line-height: 1.6;
}

.veneers-faq .faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .veneers-info-section .wp-block-columns,
    .veneers-details-section .wp-block-columns {
        flex-direction: column;
    }
}

/* ============================================
   OUR APPROACH PAGE
   ============================================ */
.our-approach-page {
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.our-approach-page h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.our-approach-page p {
    color: #6D6E71;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.our-approach-page .signature-image {
    margin: 2rem auto 0.5rem;
}

.our-approach-page .signature-image img {
    max-width: 200px;
}

.our-approach-page .signature-title {
    font-style: italic;
    color: #6D6E71;
    margin-top: 0;
}

/* ============================================
   DENTAL IMPLANTS PAGE
   ============================================ */
.implants-page {
    padding: 2rem 1.5rem 3rem;
}

.implants-page h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.implants-page h2 {
    font-family: Georgia, serif;
    color: #6D6E71;
}

.implants-page h2.secondary-blue {
    color: #3D76AD;
    margin-bottom: 1rem;
}

.implants-page p {
    color: #6D6E71;
    line-height: 1.6;
}

/* ============================================
   FACIAL AESTHETICS PAGE
   ============================================ */
.facial-page {
    padding: 2rem 1.5rem;
}

.facial-page h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.facial-page h2,
.facial-page h3 {
    font-family: Georgia, serif;
    color: #6D6E71;
}

.facial-page p {
    color: #6D6E71;
    line-height: 1.6;
}

.facial-page .wp-block-list {
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.facial-page .wp-block-list li {
    margin-bottom: 0.5rem;
}

/* Facial FAQ Header */
.facial-faq-header {
    padding: 2rem 1.5rem;
    text-align: center;
}

.facial-faq-header h4 {
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.facial-faq-header h2 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.facial-faq-header p {
    color: #6D6E71;
}

/* Facial FAQ Section - Comprehensive Centering */
.facial-faq-section {
    max-width: 100% !important;
    padding: 0 1.5rem 3rem !important;
}

.facial-faq-section > .wp-block-group__inner-container {
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
}

.facial-faq-section > .wp-block-group__inner-container > .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 3rem !important;
}

.facial-faq-section > .wp-block-group__inner-container > .wp-block-columns > .wp-block-column {
    flex: 0 0 calc(50% - 1.5rem) !important;
    max-width: calc(50% - 1.5rem) !important;
    margin: 0 !important;
}

/* Nested columns inside FAQ section should be full width */
.facial-faq-section .wp-block-column > .wp-block-columns {
    display: block !important;
}

.facial-faq-section .wp-block-column > .wp-block-columns > .wp-block-column {
    flex: none !important;
    max-width: 100% !important;
}

/* Reset FAQ accordion breakout styles when inside facial FAQ section */
.facial-faq-section .faq-section,
.facial-faq-section .wp-block-sidcup-faq-accordion {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    min-height: auto !important;
    display: block !important;
}

.facial-faq-section .faq-content {
    max-width: 100% !important;
    padding: 0 !important;
}

.facial-faq-section .faq-content-inner {
    max-width: 100% !important;
    margin: 0 !important;
}

.facial-faq-section h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.facial-faq-section h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

/* Facial FAQ Accordion - Blue Background Style */
.facial-faq .faq-item {
    margin-bottom: 0.5rem;
}

.facial-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #fff;
    font-weight: normal;
    background-color: #38B7EA;
    transition: background-color 0.2s ease;
}

.facial-faq .faq-question:hover {
    background-color: #2da3d4;
}

.facial-faq .faq-question::after {
    display: none;
}

.facial-faq .faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    transition: transform 0.3s ease;
}

.facial-faq .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.facial-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
    border: 2px solid #38B7EA;
    border-top: none;
}

.facial-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem;
}

.facial-faq .faq-answer p {
    margin: 0 0 0.75rem;
    color: #6D6E71;
    font-size: 14px;
    line-height: 1.6;
}

.facial-faq .faq-answer p:last-child {
    margin-bottom: 0;
}

/* Center image in facial page right column */
.facial-page .wp-block-columns > .wp-block-column:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.facial-page .wp-block-columns > .wp-block-column:last-child .wp-block-image {
    margin: 0;
}

@media (max-width: 768px) {
    .implants-page .wp-block-columns,
    .facial-page .wp-block-columns,
    .facial-faq-section .wp-block-columns {
        flex-direction: column;
    }
}

/* ============================================
   FEE GUIDE PAGE
   ============================================ */
.fee-guide-page {
    padding: 3rem 1.5rem 2rem;
}

.fee-guide-page h1 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.fee-guide-page p {
    color: #6D6E71;
    line-height: 1.6;

    margin-left: auto;
    margin-right: auto;
}

.fee-separator {

    margin: 2rem auto;
    border-color: #ddd;
}

/* Fee Tables Section */
.fee-tables-section {
    padding: 0 1.5rem 2rem;
}

.fee-table-heading {
    font-family: Georgia, serif;
    color: #297dbd;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.fee-table-heading:first-child {
    margin-top: 0;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border: 2px solid #39B7EA;
}

.fee-table thead tr {
    background-color: #39B7EA;
    border-bottom: 2px solid #3D76AD;
}

.fee-table thead th {
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-right: 1px solid #3D76AD;
}

.fee-table thead th:last-child {
    text-align: center;
}

.fee-table tbody tr:nth-child(odd) {
    background-color: rgba(57, 183, 234, 0.3);
}

.fee-table tbody tr:nth-child(even) {
    background-color: #fff;
}

.fee-table td {
    padding: 0.75rem 1rem;
    color: #6D6E71;
    font-size: 14px;
    border: 1px solid #39B7EA;
    font-weight: 600;
}

.fee-table .fee-amount {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

/* NHS Fees Section */
.nhs-fees-section {
    padding: 0 1.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.nhs-heading {
    font-family: Georgia, serif;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.nhs-fees-section h4 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.nhs-fees-section p {
    color: #6D6E71;
    line-height: 1.6;
}

.nhs-bands {
    margin-top: 1rem;
}

.nhs-band {
    margin-bottom: 1rem;
}

.nhs-band strong {
    color: #6D6E71;
}

.nhs-band p {
    margin: 0.25rem 0 0;
    font-size: 14px;
    color: #6D6E71;
}

@media (max-width: 768px) {
    .fee-tables-section .wp-block-columns {
        flex-direction: column;
    }
}

/* ============================================
   DENTAL FINANCE PAGE
   ============================================ */
.finance-page {
    padding: 3rem 1.5rem 2rem;
}

.finance-page h1 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-bottom: 0.5rem;
}

.finance-subtitle {
    font-family: Georgia, serif;
    color: #297DBD;
    margin-bottom: 1.5rem;
}

.finance-page p {
    color: #6D6E71;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Finance Content Section */
.finance-content-section {
    padding: 0 1.5rem 2rem;
}

.finance-content-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.finance-content-section .wp-block-columns {
    display: flex;
    gap: 2rem;
    overflow: visible;
    align-items: flex-start;
}

.finance-content-section .wp-block-column:first-child {
    flex: 0 0 68%;
    min-width: 0;
    overflow-x: auto;
}

.finance-content-section .wp-block-column:last-child {
    flex: 0 0 30%;
    min-width: 0;
    overflow: hidden;
    contain: layout;
}

/* Finance page FAQ styling - comprehensive reset */
.finance-content-section .wp-block-column .wp-block-sidcup-faq-accordion,
.finance-content-section .wp-block-column .wp-block-sidcup-faq-accordion.faq-section,
.finance-content-section .wp-block-column .wp-block-sidcup-faq-accordion.faq-simple,
.finance-content-section .wp-block-column section.faq-section {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.finance-content-section .wp-block-column .faq-content {
    all: unset !important;
    display: block !important;
    width: 100% !important;
}

.finance-content-section .wp-block-column .faq-content-inner {
    all: unset !important;
    display: block !important;
    width: 100% !important;
}

.finance-content-section .wp-block-column .faq-content h2,
.finance-content-section .wp-block-column .faq-image {
    display: none !important;
}

.finance-content-section .wp-block-column .faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}

.finance-content-section .wp-block-column .faq-item {
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

.finance-content-section .wp-block-column .faq-question {
    background: #39B7EA !important;
    color: #fff !important;
    padding: 0.75rem 1rem !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 600 !important;
}

.finance-content-section .wp-block-column .faq-question .faq-icon {
    color: #fff !important;
}

.finance-content-section .wp-block-column .faq-answer {
    display: none;
    padding: 0.75rem 1rem !important;
    font-size: 13px !important;
    background: #fff !important;
    border: 1px solid #39B7EA !important;
    border-top: none !important;
}

.finance-content-section .wp-block-column .faq-item.active .faq-answer {
    display: block !important;
}

.finance-content-section .wp-block-column .faq-button {
    margin-top: 1rem !important;
}

.finance-table {
    font-size: 13px;
}

.finance-table th,
.finance-table td {
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.finance-table th:first-child,
.finance-table td:first-child {
    text-align: left;
}

.finance-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* Finance FAQ */
.finance-faq {
    border: none;
}

.finance-faq .faq-item {
    margin-bottom: 0.5rem;
    border: none;
}

.finance-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    background-color: #39B7EA;
}

.finance-faq .faq-question::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    transition: transform 0.3s ease;
}

.finance-faq .faq-item.active .faq-question::after {
    content: '−';
}

.finance-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
    border: 2px solid #39B7EA;
    border-top: none;
}

.finance-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

.finance-faq .faq-answer p {
    margin: 0 0 0.5rem;
    color: #6D6E71;
    font-size: 13px;
    line-height: 1.6;
}

.finance-faq .faq-answer p:last-child {
    margin-bottom: 0;
}

/* Finance Legal Section */
.finance-legal-section {
    padding: 0 1.5rem 2rem 1.5rem;
}

.finance-legal-text {
    font-size: 11px;
    color: #999;
    line-height: 1.6;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .finance-content-section .wp-block-columns {
        flex-direction: column;
    }
    
    .finance-content-section .wp-block-column:first-child,
    .finance-content-section .wp-block-column:last-child {
        flex: 1 1 100%;
    }
    
    .finance-table {
        font-size: 11px;
    }
    
    .finance-table th,
    .finance-table td {
        padding: 0.4rem 0.5rem;
    }
}

/* ============================================
   NEWS / BLOG PAGE
   ============================================ */
.news-page {
    padding: 0;
}

.news-container {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.news-header {
    padding: 2rem 0;
}

.news-header h1 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin: 0;
}

.news-content {
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
}

.news-posts {
    flex: 1;
}

.news-sidebar {
    flex: 0 0 300px;
}

/* Individual Post Card */
.news-post {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #ddd;
}

.news-post:first-child {
    padding-top: 0;
}

.news-post .post-thumbnail {
    flex: 0 0 200px;
}

.news-post .post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.news-post .post-content {
    flex: 1;
}

.news-post .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 12px;
    color: #999;
    margin-bottom: 0.5rem;
}

.news-post .post-meta .post-categories a {
    color: #39B7EA;
    text-decoration: none;
}


.news-post .post-title {
    font-family: Georgia, serif;
    font-size: 20px;
    margin: 0 0 0.75rem;
}

.news-post .post-title a {
    color: #6D6E71;
    text-decoration: none;
}

.news-post .post-title a:hover {
    color: var(--color-primary);
}

.news-post .post-excerpt {
    font-size: 14px;
    color: #6D6E71;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.news-post .post-excerpt p {
    margin: 0;
}

.news-post .read-more {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}



/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 1.5rem;
}

.sidebar-header {
    background-color: #39B7EA;
    padding: 0.75rem 1rem;
}

.sidebar-header h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.sidebar-content {
    background-color: #f3f3f3;
    padding: 1rem;
}

.sidebar-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.sidebar-content ul li:last-child {
    border-bottom: none;
}

.sidebar-content ul li a {
    color: #6D6E71;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.sidebar-content ul li a:hover {
    color: var(--color-primary);
}

.sidebar-content ul li .count {
    color: #999;
    font-size: 12px;
}

/* Recent Posts */
.recent-posts-list li a {
    display: block !important;
    margin-bottom: 0.25rem;
}

.recent-posts-list li .post-date {
    font-size: 11px;
    color: #999;
}

/* Pagination */
.news-pagination {
    padding: 2rem 0;
}

.news-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f3f3f3;
    color: #6D6E71;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* No Posts */
.no-posts {
    padding: 3rem;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.no-posts p {
    color: #6D6E71;
    margin: 0;
}

@media (max-width: 768px) {
    .news-content {
        flex-direction: column;
    }
    
    .news-sidebar {
        flex: 1;
    }
    
    .news-post {
        flex-direction: column;
    }
    
    .news-post .post-thumbnail {
        flex: none;
    }
    
    .news-post .post-thumbnail img {
        height: 200px;
    }
}

/* ============================================
   CONTACT US PAGE - MAP HERO
   ============================================ */
.hero-section.hero-map {
    padding: 0;
    min-height: 440px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.contact-hero-map {
    width: 100%;
    min-height: 440px;
    border-bottom: 5px solid #3c76ad;
}

.contact-hero-map iframe {
    width: 100%;
    min-height: 440px;
    display: block;
    border: 0;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.single-post-page {
    padding: 0;
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.single-post .post-header {
    margin-bottom: 2rem;
}

.single-post .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 13px;
    color: #999;
    margin-bottom: 0.75rem;
}

.single-post .post-meta .post-categories a {
    color: #39B7EA;
    text-decoration: none;
}

.single-post .post-title {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin: 0;
    line-height: 1.3;
}

.single-post .post-featured-image {
    margin-bottom: 2rem;
}

.single-post .post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-post .post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #6D6E71;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .post-content a {
    color: var(--color-primary);
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-post .post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.single-post .post-tags {
    margin-bottom: 2rem;
}

.single-post .post-tags .tags-label {
    font-weight: 600;
    color: #6D6E71;
    margin-right: 0.5rem;
}

.single-post .post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f3f3f3;
    color: #6D6E71;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.single-post .post-tags a:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.single-post .post-navigation {
    display: flex;
    justify-content: space-between;
}

.single-post .post-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}



/* ============================================
   CONTACT US PAGE
   ============================================ */
.contact-page {
    padding: 2rem 1.5rem;
}

.contact-page h1 {
    font-family: Georgia, serif;
    color: #6D6E71;
    margin-bottom: 1rem;
}

.contact-page p {
    color: #6D6E71;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Content Section */
.contact-content-section {
    padding: 2rem 1.5rem 3rem;
}

.contact-content-section .wp-block-columns {
    gap: 2rem;
}

/* Contact Page Title */
.contact-page-title {
    font-family: Georgia, serif !important;
    font-size: 36px;
    text-align: center;
    color: var(--color-body);
}

/* Contact Form Column */
.contact-form-col {
    flex: 0 0 55%;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    border: 1px solid #39B7EA;
}

/* Contact Form Header - works for both h2.contact-form-header and div.contact-form-header */
h2.contact-form-header,
.contact-form-header {
    background-color: #3D76AD;
    border-bottom: 3px solid #39B7EA;
    padding: 1rem 1.5rem;
    font-family: Georgia, serif;
    font-size: 24px;
    color: #fff;
    margin: 0;
}

/* CF7 Form Styling */
.contact-form-wrapper .wpcf7 {
    padding: 1.5rem;
}

.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form-wrapper .wpcf7-form p {
    margin: 0 0 1rem;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-size: 13px;
    color: #6D6E71;
    margin-bottom: 0.25rem;
}

/* Form row containers for two-column layout */
.contact-form-wrapper .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-wrapper .form-row.full-width {
    display: block;
}

.contact-form-wrapper .form-row > span,
.contact-form-wrapper .form-row > p {
    flex: 1;
    margin: 0;
}

/* All form inputs */
.contact-form-wrapper .wpcf7 input[type="text"],
.contact-form-wrapper .wpcf7 input[type="email"],
.contact-form-wrapper .wpcf7 input[type="tel"],
.contact-form-wrapper .wpcf7 input[type="date"],
.contact-form-wrapper .wpcf7 input[type="time"],
.contact-form-wrapper .wpcf7 select,
.contact-form-wrapper .wpcf7 textarea,
.contact-form-wrapper .wpcf7-text,
.contact-form-wrapper .wpcf7-email,
.contact-form-wrapper .wpcf7-tel,
.contact-form-wrapper .wpcf7-date,
.contact-form-wrapper .wpcf7-select,
.contact-form-wrapper .wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #39B7EA;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    color: #6D6E71;
    background-color: #fff;
    box-sizing: border-box;
}

.contact-form-wrapper .wpcf7 input:focus,
.contact-form-wrapper .wpcf7 select:focus,
.contact-form-wrapper .wpcf7 textarea:focus {
    outline: none;
    border-color: #3D76AD;
}

.contact-form-wrapper .wpcf7 textarea,
.contact-form-wrapper .wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.contact-form-wrapper .wpcf7 input[type="submit"],
.contact-form-wrapper .wpcf7-submit {
    background-color: #297DBD;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.contact-form-wrapper .wpcf7 input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-submit:hover {
    background-color: #1f5f91;
}

/* Validation messages */
.contact-form-wrapper .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 0.25rem;
}

.contact-form-wrapper .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem;
    border: 1px solid #39B7EA;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    border-color: #28a745;
    background-color: #d4edda;
}

.contact-form-wrapper .wpcf7-validation-errors {
    border-color: #dc3545;
    background-color: #f8d7da;
}

/* Required asterisk */
.contact-form-wrapper .wpcf7-form .required {
    color: #dc3545;
}

@media (max-width: 768px) {
    .contact-form-wrapper .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-wrapper .form-row > span,
    .contact-form-wrapper .form-row > p {
        margin-bottom: 1rem;
    }
}

/* Contact Info Column */
.contact-info-col {
    flex: 1;
}

/* Info Grid Row - two columns side by side */
.info-grid-row {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem;
}

/* Info Box */
.info-box {
    padding: 0;
}

.info-box h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #297DBD;
    margin: 0 0 0.75rem;
}

.info-box p {
    font-size: 14px;
    color: #6D6E71;
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Full Width Info Box */
.info-box.full-width {
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
}

/* Opening Hours List */
.opening-hours-list p {
    margin: 0 0 0.25rem;
    font-size: 14px;
    color: #6D6E71;
}



/* Directions Form */
.directions-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.directions-form .postcode-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #39B7EA;
    font-size: 14px;
}

.directions-form .postcode-input:focus {
    outline: none;
    border-color: #3D76AD;
}

.directions-form .directions-btn {
    padding: 0.75rem 1.5rem;
    background-color: #297DBD;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.directions-form .directions-btn:hover {
    background-color: #1f5f91;
}

@media (max-width: 768px) {
    .contact-content-section .wp-block-columns {
        flex-direction: column;
    }
    
    .contact-form-col,
    .contact-info-col {
        flex: 1 1 100% !important;
    }
    
    .info-grid-row {
        flex-direction: column;
    }
    
    .info-grid-row .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ============================================
   OPENING HOURS BLOCK
   ============================================ */
.wp-block-sidcup-opening-hours {
    padding: 0;
}

.wp-block-sidcup-opening-hours h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #297DBD;
    margin: 0 0 0.75rem;
}

.wp-block-sidcup-opening-hours .opening-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wp-block-sidcup-opening-hours .hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6D6E71;
    padding: 0.25rem 0;
    border-bottom: 1px dotted #e0e0e0;
}

.wp-block-sidcup-opening-hours .hours-row:last-child {
    border-bottom: none;
}

.wp-block-sidcup-opening-hours .hours-day {
    font-weight: 600;
}

.wp-block-sidcup-opening-hours .hours-time {
    color: #333;
}

/* ============================================
   ICON BUTTON BLOCK
   ============================================ */
.wp-block-sidcup-icon-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wp-block-sidcup-icon-button.btn-primary {
    background-color: #3D76AD;
    color: #fff;
    border: 2px solid #3D76AD;
}

.wp-block-sidcup-icon-button.btn-primary:hover {
    background-color: #2d5a8a;
    border-color: #2d5a8a;
}

.wp-block-sidcup-icon-button.btn-secondary {
    background-color: #39B7EA;
    color: #fff;
    border: 2px solid #39B7EA;
}

.wp-block-sidcup-icon-button.btn-secondary:hover {
    background-color: #2a9dce;
    border-color: #2a9dce;
}

.wp-block-sidcup-icon-button.btn-outline {
    background-color: transparent;
    color: #3D76AD;
    border: 2px solid #3D76AD;
}

.wp-block-sidcup-icon-button.btn-outline:hover {
    background-color: #3D76AD;
    color: #fff;
}

.wp-block-sidcup-icon-button.btn-light {
    background-color: #f5f5f5;
    color: #3D76AD;
    border: 2px solid #e0e0e0;
}

.wp-block-sidcup-icon-button.btn-light:hover {
    background-color: #e0e0e0;
}

.wp-block-sidcup-icon-button i {
    font-size: 1em;
}

/* ============================================
   FEE TABLE BLOCK
   ============================================ */
.wp-block-sidcup-fee-table {
    margin: 1.5rem 0;
}

.wp-block-sidcup-fee-table .fee-table-title {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #3D76AD;
    margin: 0 0 0.5rem;
}

.wp-block-sidcup-fee-table .fee-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #39B7EA;
}

.wp-block-sidcup-fee-table .fee-table thead {
    background-color: #3D76AD;
}

.wp-block-sidcup-fee-table .fee-table th {
    padding: 12px 16px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.wp-block-sidcup-fee-table .fee-table th.col-fee {
    width: 120px;
    text-align: right;
}

.wp-block-sidcup-fee-table .fee-table td {
    padding: 10px 16px;
    font-size: 14px;
    color: #6D6E71;
    border-bottom: 1px solid #e0e0e0;
}

.wp-block-sidcup-fee-table .fee-table td.col-fee {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.wp-block-sidcup-fee-table .fee-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.wp-block-sidcup-fee-table .fee-table tbody tr:hover {
    background-color: #f0f7ff;
}

@media (max-width: 768px) {
    .wp-block-sidcup-fee-table .fee-table th,
    .wp-block-sidcup-fee-table .fee-table td {
        padding: 8px 12px;
    }
    
    .wp-block-sidcup-fee-table .fee-table th.col-fee {
        width: auto;
    }
}

/* ============================================
   SMILE GALLERY BLOCK
   ============================================ */
.wp-block-sidcup-smile-gallery {
    padding: 2rem 0;
}

.wp-block-sidcup-smile-gallery .gallery-title {
    font-family: Georgia, serif;
    font-size: 36px;
    text-align: center;
    color: var(--color-body);
    margin-bottom: 2rem;
}

.wp-block-sidcup-smile-gallery .smile-cases-grid {
    display: grid;
    gap: 2rem;
}

.wp-block-sidcup-smile-gallery .smile-cases-grid.columns-1 {
    grid-template-columns: 1fr;
}

.wp-block-sidcup-smile-gallery .smile-cases-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wp-block-sidcup-smile-gallery .smile-cases-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wp-block-sidcup-smile-gallery .smile-cases-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wp-block-sidcup-smile-gallery .smile-case {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wp-block-sidcup-smile-gallery .smile-images {
    display: flex;
    gap: 2px;
}

.wp-block-sidcup-smile-gallery .smile-image {
    flex: 1;
    position: relative;
}

.wp-block-sidcup-smile-gallery .smile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.wp-block-sidcup-smile-gallery .smile-image .image-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.wp-block-sidcup-smile-gallery .smile-image.after .image-label {
    background: #39B7EA;
}

.wp-block-sidcup-smile-gallery .case-caption {
    padding: 1rem;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .wp-block-sidcup-smile-gallery .smile-cases-grid.columns-2,
    .wp-block-sidcup-smile-gallery .smile-cases-grid.columns-3,
    .wp-block-sidcup-smile-gallery .smile-cases-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NHS BANDS BLOCK
   ============================================ */
.wp-block-sidcup-nhs-bands .nhs-heading {
    font-family: Georgia, serif;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.wp-block-sidcup-nhs-bands .nhs-intro {
    color: #6D6E71;
    margin-bottom: 1.5rem;
}

.wp-block-sidcup-nhs-bands .nhs-bands-title {
    font-size: 18px;
    color: var(--color-body);
    margin-bottom: 1rem;
}

.wp-block-sidcup-nhs-bands .nhs-bands {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wp-block-sidcup-nhs-bands .nhs-band {
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-left: 4px solid #4caf50;
    border-radius: 0 4px 4px 0;
}

.wp-block-sidcup-nhs-bands .nhs-band strong {
    color: var(--color-primary);
    font-size: 16px;
}

.wp-block-sidcup-nhs-bands .nhs-band p {
    margin: 0.5rem 0 0;
    color: #6D6E71;
    font-size: 14px;
}

/* ============================================
   FINANCE TABLE BLOCK
   ============================================ */
.wp-block-sidcup-finance-table {
    margin: 1.5rem 0;
}

.wp-block-sidcup-finance-table .finance-table-title {
    font-family: Georgia, serif;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.wp-block-sidcup-finance-table .finance-table-wrapper {
    overflow-x: auto;
}

.wp-block-sidcup-finance-table .finance-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #39B7EA;
    min-width: 600px;
}

.wp-block-sidcup-finance-table .finance-table thead {
    background: #3D76AD;
}

.wp-block-sidcup-finance-table .finance-table th {
    padding: 10px 12px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.wp-block-sidcup-finance-table .finance-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: #6D6E71;
    border-bottom: 1px solid #e0e0e0;
}

.wp-block-sidcup-finance-table .finance-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.wp-block-sidcup-finance-table .finance-footnotes {
    margin-top: 1rem;
}

.wp-block-sidcup-finance-table .finance-disclaimer {
    font-size: 12px;
    color: #999;
    margin: 0.25rem 0;
}

/* ============================================
   MOBILE VIDEO FIX - MAXIMUM SPECIFICITY
   This MUST be at the end of the file
   ============================================ */
@media screen and (max-width: 968px) {
    /* Force columns to stack - use block layout */
    .home-intro-section .wp-block-columns {
        display: block !important;
        flex-direction: column !important;
    }
    
    .home-intro-section .wp-block-columns > .wp-block-column {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        flex: none !important;
        margin-bottom: 2rem !important;
    }
    
    /* Video container - the wrapper div gets the aspect ratio */
    .home-intro-section figure.wp-block-embed {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .home-intro-section .wp-block-embed__wrapper {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important;
        overflow: hidden !important;
    }
    
    .home-intro-section .wp-block-embed__wrapper iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
    }
    
    /* Global fix for ALL video embeds on mobile */
    figure.wp-block-embed,
    .wp-block-embed-youtube {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
    }
    
    .wp-block-embed__wrapper {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important;
        overflow: hidden !important;
        background: #000;
    }
    
    .wp-block-embed__wrapper iframe,
    .wp-block-embed__wrapper iframe[width],
    .wp-block-embed__wrapper iframe[height] {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border: 0 !important;
    }
}

/* ============================================
   FINANCE PAGE FAQ OVERRIDE - MAXIMUM SPECIFICITY
   Must be at the end for highest priority
   ============================================ */
.finance-content-section .wp-block-column section.wp-block-sidcup-faq-accordion,
.finance-content-section .wp-block-column .wp-block-sidcup-faq-accordion,
.finance-content-section .wp-block-column section.faq-section,
.finance-content-section section.faq-section,
.finance-page .wp-block-column .faq-section {
    all: initial !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.finance-content-section .wp-block-column .faq-content,
.finance-page .wp-block-column .faq-content {
    all: initial !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: none !important;
    font-family: inherit !important;
}

.finance-content-section .wp-block-column .faq-content-inner,
.finance-page .wp-block-column .faq-content-inner {
    all: initial !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-family: inherit !important;
}

.finance-content-section .wp-block-column .faq-content h2,
.finance-content-section .wp-block-column .faq-image,
.finance-page .wp-block-column .faq-content h2,
.finance-page .wp-block-column .faq-image {
    display: none !important;
}

.finance-content-section .wp-block-column .faq-accordion,
.finance-page .wp-block-column .faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    font-family: inherit !important;
}

.finance-content-section .wp-block-column .faq-item,
.finance-page .wp-block-column .faq-item {
    margin: 0 !important;
    width: 100% !important;
}

.finance-content-section .wp-block-column .faq-question,
.finance-page .wp-block-column .faq-question {
    background: #39B7EA !important;
    color: #fff !important;
    padding: 0.75rem 1rem !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 600 !important;
    font-family: inherit !important;
}

.finance-content-section .wp-block-column .faq-question .faq-icon,
.finance-page .wp-block-column .faq-question .faq-icon {
    color: #fff !important;
    font-size: 16px !important;
}

.finance-content-section .wp-block-column .faq-answer,
.finance-page .wp-block-column .faq-answer {
    display: none;
    padding: 0.75rem 1rem !important;
    font-size: 13px !important;
    background: #fff !important;
    border: 1px solid #39B7EA !important;
    border-top: none !important;
    color: #6D6E71 !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
}

.finance-content-section .wp-block-column .faq-item.active .faq-answer,
.finance-page .wp-block-column .faq-item.active .faq-answer {
    display: block !important;
}

.finance-content-section .wp-block-column .faq-button,
.finance-page .wp-block-column .faq-button {
    display: none !important;
}

/* ============================================
   TEXT PAGES (Privacy, Terms, etc.)
   ============================================ */
.text-page .entry-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.text-page .entry-content h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    color: #6D6E71;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.text-page .entry-content h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #6D6E71;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.text-page .entry-content p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.text-page .entry-content ul,
.text-page .entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.text-page .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.text-page .entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.text-page .entry-content a:hover {
    color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .text-page .entry-content {
        padding: 2rem 1rem 3rem;
    }
    
    .text-page .entry-content h2 {
        font-size: 28px;
    }
    
    .text-page .entry-content h3 {
        font-size: 20px;
    }
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    display: flex;
    min-height: 500px;
}

.why-choose-content {
    flex: 1;
    max-width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-choose-content-inner {
    max-width: 600px;
    margin-left: auto;
}

.why-choose-image {
    flex: 1;
    max-width: 50%;
    background-size: cover;
    background-position: center;
}

.why-choose-content h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 1.5rem;
}

.why-choose-points {
    margin-bottom: 2rem;
}

.why-choose-point {
    font-size: 15px;
    line-height: 1.6;
    color: #6D6E71;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.why-choose-bullet {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.4;
}

.why-choose-button {
    margin-top: 1rem;
}

.why-choose-button .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.why-choose-button .btn-primary:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .why-choose-section {
        flex-direction: column;
    }
    
    .why-choose-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .why-choose-content-inner {
        max-width: 100%;
        margin: 0;
    }
    
    .why-choose-image {
        max-width: 100%;
        min-height: 300px;
    }
    
    .why-choose-content h2 {
        font-size: 28px;
    }
}
