/* Color Variables */
:root {
    --primary-blue: #0077b6;
    --dark-blue: #004d99;
    --light-blue: #e0f7fa;
    --light-gray: #f8fafc;
    --text-color: #374151; /* Gray 800 */
    --link-color: #0077b6;
    --success-color: #10b981; /* Green 500 */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base Styles & Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.section-header {
    font-size: 1.875rem; /* 3xl */
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .section-header {
        font-size: 2.25rem; /* 4xl */
    }
}

/* --- Header & CTA --- */
.main-header {
    box-shadow: var(--shadow);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-blue);
    letter-spacing: -0.025em;
}
@media (min-width: 640px) {
    .site-title {
        font-size: 1.875rem;
    }
}

.cta-button {
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* rounded-full */
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s;
    text-align: center;
    display: inline-block;
}
.header-cta {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.header-cta:hover {
    background-color: var(--dark-blue);
}


/* --- 3D Model Styling --- */
.hero-3d-spine, .hero-3d-knee {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0.45;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.hero-3d-spine {
    animation: floatHero 12s ease-in-out infinite;
}
.hero-3d-knee {
    animation: floatKnee 14s ease-in-out infinite;
}

@keyframes floatHero {
    0%   { transform: translateY(0px) rotateY(0deg); }
    50%  { transform: translateY(-25px) rotateY(20deg); }
    100% { transform: translateY(0px) rotateY(0deg); }
}

@keyframes floatKnee {
    0%   { transform: translateY(0px) rotateY(0deg) rotateX(0deg); }
    50%  { transform: translateY(20px) rotateY(-15deg) rotateX(10deg); }
    100% { transform: translateY(0px) rotateY(0deg) rotateX(0deg); }
}


/* --- Hero Section --- */
.hero-section {
    background-color: var(--light-blue);
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-text-content {
        order: 1;
    }
    .hero-image-container {
        order: 2;
    }
}

.hero-text-content {
    order: 2;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.rating-box {
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: inline-block;
}
.rating-stars {
    color: #f59e0b; /* Yellow 500 */
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}
.rating-score {
    color: var(--text-color);
    font-weight: 600;
    margin-left: 0.5rem;
}
.rating-info {
    font-size: 0.875rem;
    color: #6b7280; /* Gray 500 */
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-highlight {
    color: var(--dark-blue);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.primary-cta {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
}
.primary-cta:hover {
    background-color: var(--dark-blue);
}

.secondary-cta {
    background-color: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
}
.secondary-cta:hover {
    background-color: #f3f4f6; /* Gray 100 */
}

.hero-image-container {
    display: flex;
    justify-content: center;
    order: 1;
}
.hero-image {
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 24rem; /* max-w-sm */
    position: relative;
    z-index: 10;
}


/* --- About Section --- */
.about-content {
    line-height: 1.625; /* leading-relaxed */
    font-size: 1rem;
    color: #4b5563; /* Gray 600 */
}
.about-content > p {
    margin-bottom: 1.25rem;
}
.about-highlight {
    font-weight: 600;
    color: var(--text-color);
}


/* --- Expertise Section --- */
.bg-light-blue {
    background-color: var(--light-blue);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px) {
    .expertise-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.expertise-card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s;
    text-align: center;
    border-bottom-width: 4px;
}
.expertise-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.primary-border {
    border-color: var(--primary-blue);
}
.secondary-border {
    border-color: #d1d5db; /* Gray 300 */
}

.card-icon {
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}
@media (min-width: 640px) {
    .card-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}
@media (min-width: 640px) {
    .card-title {
        font-size: 1.25rem;
    }
}

.card-description {
    font-size: 0.75rem;
    color: #6b7280;
    display: none;
}
@media (min-width: 640px) {
    .card-description {
        display: block;
    }
}


/* --- Procedures Section --- */
.procedures-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.procedure-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    background-color: #f9fafb; /* Gray 50 */
    border-left-width: 8px;
}

.primary-border-left {
    border-left-color: var(--primary-blue);
}
.secondary-border-left {
    border-left-color: #9ca3af; /* Gray 400 */
}

.procedure-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-icon-large {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--primary-blue);
}
.gray-icon {
    color: #6b7280; /* Gray 500 */
}

.procedure-title {
    font-size: 1.25rem;
    font-weight: 700;
}
@media (min-width: 640px) {
    .procedure-title {
        font-size: 1.5rem;
    }
}

.primary-text {
    color: var(--dark-blue);
}

.procedure-description {
    font-size: 1rem;
    color: #4b5563; /* Gray 600 */
    margin-bottom: 1rem;
}

.procedure-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}
.procedure-list > li {
    margin-bottom: 0.25rem;
}


/* --- Timeline Section --- */
.bg-light-gray {
    background-color: var(--light-gray);
}
.timeline-header {
    margin-bottom: 3rem;
    text-align: center;
}

.timeline-container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background-color: #e5e7eb; /* Gray 200 */
    display: none;
}
@media (min-width: 768px) {
    .timeline-line {
        display: block;
    }
}

.timeline-item {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}
@media (min-width: 768px) {
    .timeline-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
    }
    .timeline-item:nth-child(odd) > div:first-child {
        order: 1; /* Content on the left */
        width: 40%;
    }
    .timeline-item:nth-child(odd) > div:last-child {
        order: 3; /* Empty space on the right */
        width: 40%;
    }
    .timeline-item:nth-child(even) > div:first-child {
        order: 1; /* Empty space on the left */
        width: 40%;
    }
    .timeline-item:nth-child(even) > div:last-child {
        order: 3; /* Content on the right */
        width: 40%;
    }
}


