/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --button-text-color: #FFFF00;
    --body-bg: #1a1a2e; /* From shared.css, for contrast calculation */
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--body-bg);
}

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

.page-resources__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure spacing below header */
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #004d2b);
    color: var(--text-on-dark);
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-on-dark);
    line-height: 1.3;
}

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: left;
}

.page-resources__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
    color: var(--text-on-dark);
}

.page-resources__text-block a, .page-resources__hero-description a, .page-resources__section-description a, .page-resources__list-item a {
    color: #FFFF00; /* Link text for dark backgrounds */
    text-decoration: underline;
}

.page-resources__text-block a:hover, .page-resources__hero-description a:hover, .page-resources__section-description a:hover, .page-resources__list-item a:hover {
    color: var(--secondary-color);
}

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

.page-resources__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-on-dark);
}

.page-resources__list-item strong {
    color: var(--primary-color);
}

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

.page-resources__btn-primary {
    background-color: var(--register-button-bg); /* Custom Register color */
    color: var(--button-text-color); /* Custom Register/Login font color */
    border: 2px solid var(--register-button-bg);
}

.page-resources__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--button-text-color); /* Custom Register/Login font color */
    border: 2px solid var(--primary-color);
}

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

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

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

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

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__sub-title {
    color: var(--primary-color);
}

.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__list-item {
    color: var(--text-on-light);
}

.page-resources__light-bg .page-resources__text-block a, .page-resources__light-bg .page-resources__list-item a {
    color: var(--primary-color);
}

.page-resources__light-bg .page-resources__text-block a:hover, .page-resources__light-bg .page-resources__list-item a:hover {
    color: #004d2b;
}

.page-resources__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding: 60px 20px;
}

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

.page-resources__dark-section .page-resources__text-block,
.page-resources__dark-section .page-resources__list-item {
    color: var(--text-on-dark);
}

.page-resources__video-section {
    padding: 60px 20px;
    background-color: var(--body-bg);
    color: var(--text-on-dark);
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-resources__faq-section {
    padding: 60px 20px;
    background-color: var(--body-bg);
    color: var(--text-on-dark);
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-on-dark);
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 20px 20px 20px;
}

.page-resources__faq-answer p {
    margin-bottom: 0;
    color: var(--text-on-dark);
}

.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-resources__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-resources__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-content {
    max-width: 800px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-on-light);
}

.page-resources__cta-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources__cta-description a:hover {
    color: #004d2b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 80px 15px;
        padding-top: calc(var(--header-offset, 120px) + 40px);
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__faq-question,
    .page-resources__faq-answer p {
        font-size: 1em;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-section,
    .page-resources__faq-section,
    .page-resources__content-area,
    .page-resources__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section is not covered */
    }
    .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__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 15px 15px 15px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
    }
}