/* style/resources-secure-gaming-x88-pro.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E0B14A;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-resources-secure-gaming-x88-pro {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark); /* Ensure consistency with body background */
    padding-top: 0; /* Handled by specific sections */
}

/* --- Video Section --- */
.page-resources-secure-gaming-x88-pro__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Desktop: Adjust for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #051230);
}

.page-resources-secure-gaming-x88-pro__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-secure-gaming-x88-pro__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-secure-gaming-x88-pro__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-secure-gaming-x88-pro__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-secure-gaming-x88-pro__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none; /* Allow click on parent <a> */
}

.page-resources-secure-gaming-x88-pro__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-resources-secure-gaming-x88-pro__video-link:hover .page-resources-secure-gaming-x88-pro__video-overlay {
    opacity: 1;
}

.page-resources-secure-gaming-x88-pro__video-click-hint {
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    background: rgba(224, 177, 74, 0.8);
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-secure-gaming-x88-pro__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-resources-secure-gaming-x88-pro__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-resources-secure-gaming-x88-pro__play-now-button:hover {
    background: #f0c56e;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.page-resources-secure-gaming-x88-pro__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Title Section (Module 1) --- */
.page-resources-secure-gaming-x88-pro__title-section {
    background: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--secondary-color);
}

.page-resources-secure-gaming-x88-pro__title-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-resources-secure-gaming-x88-pro__main-title {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.page-resources-secure-gaming-x88-pro__title-description {
    font-size: 18px;
    color: #c0c0c0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-secure-gaming-x88-pro__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-secure-gaming-x88-pro__cta-button {
    display: inline-block;
    padding: 16px 35px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.page-resources-secure-gaming-x88-pro__cta-button:nth-child(2) {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.page-resources-secure-gaming-x88-pro__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-secure-gaming-x88-pro__cta-button:nth-child(1):hover {
    background: #f0c56e;
}

.page-resources-secure-gaming-x88-pro__cta-button:nth-child(2):hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* --- General Content Area --- */
.page-resources-secure-gaming-x88-pro__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-light); /* Dark background -> Light text */
}

.page-resources-secure-gaming-x88-pro__dark-section {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-resources-secure-gaming-x88-pro__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-resources-secure-gaming-x88-pro__section-title {
    font-size: 38px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-secure-gaming-x88-pro__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-resources-secure-gaming-x88-pro__sub-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.page-resources-secure-gaming-x88-pro__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #e0e0e0;
}

.page-resources-secure-gaming-x88-pro__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-resources-secure-gaming-x88-pro__ordered-list {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-resources-secure-gaming-x88-pro__list-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    font-size: 16px;
    color: #f0f0f0;
}

.page-resources-secure-gaming-x88-pro__list-item strong {
    color: var(--secondary-color);
}

.page-resources-secure-gaming-x88-pro__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-secure-gaming-x88-pro__image--large {
    width: 80%;
}

.page-resources-secure-gaming-x88-pro__cta-buttons--center {
    margin-top: 40px;
    text-align: center;
}

/* --- FAQ Section (Module 2) --- */
.page-resources-secure-gaming-x88-pro__faq-section {
    background: #0d0d0d;
    padding: 60px 20px;
    color: var(--text-light);
}

.page-resources-secure-gaming-x88-pro__faq-list {
    margin-top: 40px;
}

.page-resources-secure-gaming-x88-pro__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources-secure-gaming-x88-pro__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-secure-gaming-x88-pro__faq-question:hover {
    background: #2a2a2a;
    border-color: var(--secondary-color);
}

.page-resources-secure-gaming-x88-pro__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-resources-secure-gaming-x88-pro__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-resources-secure-gaming-x88-pro__faq-item.active .page-resources-secure-gaming-x88-pro__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg);
}

.page-resources-secure-gaming-x88-pro__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
    color: #e0e0e0;
    background: #1a1a1a;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-resources-secure-gaming-x88-pro__faq-item.active .page-resources-secure-gaming-x88-pro__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-top: none;
}

/* --- Brand Section (Module 3) --- */
.page-resources-secure-gaming-x88-pro__brand-section {
    background: var(--primary-color);
    padding: 60px 20px;
    color: var(--text-light);
}

.page-resources-secure-gaming-x88-pro__brand-title {
    font-size: 38px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-secure-gaming-x88-pro__brand-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-resources-secure-gaming-x88-pro__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-secure-gaming-x88-pro__brand-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-secure-gaming-x88-pro__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-secure-gaming-x88-pro__brand-item-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(224, 177, 74, 0.5);
    padding-bottom: 10px;
}

.page-resources-secure-gaming-x88-pro__brand-item p {
    font-size: 16px;
    color: #e0e0e0;
}

/* --- Blog Section (Module 4) --- */
.page-resources-secure-gaming-x88-pro__blog-section {
    background: #0d0d0d;
    padding: 60px 20px;
    color: var(--text-light);
}

