/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Ensure body background is dark */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-resources__text-contrast-fix {
    color: #333333;
}

.page-resources__heading-h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00;
    font-weight: bold;
}

.page-resources__heading-h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #FFFF00;
    font-weight: bold;
}

.page-resources__heading-h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFFF00;
    font-weight: bold;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__light-bg .page-resources__paragraph, 
.page-resources__text-contrast-fix .page-resources__paragraph {
    color: #333333;
}

.page-resources__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-resources__btn-primary, 
.page-resources__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;
    margin: 10px;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e02020;
    color: #ffffff;
}

.page-resources__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
}

/* Hero Section */
.page-resources__hero-section {
    padding: 120px 0 80px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-image: url('[GALLERY:hero_main:1920x1080:đăng ký nhà cái,sòng bạc trực tuyến,ưu đãi,nền tảng cá cược]');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Video Section */
.page-resources__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-resources__video-wrapper {
    max-width: 960px;
    margin: 0 auto 30px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Image and Text Layout */
.page-resources__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.page-resources__image-text-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources__image-content {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-resources__text-content {
    flex: 1;
    max-width: 50%;
}

.page-resources__text-content .page-resources__paragraph {
    margin-bottom: 15px;
}

/* Lists */
.page-resources__numbered-list, 
.page-resources__bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 900px;
    text-align: left;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    color: #ffffff;
}

.page-resources__light-bg .page-resources__list-item, 
.page-resources__text-contrast-fix .page-resources__list-item {
    background-color: #f9f9f9;
    color: #333333;
    border-left-color: #017439;
}

.page-resources__list-item .page-resources__heading-h3 {
    color: #FFFF00;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources__light-bg .page-resources__list-item .page-resources__heading-h3, 
.page-resources__text-contrast-fix .page-resources__list-item .page-resources__heading-h3 {
    color: #017439;
}

.page-resources__list-item .page-resources__paragraph {
    margin-bottom: 0;
}

/* Grid Layout for Cards */
.page-resources__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-resources__light-bg .page-resources__card {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-resources__card-link {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__light-bg .page-resources__card-link {
    color: #017439;
}

.page-resources__card-link:hover {
    text-decoration: underline;
    color: #e02020;
}

.page-resources__card .page-resources__paragraph {
    font-size: 0.95em;
    color: #ffffff;
    margin-bottom: 0;
}

.page-resources__light-bg .page-resources__card .page-resources__paragraph {
    color: #333333;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #017439;
    color: #FFFF00;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources__faq-item summary::marker {
    display: none;
}

.page-resources__faq-item[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.page-resources__faq-answer {
    padding: 20px;
    text-align: left;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #eee;
}

.page-resources__faq-answer .page-resources__paragraph {
    color: #333333;
    margin-bottom: 0;
}

/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-resources__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__heading-h1 {
        font-size: 2.5em;
    }
    .page-resources__heading-h2 {
        font-size: 2em;
    }
    .page-resources__image-text-layout {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources__image-content,
    .page-resources__text-content {
        max-width: 100%;
    }
    .page-resources__image-text-layout--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: var(--header-offset, 120px) 0 60px !important;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__heading-h1 {
        font-size: 2em;
    }
    .page-resources__heading-h2 {
        font-size: 1.8em;
    }
    .page-resources__heading-h3 {
        font-size: 1.4em;
    }
    .page-resources__paragraph {
        font-size: 1em;
    }
    .page-resources__intro-text {
        font-size: 1.1em;
    }

    /* Images responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }
    .page-resources__image-content,
    .page-resources__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
        height: auto !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    /* Videos responsive */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources 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;
        margin: 10px 0 !important; /* Adjust margin for stacking */
    }
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-resources__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-resources__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 15px;
    }
}