/* style/resources.css */

/* Base Styles */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Body background from shared.css */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-resources__text-block, .page-resources p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-resources__text-contrast-fix {
    color: #333333; /* Dark text for light backgrounds */
}

.page-resources__keyword {
    font-weight: bold;
    color: #26A9E0;
}

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero_main:1920x1080:w88,resources,hero,online_betting,vietnam]') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    text-align: left;
    display: inline;
}

.page-resources__btn-link:hover {
    text-decoration: underline;
}

/* About Section */
.page-resources__about-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-resources__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 8px;
    object-fit: cover;
}

/* Content Section - Resource Grid */
.page-resources__content-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #333333;
    transition: transform 0.3s ease;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-resources__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    padding: 20px 20px 10px;
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-description {
    padding: 0 20px 10px;
    font-size: 1em;
    flex-grow: 1;
    color: #555555;
}

.page-resources__card-list {
    list-style: disc;
    padding: 0 20px 10px 40px;
    font-size: 0.95em;
    color: #555555;
}

.page-resources__card-list li {
    margin-bottom: 5px;
}

.page-resources__card .page-resources__btn-link {
    margin: 10px 20px 20px;
    align-self: flex-start;
    color: #26A9E0;
}

/* Video Section */
.page-resources__video-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 8px;
}

.page-resources__video-wrapper .page-resources__video,
.page-resources__video-wrapper .page-resources__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__faq-list {
    margin-top: 40px;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf6fd;
    user-select: none;
    list-style: none;
}

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

.page-resources__faq-question:hover {
    background-color: #dbeeff;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-resources__faq-answer p {
    color: #555555;
}

/* Benefits Section */
.page-resources__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-resources__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__benefit-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__benefit-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__benefit-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources__benefit-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

    .page-resources__hero-description {
        font-size: 1.2em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 100px 15px 60px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .page-resources__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-resources__hero-cta-buttons a {
        width: 100%;
        max-width: 300px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources__text-block, .page-resources p {
        font-size: 1em;
    }

    .page-resources__about-section,
    .page-resources__content-section,
    .page-resources__video-section,
    .page-resources__faq-section,
    .page-resources__benefits-section,
    .page-resources__cta-section {
        padding: 60px 0;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__resource-grid,
    .page-resources__benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-resources__card-title {
        font-size: 1.4em;
    }

    .page-resources__card-image {
        height: 200px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources__faq-answer {
        padding: 15px;
    }

    .page-resources__benefit-title {
        font-size: 1.3em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-resources__cta-buttons a {
        width: 100%;
        max-width: 300px;
    }

    /* Mobile responsive image adaptation */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile responsive video adaptation */
    .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;
    }
    
    /* Mobile responsive button adaptation */
    .page-resources__cta-button,
    .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;
    }
    
    .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-wrap: wrap !important;
        gap: 10px;
    }

    .page-resources__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Ensure containers with images/videos/buttons also adapt */
    .page-resources__section, .page-resources__card, .page-resources__container, .page-resources__hero-section, .page-resources__about-section, .page-resources__content-section, .page-resources__video-section, .page-resources__faq-section, .page-resources__benefits-section, .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Color Contrast Fixes for specific elements on light background */
.page-resources__light-bg .page-resources__text-block, 
.page-resources__light-bg p, 
.page-resources__card-description, 
.page-resources__card-list li, 
.page-resources__faq-answer p {
    color: #555555;
}

/* Dark background elements */
.page-resources__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body background for subtle contrast */
    color: #f0f0f0;
}

.page-resources__dark-bg .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__dark-bg .page-resources__text-block a, .page-resources__dark-bg p a {
    color: #26A9E0;
}

.page-resources__dark-bg .page-resources__text-block a:hover, .page-resources__dark-bg p a:hover {
    text-decoration: underline;
}

/* Light background elements */
.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__light-bg .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__light-bg .page-resources__text-block a, .page-resources__light-bg p a {
    color: #26A9E0;
}

.page-resources__light-bg .page-resources__text-block a:hover, .page-resources__light-bg p a:hover {
    text-decoration: underline;
}