.page-resources-secure-gaming-x88-pro__blog-title {
    font-size: 38px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-secure-gaming-x88-pro__blog-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-resources-secure-gaming-x88-pro__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-secure-gaming-x88-pro__blog-item {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-secure-gaming-x88-pro__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-secure-gaming-x88-pro__blog-link {
    text-decoration: none;
    display: block;
    color: inherit;
    padding-bottom: 20px; /* Add padding for content */
}

.page-resources-secure-gaming-x88-pro__blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #333333;
    margin-bottom: 15px;
}

.page-resources-secure-gaming-x88-pro__blog-item-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 0 20px 10px;
    line-height: 1.3;
}

.page-resources-secure-gaming-x88-pro__blog-item-excerpt {
    font-size: 15px;
    color: #c0c0c0;
    margin: 0 20px 15px;
}

.page-resources-secure-gaming-x88-pro__blog-item-date {
    font-size: 14px;
    color: #888888;
    margin: 0 20px;
    display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources-secure-gaming-x88-pro__main-title {
        font-size: 40px;
    }
    .page-resources-secure-gaming-x88-pro__section-title,
    .page-resources-secure-gaming-x88-pro__brand-title,
    .page-resources-secure-gaming-x88-pro__blog-title {
        font-size: 32px;
    }
    .page-resources-secure-gaming-x88-pro__sub-title {
        font-size: 24px;
    }
    .page-resources-secure-gaming-x88-pro__text-block,
    .page-resources-secure-gaming-x88-pro__list-item,
    .page-resources-secure-gaming-x88-pro__brand-item p {
        font-size: 16px;
    }
    .page-resources-secure-gaming-x88-pro__play-now-button {
        padding: 15px 40px;
        font-size: 18px;
    }
    .page-resources-secure-gaming-x88-pro__cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-resources-secure-gaming-x88-pro {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-secure-gaming-x88-pro__video-section {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-secure-gaming-x88-pro__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-resources-secure-gaming-x88-pro__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-secure-gaming-x88-pro__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }

    .page-resources-secure-gaming-x88-pro__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain; /* Use contain to ensure video is fully visible */
    }

    .page-resources-secure-gaming-x88-pro__video-click-hint {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }

    .page-resources-secure-gaming-x88-pro__video-cta {
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-resources-secure-gaming-x88-pro__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-secure-gaming-x88-pro__title-section {
        padding: 60px 15px;
    }

    .page-resources-secure-gaming-x88-pro__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources-secure-gaming-x88-pro__title-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-resources-secure-gaming-x88-pro__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-resources-secure-gaming-x88-pro__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 25px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-secure-gaming-x88-pro__content-area,
    .page-resources-secure-gaming-x88-pro__faq-section,
    .page-resources-secure-gaming-x88-pro__brand-section,
    .page-resources-secure-gaming-x88-pro__blog-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-secure-gaming-x88-pro__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-secure-gaming-x88-pro__section-title,
    .page-resources-secure-gaming-x88-pro__brand-title,
    .page-resources-secure-gaming-x88-pro__blog-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-resources-secure-gaming-x88-pro__sub-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-resources-secure-gaming-x88-pro__text-block,
    .page-resources-secure-gaming-x88-pro__list-item {
        font-size: 15px;
    }

    .page-resources-secure-gaming-x88-pro__image {
        margin: 20px auto;
        width: 100%;
    }
    
    .page-resources-secure-gaming-x88-pro__image--large {
        width: 100%;
    }

    .page-resources-secure-gaming-x88-pro__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .page-resources-secure-gaming-x88-pro__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-resources-secure-gaming-x88-pro__faq-toggle {
        margin-left: 10px;
        width: 26px;
        height: 26px;
        font-size: 22px;
    }

    .page-resources-secure-gaming-x88-pro__faq-answer {
        padding: 0 20px;
    }

    .page-resources-secure-gaming-x88-pro__faq-item.active .page-resources-secure-gaming-x88-pro__faq-answer {
        padding: 15px 20px !important;
    }

    .page-resources-secure-gaming-x88-pro__brand-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-secure-gaming-x88-pro__brand-item-title {
        font-size: 20px;
    }

    .page-resources-secure-gaming-x88-pro__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-secure-gaming-x88-pro__blog-thumbnail {
        height: 180px;
    }

    .page-resources-secure-gaming-x88-pro__blog-item-title {
        font-size: 18px;
    }

    .page-resources-secure-gaming-x88-pro__blog-item-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-resources-secure-gaming-x88-pro__main-title {
        font-size: 28px;
    }
    .page-resources-secure-gaming-x88-pro__section-title,
    .page-resources-secure-gaming-x88-pro__brand-title,
    .page-resources-secure-gaming-x88-pro__blog-title {
        font-size: 24px;
    }
    .page-resources-secure-gaming-x88-pro__play-now-button {
        font-size: 15px !important;
        padding: 12px 25px !important;
    }
    .page-resources-secure-gaming-x88-pro__cta-button {
        font-size: 15px !important;
        padding: 12px 25px !important;
    }
    .page-resources-secure-gaming-x88-pro__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}