:root {
    --primary-color: #0A0A0A;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --light-bg: #f8f8f8;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    background-color: var(--light-bg);
}

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

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: bold;
}

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

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    color: var(--text-on-dark);
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: bold;
    line-height: 1.2;
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-resources__btn-primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    color: var(--primary-color);
    border-color: darken(var(--secondary-color), 10%);
}

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

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

/* Image Styling */
.page-resources__image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Bottom */
.page-resources__cta-bottom {
    padding: 80px 20px;
}

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

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

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

/* FAQ Section */
.page-resources__faq-section {
    text-align: left;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-resources__faq-item.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__faq-question:hover {
    background-color: #e5e5e5;
}

.page-resources__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1em; /* Ensure h3 inside question is not too large */
}

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

.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, padding 0.3s ease;
    color: var(--text-on-light);
    font-size: 1.05em;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-content {
        padding: 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__container {
        padding: 0 10px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources__text-block {
        font-size: 1em;
    }
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__cta-bottom {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 20px;
        padding-top: 10px;
    }
}