/* style/resources.css */

/* Base Styles & Typography */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f8f8;
}

.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2239;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #E5A400;
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #0A2239;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-resources__list li {
    margin-bottom: 8px;
}

.page-resources__list-ordered {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-resources__list-ordered li {
    margin-bottom: 8px;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.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.6);
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E5A400; /* Use accent color for title */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #E5A400;
    color: #0A2239;
    border: 2px solid #E5A400;
}

.page-resources__btn-primary:hover {
    background-color: #ffb700;
    border-color: #ffb700;
    color: #0A2239;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #E5A400;
    border: 2px solid #E5A400;
}

.page-resources__btn-secondary:hover {
    background-color: #E5A400;
    color: #0A2239;
}

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

.page-resources__cta-buttons--center {
    text-align: center;
}

/* Section Backgrounds */
.page-resources__dark-bg {
    background-color: #0A2239;
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title {
    color: #E5A400;
}

.page-resources__dark-bg .page-resources__section-title::after {
    background-color: #ffffff;
}

.page-resources__dark-bg .page-resources__list li,
.page-resources__dark-bg .page-resources__list-ordered li,
.page-resources__dark-bg p {
    color: #f0f0f0;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Image Styling */
.page-resources__image-full-width {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    object-fit: cover;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-resources__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #E5A400;
    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 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Final CTA Section */
.page-resources__final-cta-section {
    text-align: center;
    padding: 60px 20px;
}

.page-resources__final-cta-section .page-resources__description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 20px auto 40px auto;
}

/* Floating Buttons */
.page-resources__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-resources__floating-btn {
    display: block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.page-resources__floating-btn--register {
    background-color: #E5A400;
    color: #0A2239;
}

.page-resources__floating-btn--register:hover {
    background-color: #ffb700;
    transform: translateY(-3px);
}

.page-resources__floating-btn--login {
    background-color: #0A2239;
    color: #ffffff;
    border: 1px solid #E5A400;
}

.page-resources__floating-btn--login:hover {
    background-color: #1a3a5a;
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-content {
        padding: 0 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__content-area {
        padding: 30px 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
    }
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-resources__image-full-width {
        margin: 20px auto;
    }
    .page-resources__floating-buttons {
        flex-direction: row;
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
        justify-content: space-around;
        gap: 10px;
    }
    .page-resources__floating-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 10px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        height: 400px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__floating-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .page-resources__floating-btn {
        width: 100%;
    }
}