/* style/resources-w88-platform-advantages.css */

/* Base styles and variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a; /* Inherited from shared.css body */
    --login-button-color: #EA7C07;
}

.page-resources-w88-platform-advantages {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Text color for dark body background */
    background-color: var(--bg-dark);
}

.page-resources-w88-platform-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-w88-platform-advantages__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-w88-platform-advantages__section-subtitle {
    font-size: 1.2em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-w88-platform-advantages__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-w88-platform-advantages__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Hero Section */
.page-resources-w88-platform-advantages__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a7fb8 100%);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-w88-platform-advantages__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

.page-resources-w88-platform-advantages__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-w88-platform-advantages__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-resources-w88-platform-advantages__btn-primary,
.page-resources-w88-platform-advantages__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-w88-platform-advantages__btn-primary {
    background-color: var(--login-button-color); /* Custom color for login/register */
    color: var(--secondary-color);
    border: 2px solid var(--login-button-color);
}

.page-resources-w88-platform-advantages__btn-primary:hover {
    background-color: #d16b00;
    border-color: #d16b00;
}

.page-resources-w88-platform-advantages__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-w88-platform-advantages__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources-w88-platform-advantages__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Section General */
.page-resources-w88-platform-advantages__introduction-section,
.page-resources-w88-platform-advantages__benefits-section,
.page-resources-w88-platform-advantages__products-section,
.page-resources-w88-platform-advantages__promotions-section,
.page-resources-w88-platform-advantages__security-support-section,
.page-resources-w88-platform-advantages__registration-guide-section,
.page-resources-w88-platform-advantages__faq-section,
.page-resources-w88-platform-advantages__cta-section {
    padding: 80px 0;
}

.page-resources-w88-platform-advantages__introduction-section,
.page-resources-w88-platform-advantages__products-section,
.page-resources-w88-platform-advantages__security-support-section,
.page-resources-w88-platform-advantages__faq-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources-w88-platform-advantages__introduction-section .page-resources-w88-platform-advantages__section-title,
.page-resources-w88-platform-advantages__products-section .page-resources-w88-platform-advantages__section-title,
.page-resources-w88-platform-advantages__security-support-section .page-resources-w88-platform-advantages__section-title,
.page-resources-w88-platform-advantages__faq-section .page-resources-w88-platform-advantages__section-title {
    color: var(--secondary-color);
}

.page-resources-w88-platform-advantages__introduction-section p,
.page-resources-w88-platform-advantages__security-support-section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.page-resources-w88-platform-advantages__introduction-section a,
.page-resources-w88-platform-advantages__security-support-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources-w88-platform-advantages__introduction-section a:hover,
.page-resources-w88-platform-advantages__security-support-section a:hover {
    color: #1a7fb8;
}

.page-resources-w88-platform-advantages__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-resources-w88-platform-advantages__text-block {
    flex: 1;
    min-width: 300px;
}

.page-resources-w88-platform-advantages__image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources-w88-platform-advantages__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

/* Benefits Section */
.page-resources-w88-platform-advantages__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-w88-platform-advantages__benefit-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-w88-platform-advantages__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-w88-platform-advantages__benefit-card .page-resources-w88-platform-advantages__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-w88-platform-advantages__benefit-card p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-resources-w88-platform-advantages__benefit-card a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Products Section */
.page-resources-w88-platform-advantages__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-w88-platform-advantages__product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-resources-w88-platform-advantages__product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-w88-platform-advantages__product-image {
    width: 100%;
    height: 250px; /* Fixed height for product images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-w88-platform-advantages__product-card .page-resources-w88-platform-advantages__card-title {
    font-size: 1.3em;
    padding: 15px;
    margin-top: 10px;
    color: var(--secondary-color);
}

.page-resources-w88-platform-advantages__product-card .page-resources-w88-platform-advantages__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-resources-w88-platform-advantages__product-card .page-resources-w88-platform-advantages__card-title a:hover {
    color: var(--primary-color);
}

.page-resources-w88-platform-advantages__product-card p {
    font-size: 0.95em;
    padding: 0 15px 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* Promotions Section */
.page-resources-w88-platform-advantages__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-w88-platform-advantages__promotion-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-w88-platform-advantages__promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-w88-platform-advantages__promotion-card .page-resources-w88-platform-advantages__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-w88-platform-advantages__promotion-card p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-resources-w88-platform-advantages__promotion-card a {
    margin-top: 10px;
    display: inline-block;
}

/* Registration Guide Section */
.page-resources-w88-platform-advantages__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-w88-platform-advantages__step-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding-top: 60px;
}

.page-resources-w88-platform-advantages__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-w88-platform-advantages__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--login-button-color);
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--secondary-color);
}