.timeline-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow);
    margin: 0.5rem auto; /* Center on mobile */
    display: none;
}
@media (min-width: 768px) {
    .timeline-dot {
        display: block;
        order: 2;
        margin: 0 auto;
    }
}

.primary-dot {
    background-color: var(--primary-blue);
}
.secondary-dot {
    background-color: #9ca3af; /* Gray 400 */
}

.timeline-content {
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    background-color: white;
    width: 100%;
}
@media (min-width: 768px) {
    .timeline-content {
        width: 100%;
        padding: 1.5rem;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }
}

.primary-bg {
    background-color: var(--primary-blue);
    color: white;
}

.secondary-border-left {
    border-left: 4px solid #9ca3af;
}
.secondary-border-right {
    border-right: 4px solid #9ca3af;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.timeline-subtitle {
    font-size: 0.875rem;
    color: var(--link-color);
}
.primary-bg .timeline-subtitle {
    color: white;
    opacity: 0.8;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    display: block;
}
.primary-bg .timeline-date {
    color: white;
    opacity: 0.8;
}


/* --- Why Choose Us Section --- */
.sub-header-center {
    font-size: 1.25rem;
    font-weight: 300;
    color: #4b5563; /* Gray 600 */
    text-align: center;
    margin-bottom: 3rem;
}
@media (min-width: 640px) {
    .sub-header-center {
        font-size: 1.5rem;
    }
}

.choice-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    background-color: #f0f9ff; /* Blue 50 */
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
    .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 2.5rem;
    }
}

.choice-image-container {
    display: flex;
    justify-content: center;
    order: 1;
}
.choice-image {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 28rem;
}

.choice-content {
    order: 2;
    padding-top: 0.5rem;
}

.choice-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.choice-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    color: #374151; /* Gray 700 */
    line-height: 1.5;
}
.choice-list > li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    color: var(--success-color);
    flex-shrink: 0;
}

