/* style/resources.css */
:root {
    --primary-color: #1a202c; /* Dark blue/grey */
    --secondary-color: #e53e3e; /* Red */
    --text-color-light: #f7fafc; /* Light text for dark backgrounds */
    --text-color-dark: #2d3748; /* Dark text for light backgrounds */
    --background-light: #ffffff;
    --background-dark: #1a202c;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --hover-bg: #edf2f7;
}

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

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

.page-resources .main-title,
.page-resources .section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources .section-title {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-resources .description,
.page-resources .section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.page-resources .introduction-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a475e 100%);
    padding: 80px 20px;
    color: var(--text-color-light);
    text-align: center;
}

.page-resources .introduction-section .main-title {
    color: var(--text-color-light);
    font-size: 3em;
    margin-bottom: 25px;
}

.page-resources .introduction-section .description {
    color: var(--text-color-light);
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.page-resources .cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources .cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: 2px solid var(--secondary-color);
}

.page-resources .cta-button.primary:hover {
    background-color: #cf2d2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .cta-button.secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-resources .cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .guides-section,
.page-resources .strategies-section,
.page-resources .promotions-section,
.page-resources .support-section,
.page-resources .faq-section,
.page-resources .latest-news-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources .guides-section {
    background-color: #f7fafc;
}

.page-resources .guide-cards,
.page-resources .promotion-items,
.page-resources .news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .card,
.page-resources .promotion-item,
.page-resources .news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-color-dark);
}

.page-resources .card:hover,
.page-resources .promotion-item:hover,
.page-resources .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources .card-image,
.page-resources .promotion-image,
.page-resources .news-image {
    width: 100%;
    height: 220px; /* Ensure images are large enough */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-resources .card-title,
.page-resources .promotion-title,
.page-resources .news-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: var(--primary-color);
}

.page-resources .card-title a,
.page-resources .promotion-title a,
.page-resources .news-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources .card-title a:hover,
.page-resources .promotion-title a:hover,
.page-resources .news-title a:hover {
    color: var(--secondary-color);
}

.page-resources .card-text,
.page-resources .promotion-text,
.page-resources .news-excerpt {
    padding: 0 20px;
    font-size: 1em;
    color: var(--text-color-dark);
    flex-grow: 1;
}

.page-resources .card-link,
.page-resources .promotion-button {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources .card-link:hover,
.page-resources .promotion-button:hover {
    background-color: #cf2d2d;
}

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

.page-resources .strategy-item,
.page-resources .support-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .strategy-item:hover,
.page-resources .support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources .strategy-title,
.page-resources .support-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources .strategy-title a,
.page-resources .support-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources .strategy-title a:hover,
.page-resources .support-title a:hover {
    color: var(--secondary-color);
}

.page-resources .strategy-text,
.page-resources .support-text {
    font-size: 1em;
    color: var(--text-color-dark);
}

/* FAQ Styles */
.page-resources .faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
}

.faq-question:hover {
    background: var(--hover-bg);
}

.page-resources .faq-q-title {
    font-size: 1.15em;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    color: var(--text-color-dark);
    background-color: #fcfcfc;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 25px 25px 25px;
    border-top: 1px solid var(--border-color);
}

.page-resources .news-date {
    font-size: 0.9em;
    color: #718096;
    margin: 0 20px 20px 20px;
    display: block;
}

.page-resources .view-all-news {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources .introduction-section .main-title {
        font-size: 2.5em;
    }
    .page-resources .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources .introduction-section {
        padding: 60px 15px;
    }
    .page-resources .introduction-section .main-title {
        font-size: 2em;
    }
    .page-resources .introduction-section .description {
        font-size: 1em;
    }
    .page-resources .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources .cta-button {
        width: 100%;
        max-width: 300px;
    }
    .page-resources .section-title {
        font-size: 1.6em;
    }
    .page-resources .guide-cards,
    .page-resources .promotion-items,
    .page-resources .news-cards {
        grid-template-columns: 1fr;
    }
    .page-resources .card-image,
    .page-resources .promotion-image,
    .page-resources .news-image {
        height: 180px;
    }
    .page-resources .strategy-grid,
    .page-resources .support-grid {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .page-resources .faq-q-title {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources .introduction-section .main-title {
        font-size: 1.8em;
    }
    .page-resources .section-title {
        font-size: 1.4em;
    }
    .page-resources .card-title,
    .page-resources .promotion-title,
    .page-resources .news-title {
        font-size: 1.2em;
    }
    .page-resources .strategy-title,
    .page-resources .support-title {
        font-size: 1.1em;
    }
    .page-resources .card-image,
    .page-resources .promotion-image,
    .page-resources .news-image {
        height: 150px;
    }
}