/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from shared.css, explicitly set for context */
}

.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    overflow: hidden;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    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: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-resources__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.page-resources__video-link {
    display: block;
    cursor: pointer;
}

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

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

.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

.page-resources__keyword {
    font-weight: bold;
    color: #017439;
}

.page-resources__dark-section .page-resources__keyword {
    color: #FFFF00;
}

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

.page-resources__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

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

.page-resources__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

.page-resources__card--dark-bg {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__card--dark-bg .page-resources__card-title {
    color: #FFFF00;
}

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

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

.page-resources__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

.page-resources__card--dark-bg .page-resources__list li::before {
    color: #FFFF00;
}

.page-resources__list-item-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: inherit;
}

.page-resources__promo-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-resources__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

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

.page-resources__faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-container {
    margin-top: 40px;
}

.page-resources__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    line-height: 1;
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

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

.page-resources__faq-item.active .page-resources__faq-question {
    background-color: #e6e6e6;
}

.page-resources__contact-section {
    text-align: center;
    background-color: #017439;
    color: #ffffff;
    padding: 80px 20px;
}

.page-resources__contact-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
}

.page-resources__contact-info {
    margin-top: 30px;
    font-size: 1.1em;
}

.page-resources__contact-info p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__content-area,
    .page-resources__faq-section {
        padding: 30px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__card-grid,
    .page-resources__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card,
    .page-resources__promo-card {
        padding: 20px;
    }
    .page-resources__card-image,
    .page-resources__promo-image,
    .page-resources__contact-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-video-wrapper,
    .page-resources__video-link,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }
    .page-resources__contact-section {
        padding: 60px 15px;
    }
    .page-resources__content-area,
    .page-resources__dark-section,
    .page-resources__faq-section,
    .page-resources__contact-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-video-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title,
    .page-resources__promo-title {
        font-size: 1.5em;
    }
}