/* style/testimonials.css */
/* 
 * Page-specific styles for the Testimonials page.
 * All selectors must use BEM naming convention: .page-testimonials__element-name.
 * Styles are scoped to the .page-testimonials class.
 * No global selectors (body, html, *).
 * No descendant selectors (e.g., .page-testimonials .hero-section).
 * No !important.
 * Image styles must not use 'filter' to change colors.
 * Content area images must have a display size of at least 200px.
 * HTML img width/height attributes must be consistent with CSS display sizes.
 */

/* Base container for the page content, ensures header offset */
.page-testimonials {
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensure consistency with body background */
}

/* Reusable container for content sections */
.page-testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-testimonials__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
}

.page-testimonials__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-testimonials__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Login color for emphasis */
}

.page-testimonials__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #F0F0F0; /* Slightly off-white for readability */
}

.page-testimonials__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-testimonials__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-testimonials__btn--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for primary button */
    border: 2px solid #FCBC45;
}

.page-testimonials__btn--primary:hover {
    background-color: #e0a73d;
    transform: translateY(-2px);
}

.page-testimonials__btn--secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text for secondary button */
    border: 2px solid #FFFFFF;
}

.page-testimonials__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-testimonials__hero-image {
    width: 100%;
    max-width: 1000px; /* Limit hero image width */
    margin-top: 40px;
}

.page-testimonials__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-testimonials__intro-section,
.page-testimonials__grid-section,
.page-testimonials__benefits-section,
.page-testimonials__cta-section,
.page-testimonials__faq-section,
.page-testimonials__final-cta {
    padding: 60px 0;
    background-color: #FFFFFF; /* Default background for sections */
}

.page-testimonials__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #000000;
}

.page-testimonials__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Testimonials Grid */
.page-testimonials__grid-section {
    background-color: #F8F8F8; /* Light grey background for testimonials */
}

.page-testimonials__testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-testimonials__testimonial-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-testimonials__testimonial-avatar {
    width: 200px; /* Changed to meet minimum 200x200px for content images */
    height: 200px; /* Changed to meet minimum 200x200px for content images */
    min-width: 200px; /* Explicitly set minimum */
    min-height: 200px; /* Explicitly set minimum */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #FCBC45;
    box-shadow: 0 0 15px rgba(252, 188, 69, 0.5);
}

.page-testimonials__testimonial-name {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.page-testimonials__testimonial-rating {
    font-size: 1.2em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-testimonials__testimonial-quote {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444444;
}

.page-testimonials__testimonial-details {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666666;
}

/* Benefits Section */
.page-testimonials__benefits-section {
    padding: 80px 0;
}

.page-testimonials__benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-testimonials__benefits-content {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-testimonials__benefit-item {
    background-color: #000000; /* Dark background for benefit items */
    color: #FFFFFF; /* Light text */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-testimonials__benefit-item:hover {
    transform: translateY(-5px);
}

.page-testimonials__benefit-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FCBC45; /* Emphasize with login color */
}

.page-testimonials__benefit-text {
    line-height: 1.7;
    font-size: 1em;
    color: #E0E0E0;
}

.page-testimonials__benefits-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-testimonials__benefits-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-testimonials__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-testimonials__cta-section .page-testimonials__section-title {
    color: #FCBC45; /* Login color for title */
}

.page-testimonials__cta-section .page-testimonials__section-description {
    color: #F0F0F0;
    margin-bottom: 50px;
}

.page-testimonials__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-testimonials__faq-section {
    background-color: #F8F8F8;
    padding: 80px 0;
}

.page-testimonials__faq-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    align-items: flex-start;
}

.page-testimonials__faq-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-testimonials__faq-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-testimonials__faq-items {
    flex: 2;
    min-width: 300px;
}

.page-testimonials__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-testimonials__faq-question {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
    cursor: pointer; /* Indicate it's clickable */
}

.page-testimonials__faq-question--active {
    color: #FCBC45; /* Active state for FAQ question */
}

.page-testimonials__faq-answer {
    line-height: 1.7;
    font-size: 1em;
    color: #555555;
}

.page-testimonials__faq-link {
    color: #FCBC45; /* Use login color for links */
    text-decoration: none;
    font-weight: 500;
}

.page-testimonials__faq-link:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-testimonials__final-cta {
    background-color: #000000; /* Dark background for final CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-testimonials__final-cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for title */
}

.page-testimonials__final-cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #F0F0F0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-testimonials__hero-title {
        font-size: 2.5em;
    }

    .page-testimonials__section-title {
        font-size: 2em;
    }

    .page-testimonials__benefits-wrapper,
    .page-testimonials__faq-wrapper {
        flex-direction: column;
    }

    .page-testimonials__benefits-content,
    .page-testimonials__faq-items {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-testimonials {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also respects header offset */
    }

    .page-testimonials__hero-section {
        padding: 40px 15px;
    }

    .page-testimonials__hero-title {
        font-size: 2em;
    }

    .page-testimonials__hero-description {
        font-size: 1em;
    }

    .page-testimonials__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-testimonials__btn {
        width: 100%;
        padding: 12px 20px;
    }

    .page-testimonials__intro-section,
    .page-testimonials__grid-section,
    .page-testimonials__benefits-section,
    .page-testimonials__cta-section,
    .page-testimonials__faq-section,
    .page-testimonials__final-cta {
        padding: 40px 0;
    }

    .page-testimonials__section-title {
        font-size: 1.8em;
    }

    .page-testimonials__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-testimonials__testimonials-grid {
        grid-template-columns: 1fr;
    }

    .page-testimonials__benefit-item {
        padding: 20px;
    }

    .page-testimonials__benefit-title {
        font-size: 1.3em;
    }

    .page-testimonials__faq-question {
        font-size: 1.1em;
    }
    
    /* Mobile content area image constraint */
    .page-testimonials__hero-image img,
    .page-testimonials__testimonial-card img,
    .page-testimonials__benefits-image img,
    .page-testimonials__faq-image img {
        max-width: 100%; 
        height: auto;
    }

    /* Ensure no content area images are smaller than 200px (this is a general rule that applies to all img selectors below .page-testimonials) */
    .page-testimonials img {
        min-width: 200px; /* Enforce minimum width for all content images */
        min-height: 200px; /* Enforce minimum height for all content images */
        object-fit: cover; /* Maintain aspect ratio and cover the space */
    }
}