/* style/index-user-testimonials.css */

/* Variables for colors */
:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f8f8f8;
    --background-dark: #002244; /* Slightly darker than primary for contrast */
    --border-color: #e0e0e0;
}

.page-index-user-testimonials {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light);
}

.page-index-user-testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-index-user-testimonials__hero {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark)); /* Dark blue to slightly darker blue */
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index-user-testimonials__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Overlay for readability */
    z-index: 1;
}

.page-index-user-testimonials__hero .page-index-user-testimonials__container {
    position: relative;
    z-index: 2;
}

.page-index-user-testimonials__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold title for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-user-testimonials__hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-index-user-testimonials__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Subtler background image */
}

/* General Section Styling */
.page-index-user-testimonials__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-user-testimonials__section--why-choose {
    background-color: var(--background-light);
}

.page-index-user-testimonials__section--success-stories {
    background-color: var(--text-light); /* White background for stories */
}

.page-index-user-testimonials__section--cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.page-index-user-testimonials__section--responsible-gambling {
    background-color: var(--background-light);
}

.page-index-user-testimonials__section--faq {
    background-color: var(--text-light);
}


.page-index-user-testimonials__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-index-user-testimonials__section--cta .page-index-user-testimonials__section-title {
    color: var(--secondary-color); /* Gold title on dark background */
}

.page-index-user-testimonials__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-index-user-testimonials__section--cta .page-index-user-testimonials__section-description {
    color: var(--text-light);
}

/* Buttons */
.page-index-user-testimonials__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
    font-size: 1.1em;
}

.page-index-user-testimonials__btn--primary {
    background-color: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark blue text on gold */
    border: 2px solid var(--secondary-color);
}

.page-index-user-testimonials__btn--primary:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

.page-index-user-testimonials__btn--secondary {
    background-color: transparent;
    color: var(--primary-color); /* Dark blue text by default */
    border: 2px solid var(--primary-color); /* Dark blue border by default */
}

.page-index-user-testimonials__btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light); /* White text on hover */
    transform: translateY(-2px);
}

/* Overrides for dark backgrounds where secondary button should be lighter */
.page-index-user-testimonials__hero .page-index-user-testimonials__btn--secondary,
.page-index-user-testimonials__section--cta .page-index-user-testimonials__btn--secondary {
    color: var(--secondary-color); /* Gold text on dark background */
    border-color: var(--secondary-color); /* Gold border on dark background */
}

.page-index-user-testimonials__hero .page-index-user-testimonials__btn--secondary:hover,
.page-index-user-testimonials__section--cta .page-index-user-testimonials__btn--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Dark blue text on gold hover */
}

/* Testimonial Grid */
.page-index-user-testimonials__testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-user-testimonials__testimonial-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--secondary-color);
}

.page-index-user-testimonials__testimonial-card:hover {
    transform: translateY(-5px);
}

.page-index-user-testimonials__testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
}

.page-index-user-testimonials__testimonial-name {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-index-user-testimonials__testimonial-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-index-user-testimonials__testimonial-text a {
    color: var(--primary-color); /* Link color in testimonials */
    text-decoration: underline;
}

.page-index-user-testimonials__testimonial-text a:hover {
    color: var(--secondary-color);
}

.page-index-user-testimonials__testimonial-date {
    font-size: 0.9em;
    color: #666;
}

.page-index-user-testimonials__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Section Images */
.page-index-user-testimonials__section-image {
    max-width: 80%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Story Cards */
.page-index-user-testimonials__story-card {
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 1000px;
    overflow: hidden;
    text-align: left;
}

.page-index-user-testimonials__story-card--reverse {
    flex-direction: row-reverse;
}

.page-index-user-testimonials__story-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    object-fit: cover;
}

.page-index-user-testimonials__story-content {
    flex: 2;
    padding: 30px;
}

.page-index-user-testimonials__story-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index-user-testimonials__story-text {
    font-size: 1.1em;
    color: var(--text-dark);
}

/* CTA Section specific */
.page-index-user-testimonials__cta-content {
    position: relative;
    z-index: 2;
}

.page-index-user-testimonials__cta-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.page-index-user-testimonials__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

/* Responsible Gambling Section */
.page-index-user-testimonials__section--responsible-gambling p {
    max-width: 900px;
    margin: 20px auto;
    color: var(--text-dark);
    font-size: 1.05em;
}

/* FAQ Section */
.page-index-user-testimonials__faq-item {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.page-index-user-testimonials__faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-index-user-testimonials__faq-question {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-index-user-testimonials__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-index-user-testimonials__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-index-user-testimonials__faq-answer {
    font-size: 1.05em;
    color: var(--text-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

.page-index-user-testimonials__faq-answer.active {
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    margin-top: 15px;
}

.page-index-user-testimonials__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-index-user-testimonials__faq-answer a:hover {
    color: var(--secondary-color);
}

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

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

    .page-index-user-testimonials__story-card {
        flex-direction: column;
        max-width: 700px;
    }

    .page-index-user-testimonials__story-card--reverse {
        flex-direction: column;
    }

    .page-index-user-testimonials__story-image {
        width: 100%;
        height: 250px;
    }

    .page-index-user-testimonials__story-content {
        padding: 20px;
    }

    .page-index-user-testimonials__section-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-index-user-testimonials__hero {
        padding: 60px 0;
    }

    .page-index-user-testimonials__hero-title {
        font-size: 1.8em;
    }

    .page-index-user-testimonials__hero-subtitle {
        font-size: 1em;
    }

    .page-index-user-testimonials__section {
        padding: 40px 0;
    }

    .page-index-user-testimonials__section-title {
        font-size: 1.6em;
    }

    .page-index-user-testimonials__testimonial-grid {
        grid-template-columns: 1fr;
    }

    .page-index-user-testimonials__btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-index-user-testimonials__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-index-user-testimonials__hero-title {
        font-size: 1.5em;
    }

    .page-index-user-testimonials__section-title {
        font-size: 1.4em;
    }

    .page-index-user-testimonials__testimonial-card {
        padding: 20px;
    }

    .page-index-user-testimonials__faq-question {
        font-size: 1.2em;
    }
}