.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #ffffff; /* Default body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #a0d8f0); /* Light blue gradient */
    color: #ffffff;
}

.page-resources__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-resources__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-resources__hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 0;
}

.page-resources__overview-section {
    background-color: #f8f8f8;
}

.page-resources__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-title--white {
    color: #ffffff;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #555555;
}

.page-resources__section-description--white {
    color: #f0f0f0;
}

.page-resources__highlight {
    font-weight: bold;
    color: #26A9E0; /* Brand color for highlights */
}

.page-resources__dark-bg .page-resources__highlight {
    color: #FFFFFF; /* White for highlights on dark background */
}

/* Categories Section */
.page-resources__categories-section {
    background-color: #ffffff;
}

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

.page-resources__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    color: #26A9E0;
    font-weight: bold;
}

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

.page-resources__card-title a:hover {
    color: #1a7ea5; /* Slightly darker primary color */
}

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    flex-grow: 1; /* Make text take available space */
}

.page-resources__btn-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin: 20px;
    padding: 10px 0;
    border-bottom: 2px solid #26A9E0;
    transition: all 0.3s ease;
}

.page-resources__btn-link:hover {
    color: #1a7ea5;
    border-color: #1a7ea5;
}

.page-resources__other-resources {
    background-color: #f0f8ff; /* Lightest blue background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources__resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.page-resources__resource-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555555;
}

.page-resources__resource-list li a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__resource-list li a:hover {
    color: #1a7ea5;
    text-decoration: underline;
}

/* Why Explore Section */
.page-resources__why-explore-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

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

.page-resources__reason-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__reason-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__reason-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #f8f8f8;
}

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

/* FAQ容器样式 */
.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources__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.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #555555;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

/* Vấn đề tiêu đề kiểu dáng */
.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
    color: #333333;
}

/* Chuyển đổi biểu tượng */
.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #26A9E0; /* Brand color when active */
    transform: rotate(45deg); /* Plus to X for close */
}

/* CTA Section */
.page-resources__cta-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-container {
    max-width: 900px;
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-resources__btn-primary:hover {
    background: #d46e06;
    border-color: #d46e06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background: #f0f8ff; /* Lightest blue */
    color: #1a7ea5;
    border-color: #1a7ea5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources__btn-primary--white-text {
    color: #ffffff;
}

.page-resources__btn-secondary--white-text {
    color: #26A9E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__intro-text {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__hero-section {
        padding: 60px 0;
    }

    .page-resources__hero-container {
        gap: 30px;
    }

    .page-resources__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-resources__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-resources__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-resources__hero-image-wrapper {
        margin-top: 30px;
    }

    .page-resources__hero-image {
        border-radius: 8px;
    }

    .page-resources__section {
        padding: 40px 0;
    }

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

    .page-resources__section-description {
        font-size: 1em;
    }

    .page-resources__card {
        margin: 0 10px; /* Add some side margin for cards */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .page-resources__card-image {
        height: 180px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
        margin: 15px 15px 8px 15px;
    }

    .page-resources__card-text {
        padding: 0 15px;
    }

    .page-resources__btn-link {
        margin: 15px;
        padding: 8px 0;
    }

    .page-resources__other-resources {
        padding: 30px;
        margin: 0 15px;
    }

    .page-resources__sub-title {
        font-size: 1.6em;
    }

    .page-resources__resource-list li {
        font-size: 1em;
    }

    .page-resources__reason-grid {
        gap: 20px;
    }

    .page-resources__reason-item {
        padding: 25px;
    }

    .page-resources__reason-title {
        font-size: 1.2em;
    }

    .page-resources__cta-bottom {
        margin-top: 40px;
    }

    /* FAQ Mobile Styles */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

    /* CTA Section Mobile */
    .page-resources__cta-section {
        padding: 60px 0;
    }

    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-group,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure buttons are responsive and don't overflow */
    .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;
    }
}