/* Testimonials Page Styles */
body.testimonials-page {
    padding-top: 120px !important;  /* Ensure space for fixed header */
    padding-bottom: 60px !important;  /* Add bottom padding to the page */
}

.testimonials-page .page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

:root {
    --primary: #1a1a1a; /* Dark */
    --primary-dark: #000000; /* Darker shade */
    --accent: #d4af37; /* Gold accent color */
    --accent-dark: #b8942b; /* Darker gold */
    --text: #333333;
    --text-light: #666666;
    --light: #ffffff; /* White */
    --white: #ffffff;
    --dark: #1a1a1a;
    --dark-gray: #2d2d2d;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Main Content Area */
.testimonials-section {
    padding-top: 0;
    padding-bottom: 60px;  /* Add bottom padding to the section */
    margin-top: 0;
    margin-bottom: 40px;  /* Add bottom margin to the section */
    position: relative;
    z-index: 1;
}

/* Add margin to the bottom of the testimonials container */
.testimonials-section .container {
    margin-bottom: 40px;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.8)), url('../images/testimonials-header.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.page-header h1 {
    font-size: 2.8rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    font-family: 'Bree Serif', serif;
    line-height: 1.2;
    padding: 0 20px;
}

.page-header p {
    font-size: 1.2rem;
    margin: 0 auto 20px;
    max-width: 700px;
    padding: 0 20px;
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0 0;
    margin: 0 auto;
    max-width: 800px;
}

.breadcrumb-item {
    margin: 0 5px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
}

.breadcrumb-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0 0px; /* Increased bottom padding to create more space */
    position: relative;
    background-color: #f8f9fa;
    z-index: 1;
    min-height: auto;
    overflow: visible;
    margin: 80px 0 0;
    width: 100%;
}

.testimonials-section .container {
    padding-bottom: 40px; /* Add space below the CTA */
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/clinicentry.jpg') no-repeat center center/cover;
    filter: blur(8px) brightness(0.9);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 800px;
    padding: 0 20px;
    background-color: transparent !important;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.testimonials-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    min-height: 400px;
    transform: translateY(0);
    position: relative;
    z-index: 1;
}

.testimonial-card::before {
    content: '"\201C"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: var(--accent);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.2;
    z-index: -1;
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-rating .fa-star-half-alt,
.testimonial-rating .far {
    color: #e0e0e0;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin: 15px 0 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
    font-weight: 400;
    flex-grow: 1;
    font-style: italic;
    z-index: 2;
}

.testimonial-text::before {
    content: '';
    position: absolute;
    left: -10px;
    top: -20px;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid var(--accent);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-cta {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin: 30px auto 0; /* Removed bottom margin from here */
    max-width: 1000px;
    position: relative;
    z-index: 2;
    width: calc(100% - 40px); /* Ensure it respects container padding */
}

.testimonial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.testimonial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/texture.png') center/cover;
    opacity: 0.05;
    z-index: 0;
    background-color: white;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.testimonial-cta h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    color: #fff;
    font-family: 'Bree Serif', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonial-cta p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

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

.testimonial-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    min-width: 220px;
    text-align: center;
}

.testimonial-cta .btn i {
    margin-right: 10px;
    font-size: 1.1em;
}

.testimonial-cta .btn-primary {
    background-color: var(--accent);
    color: #1a1a1a;
    border: 2px solid var(--accent);
}

.testimonial-cta .btn-primary:hover {
    background-color: #e6c04d;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.testimonial-cta .btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.testimonial-cta .btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .google-reviews-widget {
        padding: 0 15px;
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .testimonial-card {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 100px 0 40px; /* Adjusted padding for mobile */
    }
    
    .page-header {
        padding: 40px 0;
        min-height: 150px;
    }
    
    .testimonial-cta h3 {
        font-size: 1.8rem;
    }
    
    .testimonial-cta {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .testimonials-container,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-cta h3 {
        font-size: 1.6rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Bree Serif', serif;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.btn-primary {
    background: #fff;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .testimonial-cta h3 {
        font-size: 1.8rem;
    }
    
    .testimonial-cta {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .testimonials-container,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-cta h3 {
        font-size: 1.6rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
