/* style/resources.css */

/* Biến CSS cho màu sắc */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-background: #0a0a0a;
    --light-text: #ffffff;
    --dark-text: #333333;
    --login-button-color: #EA7C07;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text); /* Body background is dark, so text is light */
    background-color: var(--dark-background);
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background: linear-gradient(135deg, #0a0a0a 0%, var(--primary-color) 100%);
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-resources__hero-content {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-cta {
    display: flex;
    gap: 15px;
}

.page-resources__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-resources__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text);
}

.page-resources__dark-bg {
    background-color: var(--dark-background);
    color: var(--light-text);
}

.page-resources__introduction-section .page-resources__text-block {
    padding: 60px 20px;
}

.page-resources__introduction-section .page-resources__section-title {
    color: var(--dark-text);
}

.page-resources__introduction-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--dark-text);
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-resources__btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

/* Resource Grid */
.page-resources__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: var(--light-text);
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-resources__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-resources__card-title a:hover {
    color: var(--primary-color);
}

.page-resources__card-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* FAQ Section */
.page-resources__faq-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-description {
    color: var(--dark-text);
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--dark-text);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

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

.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: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--dark-text);
}

.page-resources__faq-cta {
    text-align: center;
    margin-top: 40px;
}

/* Video Section */
.page-resources__video-section .page-resources__container {
    text-align: center;
    padding: 60px 20px;
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    cursor: pointer;
}

.page-resources__video-caption {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

/* Contact Section */
.page-resources__contact-section .page-resources__section-title,
.page-resources__contact-section .page-resources__section-description {
    color: var(--dark-text);
}

.page-resources__contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--dark-text);
}

.page-resources__contact-info p {
    margin-bottom: 10px;
}

.page-resources__contact-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-background) 0%, var(--primary-color) 100%);
}

.page-resources__cta-section .page-resources__section-title,
.page-resources__cta-section .page-resources__section-description {
    color: var(--secondary-color);
}

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

.page-resources__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-section .page-resources__container {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__hero-content {
        padding-right: 0;
        padding-bottom: 40px;
    }
    .page-resources__hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description,
    .page-resources__section-description,
    .page-resources p,
    .page-resources li {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__hero-section {
        min-height: auto;
        padding-bottom: 40px;
    }

    .page-resources__hero-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

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

    /* Mobile responsive for images, videos, buttons, and containers */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no overflow for video/image containers */
    }

    .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;
        margin-bottom: 10px; /* Add spacing for stacked buttons */
    }

    .page-resources__hero-cta,
    .page-resources__card-buttons,
    .page-resources__contact-cta,
    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
    }
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px 15px 20px;
    }
}