/* style/resources-may88-official-link.css */

/* Base Styles & Typography */
.page-resources-may88-official-link {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, fallback to white */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-may88-official-link__dark-bg {
    background-color: #26A9E0; /* Brand primary color for dark sections */
    color: #FFFFFF; /* White text for dark backgrounds */
}

.page-resources-may88-official-link__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources-may88-official-link__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-may88-official-link__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.page-resources-may88-official-link__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-resources-may88-official-link__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #FFFFFF;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-may88-official-link__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit;
}

.page-resources-may88-official-link__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-may88-official-link__text-block p,
.page-resources-may88-official-link__text-block li {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: inherit;
}

.page-resources-may88-official-link__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Buttons */
.page-resources-may88-official-link__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-resources-may88-official-link__cta-buttons--center {
    margin-top: 40px;
}

.page-resources-may88-official-link__btn-primary,
.page-resources-may88-official-link__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-may88-official-link__btn-primary {
    background-color: #EA7C07;
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-resources-may88-official-link__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-resources-may88-official-link__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-may88-official-link__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* Image Styles */
.page-resources-may88-official-link img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    -webkit-filter: none !important;
    filter: none !important;
}

.page-resources-may88-official-link__image-full {
    width: 100%;
    height: auto;
    margin: 30px 0;
}

.page-resources-may88-official-link__image-center {
    margin-left: auto;
    margin-right: auto;
}

.page-resources-may88-official-link__image-qr {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

/* Card Layouts */
.page-resources-may88-official-link__link-cards,
.page-resources-may88-official-link__game-cards,
.page-resources-may88-official-link__download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-may88-official-link__card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-resources-may88-official-link__card:hover {
    transform: translateY(-5px);
}

.page-resources-may88-official-link__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-resources-may88-official-link__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0;
}

.page-resources-may88-official-link__card-subtitle {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0;
}

.page-resources-may88-official-link__card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Lists */
.page-resources-may88-official-link__ordered-list,
.page-resources-may88-official-link__unordered-list,
.page-resources-may88-official-link__promo-list {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-may88-official-link__ordered-list li,
.page-resources-may88-official-link__unordered-list li,
.page-resources-may88-official-link__promo-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: inherit;
}

.page-resources-may88-official-link__note {
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: inherit;
}

/* FAQ Section */
.page-resources-may88-official-link__faq-list {
    margin-top: 40px;
}

.page-resources-may88-official-link__faq-item {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-resources-may88-official-link__faq-item summary {
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.page-resources-may88-official-link__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources-may88-official-link__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #F8F8F8;
    color: #26A9E0;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-may88-official-link__faq-item[open] .page-resources-may88-official-link__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-may88-official-link__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-resources-may88-official-link__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #333333;
    background-color: #FFFFFF;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-resources-may88-official-link {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-may88-official-link__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-may88-official-link__hero-section {
        padding: 60px 0;
    }

    .page-resources-may88-official-link__hero-title {
        font-size: 2.2em;
    }

    .page-resources-may88-official-link__hero-description {
        font-size: 1em;
    }

    .page-resources-may88-official-link__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-may88-official-link__sub-title {
        font-size: 1.5em;
    }

    .page-resources-may88-official-link__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-may88-official-link__btn-primary,
    .page-resources-may88-official-link__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .page-resources-may88-official-link img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 0px;
    }

    .page-resources-may88-official-link__card-image {
        height: auto !important;
    }

    .page-resources-may88-official-link__link-cards,
    .page-resources-may88-official-link__game-cards,
    .page-resources-may88-official-link__download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-may88-official-link__card {
        padding: 20px;
    }

    .page-resources-may88-official-link__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-resources-may88-official-link__faq-answer {
        font-size: 0.95em;
        padding: 15px 20px;
    }

    .page-resources-may88-official-link__hero-section,
    .page-resources-may88-official-link__introduction-section,
    .page-resources-may88-official-link__guide-section,
    .page-resources-may88-official-link__registration-guide,
    .page-resources-may88-official-link__login-tips,
    .page-resources-may88-official-link__app-download,
    .page-resources-may88-official-link__games-overview,
    .page-resources-may88-official-link__promotions-section,
    .page-resources-may88-official-link__faq-section,
    .page-resources-may88-official-link__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

.page-resources-may88-official-link img[style*="filter"],
.page-resources-may88-official-link img[style*="-webkit-filter"] {
    filter: none !important;
    -webkit-filter: none !important;
}

.page-resources-may88-official-link__faq-item[open] .page-resources-may88-official-link__faq-toggle {
    content: '−';
}

.page-resources-may88-official-link__faq-item:not([open]) .page-resources-may88-official-link__faq-toggle {
    content: '+';
}