/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Vàng kim */
    --secondary-color: #1E90FF; /* Xanh da trời (Dodger Blue) */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-1: #0d0d0d; /* Giả định từ shared.css */
    --bg-dark-2: #1a1a1a;
    --bg-light-1: #f8f8f8;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--bg-dark-1); /* Giả định body có nền tối */
}

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

/* Fixed navbar padding for main content */
.page-resources__hero-section {
    padding-top: 120px; /* Adjust based on actual header height */
}

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__hero-description,
.page-resources__cta-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary {
    background: var(--primary-color);
    color: var(--text-dark); /* Màu chữ tối trên nền vàng */
}

.page-resources__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-resources__btn-secondary:hover {
    background: #1a7ad9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__dark-section {
    background-color: var(--bg-dark-2);
    padding: 60px 0;
    color: var(--text-light);
}

.page-resources__intro-section {
    padding: 60px 0;
    background-color: var(--bg-dark-1);
    color: var(--text-light);
}

.page-resources__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-light);
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__brand-section {
    padding: 60px 0;
    background-color: var(--bg-dark-2);
}

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

.page-resources__brand-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-resources__brand-item-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__brand-item p {
    font-size: 16px;
    color: var(--text-light);
}

.page-resources__categories-section {
    padding: 60px 0;
    background-color: var(--bg-dark-1);
}

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

.page-resources__card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

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

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

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 15px 10px;
    color: var(--primary-color);
}

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

.page-resources__card-link:hover {
    color: var(--secondary-color);
}

.page-resources__card-description {
    font-size: 15px;
    margin: 0 15px 15px;
    flex-grow: 1;
    color: var(--text-light);
}

.page-resources__btn-link {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__btn-link:hover {
    background-color: #1a7ad9;
}

.page-resources__faq-section {
    padding: 60px 0;
    background-color: var(--bg-dark-2);
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Use rotation for '-' effect */
}

.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 20px;
    opacity: 0;
    color: var(--text-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-light);
}

.page-resources__blog-section {
    padding: 60px 0;
    background-color: var(--bg-dark-1);
}

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

.page-resources__blog-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-resources__blog-item-title {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 15px 10px;
    color: var(--primary-color);
    flex-grow: 1;
}

.page-resources__blog-item-excerpt {
    font-size: 15px;
    margin: 0 15px 10px;
    color: var(--text-light);
}

.page-resources__blog-item-date {
    font-size: 13px;
    color: #aaa;
    margin: 0 15px 15px;
}

.page-resources__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-dark); /* Chữ tối trên nền vàng */
}

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

.page-resources__cta-bottom-section .page-resources__cta-description {
    color: var(--text-dark);
}

.page-resources__cta-bottom-section .page-resources__cta-button {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-resources__cta-bottom-section .page-resources__cta-button:hover {
    background: #1a7ad9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: 100px !important; /* Mobile adjust */
    }
    .page-resources__main-title {
        font-size: 32px;
    }
    .page-resources__section-title {
        font-size: 26px;
    }
    .page-resources__hero-description,
    .page-resources__cta-description {
        font-size: 16px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__container {
        padding: 15px;
    }
    .page-resources__text-block p {
        font-size: 15px;
    }

    .page-resources__brand-item-title {
        font-size: 20px;
    }
    .page-resources__brand-item p {
        font-size: 15px;
    }

    .page-resources__card-title {
        font-size: 18px;
    }
    .page-resources__card-description,
    .page-resources__blog-item-excerpt {
        font-size: 14px;
    }
    .page-resources__btn-link {
        font-size: 13px;
        padding: 8px 15px;
    }

    .page-resources__faq-question h3 {
        font-size: 15px;
    }
    .page-resources__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }

    .page-resources__blog-item-title {
        font-size: 18px;
    }
    .page-resources__blog-item-date {
        font-size: 12px;
    }

    /* Ensure images are responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-full-width {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__intro-section,
    .page-resources__brand-section,
    .page-resources__categories-section,
    .page-resources__faq-section,
    .page-resources__blog-section,
    .page-resources__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0;
        margin-right: 0;
    }
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}