/* style/player-testimonials.css */

/* Base Styles */
.page-player-testimonials {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Default background */
}

.page-player-testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-player-testimonials__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color dark background */
    color: #ffffff; /* White text for dark background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-player-testimonials__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-player-testimonials__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-player-testimonials__hero-description a {
    color: #FFFF00; /* Yellowish for links on dark background */
    text-decoration: underline;
}

/* CTA Buttons */
.page-player-testimonials__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-player-testimonials__btn-primary,
.page-player-testimonials__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-player-testimonials__btn-primary {
    background-color: #C30808; /* Custom red for primary action */
    color: #FFFF00; /* Custom yellow for text on primary button */
    border: 2px solid #C30808;
}

.page-player-testimonials__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-player-testimonials__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-player-testimonials__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Testimonials List Section */
.page-player-testimonials__testimonials-list {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

.page-player-testimonials__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles */
}

.page-player-testimonials__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-player-testimonials__section-intro a {
    color: #017439;
    text-decoration: underline;
}

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

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

.page-player-testimonials__testimonial-image {
    width: 100%; /* Occupy card width */
    max-width: 400px; /* Max width for consistency */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size for images */
    min-width: 200px; /* Minimum size for images */
}

.page-player-testimonials__testimonial-name {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-player-testimonials__testimonial-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-player-testimonials__testimonial-text a {
    color: #017439;
    text-decoration: underline;
}

.page-player-testimonials__testimonial-rating {
    color: #FFD700; /* Gold color for stars */
    font-size: 1.5em;
}

.page-player-testimonials__closing-statement {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-player-testimonials__closing-statement a {
    color: #017439;
    text-decoration: underline;
}

/* CTA Section (Bottom) */
.page-player-testimonials__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color dark background */
    color: #ffffff; /* White text for dark background */
}

.page-player-testimonials__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-player-testimonials__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-player-testimonials__cta-description a {
    color: #FFFF00; /* Yellowish for links on dark background */
    text-decoration: underline;
}

/* FAQ Section */
.page-player-testimonials__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-player-testimonials__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-player-testimonials__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-player-testimonials__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-player-testimonials__faq-question:hover {
    background-color: #e5e5e5;
}

.page-player-testimonials__faq-question a {
    color: #017439;
    text-decoration: underline;
}

.page-player-testimonials__faq-title {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: #017439;
}

.page-player-testimonials__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* For minus sign: */
.page-player-testimonials__faq-item.active .page-player-testimonials__faq-toggle {
    content: '−'; /* Change + to - */
    transform: none; /* No rotation if using explicit content change */
}


.page-player-testimonials__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.page-player-testimonials__faq-item.active .page-player-testimonials__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px 25px; /* Add bottom padding */
}

.page-player-testimonials__faq-answer p {
    margin: 0;
    color: #333333;
}

.page-player-testimonials__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-player-testimonials__hero-title {
        font-size: 2.5em;
    }
    .page-player-testimonials__section-title {
        font-size: 2em;
    }
    .page-player-testimonials__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-player-testimonials {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-player-testimonials__hero-section,
    .page-player-testimonials__testimonials-list,
    .page-player-testimonials__cta-section,
    .page-player-testimonials__faq-section {
        padding: 40px 0;
    }
    .page-player-testimonials__hero-title {
        font-size: 2em;
    }
    .page-player-testimonials__hero-description {
        font-size: 1em;
    }
    .page-player-testimonials__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .page-player-testimonials__btn-primary,
    .page-player-testimonials__btn-secondary {
        width: 90%; /* Make buttons full width */
        max-width: 300px !important; /* Limit max width for very wide phones */
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-player-testimonials__section-title {
        font-size: 1.8em;
    }
    .page-player-testimonials__section-intro {
        font-size: 1em;
    }
    .page-player-testimonials__testimonial-grid {
        grid-template-columns: 1fr;
    }
    .page-player-testimonials__testimonial-card {
        padding: 20px;
    }
    .page-player-testimonials__testimonial-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Enforce minimum size */
        min-width: 200px !important; /* Enforce minimum size */
    }

    .page-player-testimonials__cta-title {
        font-size: 2em;
    }
    .page-player-testimonials__cta-description {
        font-size: 1em;
    }

    .page-player-testimonials__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-player-testimonials__faq-answer {
        padding: 0 20px;
    }
    .page-player-testimonials__faq-item.active .page-player-testimonials__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Enforce image and container responsiveness for content area */
    .page-player-testimonials img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-player-testimonials__section,
    .page-player-testimonials__card,
    .page-player-testimonials__container,
    .page-player-testimonials__testimonial-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-player-testimonials__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
    .page-player-testimonials__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-player-testimonials__cta-buttons > a {
        width: 100% !important;
        max-width: 100% !important;
    }
}