/* style/index.css */

/* Variables for consistent styling */
:root {
    --page-index-primary-color: #CC0000; /* W88 Red */
    --page-index-secondary-color: #FFCC00; /* W88 Gold/Yellow */
    --page-index-dark-text: #212121; /* Dark grey for readability */
    --page-index-light-text: #FFFFFF;
    --page-index-background-light: #F9F9F9;
    --page-index-background-dark: #333333;
    --page-index-border-color: #E0E0E0;
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-index-dark-text);
    background-color: var(--page-index-background-light);
}

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

.page-index__section-title {
    font-size: 2.5em;
    color: var(--page-index-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-index__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.page-index__btn--primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-light-text);
    border: 2px solid var(--page-index-primary-color);
}

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

.page-index__btn--secondary {
    background-color: transparent;
    color: var(--page-index-primary-color);
    border: 2px solid var(--page-index-primary-color);
}

.page-index__btn--secondary:hover {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-light-text);
    transform: translateY(-2px);
}

.page-index__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-index__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-index__btn--app {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--page-index-dark-text);
    color: var(--page-index-light-text);
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 1em;
}

.page-index__btn--app:hover {
    background-color: #000;
}

.page-index__app-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Hero Section */
.page-index__hero-section {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, #db4d4d 100%); /* Adjusted for contrast */
    color: var(--page-index-light-text);
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index__hero-content {
    max-width: 900px;
    z-index: 1;
    padding: 0 20px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
    opacity: 0.9;
}

.page-index__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index__hero-cta-group .page-index__btn--primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-dark-text);
    border-color: var(--page-index-secondary-color);
}

.page-index__hero-cta-group .page-index__btn--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.page-index__hero-cta-group .page-index__btn--secondary {
    color: var(--page-index-light-text);
    border-color: var(--page-index-light-text);
}

.page-index__hero-cta-group .page-index__btn--secondary:hover {
    background-color: var(--page-index-light-text);
    color: var(--page-index-primary-color);
}

.page-index__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-index__why-choose-us {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

.page-index__feature-item {
    background-color: var(--page-index-light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
    transform: translateY(-10px);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--page-index-primary-color);
}

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

.page-index__feature-text {
    font-size: 1em;
    color: #666;
}

/* W88 Access Guide Section */
.page-index__w88-access-guide {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-light-text);
}

.page-index__w88-access-guide .page-index__section-title {
    color: var(--page-index-light-text);
}

.page-index__w88-access-guide .page-index__section-subtitle {
    color: #ccc;
}

.page-index__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-index__step-item {
    background-color: #444;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-index__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--page-index-secondary-color);
    margin-bottom: 15px;
}

.page-index__step-title {
    font-size: 1.4em;
    color: var(--page-index-light-text);
    margin-bottom: 10px;
}

.page-index__step-text {
    font-size: 0.95em;
    color: #bbb;
}

.page-index__center-cta {
    text-align: center;
}

/* Promotions & Games Section */
.page-index__promotions-games {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

.page-index__content-card {
    background-color: var(--page-index-light-text);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-index__content-card:hover {
    transform: translateY(-10px);
}

.page-index__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__card-title {
    font-size: 1.4em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__card-text {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* App Download Section */
.page-index__app-download {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--page-index-primary-color) 0%, #a60000 100%);
    color: var(--page-index-light-text);
}

.page-index__app-download .page-index__section-title {
    color: var(--page-index-light-text);
}

.page-index__app-download .page-index__section-subtitle {
    color: #eee;
}

.page-index__app-download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-index__app-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-index__app-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-index__app-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-index__app-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1em;
}

.page-index__app-features-list li img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%); /* White checkmark */
}

.page-index__app-download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__app-mockup {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: center;
}

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

/* Security & Trust Section */
.page-index__security-trust {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

.page-index__security-item {
    background-color: var(--page-index-light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-index__security-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--page-index-primary-color);
}

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

.page-index__security-text {
    font-size: 1em;
    color: #666;
}

/* Detail Pages List Section */
.page-index__detail-pages-list {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-index__detail-card {
    background-color: var(--page-index-light-text);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__detail-card-title {
    font-size: 1.3em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-index__detail-card-title a {
    color: var(--page-index-primary-color);
    text-decoration: none;
}

.page-index__detail-card-title a:hover {
    text-decoration: underline;
}

.page-index__detail-card-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-index__faq {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-light-text);
}

.page-index__faq .page-index__section-title {
    color: var(--page-index-light-text);
}

.page-index__faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__faq-item {
    background-color: #444;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index__faq-question {
    font-size: 1.2em;
    color: var(--page-index-light-text);
    padding: 20px 25px;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #555;
    transition: background-color 0.3s ease;
}

.page-index__faq-question:hover {
    background-color: #666;
}

.page-index__faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #ccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-index__faq-answer.active {
    max-height: 200px; /* Adjust based on expected content length */
    padding: 0 25px 20px;
}

/* Final CTA Section */
.page-index__cta-final {
    padding: 80px 0;
    background-color: var(--page-index-primary-color);
    color: var(--page-index-light-text);
    text-align: center;
}

.page-index__cta-final .page-index__section-title {
    color: var(--page-index-light-text);
}

.page-index__cta-final .page-index__section-subtitle {
    color: #ffe0e0;
    margin-bottom: 30px;
}

.page-index__cta-final .page-index__btn--primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-dark-text);
    border-color: var(--page-index-secondary-color);
}

.page-index__cta-final .page-index__btn--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.15em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding: 60px 0;
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__btn--large {
        width: 100%;
    }
    .page-index__features-grid, .page-index__guide-steps, .page-index__content-grid, .page-index__security-grid, .page-index__detail-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-index__app-download-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index__app-download-buttons {
        justify-content: center;
    }
    .page-index__app-info, .page-index__app-mockup {
        max-width: 100%;
    }
    .page-index__app-features-list {
        text-align: left;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-section {
        padding: 40px 0;
    }
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-subtitle {
        font-size: 1em;
    }
    .page-index__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-index__faq-answer {
        padding: 0 20px 15px;
    }
}