/* Complete CSS for ace physiotherapy center Website */
:root {
    --primary: #2A6B9C;
    --secondary: #4BB3B3;
    --accent: #FF7E5F;
    --light: #F8FAFC;
    --dark: #2D3748;
    --gray: #718096;
    --light-gray: #E2E8F0;
}

/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #FAFBFC;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #1A4E7A 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 24px;
    color: white;
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
    text-transform: capitalize;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
    background: var(--secondary);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.page-title {
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Full-page hero section */
.hero {
    position: relative;
    padding: 0;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-image.jpg') no-repeat center center/cover;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}

.btn:hover {
    background-color: #FF6A4A;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* About Page Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-gray);
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.team-member p {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info > div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.contact-info i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 3px;
    min-width: 25px;
}

.contact-info span, .contact-info a {
    color: var(--dark);
    line-height: 1.6;
}

.contact-info a:hover {
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(75, 179, 179, 0.2);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Page Styles */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: visible;
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--light);
}

.faq-question.active {
    background-color: var(--light);
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-question.active + .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 1000px;
    overflow: visible;
    height: auto;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Blog specific styles */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.blog-read-more:hover {
    color: var(--primary);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.blog-tag {
    background: var(--light-gray);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Modalities specific styles */
.modalities-header {
    background: linear-gradient(rgba(42, 107, 156, 0.9), rgba(26, 78, 122, 0.9)), url('images/modalities-header.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 30px;
    margin-bottom: 50px;
    border-radius: 12px;
}

.modalities-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    margin-bottom: 15px;
}

.modalities-header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.modality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.modality-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.modality-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.modality-card-content {
    padding: 25px;
}

.modality-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
}

.modality-card p {
    color: var(--gray);
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

/* Modalities Section */
.modalities-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.modality-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modality-icon {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.modality-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modality-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modality-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.modality-card a:hover {
    color: var(--primary);
    gap: 12px;
}

.modality-image {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.modality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modality-image:hover img {
    transform: scale(1.08);
}

.modality-image::after {
    content: 'Click to learn more ›';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 107, 156, 0.9);
    color: white;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.modality-image:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* ✅ MAKE SERVICE IMAGES CLICKABLE */
.service-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

/* Add hover effect like index page */
.service-image::after {
    content: 'Click to learn more ›';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 107, 156, 0.9);
    color: white;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.service-image:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.service-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    margin-top: auto;
}

.service-card a:hover {
    color: var(--primary);
}

/* Resources specific styles */
.resources-header {
    text-align: center;
    margin-bottom: 50px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-card h3 i {
    color: var(--secondary);
    font-size: 24px;
}

.resource-list {
    list-style: none;
    margin: 20px 0;
}

.resource-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.resource-list li:before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.resource-link {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    margin-bottom: 10px;
    cursor: pointer;
}

.resource-link:hover {
    color: var(--secondary);
}

.download-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    margin-top: 15px;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--secondary);
}

.video-section {
    margin-top: 60px;
    background: var(--light);
    padding: 40px;
    border-radius: 12px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.video-content {
    padding: 20px;
}

.appointment-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1A4E7A 100%);
    padding: 60px 0;
    color: white;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.appointment-info h2 {
    color: white;
    margin-bottom: 20px;
}

.appointment-info p {
    margin-bottom: 25px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    margin-top: 25px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.benefits-list i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 20px;
}

.appointment-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.appointment-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.appointment-form .form-group {
    margin-bottom: 20px;
}

.appointment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(75, 179, 179, 0.2);
    transform: translateY(-2px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.08);
}

.feature-image::after {
    content: 'Click to learn more ›';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 107, 156, 0.9);
    color: white;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-image:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-item p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-item a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.feature-item a:hover {
    color: var(--primary);
    gap: 12px;
}

/* ✅ DISABLE CLICKABLE IMAGES IN WHY CHOOSE US SECTION */
.feature-item .feature-image {
    pointer-events: none; /* Prevents clicking */
    cursor: default; /* Normal cursor instead of hand pointer */
}

.feature-item .feature-image::after {
    display: none; /* Hide "Click to learn more" hover text */
}

/* ✅ RE-ENABLE CLICKABLE IMAGES ONLY IN CONDITIONS SECTION */
.conditions-section .feature-item .feature-image {
    pointer-events: auto; /* Allow clicking */
    cursor: pointer; /* Show hand pointer on hover */
}

.conditions-section .feature-item .feature-image::after {
    display: block; /* Show "Click to learn more" hover text */
}

.feature-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Local Areas Section */
.local-areas {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.area-tag {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
}

.areas-note {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

/* Testimonials */
.reviews-container {
    padding: 60px 0;
    background: #f8fafc;
}

.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 0 auto;
    max-width: 800px;
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating {
    color: #FFD700;
    margin-bottom: 10px;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-text:before {
    content: """;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.carousel-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary);
}

/* SEO Content Section */
.seo-content {
    background: #f9f9f9;
    padding: 50px;
    border-radius: 10px;
    margin: 50px 0;
    border-left: 5px solid var(--primary);
}

.seo-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.seo-content h3 {
    color: var(--primary);
    margin: 25px 0 15px 0;
}

.seo-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- Perfected PDF Form Styles --- */
#pdfFormContainer {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 8.5in;
    background: white;
    box-sizing: border-box;
}

.pdf-form {
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
    border: 2px solid var(--primary);
    padding: 30pt;
    box-shadow: 0 0 15pt rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    page-break-after: always;
    height: 11in;
    box-sizing: border-box;
}

.pdf-form-page2 {
    height: 11in;
    page-break-before: always;
    padding: 30pt;
    box-sizing: border-box;
}

.pdf-form h1, .pdf-form h2 {
    font-family: 'Lato', sans-serif;
    margin: 0;
    color: var(--primary);
}

.pdf-form-header {
    text-align: center;
    padding-bottom: 20pt;
    margin-bottom: 20pt;
    border-bottom: 3pt solid var(--secondary);
}

.pdf-form-header h1 {
    font-size: 26pt;
    font-weight: 700;
}

.pdf-form-header p {
    font-size: 10pt;
    color: #555;
    margin: 5pt 0 0;
    font-family: 'Roboto', sans-serif;
}

.form-section {
    margin-bottom: 25pt;
}

.form-section h3 {
    font-family: 'Lato', sans-serif;
    font-size: 15pt;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1pt solid #ccc;
    padding-bottom: 5pt;
    margin-bottom: 15pt;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15pt 30pt;
}

.form-field {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 45%;
}

.form-field-full {
    min-width: 100%;
}

.form-field label {
    font-weight: 400;
    font-size: 10pt;
    margin-bottom: 3pt;
    color: #555;
    text-transform: uppercase;
}

.input-line {
    border-bottom: 1pt solid var(--primary);
    padding: 5pt 0;
    min-height: 16pt;
}

.input-line-box {
    border: 1pt solid var(--primary);
    padding: 8pt;
    min-height: 50pt;
    line-height: 1.5;
}

.checkbox-group {
    margin-top: 15pt;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10pt;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    font-size: 10pt;
    color: #333;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8pt;
    width: 12pt;
    height: 12pt;
    min-width: 12pt;
}

.signature-area {
    display: flex;
    justify-content: space-between;
    margin-top: 30pt;
}

.signature-field {
    width: 45%;
    text-align: center;
}

.signature-line {
    border-top: 1pt solid #333;
    padding-top: 5pt;
    margin-top: 30pt;
    font-size: 9pt;
    color: #555;
    font-style: italic;
}

.disclaimer {
    font-size: 8pt;
    color: #777;
    margin-top: 25pt;
    text-align: justify;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1A4E7A 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 15px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
    font-size: 1.1rem;
}

.footer-section a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ========== MOBILE RESPONSIVE FIXES ========== */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
    .contact-grid,
    .appointment-container {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .hero {
        height: auto !important;
        min-height: 80vh;
        padding: 80px 20px !important;
    }
    
    .hero h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .features-grid,
    .services-grid,
    .modalities-grid,
    .blog-grid,
    .modality-grid,
    .resources-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .testimonial-card {
        padding: 20px 15px !important;
        height: auto !important;
        min-height: 280px;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .modalities-header {
        padding: 60px 20px;
    }
    
    .modalities-header h1 {
        font-size: 28px;
    }
    
    .modalities-header p {
        font-size: 16px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .local-areas {
        padding: 20px 15px !important;
    }
    
    .areas-grid {
        gap: 8px;
    }
    
    .area-tag {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .appointment-box {
        padding: 20px 15px !important;
    }
    
    .seo-content {
        padding: 25px 15px !important;
    }
    
    .seo-content h2 {
        font-size: 1.4rem !important;
    }
    
    .seo-content h3 {
        font-size: 1.2rem !important;
    }
    
    .seo-content p {
        font-size: 0.95rem !important;
    }
    
    /* Ensure touch targets are large enough */
    .btn, nav a, .carousel-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }
    
    nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-box {
        padding: 25px 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Contact Page Specific Styles */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container {
    margin-top: 50px;
    grid-column: 1 / -1;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
}

#google-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form button styles */
.contact-form .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .contact-info, .contact-form {
        padding: 20px;
    }
}

/* Conditions We Treat Section - Larger Clickable Images (Scoped) */
.conditions-section .feature-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.conditions-section .feature-image {
    height: 250px; /* Increased from 220px to 250px */
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border-radius: 10px;
}

.conditions-section .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.conditions-section .feature-image-link:hover .feature-image img {
    transform: scale(1.08);
}

.conditions-section .feature-image::after {
    content: 'Click to learn more ›';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 107, 156, 0.9);
    color: white;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.conditions-section .feature-image:hover::after {
    opacity: 1;
    transform: translateY(0);
}
/* ✅ CENTERING FIXES */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    text-align: center;
    margin-bottom: 15px;
}

.section-header p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--gray);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Ensure all buttons in section footers are centered */
.section-footer .btn {
    display: inline-block;
    margin: 0 auto;
}