/* style/resources.css */
:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #121e33;
    --border-color: #e0e0e0;
}

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

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

.page-resources .intro-section,
.page-resources conclusion-section {
    background: linear-gradient(135deg, var(--primary-color), #0f1c2f);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
}

.page-resources .main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-resources .description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources .intro-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-resources .cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-resources .section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.page-resources .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources .section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #555;
}

.page-resources .sub-section-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-resources .text-content {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Guide Cards */
.page-resources .guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-resources .guide-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources .guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources .card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    margin: 0;
}

.page-resources .card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources .card-text {
    font-size: 0.95em;
    color: #666;
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-resources .read-more-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-resources .read-more-link:hover {
    color: var(--primary-color);
}

/* Promotions Section */
.page-resources .promotions-section {
    background-color: #eef3f7;
    padding: 60px 0;
}

.page-resources .promo-banner {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    margin: 40px auto 60px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-resources .promo-details {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* Support Section */
.page-resources .support-section {
    padding: 60px 0;
}

.page-resources .support-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    margin: 40px auto 60px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-resources .contact-info {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: center;
}

.page-resources .contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.page-resources .contact-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-resources .contact-list li strong {
    color: var(--primary-color);
}

/* FAQ Styles */
.page-resources .faq-list {
    margin-top: 40px;
}

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

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

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: #f9f9f9;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
}

/* News Section */
.page-resources .news-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-resources .news-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    margin: 40px auto 60px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-resources .news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.page-resources .news-item {
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .news-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources .news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources .news-excerpt {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.page-resources .news-date {
    font-size: 0.85em;
    color: #999;
    display: block;
    text-align: right;
}

/* Conclusion Section - uses intro-section styles with slight adjustments */
.page-resources .conclusion-section .main-title {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .main-title {
        font-size: 2.2em;
    }
    .page-resources .section-title {
        font-size: 1.8em;
    }
    .page-resources .sub-section-title {
        font-size: 1.5em;
    }
    .page-resources .guide-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources .container {
        padding: 15px;
    }
    .page-resources .main-title {
        font-size: 1.8em;
    }
    .page-resources .description {
        font-size: 1em;
    }
    .page-resources .section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-resources .section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources .guide-card {
        margin-bottom: 20px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
    .faq-question {
        padding: 15px;
    }
    .faq-answer {
        padding: 15px;
    }
    .page-resources .news-item {
        padding: 20px;
    }
    .page-resources .news-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-resources .main-title {
        font-size: 1.5em;
    }
    .page-resources .section-title {
        font-size: 1.4em;
    }
    .page-resources .sub-section-title {
        font-size: 1.3em;
    }
    .page-resources .guide-grid {
        grid-template-columns: 1fr;
    }
    .page-resources .intro-section, .page-resources conclusion-section {
        padding: 40px 15px;
    }
}