/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #ffffff;
    --background-dark: #017439;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-register-login: #FFFF00;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light); /* Default for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

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

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

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

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

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--background-dark);
}

.page-resources__btn-link {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-resources__btn-link:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

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

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

.page-resources__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
    color: inherit;
}

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

.page-resources__article-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.page-resources__card-title a:hover {
    color: var(--font-register-login);
}

.page-resources__card-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__list-item {
    font-size: 1.1em;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 15px auto;
    line-height: 1.8;
    color: inherit;
}

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

.page-resources__list-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-resources__list-item a:hover {
    text-decoration: underline;
}

.page-resources__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color-light);
}

.page-resources__faq-heading {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit parent font size */
}

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

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-resources__faq-answer p {
    margin-bottom: 10px;
    color: inherit;
}

.page-resources__faq-answer a {
    color: var(--font-register-login);
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: var(--primary-color);
}

.page-resources__cta-section {
    background-color: var(--background-dark);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.page-resources__cta-description {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-color-light);
}

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

.page-resources__cta-image {
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 500px;
    height: auto;
    opacity: 0.1;
    z-index: 1;
    transform: rotate(15deg);
}

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

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        width: 100%;
        max-width: 300px !important;
        padding: 10px 15px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__section {
        padding: 60px 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__text-block {
        font-size: 0.95em;
    }

    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__card-text {
        font-size: 0.9em;
    }

    .page-resources__list-item {
        font-size: 0.95em;
    }

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

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-resources__cta-title {
        font-size: 1.8em;
    }

    .page-resources__cta-description {
        font-size: 1em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-resources__cta-image {
        display: none;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-buttons,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@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.6em;
    }
}

/* Ensure contrast for specific elements */
.page-resources__light-bg .page-resources__list-item strong {
    color: var(--primary-color);
}
.page-resources__light-bg .page-resources__list-item a {
    color: var(--primary-color);
}