/* style/index-why-choose-us.css */

/* General page styling */
.page-index-why-choose-us {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-index-why-choose-us__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-index-why-choose-us__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-why-choose-us__dark-bg {
    background-color: #017439; /* Brand color as dark background */
    color: #ffffff;
}

.page-index-why-choose-us__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-index-why-choose-us__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
    font-weight: bold;
}

.page-index-why-choose-us__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-index-why-choose-us__hero-section {
    padding: 120px 0 80px; /* Adjusted for header offset */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero:1920x1080:123b,betting,casino,sports,vietnam,banner]'); /* Background image, placeholder is handled by system */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-index-why-choose-us__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-index-why-choose-us__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-index-why-choose-us__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index-why-choose-us__btn-primary,
.page-index-why-choose-us__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-index-why-choose-us__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-index-why-choose-us__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-index-why-choose-us__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-index-why-choose-us__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Advantages Section Grid */
.page-index-why-choose-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-why-choose-us__card {
    background-color: #ffffff; /* Light background for cards */
    color: #333333; /* Dark text for light background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index-why-choose-us__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images don't get too large in cards */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-index-why-choose-us__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
    text-align: center;
}

.page-index-why-choose-us__card-text {
    font-size: 1em;
    color: #555555;
}

/* Mobile Experience Section */
.page-index-why-choose-us__mobile-experience-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-index-why-choose-us__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-index-why-choose-us__mobile-app-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* FAQ Section */
.page-index-why-choose-us__faq-section {
    background-color: #f5f5f5; /* Light background for FAQ */
    color: #333333;
}

.page-index-why-choose-us__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-index-why-choose-us__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-index-why-choose-us__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-index-why-choose-us__faq-question:hover {
    background-color: #f0f0f0;
}

.page-index-why-choose-us__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-index-why-choose-us__faq-item.active .page-index-why-choose-us__faq-toggle {
    transform: rotate(45deg);
}

.page-index-why-choose-us__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-index-why-choose-us__faq-item.active .page-index-why-choose-us__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px 25px 25px;
}

.page-index-why-choose-us__faq-answer p {
    margin: 0;
    color: #555555;
}

/* Bottom CTA Section */
.page-index-why-choose-us__cta-bottom {
    padding: 80px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-why-choose-us__hero-title {
        font-size: 2.8em;
    }
    .page-index-why-choose-us__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index-why-choose-us__hero-section {
        padding: 100px 0 60px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-index-why-choose-us__hero-title {
        font-size: 2.2em;
    }
    .page-index-why-choose-us__hero-description {
        font-size: 1.1em;
    }
    .page-index-why-choose-us__section {
        padding: 40px 0;
    }
    .page-index-why-choose-us__section-title {
        font-size: 1.8em;
    }
    .page-index-why-choose-us__grid {
        grid-template-columns: 1fr;
    }
    .page-index-why-choose-us__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to buttons container */
    }
    .page-index-why-choose-us__btn-primary,
    .page-index-why-choose-us__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
    }
}