/* style/resources.css */
.page-resources {
    color: #ffffff; /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg-1);
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not covered by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #000080; /* Auxiliary color for hero */
    color: #ffffff;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 1;
    padding-bottom: 40px;
}

.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Main brand color for title */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-resources__section {
    padding: 80px 20px;
    background-color: var(--dark-bg-1);
    color: #ffffff;
}

.page-resources__section:nth-of-type(odd) {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #cccccc;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-resources__grid {
    display: grid;
    gap: 30px;
}

.page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-resources__card {
    background-color: #000080; /* Auxiliary color for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-resources__card--inverted {
    background-color: #FFD700; /* Main brand color for inverted cards */
    color: #000080;
}

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

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-resources__card--inverted .page-resources__card-title {
    color: #000080;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-resources__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700; /* Main brand color for list item checkmark */
}

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

.page-resources__btn-primary {
    display: inline-block;
    background-color: #FFD700;
    color: #000080;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    color: #000050;
}

.page-resources__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FFD700;
    padding: 15px 30px;
    border-radius: 50px;
    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;
    text-align: center;
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #000080;
}

.page-resources__card--inverted .page-resources__btn-primary {
    background-color: #000080;
    color: #FFD700;
    border-color: #000080;
}

.page-resources__card--inverted .page-resources__btn-primary:hover {
    background-color: #000050;
    color: #FFD700;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #000080;
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    margin: 0;
    color: inherit;
}

.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 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #000050; /* Slightly darker auxiliary for answer background */
    color: #ffffff;
}

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

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

.page-resources__cta-section {
    background-color: #FFD700; /* Main brand color for CTA section */
    color: #000080;
    text-align: center;
    padding: 100px 20px;
}

.page-resources__cta-section .page-resources__section-title {
    color: #000080;
}

.page-resources__cta-section .page-resources__section-description {
    color: #333333;
}

.page-resources__btn-large {
    font-size: 1.3em;
    padding: 18px 40px;
    margin-top: 30px;
    border-color: #000080;
    background-color: #000080;
    color: #FFD700;
}

.page-resources__btn-large:hover {
    background-color: #000050;
    color: #FFD700;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__main-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 60px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 0.95em;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card {
        padding: 25px;
    }
    .page-resources__card-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 15px 20px;
    }
    .page-resources__cta-section {
        padding: 80px 15px;
    }
    .page-resources__btn-large {
        font-size: 1.1em;
        padding: 15px 30px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-image-wrapper,
    .page-resources__card,
    .page-resources__section,
    .page-resources__container,
    .page-resources__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Mobile button responsiveness */
    .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 !important;
        padding-right: 15px !important;
    }
    .page-resources__hero-section .page-resources__btn-primary {
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__cta-section .page-resources__btn-primary {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1em;
    }
}