/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background #1a1a2e */
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
    background-color: #1a1a2e; /* Ensure the main content area has the body background color */
}

/* Header offset - assuming shared.css handles body padding-top */
.page-resources__hero-section {
    padding-top: 0; /* Assuming shared.css sets body padding-top, so hero does not add extra */
}

/* General section styling */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a2e; /* Consistent dark background */
}

.page-resources__dark-bg {
    background-color: #1a1a2e; /* Dark background from shared.css */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #1a1a2e; /* Ensure dark background for hero */
    color: #ffffff;
    padding: 80px 0; /* Fallback padding if body padding-top is not set by shared.css */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Text Block styles */
.page-resources__text-block {
    text-align: left;
    margin-bottom: 40px;
}

.page-resources__text-block p {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #f0f0f0; /* Light text for dark body background */
}

.page-resources__text-block h3 {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Image content */
.page-resources__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-resources__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* Important for responsiveness */
    box-sizing: border-box; /* Important for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1d8acb; /* Slightly darker */
    transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
    background-color: rgba(38, 169, 224, 0.1);
    transform: translateY(-2px);
}

/* Article links within content */
.page-resources__article-link {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources__article-link:hover {
    color: #1d8acb;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    border-radius: 8px;
    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 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff; /* White text on dark background */
    font-weight: normal;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate for '−' effect */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Light text for dark background */
}

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

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

.page-resources__faq-more {
    margin-top: 30px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Use brand color for CTA background */
    color: #ffffff;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff; /* White title on blue background */
}

.page-resources__cta-section .page-resources__section-description {
    color: #e0f7fa; /* Slightly off-white for description */
}

.page-resources__cta-section .page-resources__btn-primary {
    background-color: #EA7C07; /* Login/Register color */
    border-color: #EA7C07;
}

.page-resources__cta-section .page-resources__btn-primary:hover {
    background-color: #cc6c06;
    border-color: #cc6c06;
}

.page-resources__cta-section .page-resources__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-resources__cta-section .page-resources__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* General image rules for responsiveness */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section */
    .page-resources__hero-section {
        flex-direction: column;
        min-height: auto;
        padding: 60px 0;
    }

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

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

    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections and Containers */
    .page-resources__section {
        padding: 40px 0;
    }

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

    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    /* FAQ Section */
    .page-resources__faq-list {
        margin: 20px auto;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }

    .page-resources__faq-question h3 {
        font-size: 1.1em;
    }

    .page-resources__faq-toggle {
        font-size: 1.5em;
    }

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

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

    .page-resources__faq-more {
        font-size: 1em;
        margin-top: 20px;
    }

    /* CTA Section */
    .page-resources__cta-section {
        padding: 50px 0;
    }

    .page-resources__cta-section .page-resources__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__cta-section .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure all content containers are responsive */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__text-block,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}