/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0 0%, #1a7bb0 100%); /* Brand color gradient */
    color: #ffffff;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* CTA Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for mobile */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources__cta-buttons--centered {
    margin-top: 30px;
    margin-bottom: 30px;
}

.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; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color as a primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-resources__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
    transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
    background-color: #e0f2ff;
    color: #1a7bb0;
    transform: translateY(-2px);
}

/* Content Sections */
.page-resources__content-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

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

.page-resources__sub-title {
    font-size: 1.8em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333333;
}

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

.page-resources__list-item {
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources__list-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Images */
.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: #f8f8f8;
    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;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    content: "−"; /* Visually change */
}

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

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

.page-resources__faq-answer .page-resources__paragraph {
    margin-bottom: 0;
    color: #555555;
}

/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a7bb0 0%, #26A9E0 100%); /* Brand color gradient */
    color: #ffffff;
}

.page-resources__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

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

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

/* Links inside content */
.page-resources__paragraph a,
.page-resources__list-item a,
.page-resources__faq-answer a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}
.page-resources__paragraph a:hover,
.page-resources__list-item a:hover,
.page-resources__faq-answer a:hover {
    color: #1a7bb0;
}

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

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__content-section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__list-item {
        padding: 15px;
    }
    .page-resources__list-title {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset;
        min-height: unset;
    }
    .page-resources__container,
    .page-resources__cta-section,
    .page-resources__content-section,
    .page-resources__faq-list,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__cta-section {
        padding: 50px 15px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px;
    }
}