/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/*
  Global body padding to account for the fixed header's total height.
  This prevents page content from being hidden underneath the navigation.
  Total height = 38px (top bar) + 84px (main navigation) = 122px.
*/
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #333;
    padding-top: 122px;
}

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

/* Override for Main Navigation Header */
.main-nav .container {
    max-width: none;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
}


/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #c8a45d;
    color: #333;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #c8a45d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.welcome-content {
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-size: 36px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #c8a45d;
    margin: 0 auto 30px;
}

.welcome-subtitle {
    font-size: 18px;
    color: #666666;
    margin-bottom: 50px;
    line-height: 1.6;
}

.welcome-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature {
    flex: 1;
    padding: 0 20px;
    margin-bottom: 30px;
    min-width: 300px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #c8a45d;
    font-size: 30px;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background-color: #c8a45d;
    color: white;
    transform: translateY(-5px);
}

.feature h3 {
    color: #333333;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.feature p {
    color: #666666;
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .welcome-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .feature:last-child {
        margin-bottom: 0;
    }
}

/* Dr. Raymond Section */
.dr-raymond {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.dr-raymond-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.dr-raymond-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dr-raymond-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 3/4;
    display: block;
    transition: transform 0.5s ease;
}

.dr-raymond-image:hover img {
    transform: scale(1.03);
}

.dr-raymond-text {
    flex: 1;
    text-align: left;
}

.dr-raymond h2 {
    font-size: 36px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dr-raymond-divider {
    width: 80px;
    height: 3px;
    background-color: #c8a45d;
    margin: 0 0 20px;
}

.dr-raymond-quote {
    font-size: 22px;
    font-style: italic;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #c8a45d;
}

.dr-raymond-bio {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dr-raymond-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dr-raymond-divider {
        margin: 0 auto 20px;
    }
    
    .dr-raymond-text {
        text-align: center;
        margin-top: 30px;
    }
    
    .dr-raymond-quote {
        padding-left: 15px;
    }
}

/* Patient Testimonials & Before/After Gallery */
.patient-testimonials {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #c8a45d;
    margin: 0 0 20px;
}

.testimonials-subtitle {
    font-size: 18px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
}

.quote-icon {
    color: #c8a45d;
    font-size: 28px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 20px;
    font-style: italic;
}

.patient-info {
    font-size: 16px;
}

.patient-name {
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
}

.patient-location {
    color: #777777;
    font-size: 14px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-nav {
    background: none;
    border: 2px solid #c8a45d;
    color: #c8a45d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    background-color: #c8a45d;
    color: white;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background-color: #c8a45d;
    transform: scale(1.2);
}

.testimonial-video {
    flex: 1;
}

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/16;
    margin-bottom: 18px;
    background: #000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    padding: 12px 0 0 0;
    font-weight: 600;
    color: #c8a45d;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonials-content {
        flex-direction: column;
    }
    
    .testimonial-video {
        width: 100%;
        margin-top: 40px;
    }
    
    .testimonials-text {
        text-align: center;
    }
    
    .section-divider {
        margin: 0 auto 20px;
    }
}

/* Facility Slider Section */
.facility-slider-section {
    padding: 70px 0 40px 0;
    background: #fff;
}
.facility-slider-title {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1.35rem;
    color: #234;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 36px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}
.facility-slider-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.facility-slider-images {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
    min-width: 0;
    width: calc(3 * 260px + 2 * 24px);
    overflow: hidden;
}
.facility-slider-arrow {
    background: #fff;
    border: 2px solid #c8a45d;
    color: #c8a45d;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.facility-slider-arrow:hover {
    background: #c8a45d;
    color: #fff;
    border-color: #c8a45d;
}
.facility-slider-images {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
    min-width: 0;
    overflow: hidden;
}
.facility-slider-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(44,62,80,0.11);
    background: #f8f9fa;
    transition: box-shadow 0.2s, transform 0.2s;
}

