/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-text: #FFFF00;
    --button-login-text: #FFFF00;
    --card-bg-dark-section: rgba(255, 255, 255, 0.1);
    --card-bg-light-section: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Body background is dark, so text is light */
}

.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

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

/* Hero Section */
.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__section-title {
    font-size: 2.2em;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
}

/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-register-text);
    border: 2px solid var(--button-register-bg);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--button-register-bg), 10%);
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--text-color-dark-bg);
    border: 2px solid var(--text-color-dark-bg);
}

.page-resources__btn-secondary:hover {
    background-color: var(--text-color-dark-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.page-resources__article.page-resources__card {
    background-color: var(--card-bg-dark-section);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    color: var(--text-color-dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__article.page-resources__card:hover {
    transform: translateY(-5px);
}

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

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

.page-resources__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-color-dark-bg);
}

.page-resources__article-title a {
    color: var(--text-color-dark-bg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: var(--button-register-text);
}

.page-resources__article-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__article-link {
    display: inline-block;
    color: var(--button-register-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__article-link:hover {
    text-decoration: underline;
}

.page-resources__card--wide {
    grid-column: 1 / -1;
}

/* Video Section */
.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-resources__faq-item {
    background-color: var(--card-bg-dark-section);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    color: var(--text-color-dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color-dark-bg);
    transition: background-color 0.3s ease;
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-qtext {
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__article-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-resources__text-block {
        font-size: 0.95em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__article.page-resources__card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-resources__article-image {
        height: 200px;
    }
    .page-resources__article-title {
        font-size: 1.1em;
    }
    .page-resources__video-wrapper {
        padding-bottom: 56.25% !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-resources__content-area {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources__hero-image-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.5em;
    }
    .page-resources__section-title {
        font-size: 1.4em;
    }
    .page-resources__faq-item summary {
        font-size: 0.95em;
    }
}