/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00;
    --body-bg: #0d0d0d; /* From shared.css */
}

.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 */
    background-color: var(--body-bg);
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-dark-bg);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__hero-video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.page-resources__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

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

/* General Section Styling */
.page-resources__section {
    padding: 60px 0;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__subsection-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-block {
    flex: 1;
    color: var(--text-color-dark-bg);
}

.page-resources__text-block p {
    margin-bottom: 15px;
}

.page-resources__image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Lists */
.page-resources__ordered-list,
.page-resources__unordered-list {
    margin-bottom: 20px;
    padding-left: 25px;
    color: var(--text-color-dark-bg);
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
    margin-bottom: 10px;
}

.page-resources__unordered-list li::before {
    content: "\2022"; /* Bullet point */
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 20px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--button-register); /* Specific color for register/login type buttons */
    color: var(--button-font-color); /* Specific font color */
    border: 2px solid var(--button-register);
}

.page-resources__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: var(--secondary-color);
}

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

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Dark background sections */
.page-resources__dark-section {
    background-color: rgba(1, 116, 57, 0.15); /* Slightly transparent primary color for dark background */
    color: var(--text-color-dark-bg);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__subsection-title {
    color: var(--secondary-color);
}

.page-resources__dark-section .page-resources__unordered-list li::before {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    background-color: rgba(1, 116, 57, 0.3); /* Darker primary for summary */
    color: var(--text-color-dark-bg);
    list-style: none;
}

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

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: "−";
}

.page-resources__faq-answer {
    padding: 15px 25px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 1em;
    color: var(--text-color-dark-bg);
}

/* Contact CTA Section */
.page-resources__contact-cta-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-align: center;
    padding: 80px 0;
}

.page-resources__contact-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__contact-cta-section .page-resources__section-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-resources__contact-cta-section .page-resources__text-block {
    text-align: left;
}

.page-resources__contact-cta-section .page-resources__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-resources__contact-cta-section .page-resources__btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-resources__text-block,
    .page-resources__image-container {
        width: 100%;
    }
    .page-resources__contact-cta-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__contact-cta-section .page-resources__text-block {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__container,
    .page-resources__section,
    .page-resources__guide-section,
    .page-resources__security-section,
    .page-resources__news-section,
    .page-resources__faq-section,
    .page-resources__contact-cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Videos */
    .page-resources video,
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-content .page-resources__btn-primary {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 15px;
    }
}