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

:root {
    --xvip-gold: #FFD700;
    --xvip-dark: #1A1A1A;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --spacing-sm: 15px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
}

.page-resources-xvip-platform-advantages {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff; /* Default body background is white */
}

.page-resources-xvip-platform-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.page-resources-xvip-platform-advantages__section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.page-resources-xvip-platform-advantages__security-fairness-section,
.page-resources-xvip-platform-advantages__promotions-section,
.page-resources-xvip-platform-advantages__responsibility-section {
    background-color: #ffffff;
    color: var(--text-dark);
}

.page-resources-xvip-platform-advantages__game-library-section,
.page-resources-xvip-platform-advantages__user-experience-section,
.page-resources-xvip-platform-advantages__faq-section {
    background-color: var(--xvip-dark);
    color: var(--text-light);
}

.page-resources-xvip-platform-advantages__section-title {
    font-size: 2.5em;
    color: var(--xvip-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.page-resources-xvip-platform-advantages__game-library-section .page-resources-xvip-platform-advantages__section-title,
.page-resources-xvip-platform-advantages__user-experience-section .page-resources-xvip-platform-advantages__section-title,
.page-resources-xvip-platform-advantages__faq-section .page-resources-xvip-platform-advantages__section-title {
    color: var(--xvip-gold);
}

.page-resources-xvip-platform-advantages__section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-xvip-platform-advantages__game-library-section .page-resources-xvip-platform-advantages__section-description,
.page-resources-xvip-platform-advantages__user-experience-section .page-resources-xvip-platform-advantages__section-description,
.page-resources-xvip-platform-advantages__faq-section .page-resources-xvip-platform-advantages__section-description {
    color: var(--text-light);
}

/* Hero Section */
.page-resources-xvip-platform-advantages__hero-section {
    background-color: var(--xvip-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
    position: relative;
    overflow: hidden;
}

.page-resources-xvip-platform-advantages__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    text-align: left;
    gap: var(--spacing-md);
}

.page-resources-xvip-platform-advantages__hero-content {
    flex: 1;
    min-width: 400px;
}

.page-resources-xvip-platform-advantages__hero-title {
    font-size: 3.5em;
    color: var(--xvip-gold);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-weight: bold;
}

.page-resources-xvip-platform-advantages__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.page-resources-xvip-platform-advantages__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 500px;
}

.page-resources-xvip-platform-advantages__hero-image {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-resources-xvip-platform-advantages__hero-cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: flex-start;
}

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

.page-resources-xvip-platform-advantages__btn-primary {
    background-color: var(--xvip-gold);
    color: var(--xvip-dark);
    border: 2px solid var(--xvip-gold);
}

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

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

.page-resources-xvip-platform-advantages__btn-secondary:hover {
    background-color: var(--xvip-gold);
    color: var(--xvip-dark);
}

.page-resources-xvip-platform-advantages__btn-dark {
    color: var(--xvip-dark) !important;
}

.page-resources-xvip-platform-advantages__btn-dark-border {
    border-color: var(--xvip-dark) !important;
    color: var(--xvip-dark) !important;
}

.page-resources-xvip-platform-advantages__btn-dark-border:hover {
    background-color: var(--xvip-dark) !important;
    color: var(--xvip-gold) !important;
}

/* Grid Layout for Cards */
.page-resources-xvip-platform-advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.page-resources-xvip-platform-advantages__card {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-xvip-platform-advantages__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-xvip-platform-advantages__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.page-resources-xvip-platform-advantages__card-title {
    font-size: 1.5em;
    color: var(--xvip-dark);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-xvip-platform-advantages__card-text {
    font-size: 0.95em;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
}

.page-resources-xvip-platform-advantages__dark-bg-card {
    background-color: #2a2a2a;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-xvip-platform-advantages__dark-bg-card .page-resources-xvip-platform-advantages__card-title {
    color: var(--xvip-gold);
}

.page-resources-xvip-platform-advantages__dark-bg-card .page-resources-xvip-platform-advantages__card-text {
    color: var(--text-light);
}

.page-resources-xvip-platform-advantages__cta-center {
    margin-top: var(--spacing-md);
    text-align: center;
}

.page-resources-xvip-platform-advantages__list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) auto;
    max-width: 900px;
    text-align: left;
}

.page-resources-xvip-platform-advantages__list-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: var(--spacing-sm);
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-resources-xvip-platform-advantages__list-item:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.page-resources-xvip-platform-advantages__faq-list {
    max-width: 900px;
    margin: var(--spacing-md) auto;
    text-align: left;
}

.page-resources-xvip-platform-advantages__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.page-resources-xvip-platform-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: #3a3a3a;
    cursor: pointer;
    border-bottom: 1px solid #4a4a4a;
}

