/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font-color: #FFFF00;
    --dark-bg-text-color: #ffffff;
    --light-bg-text-color: #333333;
    --default-card-bg: #ffffff;
    --default-card-border: #e0e0e0;
}

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

.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background type */
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: inherit;
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
    font-weight: bold;
}

.page-resources__hero-section {
    position: relative;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

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

.page-resources__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    cursor: pointer;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    color: var(--dark-bg-text-color);
    max-width: 900px;
    padding: 0 15px;
}

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

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

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

.page-resources__btn-register {
    background-color: var(--register-button-bg);
    color: var(--register-login-font-color);
}

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

.page-resources__btn-login {
    background-color: var(--login-button-bg);
    color: var(--register-login-font-color);
}

.page-resources__btn-login:hover {
    background-color: darken(var(--login-button-bg), 10%);
}

.page-resources__btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
}

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

.page-resources__grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-resources__content-block {
    padding: 20px 0;
}

.page-resources__content-block--padded {
    padding-left: 20px;
}

.page-resources__image-wrapper {
    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.1);
}

.page-resources__ordered-list,
.page-resources__unordered-list {
    list-style-position: inside;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
}

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

.page-resources__login-guide .page-resources__section-description,
.page-resources__other-resources .page-resources__section-description {
    color: inherit;
}

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

.page-resources__card {
    background-color: var(--default-card-bg);
    color: var(--light-bg-text-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--default-card-border);
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--light-bg-text-color);
}

.page-resources__faq-heading {
    margin-top: 60px;
    text-align: center;
    color: var(--light-bg-text-color);
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: var(--default-card-bg);
    border: 1px solid var(--default-card-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-bg-text-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--default-card-border);
    color: var(--primary-color);
}

.page-resources__faq-item[open] .page-resources__faq-question {
    border-bottom: 1px solid var(--default-card-border);
}

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

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

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

.page-resources__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--light-bg-text-color);
}

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

.page-resources__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-bg-text-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    transition: background-color 0.3s ease;
}

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

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

.page-resources__feature-card p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-bg-text-color);
}

.page-resources__cta-bottom {
    margin-top: 50px;
}

.page-resources__call-to-action .page-resources__container--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

.page-resources__call-to-action .page-resources__cta-content {
    flex: 1;
}

.page-resources__call-to-action .page-resources__image-wrapper--cta {
    flex: 1;
    min-width: 300px;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: flex-start;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 70vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .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 {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources__grid-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-resources__reverse-on-mobile {
        display: flex;
        flex-direction: column-reverse;
    }
    .page-resources__content-block--padded {
        padding-left: 0;
    }
    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__call-to-action .page-resources__container--flex {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__call-to-action .page-resources__cta-content {
        order: 2;
    }
    .page-resources__call-to-action .page-resources__image-wrapper--cta {
        order: 1;
        margin-bottom: 30px;
    }

    /* General mobile container/image/video overrides */
    .page-resources__section,
    .page-resources__container,
    .page-resources__card,
    .page-resources__feature-card,
    .page-resources__faq-item,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-resources img,
    .page-resources video,
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-video-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }
    .page-resources__hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
    }
    .page-resources__btn-primary {
        font-size: 1em;
        padding: 12px 25px;
    }
}