.page-resources-w88-platform-advantages__step-card .page-resources-w88-platform-advantages__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-w88-platform-advantages__step-card p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-resources-w88-platform-advantages__step-card a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-resources-w88-platform-advantages__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-resources-w88-platform-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-resources-w88-platform-advantages__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-w88-platform-advantages__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-w88-platform-advantages__faq-item.active .page-resources-w88-platform-advantages__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-w88-platform-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.75);
}

.page-resources-w88-platform-advantages__faq-item.active .page-resources-w88-platform-advantages__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px 20px;
}

.page-resources-w88-platform-advantages__faq-answer p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.page-resources-w88-platform-advantages__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources-w88-platform-advantages__faq-answer a:hover {
    color: #1a7fb8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-resources-w88-platform-advantages {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-w88-platform-advantages__container {
        padding: 0 15px;
    }

    .page-resources-w88-platform-advantages__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-w88-platform-advantages__hero-title {
        font-size: 2.2em;
    }

    .page-resources-w88-platform-advantages__hero-description {
        font-size: 1em;
    }

    .page-resources-w88-platform-advantages__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-w88-platform-advantages__btn-primary,
    .page-resources-w88-platform-advantages__btn-secondary,
    .page-resources-w88-platform-advantages a[class*="button"],
    .page-resources-w88-platform-advantages a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-w88-platform-advantages__cta-buttons,
    .page-resources-w88-platform-advantages__button-group,
    .page-resources-w88-platform-advantages__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }

    .page-resources-w88-platform-advantages__section-title {
        font-size: 1.8em;
    }

    .page-resources-w88-platform-advantages__section-subtitle {
        font-size: 1em;
    }

    .page-resources-w88-platform-advantages__content-wrapper {
        flex-direction: column;
    }

    .page-resources-w88-platform-advantages__image-content,
    .page-resources-w88-platform-advantages img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-w88-platform-advantages__image-container,
    .page-resources-w88-platform-advantages__section,
    .page-resources-w88-platform-advantages__card,
    .page-resources-w88-platform-advantages__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-resources-w88-platform-advantages__product-image {
        height: auto;
    }

    .page-resources-w88-platform-advantages__faq-question {
        font-size: 1em;
    }

    .page-resources-w88-platform-advantages__faq-answer {
        padding: 0 15px;
    }

    .page-resources-w88-platform-advantages__faq-item.active .page-resources-w88-platform-advantages__faq-answer {
        padding: 10px 15px 15px;
    }
}

/* Ensure all content area images are at least 200px */
.page-resources-w88-platform-advantages img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for content images to ensure minimum size and no filter */
.page-resources-w88-platform-advantages__content-area img,
.page-resources-w88-platform-advantages__text-block img,
.page-resources-w88-platform-advantages__image-container img,
.page-resources-w88-platform-advantages__product-card img,
.page-resources-w88-platform-advantages__benefit-card img,
.page-resources-w88-platform-advantages__promotion-card img,
.page-resources-w88-platform-advantages__step-card img {
    filter: none; /* Absolutely no CSS filter to change image color */
}

/* Color contrast fixes for text on dark background */
.page-resources-w88-platform-advantages p,
.page-resources-w88-platform-advantages li {
    color: var(--text-light); /* Default text color for the main content area */
}

/* Override for elements with light background */
.page-resources-w88-platform-advantages__benefit-card p,
.page-resources-w88-platform-advantages__promotion-card p,
.page-resources-w88-platform-advantages__step-card p {
    color: var(--text-dark);
}

.page-resources-w88-platform-advantages__benefit-card .page-resources-w88-platform-advantages__card-title,
.page-resources-w88-platform-advantages__promotion-card .page-resources-w88-platform-advantages__card-title,
.page-resources-w88-platform-advantages__step-card .page-resources-w88-platform-advantages__card-title {
    color: var(--primary-color);
}

.page-resources-w88-platform-advantages__benefit-card a,
.page-resources-w88-platform-advantages__promotion-card a,
.page-resources-w88-platform-advantages__step-card a {
    color: var(--primary-color);
}

/* Ensure contrast for titles on dark background */
.page-resources-w88-platform-advantages__section-title,
.page-resources-w88-platform-advantages__section-subtitle,
.page-resources-w88-platform-advantages__hero-title,
.page-resources-w88-platform-advantages__hero-description {
    color: var(--secondary-color);
}

/* For product/promo cards with darkish background (rgba white) */
.page-resources-w88-platform-advantages__product-card p,
.page-resources-w88-platform-advantages__faq-answer p {
    color: rgba(255, 255, 255, 0.75);
}

.page-resources-w88-platform-advantages__product-card .page-resources-w88-platform-advantages__card-title a {
    color: var(--secondary-color);
}