/*
    Theme Name: AMR Physiotherapy Custom Theme
    Description: A custom WordPress theme designed and built specifically for AMR Physiotherapy.
    Author: AMR Physiotherapy
    Version: 1.0.0
    License: GPL v2 or later
    Text Domain: amr-physio
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    font-size: 16px;
}

.small-heading {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Content area heading styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.treatment-content h1,
.treatment-content h2,
.treatment-content h3,
.treatment-content h4,
.treatment-content h5,
.physiotherapist-content-text h1,
.physiotherapist-content-text h2,
.physiotherapist-content-text h3,
.physiotherapist-content-text h4,
.physiotherapist-content-text h5,
.clinic-content h1,
.clinic-content h2,
.clinic-content h3,
.clinic-content h4,
.clinic-content h5,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h1,
.treatment-content h1,
.physiotherapist-content-text h1,
.clinic-content h1,
.post-content h1,
.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.entry-content h2,
.treatment-content h2,
.physiotherapist-content-text h2,
.clinic-content h2,
.post-content h2,
.page-content h2 {
    font-size: 2rem;
    font-weight: 700;
}

.entry-content h3,
.treatment-content h3,
.physiotherapist-content-text h3,
.clinic-content h3,
.post-content h3,
.page-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.entry-content h4,
.treatment-content h4,
.physiotherapist-content-text h4,
.clinic-content h4,
.post-content h4,
.page-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.entry-content h5,
.treatment-content h5,
.physiotherapist-content-text h5,
.clinic-content h5,
.post-content h5,
.page-content h5 {
    font-size: 1.3rem;
    font-weight: 600;
}



/* General Button Classes */
.btn {
    display: inline-block;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-highlight);
    transition: all 0.3s ease;
    border-radius: 5px;
    z-index: -1;
}

.btn:hover {
    color: #fff;
    text-decoration: none;
}

.btn:hover::before {
    width: 100%;
}

/* Colour Variables */
:root {
    --primary-color: #0680AD;
    --primary-dark: #1d4ed8;
    --primary-highlight: #04BBFF;
    --text-dark: #333333;
    --text-light: #fff;
    --background-light: #F4F4F4;
    --border-color: #0680AD;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact Header */
.contact-header {
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.contact-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-email,
.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-email i,
.contact-phone i {
    color: var(--primary-highlight);
    font-size: 0.9rem;
}

.contact-email span,
.contact-phone span {
    color: #fff;
    font-weight: 600;
}

/* Header */
.site-header {
    background-color: var(--background-light);
    position: sticky;
    top: 29.42px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .site-header {
        top: 0;
    }

    .contact-header {
        position: relative;
    }
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--primary-highlight);
}

.site-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.custom-logo {
    width: 80px;
    height: auto;
}

#book-appointment-button {
    color: #fff;
    padding: 0.5rem 1.2rem;
}

#book-appointment-button:hover {
    color: #fff;
}


/* Navigation */
.main-navigation {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0 3rem 0 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-highlight);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-highlight);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Active/Current Menu Item Styles */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-ancestor>a,
.main-navigation .current_page_ancestor>a {
    color: var(--primary-highlight);
    font-weight: 700;
}

/* Ensure active states override hover states */
.main-navigation .current-menu-item>a:hover,
.main-navigation .current_page_item>a:hover,
.main-navigation .current-menu-ancestor>a:hover,
.main-navigation .current_page_ancestor>a:hover {
    color: var(--primary-highlight);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .contact-header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-light);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }

    .main-navigation.active {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin: 0 0 1rem 0;
    }

    /* Mobile Active Menu Item Styles */
    .main-navigation .current-menu-item>a,
    .main-navigation .current_page_item>a,
    .main-navigation .current-menu-ancestor>a,
    .main-navigation .current_page_ancestor>a {
        color: var(--primary-highlight);
        font-weight: 700;
    }
}

