:root {
    --primary: #800000;
    --primary-dark: #5a0000;
    --accent: #b8860b;
    --text-main: #222222;
    --text-muted: #555555;

    /* Backgrounds */
    --bg-cream: #fff9f0;
    --bg-white: #ffffff;
    --bg-light-gray: #f8f8f8;

    /* Borders & Shadows */
    --border: #e5e7eb;
    /* Modern Clean Gray (was #eaddcf) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);

    --container-width: 1200px;
    --radius: 8px;
    --font-stack: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
}

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

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* box-shadow removed for flat design */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    max-height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    display: block;
}

.header-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Consistent equal spacing */
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Google Translate Customization - Banner Hidden Only */
#google_translate_element {
    margin-left: 1rem;
    line-height: normal;
}

#google_translate_element img {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.goog-te-gadget-simple {
    border: 1px solid #ccc !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.contact-info span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    display: block;
    text-align: right;
}

.contact-info strong {
    font-size: 1.1rem;
    color: var(--primary);
}

/* SECTIONS - Full Width Backgrounds */
.hero-section {
    background-color: var(--bg-cream);
    padding: 6rem 0;
    border-bottom: none;
    /* Removed to avoid double border with next section */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balanced 50/50 for equal size match */
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h2 {
    font-size: 3rem;
    /* Slightly adjusted for balance */
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures it fills its half nicely */
}

.page-hero {
    text-align: left;
    max-width: 800px;
    margin: 0;
}

.page-hero h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.content-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    /* Added consistent divider */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 0.75rem auto 0;
}

.section-title.left-align {
    text-align: left;
}

.section-title.left-align::after {
    margin: 0.75rem 0 0;
}

/* Services Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    border: 1px solid #ededed;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    text-align: left;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #ddd;
}

.card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-cream);
    padding-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Enhanced List Styling */
.card ul,
.treatment-card ul {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card ul li,
.treatment-card ul li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* Custom Checkmark Marker */
.card ul li::before,
.treatment-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
}

/* Departments Section */
.departments-section {
    background-color: var(--bg-light-gray);
    padding: 4rem 0;
    background-color: var(--bg-light-gray);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.dept-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.pill {
    background: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #ddd;
    font-weight: 500;
}

/* Feature Highlight (Restored for Maternity) */
.feature-highlight {
    margin: 0 auto;
}

.feature-content {
    display: flex;
    align-items: stretch;
    /* Stretch image to match text height */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-lg);
    min-height: 350px;
    /* Ensure substantial height */
}

.feature-image {
    width: 45%;
    position: relative;
    /* For absolute positioning of img */
}

.feature-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes it fill perfectly without weird stretching */
}

.feature-text {
    width: 55%;
    padding: 4rem 3rem;
    /* More padding for a luxe feel */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Specialized Treatments */
.specialized-section {
    background-color: var(--bg-cream);
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.treatment-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.treatment-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.treatment-card .sub {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.treatment-card h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Contact Specifics */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.map-box {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ddd;
}

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* No background, border, or shadow here */
}

.info-item {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    /* Move shadow to individual items */
}

/* Contact Form Styling */
.contact-form-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-form-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-stack);
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.submit-btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
}

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

.submit-btn:active {
    transform: translateY(1px);
}

/* Full Width Map */
.map-section iframe {
    display: block;
    filter: grayscale(20%);
    /* Custom touch for elegance */
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-cream);
    padding-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #151515;
    color: #888;
    padding: 4rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-brand h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 850px) {

    .hero-grid,
    .cards-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .header-inner {
        height: auto;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .header-group {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    .hero-text {
        text-align: left;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .feature-content {
        flex-direction: column;
    }

    .feature-image,
    .feature-text {
        width: 100%;
    }

    .feature-image {
        height: 250px;
        /* Give it explicit height so absolute img shows up */
    }
}

/* Education Section (Services) */
.education-section {
    background-color: var(--bg-light-gray);
    /* Light gray for distinction */
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    /* Wider gap for readability */
    margin-top: 3rem;
}

.edu-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    /* Accent border for "Tip" feel */
}

.edu-card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.edu-card ul {
    margin-top: 0;
}

.edu-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}

/* Why Choose Us (Home) */
.why-choose-section {
    background-color: var(--bg-white);
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-cream);
    /* Subtle contrast against white section */
    border-radius: var(--radius);
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Contact Info Grid */
.contact-expanded-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
}

.info-box h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--bg-cream);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.info-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px dotted #eee;
    padding-bottom: 0.25rem;
}

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

/* Desktop Specific Overrides */
@media (min-width: 851px) {
    .desktop-reverse {
        flex-direction: row-reverse;
    }

    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- New Content Sections --- */

/* FAQ Accordion */
details {
    background: #fff;
    border: 1px solid #eaddcf;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Schedule Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
    height: 100%;
    text-align: left;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #eaddcf;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    z-index: 0;
}

.patient-name {
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.patient-type {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials Section */
/* Duplicate testimonials-section removed to prevent conflicts */

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

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
    text-align: left;
}

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

.stars {
    color: #FFC107;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: inline-block;
    width: 100%;
}

/* Testimonial Carousel Styles */
.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    /* Limit width for single focus */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-track-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 1rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.testimonial-track .testimonial-card {
    min-width: 100%;
    /* Show one card at a time */
    box-sizing: border-box;
    margin: 0;
    /* Remove gap margin for slider */
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 1.5rem;
    /* Reduced from 2rem */
}

/* Re-style inner card for shadow if needed, but current card style is fine if wrapper has bg. 
   Actually, the card has white bg. Let's keep it. 
*/

.slider-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    z-index: 2;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-cream);
    border-top: 1px solid var(--border);
    /* Use variable for consistency */
    padding: 4rem 0;
    /* Ensure spacing valid */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile First: Stacked */
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2x2 */
    }
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    margin-top: 0;
    /* Removed top margin as padding handles space now */
    /* Added to push text down and reduce bottom whitespace */
    position: relative;
    border: none !important;
}

.testimonial-text::after {
    content: none !important;
    display: none !important;
}

.testimonial-text::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 6rem;
    /* Slightly reduced to balance flow */
    color: var(--accent);
    opacity: 0.15;
    /* Slightly more visible since it's a structural element now */
    line-height: 0.5;
    /* Reduce massive line height gap */
    display: block;
    /* Make it a block element */
    position: relative;
    /* In flow, not absolute */
    top: auto;
    left: auto;
    margin-bottom: -0.5rem;
    /* Negative margin to pull text closer to quote */
    margin-left: -0.5rem;
    /* Move slightly left */
    pointer-events: none;
}

/* Aggressive border removal reset for testimonial internals */
.testimonial-card * {
    border: none !important;
    box-shadow: none !important;
}

.stars {
    color: #FFD700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    z-index: 1;
    position: relative;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    display: block;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border: none !important;
    background: transparent !important;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: -1.5rem;
    /* Pull closer to title */
    margin-bottom: 3rem;
    font-weight: 500;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    display: inline-block;
}