/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #FFFFFF; /* White text for dark background */
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
    overflow: hidden;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-resources__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle overlay for background image */
    filter: none; /* No CSS filter to change image color */
}

/* General Section Styling */
.page-resources__section {
    padding: 60px 20px;
    border-bottom: 1px solid #EEEEEE;
}

.page-resources__section:last-of-type {
    border-bottom: none;
}

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

.page-resources__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: inherit; /* Inherit color from section for contrast */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFFFFF; /* White line for dark bg */
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-resources__light-bg .page-resources__section-title {
    color: #26A9E0; /* Brand color for light background titles */
}

.page-resources__light-bg .page-resources__section-title::after {
    background-color: #26A9E0;
}


.page-resources__sub-title {
    font-size: 1.8em;
    color: inherit; /* Inherit color from section for contrast */
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: inherit; /* Inherit color for contrast */
}

.page-resources__highlight {
    font-weight: bold;
    color: inherit; /* Inherit color for contrast */
}

.page-resources__inline-link {
    color: #EA7C07; /* Login color for links */
    text-decoration: underline;
}

.page-resources__inline-link:hover {
    color: #FF8C00;
}

/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.page-resources__cta-buttons--center {
    justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to width */
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Image and Text Layout */
.page-resources__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.page-resources__image-text-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* No CSS filter to change image color */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__text-content {
    width: 50%;
}

/* Content Grid */
.page-resources__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Cards */
.page-resources__card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-resources__card-title {
    font-size: 1.4em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
}

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
}

/* Lists */
.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources__list li {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: inherit;
}

/* Video Section */
.page-resources__video-section {
    margin: 40px 0;
    text-align: center;
    background-color: #F8F8F8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__video-title {
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%; /* Ensure video adapts to width */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

.page-resources__video-description {
    font-style: italic;
    color: #666666;
    margin-top: 15px;
}

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

.page-resources__faq-item {
    background-color: #FFFFFF;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #F5F5F5;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-resources__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-resources__faq-item[open] .page-resources__faq-question {
    background-color: #E0F7FA;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-resources__faq-item[open] .page-resources__faq-answer {
    max-height: 500px; /* Adjust as needed */
    transition: max-height 0.4s ease-in;
}

/* Conclusion Section */
.page-resources__conclusion {
    text-align: center;
}

/* Image Wrapper */
.page-resources__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-resources__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* No CSS filter to change image color */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 2.8em;
    }
    .page-resources__intro-text {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__image-text-layout {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__content-image,
    .page-resources__text-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding-top for mobile */
    }
    .page-resources__main-title {
        font-size: 2em;
    }
    .page-resources__intro-text {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
    }
    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
}