.page-resources-xvip-platform-advantages__faq-question:hover {
    background-color: #4a4a4a;
}

.page-resources-xvip-platform-advantages__faq-title {
    font-size: 1.2em;
    color: var(--text-light);
    margin: 0;
}

.page-resources-xvip-platform-advantages__faq-toggle {
    font-size: 1.5em;
    color: var(--xvip-gold);
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.page-resources-xvip-platform-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--spacing-md);
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    font-size: 0.95em;
}

.page-resources-xvip-platform-advantages__faq-item.active .page-resources-xvip-platform-advantages__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: var(--spacing-sm) var(--spacing-md);
}

.page-resources-xvip-platform-advantages__faq-answer p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Final CTA Section */
.page-resources-xvip-platform-advantages__cta-final {
    background-color: var(--xvip-gold);
    color: var(--xvip-dark);
    padding: var(--spacing-lg) 0;
}

.page-resources-xvip-platform-advantages__cta-final .page-resources-xvip-platform-advantages__section-title,
.page-resources-xvip-platform-advantages__cta-final .page-resources-xvip-platform-advantages__section-description {
    color: var(--xvip-dark);
}

.page-resources-xvip-platform-advantages__cta-final-content {
    max-width: 900px;
}

.page-resources-xvip-platform-advantages__cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-xvip-platform-advantages__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-resources-xvip-platform-advantages__hero-content {
        min-width: unset;
    }

    .page-resources-xvip-platform-advantages__hero-image-wrapper {
        justify-content: center;
        min-width: unset;
        margin-top: var(--spacing-md);
    }

    .page-resources-xvip-platform-advantages__hero-cta-buttons {
        justify-content: center;
    }

    .page-resources-xvip-platform-advantages__hero-title {
        font-size: 2.8em;
    }

    .page-resources-xvip-platform-advantages__section-title {
        font-size: 2em;
    }
}

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

    .page-resources-xvip-platform-advantages__section {
        padding: var(--spacing-md) 0;
    }

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

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

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

    .page-resources-xvip-platform-advantages__grid {
        grid-template-columns: 1fr;
    }

    .page-resources-xvip-platform-advantages__card {
        padding: var(--spacing-sm);
    }

    .page-resources-xvip-platform-advantages__hero-cta-buttons,
    .page-resources-xvip-platform-advantages__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 var(--spacing-sm);
    }

    .page-resources-xvip-platform-advantages__btn-primary,
    .page-resources-xvip-platform-advantages__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-xvip-platform-advantages__section,
    .page-resources-xvip-platform-advantages__card,
    .page-resources-xvip-platform-advantages__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: var(--spacing-sm);
      padding-right: var(--spacing-sm);
    }
    
    .page-resources-xvip-platform-advantages img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-resources-xvip-platform-advantages video,
    .page-resources-xvip-platform-advantages__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-resources-xvip-platform-advantages__video-section,
    .page-resources-xvip-platform-advantages__video-container,
    .page-resources-xvip-platform-advantages__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: var(--spacing-sm);
      padding-right: var(--spacing-sm);
      overflow: hidden !important;
    }

    .page-resources-xvip-platform-advantages__list-item {
        padding: 10px var(--spacing-sm);
    }

    .page-resources-xvip-platform-advantages__faq-question {
        padding: 10px var(--spacing-sm);
    }

    .page-resources-xvip-platform-advantages__faq-answer {
        padding: 10px var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .page-resources-xvip-platform-advantages__hero-title {
        font-size: 1.8em;
    }

    .page-resources-xvip-platform-advantages__section-title {
        font-size: 1.6em;
    }

    .page-resources-xvip-platform-advantages__hero-cta-buttons {
        flex-direction: column;
    }
}