/* style/index-core-advantages.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-index-core-advantages {
    font-family: Arial, sans-serif;
    color: #ffffff; /* Light text for dark background */
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or set explicitly if needed, but for now transparent to respect shared.css body background */
}

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

.page-index-core-advantages__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
}

.page-index-core-advantages__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

.page-index-core-advantages__highlight {
    color: #26A9E0; /* Primary color for highlights */
    font-weight: bold;
}

.page-index-core-advantages__advantage-list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-index-core-advantages__advantage-list li {
    margin-bottom: 10px;
}

/* Hero Section */
.page-index-core-advantages__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    background: linear-gradient(to right, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8)), url('[GALLERY:hero_main:1920x1080:online_betting,casino,gaming_platform,dynamic,excitement]') no-repeat center center/cover;
    color: #ffffff;
    text-align: left;
    min-height: 600px;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-index-core-advantages__hero-content {
    max-width: 50%;
    z-index: 1;
}

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

.page-index-core-advantages__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-index-core-advantages__hero-buttons {
    display: flex;
    gap: 20px;
}

.page-index-core-advantages__btn-primary,
.page-index-core-advantages__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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-core-advantages__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-index-core-advantages__btn-primary:hover {
    background-color: #1a7fb0;
    border-color: #1a7fb0;
}

.page-index-core-advantages__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-index-core-advantages__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-index-core-advantages__hero-image-container {
    max-width: 45%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 0; /* Ensure it's behind the content, but visible */
}

.page-index-core-advantages__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Introduction Section */
.page-index-core-advantages__introduction-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

/* Advantages Section */
.page-index-core-advantages__advantages-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Darker background */
}

.page-index-core-advantages__advantage-item {
    margin-bottom: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-core-advantages__advantage-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-index-core-advantages__advantage-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index-core-advantages__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-index-core-advantages__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

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

.page-index-core-advantages__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index-core-advantages__game-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index-core-advantages__game-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-core-advantages__game-title a:hover {
    color: #26A9E0;
}

.page-index-core-advantages__game-description {
    font-size: 0.95em;
    color: #cccccc;
}

/* Why Choose Us Section */
.page-index-core-advantages__why-choose-us-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

/* Call to Action Section */
.page-index-core-advantages__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(38, 169, 224, 0.7), rgba(0, 0, 0, 0.7));
    color: #ffffff;
}

.page-index-core-advantages__cta-image {
    max-width: 80%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-index-core-advantages__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-index-core-advantages__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-index-core-advantages__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-index-core-advantages__faq-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

.page-index-core-advantages__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-index-core-advantages__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-index-core-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-index-core-advantages__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-index-core-advantages__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-index-core-advantages__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-toggle {
    transform: rotate(45deg);
    color: #ffffff;
}

.page-index-core-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px !important;
}

.page-index-core-advantages__faq-answer p {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #cccccc;
}

/* Specific color for login button if needed */
.page-index-core-advantages__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}
.page-index-core-advantages__btn-login:hover {
    background-color: #c46405;
    border-color: #c46405;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-core-advantages__hero-title {
        font-size: 3em;
    }
    .page-index-core-advantages__hero-description {
        font-size: 1.1em;
    }
    .page-index-core-advantages__section-title {
        font-size: 2em;
    }
    .page-index-core-advantages__advantage-title {
        font-size: 1.8em;
    }
    .page-index-core-advantages__cta-title {
        font-size: 2.5em;
    }
    .page-index-core-advantages__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-index-core-advantages__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        min-height: auto;
        padding-top: 0 !important; /* Assuming shared.css sets body padding-top */
    }

    .page-index-core-advantages__hero-content {
        max-width: 100%;
        order: 2; /* Move content below image on mobile */
    }

    .page-index-core-advantages__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-index-core-advantages__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-index-core-advantages__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-index-core-advantages__hero-buttons .page-index-core-advantages__btn-primary,
    .page-index-core-advantages__hero-buttons .page-index-core-advantages__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-index-core-advantages__hero-image-container {
        max-width: 100%;
        order: 1; /* Move image above content on mobile */
        margin-bottom: 30px;
    }

    /* 产品展示图区域 */
    .page-index-core-advantages__games-grid {
        grid-template-columns: 1fr; /* Single column layout for games */
        gap: 20px;
    }

    .page-index-core-advantages__game-card {
        padding: 15px;
    }

    /* 通用图片与容器 */
    .page-index-core-advantages img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min image size */
        min-height: 200px !important; /* Enforce min image size */
    }

    .page-index-core-advantages__container,
    .page-index-core-advantages__section,
    .page-index-core-advantages__card,
    .page-index-core-advantages__advantage-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}