.facility-slider-img:hover {
    box-shadow: 0 12px 32px rgba(44,62,80,0.19);
    transform: scale(1.03);
}
@media (max-width: 900px) {
    .facility-slider-img {
        width: 180px;
        height: 180px;
    }
    .facility-slider-wrapper {
        gap: 10px;
    }
}
@media (max-width: 600px) {
    .facility-slider-img {
        width: 110px;
        height: 110px;
    }
    .facility-slider-title {
        font-size: 1rem;
        margin-bottom: 18px;
    }
}
/* Our Services Section - Enhanced */

.about-facility-slider-images {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.our-services {
    padding: 60px 0 60px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.our-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48cGF0aCBkPSJNMzAgMTVjLTguMjggMC0xNSA2LjcyLTE1IDE1czYuNzIgMTUgMTUgMTUgMTUtNi43MiAxNS0xNS02LjcyLTE1LTE1LTE1eiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDIwMCwyMDAsMjAwLDAuNSkiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==');
    opacity: 0.5;
    z-index: 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    text-align: initial;
    position: relative;
    z-index: 1;
}

.our-services .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.our-services h2 {
    font-size: 2.8rem !important;
    color: #1a1a1a !important;
    text-align: center !important;
    margin: 0 auto 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    position: relative !important;
    display: block !important;
    padding: 0 0 10px 0 !important;
    line-height: 1.2 !important;
    width: 100%;
    max-width: 1200px;
}

/* Removed duplicate line from h2 */

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin: 30px auto 50px !important;
    padding: 0 40px !important;
    max-width: 1400px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
}

.service-card {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 15px !important;
    padding: 50px 30px 45px !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(0) !important;
    transform-origin: top center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #c8a45d, #e6c98a);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(200, 164, 93, 0.3) !important;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f9f5f0 0%, #f0e6d9 100%) !important;
    border-radius: 50% !important;
    font-size: 42px !important;
    color: #c8a45d !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 8px 25px rgba(200, 164, 93, 0.2) !important;
    border: 1px solid rgba(200, 164, 93, 0.1) !important;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #c8a45d 0%, #e6c98a 100%);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.6rem !important;
    color: #1a1a1a !important;
    margin: 0 0 20px !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 15px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 40px;
    height: 2px;
    background: #c8a45d;
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 70px;
}

.service-card p {
    color: #4a5568 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    margin: 0 0 30px !important;
    transition: all 0.4s ease !important;
    padding: 0 10px !important;
}

.service-card:hover p {
    color: #495057;
}

.service-link {
    display: inline-flex !important;
    align-items: center !important;
    color: #c8a45d !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 10px 20px !important;
    background: rgba(200, 164, 93, 0.1) !important;
    border-radius: 50px !important;
    margin-top: auto !important;
    width: max-content !important;
    margin: 0 auto !important;
}

.service-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: #ffffff !important;
    background: #c8a45d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(200, 164, 93, 0.3) !important;
    text-decoration: none !important;
}

.service-link:hover::after {
    transform: translateX(5px);
}

.services-cta {
    text-align: center !important;
    margin: 50px auto 0 !important;
    padding: 30px 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    max-width: 800px !important;
    width: 100% !important;
}

.services-cta p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .our-services {
        padding: 70px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 40px auto 0;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .services-cta {
        margin-top: 50px;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.why-choose-us .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.why-choose-us h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.why-choose-us .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto 60px;
    width: 95% !important;
    max-width: 1300px;
    min-width: 1200px;
    padding: 0 15px;
}

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(200, 200, 200, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    font-size: 32px;
    color: #c8a45d;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #c8a45d 0%, #e6c98a 100%);
    color: white;
    transform: rotate(360deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #c8a45d;
    border: 2px solid #c8a45d;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #c8a45d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 164, 93, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .why-choose-us {
        padding: 70px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-outline, .btn-primary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin: 5px 0;
    }
}
/* Patient Testimonials & Before/After Gallery */
.patient-testimonials {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.testimonials-text {
    flex: 1;
    max-width: 500px;
}

.testimonials-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #c8a45d;
    margin: 20px 0;
}

.testimonials-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 30px;
}

.testimonial {
    margin-bottom: 30px;
}

.quote-icon {
    color: #c8a45d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 20px;
    font-style: italic;
}

.patient-info {
    margin-top: 20px;
}