/* Video Hero Section */
.video-hero-section {
    position: relative;
    height: 92vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure video background elements never get scroll animations */
.video-hero-section,
.video-background,
.video-background video,
.video-overlay {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.landing-page-hero-content {
    max-width: 670px;
    margin: 0;
}

.hero-branding {
    font-size: 2.25rem;
    font-weight: 200;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    text-align: left;
    display: flex;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.9rem;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.9rem;
    opacity: 0.9;
    font-weight: 400;
    text-align: left;
}

.hero-title .highlight {
    color: var(--primary-highlight);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-hero-section {
        height: 100vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-branding {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-branding {
        font-size: 1.25rem;
    }

    .main-about-us-cta>a {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* Video Loading and Fallback States */
.video-background {
    background-color: #000;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect width="1" height="1" fill="%23000"/></svg>');
}

.video-background video {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-color: #000;
}

.video-background video.loaded {
    opacity: 1;
}

/* Video preloader to prevent flash */
.video-hero-section {
    background-color: #000;
}

.video-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.video-hero-section.video-loaded::before {
    opacity: 0;
    pointer-events: none;
}

.video-failed {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.video-failed .video-background {
    display: none;
}

/* Mobile video optimization */
@media (max-width: 768px) {
    .video-hero-section {
        min-height: 100vh;
    }

    .video-background video {
        object-fit: cover;
        object-position: center;
    }
}

/* Main content */
.site-main {
    padding: 0;
}

/* Only apply grid layout to specific pages that need it */
.archive .content-area,
.search .content-area,
.blog .content-area,
.home .content-area,
.error404 .content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* 404 Error Page Styles */
.error-404-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.error-404-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.error-404-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.error-404-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.error-404-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.error-404-number {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.error-404-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.error-404-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.error-404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto !important;
}

.error-404-actions .btn i {
    font-size: 1.2rem;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 404 Content Section */
.error-404-content-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.error-404-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.error-404-main {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.error-404-search {
    margin-bottom: 3rem;
    text-align: center;
}

.error-404-search h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404-search p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-404-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--primary-highlight);
}

/* Navigation Grid */
.error-404-navigation {
    margin-bottom: 3rem;
}

.error-404-navigation h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.nav-item {
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

/* Recent Posts */
.error-404-recent-posts h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.recent-posts-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recent-post-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recent-post-item .post-title {
    margin-bottom: 0.5rem;
}

.recent-post-item .post-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.view-all-posts {
    text-align: center;
}

/* Sidebar Styles */
.error-404-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.sidebar-widget .widget-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

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

.emergency-widget {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.emergency-widget .widget-title {
    color: #856404;
}

.emergency-widget p {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.treatment-categories {
    list-style: none;
    padding: 0;
}

.treatment-categories li {
    margin-bottom: 0.75rem;
}

.treatment-categories a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.treatment-categories a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-404-number {
        font-size: 6rem;
    }
    
    .error-404-title {
        font-size: 2rem;
    }
    
    .error-404-subtitle {
        font-size: 1.1rem;
    }
    
    .error-404-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .error-404-actions .btn {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
    }
    
    .error-404-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button {
        justify-content: center;
    }
}

/* Posts */
.post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    margin-bottom: 1rem;
}

.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 4px;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}


/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left Column: Menu */
.footer-menu {
    justify-self: start;
}

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

.footer-menu-list li {
    margin-bottom: 0.75rem;
}

.footer-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: var(--primary-highlight);
}

/* Middle Column: Accreditation and Legal */
.footer-accreditation {
    justify-self: center;
    text-align: center; 
}

.accreditation-logos {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    align-items: center;
    gap: 1rem;
}

.logo-item {
    display: flex;
    align-items: center;
}

.accreditation-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
}

.footer-legal {
    text-align: center;
}

.legal-links {
    margin-bottom: 1rem;
}

.legal-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-highlight);
}

.separator {
    color: #fff;
    margin: 0 0.5rem;
}

.copyright {
    color: #fff;
    font-size: 0.9rem;
}

/* Right Column: Social Media and Contact */
.footer-contact {
    justify-self: end;
    text-align: right;
}

.social-media {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-highlight);
}

.social-link i {
    font-size: 1.2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.contact-item i {
    color: #fff;
    font-size: 1rem;
    width: 1rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-highlight);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-menu,
    .footer-accreditation,
    .footer-contact {
        justify-self: center;
        text-align: center;
    }

    .accreditation-logos {
        align-items: center;
        gap: 1rem;
    }

    .social-media {
        justify-content: center;
    }

    .contact-info {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .accreditation-logo {
        max-height: 50px;
    }

    .footer-menu {
        display: none;
    }

    .contact-info {
        align-items: center !important;
        margin-top: 1rem !important;
    }

    .footer-accreditation {
        order: 2;
    }

    .footer-contact {
        order: 1;
    }
}

/* About Us Hero Section */
.about-hero-section {
    position: relative;
    height: 55vh;
    /* Half the height of video hero (92vh) */
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Treatments Hero Section */
.treatments-hero-section {
    position: relative;
    height: 55vh;
    /* Half the height of video hero (92vh) */
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.about-hero-section .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.about-hero-section .hero-content>.container {
    max-width: 1200px;
    margin: 0;
}

.about-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

/* Treatments Hero Content */
.treatments-hero-section .hero-content>.container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.treatments-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

.about-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Responsive for About Hero */
@media (max-width: 768px) {
    .about-hero-section {
        height: 50vh;
        min-height: 250px;
    }

    .about-hero-section .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        height: 40vh;
        min-height: 200px;
    }

    .about-hero-content {
        flex-direction: column;
    }

    .about-hero-section .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Mobile Responsive for Treatments Hero */
@media (max-width: 768px) {
    .treatments-hero-section {
        height: 50vh;
        min-height: 250px;
    }

    .treatments-hero-section .hero-title {
        font-size: 2.5rem;
    }

    .treatments-hero-section .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .treatments-hero-section {
        height: 40vh;
        min-height: 200px;
    }

    .treatments-hero-section .hero-title {
        font-size: 2rem;
    }

    .treatments-hero-section .hero-subtitle {
        font-size: 1rem;
    }
}

/* About Us Section */
.about-us-section {
    background-color: #fff;
    border-top: 10px solid var(--primary-color);
    padding: 4rem 0;
}

.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* About Info Section */
.about-info-section {
    background-color: #fff;
    border-top: 10px solid var(--primary-color);
    padding: 4rem 0;
}

.about-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-info-row:last-child {
    margin-bottom: 0;
}

/* Second row reverses the layout */
.about-info-row-2 {
    grid-template-columns: 1fr 1fr;
}

.about-info-row-2 .about-info-text {
    order: 1;
}

.about-info-row-2 .about-info-image {
    order: 2;
}

/* About Info Image and Text Styles */
.about-info-image {
    height: 100%;
    max-height: 510px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.about-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.about-info-description {
    margin-bottom: 1rem;
}

.about-info-description p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* About Info CTA Section */
.about-info-cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-info-cta-row.treatment-cta {
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.cta-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cta-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Secondary Button Style */
.btn-secondary {
    background-color: #E0E0E0;
    color: var(--text-dark);
}

.btn-secondary::after {
    background-color: #E0E0E0;
}

.btn-secondary::before {
    background-color: var(--primary-highlight);
}

.btn-secondary:hover {
    color: var(--text-dark);
}

.about-us-image {
    height: 100%;
    max-height: 510px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.about-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-us-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-us-description {
    margin-bottom: 1rem;
}

.about-us-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-us-description p:last-child {
    margin-bottom: 0;
}

.about-us-button {
    margin-top: 2rem;
}

.book-online-cta-btn {
    display: flex;
}

.book-online-cta-btn .btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 0;
    outline: 0;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.book-online-cta-btn .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    z-index: -2;
}

.book-online-cta-btn .btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-highlight);
    transition: all 0.3s ease;
    border-radius: 5px;
    z-index: -1;
}

.book-online-cta-btn .btn:hover {
    color: #fff;
    text-decoration: none;
}

.book-online-cta-btn .btn:hover::before {
    width: 100%;
}

.about-us-button .btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-us-button .btn:hover::before {
    width: 100%;
}

.button-icon {
    font-size: 2rem;
    display: flex;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.button-main-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.button-sub-text {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

/* Responsive Design for About Us */
@media (max-width: 768px) {
    .about-us-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-us-image {
        height: 300px;
    }

    .about-us-text {
        padding: 0;
    }

    .about-us-title {
        font-size: 2rem;
    }

    .about-us-description p {
        font-size: 1rem;
    }

    /* About Info Section Responsive */
    .about-info-section {
        padding: 3rem 0;
    }

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

    .about-info-image {
        height: 300px;
        order: 2;
    }

    .about-info-text {
        order: 1;
        padding: 0;
    }

    .about-info-title {
        font-size: 2rem;
    }

    .about-info-description p {
        font-size: 1rem;
    }

    /* About Info CTA Responsive */
    .about-info-cta-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-logos {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-us-section {
        padding: 2rem 0;
    }

    .about-us-image {
        height: 250px;
    }

    .about-us-title {
        font-size: 1.75rem;
    }

    /* About Info Section Mobile */
    .about-info-section {
        padding: 2rem 0;
    }

    .about-info-image {
        height: 250px;
    }

    .about-info-title {
        font-size: 1.75rem;
    }

    /* About Info CTA Mobile */
    .about-info-text {
        text-align: center !important;
    }

    .clinic-header {
        text-align: center !important;
    }

    .youtube-header {
        text-align: center !important;
    }

    .about-clinic-section {
        padding: 2rem 0;
    }

    .cta-buttons>.book-online-cta-btn>a {
        width: 300px;
        justify-content: center;
        padding: 1rem;
    }

    .cta-buttons>.contact-cta-btn>a {
        padding: 1rem;
    }

    .treatments-header {
        text-align: center !important;
    }

    .about-us-content {
        text-align: center !important;
    }

    .reviews-header {
        text-align: center !important;
    }

    .treatments-hero-content {
        flex-direction: column;
    }

    .treatments-hero-content>.hero-title {
        margin-bottom: 1rem;
    }

    .pricing-header {
        display: none !important;
    }

    .about-us-button .btn {
        padding: 0.875rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .button-text {
        align-items: center;
    }

    .treatment-side-menu {
        order: 0;
    }
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.contact-info {
    display: flex;
    margin-top: 3rem;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .services-section,
    .contact-section {
        padding: 2rem 0;
    }
}

/* Treatments Section */
.treatments-section {
    background-color: var(--background-light);
    padding: 4rem 0 3rem 0;
}

.main-treatments-section {
    background-color: var(--background-light);
    padding: 3rem 0 2rem 0;
    border-top: 10px solid var(--primary-color);
}

.treatments-header {
    text-align: left;
    margin-bottom: 3rem;
}

.treatments-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.treatments-description {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.treatments-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.treatments-description p:last-child {
    margin-bottom: 0;
}

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

.treatment-card {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 12px;
    overflow: hidden;
}

.treatment-card:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
}

.treatment-image {
    position: relative;
    width: 100%;
    height: 217px;
    overflow: hidden;
    border-radius: 5px;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}

.treatment-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.treatment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    padding: 0.9375rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.treatment-card:hover .treatment-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.treatment-title {
    color: #fff;
    font-size: 1.225rem;
    font-weight: 700;
    margin: 0;
    align-self: flex-start;
}

.treatment-button {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.treatment-card:hover .treatment-button {
    background-color: var(--primary-highlight);
    transform: translateX(4px);
}

.treatment-button i {
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.treatment-card:hover .treatment-button i {
    transform: translateX(2px);
}

.btn.btn-secondary {
    background-color: #E0E0E0;
    color: var(--text-dark);
    padding: 0.7rem 2rem 0.7rem 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.btn-secondary:hover {
    color: #fff;
}

/* Responsive Design for Treatments Section */
@media (max-width: 768px) {
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .treatment-image {
        height: 200px;
    }

    .treatment-overlay {
        padding: 0.75rem;
    }

    .treatment-title {
        font-size: 1.25rem;
    }

    .treatment-button {
        width: 2.25rem;
        height: 2.25rem;
    }

    .treatments-title {
        font-size: 2rem;
    }

    .treatments-description p {
        font-size: 1rem;
    }
}

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

    .treatment-image {
        height: 180px;
    }

    .treatment-overlay {
        padding: 0.625rem;
    }

    .treatment-title {
        font-size: 1.125rem;
    }

    .treatment-button {
        width: 2rem;
        height: 2rem;
    }

    .treatment-button i {
        font-size: 0.875rem;
    }

    .treatments-title {
        font-size: 1.75rem;
    }
}

/* Reviews Section */
.reviews-section {
    background-color: var(--background-light);
    padding: 4rem 0;
}

.reviews-header {
    text-align: left;
    margin-bottom: 1rem;
}

.reviews-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Physiotherapists Section */
.physiotherapists-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.physiotherapists-header {
    text-align: right;
    margin-bottom: 3rem;
}

.physiotherapists-header .small-heading {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.physiotherapists-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.physiotherapists-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    /* Space for navigation buttons */
}

.physiotherapists-carousel {
    position: relative;
    touch-action: pan-y;
    /* Allow vertical scrolling but handle horizontal swipes */
    cursor: grab;
    overflow: hidden;
    width: 100%;
}

.physiotherapists-carousel:active {
    cursor: grabbing;
}

.carousel-container {
    position: relative;
    overflow: hidden; /* Prevent content from shifting outside bounds */
    width: 100%; /* Ensure consistent width */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    background: 0;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.3);
}

.carousel-nav:disabled {
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-track {
    display: flex;
    gap: 0; /* Remove gap to prevent flex calculation issues */
    padding-right: 0; /* Remove padding to prevent layout shifts */
    transition: none !important; /* Remove any transition animations during scrolling */
    will-change: transform; /* Optimize for transform animations */
    transform-origin: left center; /* Ensure consistent transform origin */
    backface-visibility: hidden; /* Prevent rendering glitches */
    width: 100%; /* Full width without gap compensation */
}

.physio-card {
    flex: 0 0 33.333%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 0.75rem; /* Add padding for spacing instead of gap */
}

.physio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    /* Ensure scaling effects don't cause overflow */
    contain: layout;
}

.physio-link:hover {
    transform: translateY(-4px);
}

.physio-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px; /* Ensure rounded corners are maintained during scaling */
}

.physio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.physio-link:hover .physio-image img {
    transform: scale(1.02);
}

.physio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    color: #ffffff;
    opacity: 1;
    text-align: center;
}

.physio-info {
    position: relative;
    z-index: 2;
}

.physio-name {
    font-size: 1.225rem;
    font-weight: 600;
    color: #ffffff;
}

.physio-title {
    font-size: 1rem;
    font-weight: 200;
    margin: 0;
    color: #ffffff;
    opacity: 1;
}

.physio-link-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem;
    background-color: #333;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.physio-link:hover .physio-link-icon {
    background-color: #333;
    transform: scale(1.1);
}

/* Responsive Design for Physiotherapists */
@media (max-width: 768px) {
    .physiotherapists-section {
        padding: 3rem 0;
    }

    .physiotherapists-title {
        font-size: 2rem;
    }

    .carousel-container {
        margin: 0 1rem;
    }

    .physio-card {
        flex: 0 0 50%;
        padding: 0 0.5rem; /* Adjust padding for tablet */
    }

    .physio-image {
        height: 350px;
    }


    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .physio-card {
        flex: 0 0 100%; /* Each card takes full width */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .physio-image {
        height: 300px;
    }

    .carousel-container {
        margin: 0; /* Remove margin to prevent right cutoff */
    }

    .physio-card {
        padding: 0; /* No padding on mobile for full width */
    }

    .physiotherapists-header {
        text-align: center;
    }
}

/* Clinic Section */
.about-clinic-section {
    background-color: var(--background-light);
    padding: 4rem 0;
}

.clinic-content {
    max-width: 1200px;
    margin: 0 auto;
}

.clinic-header {
    text-align: left;
    margin-bottom: 3rem;
}

.clinic-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    margin: 0.5rem 0 1rem 0 !important;
    line-height: 1.2;
}

.clinic-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.clinic-card {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.clinic-card:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.clinic-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 5px;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}

.clinic-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.clinic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    padding: 0.9375rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.clinic-card:hover .clinic-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.clinic-overlay .clinic-title {
    color: #fff !important;
    font-size: 1.225rem;
    font-weight: 700;
    margin: 0 !important;
    align-self: flex-end;
}

.clinic-button {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-highlight);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.clinic-card:hover .clinic-button {
    background-color: var(--primary-highlight);
    transform: translateX(4px);
}

.clinic-button i {
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.clinic-card:hover .clinic-button i {
    transform: translateX(2px);
}

/* Responsive Design for Clinic Section */
@media (max-width: 768px) {
    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clinic-overlay {
        padding: 0.75rem;
    }

    .clinic-overlay .clinic-title {
        font-size: 1.25rem;
    }

    .clinic-button {
        width: 2.25rem;
        height: 2.25rem;
    }

    .clinic-title {
        font-size: 2rem;
    }

    .clinic-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .clinic-image {
        height: 180px;
    }

    .clinic-overlay {
        padding: 0.625rem;
    }

    .clinic-overlay .clinic-title {
        font-size: 1.125rem;
    }

    .clinic-button {
        width: 2rem;
        height: 2rem;
    }

    .clinic-button i {
        font-size: 0.875rem;
    }

    .clinic-title {
        font-size: 1.75rem;
    }
}

/* YouTube Section */
.about-youtube-section {
    background-color: var(--background-light);
    padding: 4rem 0;
}

.youtube-header {
    text-align: left;
    margin-bottom: 1rem;
}

.youtube-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

/* Responsive Design for YouTube Section */
@media (max-width: 768px) {
    .youtube-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .youtube-title {
        font-size: 1.75rem;
    }
}

/* Treatment Post Template Styles */
.single-treatment .content-area {
    width: 100%;
    max-width: none;
}

.single-treatment .site-main {
    margin: 0;
}

.treatment-content-section {
    padding: 2rem 0;
    background-color: var(--background-light);
    border-top: 10px solid var(--primary-color);
}

.treatment-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.treatment-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.treatment-duration,
.treatment-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.treatment-duration i,
.treatment-price i {
    font-size: 1.1rem;
}

.treatment-short-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.treatment-content {
    margin: 2rem 0;
    line-height: 1.7;
}

.treatment-content h2,
.treatment-content h3,
.treatment-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.treatment-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.treatment-content h3 {
    font-size: 1.5rem;
}

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

.treatment-content ul,
.treatment-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.treatment-content li {
    margin-bottom: 0.5rem;
}

.treatment-cta {
    margin-top: 3rem;
    text-align: center;
}

.related-treatments-section {
    padding: 4rem 0;
    background-color: #fff;
}

.related-treatments-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-treatments-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.related-treatments-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.all-treatments-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive Design for Treatment Template */
@media (max-width: 768px) {
    .treatment-main-content {
        padding: 2rem;
    }

    .treatment-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .related-treatments-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .treatment-main-content {
        padding: 0 1rem 1rem 1rem;
    }

    .treatment-content-section {
        padding: 2rem 0;
    }

    .related-treatments-section {
        padding: 2rem 0;
    }
}

/* Specialist Treatments Section */
.specialist-treatments-section {
    background-color: var(--background-light);
    padding: 0 0 3rem 0;
}

.specialist-treatment-hero-section {
    position: relative;
    height: 55vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Specialist Treatments Grid - 2 columns instead of 3 */
.specialist-treatments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

/* Pricing Table Styles */
.treatment-prices {
    background-color: var(--background-light);
    padding: 2rem 0 5rem 0;
}

.pricing-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.pricing-table {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E0E0E0;
    margin-bottom: 2rem;
}

.pricing-header {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.pricing-header .pricing-col {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.pricing-header .pricing-col:last-child {
    display: block;
    text-align: right;
    color: #fff;
}

.pricing-section {
    border-bottom: 1px solid #E0E0E0;
}

.pricing-section:last-child {
    border-bottom: none;
}

.home-visit-section {
    margin-top: 2rem;
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
}

/* Two-table pricing layout */
.treatment-prices-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-table-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    padding: 0;
    border: none;
    background: none;
}

.pricing-section-header {
    background-color: #F5F5F5;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.125rem;
    border-bottom: 1px solid #E0E0E0;
}

.pricing-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.2s ease;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row:hover {
    background-color: #fafafa;
}

.pricing-col {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.4;
}

.service-col {
    font-weight: 500;
    color: #333333;
}

.details-col {
    color: #666666;
}

.price-col {
    font-weight: 600;
    color: var(--primary-color);
    justify-content: flex-end;
    text-align: right;
}

.main-pricing-section {
    background-color: #fff;
    padding: 3rem 0 3rem 0;
    border-top: 10px solid var(--primary-color);
}

/* Responsive Design for Pricing Table */
@media (max-width: 768px) {
    .treatment-prices {
        padding: 1rem 0;
    }

    .treatment-prices-content {
        padding: 0 1rem;
    }

    .pricing-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .pricing-header {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pricing-header .pricing-col {
        padding: 0.8rem 1rem;
        border-right: none;
        text-align: left;
        font-size: 1.125rem;
    }

    .pricing-header .pricing-col:last-child {
        border-bottom: none;
        text-align: left;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pricing-col {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        justify-content: flex-start;
        text-align: left;
    }

    .pricing-col:last-child {
        border-bottom: none;
        font-weight: 700;
        color: #2196F3;
        background-color: var(--background-light);
    }

    .pricing-section-header {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .pricing-title {
        font-size: 1.8rem;
    }

    .pricing-header .pricing-col,
    .pricing-col {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .pricing-section-header {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Hero Image Quality Improvements */
.treatments-hero-section .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Custom Treatment Sections Styling */
.treatment-content-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-main-content {
    flex: 2;
}

.treatment-side-menu {
    flex: 1;
    max-width: 300px;
}

/* Symptoms and Treatment Details Sections */
.treatment-symptoms-section,
.treatment-treatment-section {
    color: var(--text-dark);
    margin: 2rem 0;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}


.treatment-symptoms-section .section-title,
.treatment-treatment-section .section-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px 5px 0 0;
    background: var(--primary-color);
}

.treatment-symptoms-section .section-title i,
.treatment-treatment-section .section-title i {
    color: #fff;
}

.symptoms-content,
.treatment-details-content {
    padding: 1rem;
}

/* Side Menu Styling */
.side-menu-content {
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
}

.side-menu-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.treatment-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treatment-link-item {
    margin-bottom: 0.5rem;
}

.treatment-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.treatment-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.treatment-link-item.current .treatment-link {
    background: var(--primary-color);
    color: #fff;
}

.treatment-link-item.current .treatment-link i {
    color: #fff;
}

.treatment-link span {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .treatment-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .treatment-side-menu {
        max-width: none;
        order: -1;
    }

    .side-menu-content {
        position: static;
    }

    .treatment-symptoms-section,
    .treatment-treatment-section {
        margin: 1.5rem 0;
    }

    /* Carousel navigation on mobile */
    .physiotherapists-carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .physiotherapists-carousel-wrapper {
        padding: 0 45px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Physiotherapist Profile Page Styles */

.physiotherapist-hero-section {
    position: relative;
    height: 30vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.physiotherapist-hero-section .hero-content>.container {
    max-width: 1200px;
    margin: 0;
}

.physiotherapist-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.physiotherapist-hero-content .hero-left .hero-title,
.physiotherapist-hero-content .hero-left .hero-subtitle {
    margin-bottom: 0;
}

.physiotherapist-profile-section {
    padding: 4rem 0;
    background-color: var(--background-light);
    border-top: 10px solid var(--primary-color);
}

.physiotherapist-profile-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.physiotherapist-profile-left {
    position: sticky;
    top: 7rem;
}

.physiotherapist-profile-image {
    text-align: center;
    margin-bottom: 2rem;
}

.physiotherapist-profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid var(--primary-color);
}

.profile-placeholder i {
    font-size: 4rem;
    color: #6c757d;
}


.social-media-links {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Physiotherapist Contact Info Styles - Completely Independent */
.physio-contact-details {
    padding-top: 2rem;
    text-align: left;
}

.physio-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    justify-content: flex-start;
}

.physio-contact-item:hover i,
.physio-contact-item:hover>a,
.physio-contact-item:hover>span {
    color: var(--primary-color);
}

.physio-contact-item i {
    color: #6c757d;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.physio-contact-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.physio-contact-item span {
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

.physiotherapist-profile-right {
    padding: 2rem;
}

.physiotherapist-content-text {
    font-size: 1.1rem;
    color: #333;
}


.physiotherapist-content-text p {
    margin-bottom: 1.5rem;
}

.physiotherapist-content-text ul,
.physiotherapist-content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.physiotherapist-content-text li {
    margin-bottom: 0.5rem;
}

/* Other Physiotherapists Section */
.other-physiotherapists-section {
    padding: 2rem 0 3rem 0;
    background-color: #fff;
}

.other-physiotherapists-header h2 {
    color: var(--text-dark);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.other-physiotherapists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.other-physio-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.other-physio-card:hover {
    transform: translateY(-5px);
}

.other-physio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.other-physio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.other-physio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-physio-card:hover .other-physio-image img {
    transform: scale(1.05);
}

.other-physio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    opacity: 1;
    transition: opacity 0.3s ease;
    justify-content: center;
}

.other-physio-info {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem;
    color: #fff;
}

.other-physio-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.other-physio-title {
    font-size: 1rem;
    font-weight: 200;
}

.other-physiotherapists-title {
    margin-bottom: 3rem;
}

.other-physio-link-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-animate.fade-in.animate-in {
    opacity: 1;
}

.scroll-animate.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.slide-in-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.slide-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-animate.scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Ensure hover animations work with scroll animations */
.treatment-card.scroll-animate.scale-in.animate-in {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.treatment-card.scroll-animate.scale-in.animate-in:hover {
    transform: translateY(-4px) scale(1);
}

/* Ensure hover animations work with scroll animations for treatment directory cards */
.treatment-directory-fullwidth-card.scroll-animate.scale-in.animate-in {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.treatment-directory-fullwidth-card.scroll-animate.scale-in.animate-in:hover {
    transform: translateY(-4px) scale(1);
}

/* Ensure hover animations work with scroll animations for physio cards */
.physio-card.scroll-animate.scale-in.animate-in {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.physio-card.scroll-animate.scale-in.animate-in:hover .physio-link {
    transform: translateY(-4px) scale(1);
}

/* Ensure hover animations work with scroll animations for clinic cards */
.clinic-card.scroll-animate.scale-in.animate-in {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.clinic-card.scroll-animate.scale-in.animate-in:hover {
    transform: translateY(-4px) scale(1);
}

.scroll-animate.stagger-1 {
    transition-delay: 0.1s;
}

.scroll-animate.stagger-2 {
    transition-delay: 0.2s;
}

.scroll-animate.stagger-3 {
    transition-delay: 0.3s;
}

.scroll-animate.stagger-4 {
    transition-delay: 0.4s;
}

.scroll-animate.stagger-5 {
    transition-delay: 0.5s;
}

.scroll-animate.stagger-6 {
    transition-delay: 0.6s;
}

/* Performance optimizations for scroll animations */
.scroll-animate {
    will-change: transform, opacity;
}

/* Disable scroll animations for carousel track during navigation */
.carousel-track.scroll-animate {
    transition: none !important;
    will-change: auto;
}

/* Ensure carousel wrapper has no animations during navigation */
.physiotherapists-carousel-wrapper,
.physiotherapists-carousel,
.carousel-container {
    transition: none !important;
}

.scroll-animate.animate-in {
    will-change: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .scroll-animate.animate-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .scroll-animate {
        transition-duration: 0.6s;
    }
    
    .scroll-animate.stagger-1,
    .scroll-animate.stagger-2,
    .scroll-animate.stagger-3,
    .scroll-animate.stagger-4,
    .scroll-animate.stagger-5,
    .scroll-animate.stagger-6 {
        transition-delay: 0.05s;
    }
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .physiotherapist-profile-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .physiotherapist-profile-left {
        position: static;
        order: 1
    }

    .physiotherapist-profile-right {
        order: 1;
    }

    .physiotherapist-name {
        font-size: 2rem;
    }

    .physiotherapist-profile-image img,
    .profile-placeholder {
        width: 150px;
        height: 150px;
    }

    .other-physiotherapists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .other-physiotherapists-header h2 {
        font-size: 2rem;
    }

    /* Physiotherapist hero responsive */
    .treatments-hero-section .hero-left {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {

    .physiotherapist-profile-section,
    .other-physiotherapists-section {
        padding: 2rem 0;
    }

    .physiotherapist-profile-left,
    .physiotherapist-profile-right {
        padding: 1.5rem;
    }

    .physiotherapist-name {
        font-size: 1.8rem;
    }

    .social-icons {
        gap: 0.5rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .physiotherapist-hero-content {
        flex-direction: column;
    }

    .physiotherapist-hero-content .hero-left {
        margin-bottom: 1rem;
    }

}

/* Booking Appointment Page Styles */
.booking-hero-section {
    position: relative;
    height: 55vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.booking-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.booking-hero-section .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.booking-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.booking-hero-section .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.booking-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.booking-hero-section .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.9;
}

.booking-hero-content {
    width: 1200px;
}

.booking-form-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.booking-content {
    max-width: 1200px;
    margin: 0 auto;
}

.booking-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.booking-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.booking-form-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

/* Make iframes larger in booking content */
.booking-form-content iframe {
    border: none;
    width: 100%;
    min-height: 1200px;
    border-radius: 4px;
}

/* Style for any booking-related content */
.booking-form-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.booking-form-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.booking-form-content h1,
.booking-form-content h2,
.booking-form-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Mobile Responsive for Booking Page */
@media (max-width: 768px) {
    .booking-hero-section {
        height: 50vh;
        min-height: 250px;
    }

    .booking-hero-section .hero-title {
        font-size: 2.5rem;
    }

    .booking-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }

    .booking-form-section {
        padding: 3rem 0;
    }

    .booking-form-content iframe {
        min-height: 1000px;
    }
}

@media (max-width: 480px) {
    .booking-hero-section {
        height: 40vh;
        min-height: 200px;
    }

    .booking-hero-section .hero-title {
        font-size: 2rem;
    }

    .booking-hero-section .hero-subtitle {
        font-size: 1rem;
    }

    .booking-form-section {
        padding: 2rem 0;
    }

    .booking-form-content iframe {
        min-height: 900px;
    }
}

/* ===================================
   BLOG STYLES
   =================================== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    z-index: 2;
}

/* Fallback for when no featured image is set */
.blog-hero.no-featured-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.blog-hero.no-featured-image .blog-hero-background,
.blog-hero.no-featured-image .blog-hero-overlay {
    display: none;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* Blog Content Section - Matches other page sections */
.blog-content-section {
    background-color: var(--background-light);
    padding: 4rem 0;
    border-top: 10px solid var(--primary-color);
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    gap: 2rem;
}

/* Blog Post Cards */
.blog-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.blog-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-header {
    margin-bottom: 1.5rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta i {
    color: var(--primary-color);
    width: 14px;
}

.blog-post-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
}

.blog-post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-post-tags i {
    color: var(--primary-color);
}

/* Single Blog Post Styles */
article.single-blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid #e5e7eb;
}

.post-categories>a {
    color: var(--primary-highlight);
}

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

.single-post-featured-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post-title-section {
    padding: 0 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-meta i {
    color: var(--primary-color);
    width: 16px;
}

.single-post-body {
    padding: 2rem 2rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-body h2 {
    font-size: 1.8rem;
}

.single-post-body h3 {
    font-size: 1.5rem;
}

.single-post-body h4 {
    font-size: 1.3rem;
}

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

.single-post-body ul,
.single-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-body li {
    margin-bottom: 0.5rem;
}

.single-post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-post-footer {
    padding: 1rem 2rem;
    ;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

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

.post-tags h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.tag-list a:hover {
    background: var(--primary-dark);
}

/* Social Sharing */

.post-social-sharing h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.email {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-previous,
.nav-next {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-2px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.nav-previous .nav-link {
    text-align: left;
}

.nav-next .nav-link {
    text-align: right;
    flex-direction: row-reverse;
}

/* Single Post Hero */
.single-post-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.single-post-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.single-post-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.single-post-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.single-post-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.single-post-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.single-post-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Content Section */
.single-post-content-section {
    background-color: var(--background-light);
    padding: 2rem 0;
    border-top: 10px solid var(--primary-color);
}

/* Blog Layout */
.blog-content-section .blog-layout {
    display: grid;
    grid-template-columns: 0.5fr 3fr;
    gap: 2rem;
    align-items: start;
}

.blog-main-content {
    min-width: 0;
    /* Prevents grid item from overflowing */
}

/* Author Profile Widget */
.author-profile-widget {
    background: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: none;
}

.author-profile {
    text-align: center;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 2rem;
    border: none;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-link {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.recent-post-link:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Archives Widget */
.archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archives-list li {
    margin-bottom: 0.5rem;
}

.archives-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archives-list a:hover {
    color: var(--primary-color);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.categories-list a:hover {
    color: var(--primary-color);
}

.categories-list .count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Other Posts Section */
.other-posts-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.other-posts-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.other-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Blog Sidebar */
.single-post-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.blog-sidebar {
    height: fit-content;
}


/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    margin: 0 0.25rem;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    gap: 0.5rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.no-posts-content i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-posts-content h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-posts-content p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-post-hero {
        min-height: 50vh;
    }

    .single-post-hero-title {
        font-size: 2.5rem;
    }

    .single-post-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .author-avatar img {
        width: 100px;
        height: 100px;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .other-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-content-section .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar,
    .single-post-sidebar {
        position: static;
        order: -1;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .single-post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 40vh;
        min-height: 250px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-post-content,
    .single-post-title-section,
    .single-post-body,
    .single-post-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-link {
        padding: 1rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .social-share-buttons {
        justify-content: center;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        height: 40vh;
        min-height: 200px;
    }

    .blog-hero-title {
        font-size: 1.8rem;
    }

    .single-post-title {
        font-size: 1.6rem;
    }

    .featured-image {
        height: 250px;
    }

    .blog-thumbnail {
        height: 200px;
    }

    .blog-post-content,
    .single-post-title-section,
    .single-post-body,
    .single-post-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Clinic Page Styles */
.clinic-hero-section {
    position: relative;
    height: 55vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clinic-hero-section .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.clinic-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.clinic-hero-section .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.clinic-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.clinic-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clinic-hero-content>.hero-title {
    margin-bottom: 0;
}

.clinic-content-section {
    padding: 4rem 0;
    background-color: #fff;
    border-top: 10px solid var(--primary-color);
}

.clinic-page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.clinic-content {
    line-height: 1.8;
    font-size: 1.1rem;
}


.clinic-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.clinic-content ul,
.clinic-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.clinic-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Mobile Responsive for Clinic Page */
@media (max-width: 768px) {
    .clinic-hero-section {
        height: 50vh;
        min-height: 250px;
    }

    .clinic-hero-section .hero-title {
        font-size: 2.5rem;
    }


    .clinic-content-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .clinic-hero-section {
        height: 40vh;
        min-height: 200px;
    }

    .clinic-hero-section .hero-title {
        font-size: 2rem;
    }


    .clinic-content-section {
        padding: 2rem 0;
    }

    .clinic-content h2 {
        font-size: 1.75rem;
    }

    .clinic-content h3 {
        font-size: 1.25rem;
    }
}

/* Contact Page Styles */
.contact-hero-section {
    position: relative;
    height: 55vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero-section .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.contact-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.contact-hero-section .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.9;
}

/* General Template Hero Section */
.general-hero-section {
    position: relative;
    height: 55vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.general-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.general-hero-section .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.general-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.general-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.general-hero-section .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* General Content Section */
.general-content-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.general-content {
    max-width: 800px;
    margin: 0 auto;
}

.general-page-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.general-page-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.general-page-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.general-page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.general-page-content ul,
.general-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.general-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.general-cta-row {
    text-align: center;
    margin-top: 2rem;
}

.general-cta-row .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.general-cta-row .cta-logos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.general-cta-row .cta-logos img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.general-cta-row .cta-logos img:hover {
    opacity: 1;
}

/* Responsive Design for General Template */
@media (max-width: 768px) {
    .general-hero-section {
        height: 50vh;
        min-height: 250px;
    }

    .general-hero-section .hero-title {
        font-size: 2.5rem;
    }

    .general-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }

    .general-content-section {
        padding: 3rem 0;
    }

    .general-page-content {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .general-page-content h2 {
        font-size: 1.8rem;
    }

    .general-page-content h3 {
        font-size: 1.3rem;
    }

    .general-cta-row .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .general-cta-row .cta-logos {
        gap: 1rem;
    }

    .general-cta-row .cta-logos img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .general-hero-section {
        height: 40vh;
        min-height: 200px;
    }

    .general-hero-section .hero-title {
        font-size: 2rem;
    }

    .general-hero-section .hero-subtitle {
        font-size: 1rem;
    }

    .general-content-section {
        padding: 2rem 0;
    }

    .general-page-content {
        padding: 1.5rem 1rem;
    }

    .general-page-content h2 {
        font-size: 1.5rem;
    }

    .general-page-content h3 {
        font-size: 1.2rem;
    }

    .general-cta-row .cta-logos {
        flex-direction: column;
        gap: 1rem;
    }

    .general-cta-row .cta-logos img {
        height: 45px;
    }
}

.contact-form-section {
    padding: 2rem 0;
    border-top: 10px solid var(--primary-color);
    background-color: var(--background-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.contact-main-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-page-content {
    margin-bottom: 2rem;
}

.contact-page-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-page-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-form-wrapper .wpcf7-form {
    max-width: 100%;
}

.contact-form-wrapper .wpcf7-form p {
    margin-bottom: 1.5rem;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.contact-form-wrapper .wpcf7-form input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background-color: var(--primary-highlight);
}

.contact-info-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-info-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.contact-info-content {
    width: 100%;
}

.contact-info-content h4 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.contact-info-content p {
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    width: 100%;
}

.contact-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: var(--primary-highlight);
}

.working-hours {
    margin-top: 0.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

.hours-row .day {
    font-weight: 600;
    color: #333;
}

.hours-row .time {
    color: #666;
}

/* Mobile Responsive for Contact Page */
@media (max-width: 768px) {
    .contact-hero-section {
        height: 50vh;
        min-height: 250px;
    }

    .contact-hero-section .hero-title {
        font-size: 2.5rem;
    }

    .contact-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-form-section {
        padding: 3rem 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-main-content,
    .contact-info-card {
        padding: 0.75rem;
    }

    .contact-info-item {
        gap: 1rem;
    }

    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {

    .contact-info-item {
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: center;
    }

    .contact-info-content {
        text-align: center;
    }

    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-form-wrapper .wpcf7-form label {
        text-align: center;
    }

    .contact-form-wrapper .wpcf7-form input[type="submit"] {
        width: 100%;
    }

    .contact-hero-section {
        height: 40vh;
        min-height: 200px;
    }

    .contact-hero-section .hero-title {
        font-size: 2rem;
    }

    .contact-hero-section .hero-subtitle {
        font-size: 1rem;
    }

    .contact-form-section {
        padding: 2rem 0;
    }

    .contact-main-content,
    .contact-info-card {
        padding: 0.5rem;
    }

    .hours-row {
        flex-direction: column;
        text-align: center;
    }

    .hours-row .time {
        margin-top: 0.25rem;
    }
}

/* Treatments Directory Styles */
.treatments-directory-fullwidth {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.treatment-section {
    margin-bottom: 2rem;
}

.treatment-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.treatment-section-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.treatment-directory-fullwidth-card {
    display: block;
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
}

.treatment-directory-fullwidth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.treatment-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.treatment-directory-fullwidth-card:hover .treatment-card-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.treatment-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.treatment-card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.treatment-card-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.treatment-directory-fullwidth-card:hover .treatment-card-arrow {
    background: var(--primary-highlight);
    transform: translateX(4px);
}

.treatment-card-arrow i {
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.treatment-directory-fullwidth-card:hover .treatment-card-arrow i {
    transform: translateX(2px);
}

.treatment-directory-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.treatment-directory-card[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.treatment-directory-card[style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: all 0.3s ease;
}

.treatment-directory-card[style*="background-image"]:hover::after {
    background: rgba(255, 255, 255, 0.8);
}

.treatment-directory-card[style*="background-image"] .treatment-directory-icon,
.treatment-directory-card[style*="background-image"] .treatment-directory-content,
.treatment-directory-card[style*="background-image"] .treatment-directory-arrow {
    position: relative;
    z-index: 2;
}

.treatment-directory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-highlight));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.treatment-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.treatment-directory-card:hover::before {
    transform: scaleX(1);
}

.treatment-directory-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-highlight));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.treatment-directory-card:hover .treatment-directory-icon {
    transform: scale(1.1);
}

.treatment-directory-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.treatment-directory-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.treatment-directory-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.treatment-directory-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.treatment-directory-arrow {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.treatment-directory-card:hover .treatment-directory-arrow {
    background: var(--primary-color);
    transform: translateX(4px);
}

.treatment-directory-arrow i {
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.treatment-directory-card:hover .treatment-directory-arrow i {
    color: #fff;
}

/* Responsive Design for Treatments Directory */
@media (max-width: 1024px) {
    .treatment-section-title {
        font-size: 1.75rem;
    }
    
    .treatment-directory-fullwidth-card {
        height: 180px;
    }
    
    .treatment-card-title {
        font-size: 1.25rem;
    }
    
    .treatment-card-overlay {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .treatment-directory-fullwidth {
        gap: 1.5rem;
    }
    
    .treatment-section {
        margin-bottom: 1.5rem;
    }
    
    .treatment-section-title {
        font-size: 1.5rem;
    }
    
    .treatment-section-description {
        font-size: 0.9rem;
    }
    
    .treatment-directory-fullwidth-card {
        height: 160px;
    }
    
    .treatment-card-title {
        font-size: 1.125rem;
    }
    
    .treatment-card-overlay {
        padding: 1rem;
    }
    
    .treatment-card-arrow {
        width: 35px;
        height: 35px;
    }
    
    .treatment-card-arrow i {
        font-size: 0.75rem;
    }
}


.blog-sidebar {
    order: 1;
}

.blog-main-content {
    order: 2;
    min-width: 0;
}

/* Updated Blog Post Cards */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    background: transparent;
    box-shadow: none;
}

.blog-post-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    background-color: #f8fafc;
    background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.blog-post-card:hover .blog-thumbnail {
    transform: scale(1.05);
}

.blog-post-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Sidebar Styles */
.blog-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.categories-list a:hover {
    color: var(--primary-color);
    background: transparent;
}

.categories-list .count {
    background-color: transparent;
    color: #6b7280;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Single Post Center Alignment */
.single-post-layout {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content {
    width: 100%;
    max-width: 800px;
}

.single-post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-body {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.other-posts-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.other-posts-section h3 {
    text-align: center;
}

.other-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.other-posts-grid .blog-post-card {
    text-align: left;
}

.other-posts-grid .blog-post-title {
    text-align: left;
}

.other-posts-grid .blog-post-author {
    text-align: left;
}

/* Blog Search Form Styles */
.blog-search-container {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    transform: translateY(-2px);
}

.blog-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
}

.blog-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.blog-search-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.blog-search-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    z-index: -2;
}

.blog-search-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-highlight);
    transition: all 0.3s ease;
    z-index: -1;
}

.blog-search-button:hover {
    color: #fff;
    text-decoration: none;
}

.blog-search-button:hover::before {
    width: 100%;
}

.blog-search-button i {
    font-size: 1rem;
}

.search-button-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Search Results Styling */
.search-results-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.search-results-info h2 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.search-results-info p {
    color: #6b7280;
    margin: 0;
}

.no-search-results {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.no-search-results i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-search-results h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-search-results p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content-section .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: 2;
    }
    
    .blog-main-content {
        order: 1;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-search-container {
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .blog-search-input {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .blog-search-button {
        padding: 1rem;
        justify-content: center;
        border-radius: 0 0 12px 12px;
    }
    
    .search-button-text {
        display: none;
    }
}