/* style/resources.css */

/* Base Styles for .page-resources */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: 0; /* Assuming shared.css handles body padding-top: var(--header-offset); */
}

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

/* Typography */
.page-resources__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.page-resources__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #CC0000; /* Red for section titles */
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #FFD700; /* Gold for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__description,
.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit; /* Inherit from parent section */
}

.page-resources__list,
.page-resources__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__ordered-list {
    list-style-type: decimal;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: inherit;
}

/* Buttons */
.page-resources__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #CC0000;
    color: #ffffff;
    border: 2px solid #CC0000;
}

.page-resources__btn-primary:hover {
    background-color: #a00000;
    border-color: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
}

.page-resources__btn-secondary {
    background-color: #FFD700;
    color: #CC0000;
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Section specific styles */
.page-resources__hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-resources__hero-image {
    width: 100%;
    line-height: 0; /* Remove extra space below img */
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
}

.page-resources__introduction-section {
    padding: 80px 0;
    background: #0d0d0d; /* Dark background from body */
    color: #ffffff;
}

.page-resources__guide-section,
.page-resources__registration-section,
.page-resources__faq-section,
.page-resources__final-cta-section {
    padding: 80px 0;
}

.page-resources__guide-section,
.page-resources__faq-section,
.page-resources__final-cta-section {
    background: #f0f0f0; /* Light background */
    color: #333333;
}

.page-resources__registration-section {
    background: #f0f0f0; /* Light background */
    color: #333333;
}

.page-resources__strategies-section,
.page-resources__news-section {
    background: #0d0d0d; /* Dark background */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__strategies-section .page-resources__section-title,
.page-resources__news-section .page-resources__section-title {
    color: #FFD700; /* Gold for titles on dark background */
}

.page-resources__strategies-section .page-resources__sub-title,
.page-resources__news-section .page-resources__sub-title {
    color: #FFD700; /* Gold for sub-titles on dark background */
}

.page-resources__image-wrapper {
    margin: 40px auto;
    max-width: 800px; /* Example max-width for content images */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

/* FAQ Section Styles */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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: #333333; /* Dark text for light background */
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure it expands fully */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff; /* White background for answers */
    border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    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;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333; /* Dark text for light background */
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #CC0000; /* Red toggle icon */
    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: #CC0000;
    transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* News Section Styles */
.page-resources__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__article-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

.page-resources__article-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-resources__article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-resources__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__article-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__article-title a.page-resources__article-link {
    color: #FFD700; /* Gold for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a.page-resources__article-link:hover {
    color: #CC0000; /* Red on hover */
}

.page-resources__article-summary {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__article-date {
    font-size: 0.85em;
    color: #aaaaaa;
    text-align: right;
    margin-top: auto; /* Push date to bottom */
}