.patient-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.patient-location {
    color: #c8a45d;
    font-weight: 500;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.testimonial-nav {
    background: white;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    background: #c8a45d;
    color: white;
    border-color: #c8a45d;
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #c8a45d;
}

.video-testimonial {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f6f6f6;
    border-radius: 22px;
    box-shadow: none;
    min-height: 280px;
    padding: 8px 0 8px 0;
    overflow: visible;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 250px; /* Decreased from 300px to make it narrower */
    margin: 0 auto; /* Center the container */
    padding-bottom: 300%; /* Increased from 250% to make it even taller */
    height: 0;
    overflow: hidden;
    background: #000; /* Black background for better video display */
    border-radius: 12px; /* Slightly smaller border radius for the new proportions */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* Added shadow for depth */
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Image Comparison Styles */
.before, .after {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.after .label {
    left: auto;
    right: 15px;
    background: rgba(200, 164, 93, 0.9);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .testimonials-content {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .testimonials-text {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .testimonial-video {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .patient-testimonials {
        padding: 50px 0;
    }
    
    .testimonials-text h2 {
        font-size: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .video-caption {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}

/* Smile Transformations Section */
.smile-transformations {
    padding: 100px 0;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.smile-transformations .container {
    display: block !important;
    text-align: center !important;
}

.smile-transformations .section-header {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #c8a45d;
    margin: 20px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-top: 20px;
}

.transformation-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.transformation-content {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.transformation-text {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
    text-align: left;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.07);
    padding: 32px 28px;
    margin: 0;
}

.transformation-image {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.07);
    padding: 24px 16px;
    margin: 0;
}

@media (max-width: 900px) {
    .transformation-content {
        flex-direction: column;
        gap: 32px;
    }
    .transformation-text, .transformation-image {
        max-width: 100%;
        padding: 18px 8px;
        text-align: center;
    }
}

.transformation-text {
    padding-right: 30px;
}

.transformation-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Comparison Slider */
.image-comparison {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.before, .after {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before {
    width: 50%;
    z-index: 2;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.label {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.before .label {
    left: 20px;
}

.after .label {
    right: 20px;
    background: rgba(200, 164, 93, 0.9);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 4;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 16px;
}

/* Treatment Details */
.treatment-details {
    background: white;
    padding: 25px;
    border-radius: 0 0 12px 12px;
}

.treatment-details h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.treatment-details li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
}

.treatment-details i {
    color: #c8a45d;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Stats */
.transformation-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Testimonial */
.testimonial {
    margin-bottom: 30px;
}

.quote-icon {
    color: #c8a45d;
    font-size: 1.8rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 20px;
    font-style: italic;
}

.patient-info {
    margin-top: 20px;
}

.patient-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.treatment-type {
    color: #c8a45d;
    font-weight: 500;
    font-size: 0.95rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: #c8a45d;
    color: white;
    border: 2px solid #c8a45d;
}

.btn-primary:hover {
    background: #b3924f;
    border-color: #b3924f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 164, 93, 0.3);
}

.btn-outline {
    background: transparent;
    color: #c8a45d;
    border: 2px solid #c8a45d;
}

.btn-outline:hover {
    background: rgba(200, 164, 93, 0.1);
    transform: translateY(-2px);
}

/* Testimonial Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.testimonial-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-nav:hover {
    background: #c8a45d;
    color: white;
    border-color: #c8a45d;
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #c8a45d;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .transformation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .transformation-text {
        padding-right: 0;
        text-align: center;
    }
    
    .transformation-stats {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .smile-transformations {
        padding: 70px 0;
    }
    
    .image-comparison {
        height: 350px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .image-comparison {
        height: 280px;
    }
    
    .transformation-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
    }
}

/* About Page Styles */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1100px;
    padding: 40px 0 60px 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 38px 34px 32px 34px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 650px;
    width: 100%;
}

.testimonial:hover {
    /* Hover effect disabled for Smile Transformations testimonial */
    transform: none !important;
    box-shadow: none !important;
}

.testimonial-text {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    color: #c8a45d;
    margin-top: 10px;
    font-size: 1rem;
}

.testimonial-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Center testimonial header on mobile */
    /* Force single-column layout for testimonials on mobile */
    .patient-testimonials .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Center the content */
    }

    .patient-testimonials .section-header {
        width: 100%;
        text-align: center;
        margin-bottom: 30px; /* Add space below the header */
    }


    .simple-steps {
        padding: 70px 0;
    }
}

/* 3 Simple Steps Section */
.simple-steps {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.simple-steps:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #c8a45d, #f3d9a4, #c8a45d);
    background-size: 200% auto;
    animation: gradientBG 3s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.simple-steps > .container {
    position: relative;
    z-index: 1;
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.simple-steps h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.simple-steps h2:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: #c8a45d;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
}

.step {
    flex: 0 0 calc(33.333% - 14px);
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.step:hover .step-image img {
    transform: scale(1.05);
}

.step h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.step p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.cta-button {
    margin-top: 30px;
}

.cta-button .btn-primary {
    background: #c8a45d;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #c8a45d;
}

.cta-button .btn-primary:hover {
    background: transparent;
    color: #c8a45d;
}

/* Responsive Styles for Simple Steps */
@media (max-width: 992px) {
    .simple-steps .container {
        display: block;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .step {
        max-width: 400px;
        width: 100%;
    }
}

/* Section Header */
.patient-testimonials .container {
    display: block;
}
.patient-testimonials .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 16px auto;
    width: 100%;
    padding: 0;
}
.section-header h2, .testimonials-subtitle {
    text-align: center;
    margin: 0 auto 18px auto;
    width: auto;
    display: block;
}
.section-header h2 {
    font-size: 2.6rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.testimonials-subtitle {
    color: #8b8b8b;
    font-size: 1.18rem;
    margin: 0 auto 16px;
    text-align: center;
    max-width: 700px;
    line-height: 1.7;
}

.patient-testimonials .section-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.patient-testimonials .section-divider {
    width: 60px;
    height: 3px;
    background: #c8a45d;
    margin: 0 auto 20px;
}

.patient-testimonials .services-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0 auto 50px;
    text-align: center;
    max-width: 700px;
    line-height: 1.6;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 auto;
    max-width: 1100px;
    padding: 40px 0 60px 0;
}
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 0 40px 0;
    }
}


.testimonial-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
    transition: transform 0.32s cubic-bezier(.4,2,.3,1), box-shadow 0.32s cubic-bezier(.4,2,.3,1);
    padding: 22px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
}
.patient-testimonials .video-testimonial:hover {
    transform: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: 0 18px 48px rgba(44, 62, 80, 0.18);
}


.testimonial-video {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.10);
    background: #000;
    margin-bottom: 18px;
    max-width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover; /* Ensures video fills the container while maintaining aspect ratio */
}

.testimonial-info {
    padding: 20px;
    background: white;
}

.testimonial-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.testimonial-info p {
    color: #6c757d;
    font-style: italic;
    line-height: 1.6;
}

.text-testimonial {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 650px;
    width: 100%;
}

.quote-icon {
    color: #c8a45d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.7;
}

.patient-info {
    margin-top: auto;
}

.testimonial-author {
    font-weight: 700;
    color: #c8a45d;
    margin-top: 10px;
    font-size: 1rem;
}

.testimonial-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 2px;
}

.patient-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.patient-location {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        max-width: 600px !important;
        padding: 0 30px !important;
        gap: 40px !important;
        margin: 60px auto !important;
    }
    
    .service-card {
        padding: 50px 30px !important;
        min-height: auto !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .service-icon {
        width: 90px !important;
        height: 90px !important;
        font-size: 36px !important;
        margin-bottom: 30px !important;
    }
    
    .our-services h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 40px 25px !important;
    }
    
    .service-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 32px !important;
    }
    
    .our-services h2 {
        font-size: 2.2rem !important;
        padding: 0 15px !important;
    }
    
    .service-card h3 {
        font-size: 1.4rem !important;
    }
    
    .service-card p {
        font-size: 1rem !important;
    }
}

/* Mobile override for Features Grid */
@media (max-width: 768px) {
    .features-grid {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 0 20px !important;
    }
    .feature-card {
        margin-bottom: 30px;
    }
    .feature-card:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card,
    .text-testimonial {
        max-width: 100% !important;
        width: 100% !important;
    }
    .testimonial-card {
        margin-bottom: 30px;
    }
}