.success-cta {
    margin-top: 1.5rem;
    width: 100%;
    background-color: var(--success-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 2rem;
}
.success-cta:hover {
    background-color: #059669; /* Green 600 */
}
@media (min-width: 768px) {
    .success-cta {
        width: auto;
    }
}


/* --- Footer --- */
.main-footer {
    background-color: var(--dark-blue);
    color: white;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.footer-content {
    text-align: center;
}

.footer-details {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.footer-details > p {
    margin-bottom: 0.25rem;
}
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
    color: white;
}
.footer-link-small {
    margin-top: 0.5rem;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-signature {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.footer-specialty {
    font-size: 0.75rem;
    opacity: 0.75;
}
.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 0.75rem;
}
/* --- FEEDBACK GRID LAYOUT --- */

/* The main container for the 2x2 layout */
.feedback-grid {
    display: grid;
    /* Create 2 columns of equal size */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; /* Space between the cards */
    max-width: 900px; /* Optional: Constrain the max width of the grid */
    margin: 0 auto; /* Center the grid on the page */
    margin-top: 40px;
}

/* Style for each review card */
.feedback-card {
    background-color: #fff; /* White background for the card */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
    overflow: hidden; /* Ensures image corners are contained by the card */
    display: flex; /* Helps center or manage content within the card */
    justify-content: center;
    align-items: center;
}

.feedback-card:hover {
    background-color: #fff; /* White background for the card */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
    overflow: hidden; /* Ensures image corners are contained by the card */
    display: flex; /* Helps center or manage content within the card */
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
    transform: scale(1.05);
}

/* Style for the review screenshots */
.review-image {
    width: 100%; /* Image takes up the full width of the card */
    height: auto;
    display: block; /* Removes any extra spacing below the image */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* --- RESPONSIVENESS (Optional but recommended) --- */

/* On screens smaller than 600px, display the cards in a single column */
@media (max-width: 600px) {
    .feedback-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
}

/* Enables Flexbox on the main content area */
.about-content {
    display: flex;
    gap: 40px; /* Space between the text and the image */
    align-items: flex-start; /* Aligns items to the top (important for multi-paragraph text) */
}

/* Give the text content more room (e.g., 60% of the container) */
.about-text-wrapper {
    flex: 3; /* Takes up 3 parts of available space */
}

/* Give the image container less room (e.g., 40% of the container) */
.about-image-wrapper {
    flex: 2; /* Takes up 2 parts of available space */
    min-width: 250px; /* Ensures the image is not too small on desktop */
}

/* Style the image itself */
.about-certificate-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Adds a nice shadow effect */
}


/* --- RESPONSIVENESS for Mobile (Media Query) --- */
@media (max-width: 768px) {
    /* Stack content vertically on smaller screens */
    .about-content {
        flex-direction: column;
    }

    /* Centers the image on mobile */
    .about-image-wrapper {
        margin: 20px auto 0 auto;
        flex-shrink: 0; /* Prevents shrinking */
    }
}

/* Container for the two images */
.details-image-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    align-items: flex-start;
}

/* Base style for the image cards to make them flexible */
.contact-card,
.schedule-table-card {
    flex: 1 1 45%; /* Allows both cards to take nearly half the space */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.clinic-info-image,
.schedule-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness: Stack the images vertically */
@media (max-width: 850px) {
    .details-image-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-card,
    .schedule-table-card {
        flex: 1 1 100%; /* Each takes full width on mobile */
        max-width: 90%;
    }
}

.feedback-grid {
    display: flex; /* Lines cards up horizontally */
    overflow-x: scroll; /* Allows horizontal scrolling */
    overflow-y: hidden; /* Prevents vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    gap: 20px; /* Space between the cards */
    padding-bottom: 20px; /* Space for the scrollbar on some browsers */
    margin-top: 30px;
    /* Optional: Hide the scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
}

/* Optional: Hide scrollbar for Chrome, Safari, and Opera */
.feedback-grid::-webkit-scrollbar {
    display: none;
}

.feedback-card {
    /* Critical properties for horizontal layout */
    flex-shrink: 0; /* Prevents the card from shrinking */
    width: 90%; /* On mobile, 90% is good for showing a hint of the next card */
    max-width: 300px; /* Keeps the card size reasonable on large screens */
    
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    overflow: hidden; 
}

/* Ensure the image scales correctly within the card */
.review-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Wrapper to position the buttons relative to the scroll grid */
.horizontal-scroll-container {
    position: relative;
    display: flex; /* Allows button and grid to sit next to each other */
    align-items: center; /* Vertically center the buttons */
    max-width: 900px; /* Limits width of the whole component */
    margin: 30px auto;
}

/* Scrollable container (same as before, but without max-width/margin-auto) */
.feedback-grid {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 20px; 
    padding: 10px 0; /* Add padding for visual space */
    width: 100%; /* Important: take up all available space */
    scroll-behavior: smooth; /* Makes the scroll animation smooth */
    scrollbar-width: none; /* Firefox */
}
.feedback-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Individual Cards (Kept simple) */
.feedback-card {
    flex-shrink: 0;
    width: 90%; 
    max-width: 300px; 
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    overflow: hidden; 
}

/* Styles for the navigation buttons */
.scroll-button {
    background-color: #0056b3; /* Primary color */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.3s;
    flex-shrink: 0; /* Prevents button from shrinking */
    margin: 0 5px; /* Space buttons away from the grid */
}

.scroll-button:hover {
    background-color: #004494;
}

/* Hide buttons on mobile where users prefer touch scrolling */
@media (max-width: 600px) {
    .scroll-button {
        display: none;
    }
    /* Ensure the grid takes full width when buttons are hidden */
    .feedback-grid {
        margin: 0 auto;
    }
}
