/* style/resources.css */

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

/* Fixed header offset */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero section */
    overflow: hidden;
}

.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.5); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White text on dark overlay */
}

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

/* General section styling */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for content inside container */
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
    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: #26A9E0;
    border-radius: 2px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    text-align: left;
}

.page-resources__highlight {
    font-weight: bold;
    color: #26A9E0;
}

/* Buttons */
.page-resources__btn-primary {
    display: inline-block;
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #26A9E0;
}

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

.page-resources__btn-login {
    background-color: #EA7C07; /* Login button specific color */
    border-color: #EA7C07;
}

.page-resources__btn-login:hover {
    background-color: #c06506;
    border-color: #c06506;
}

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

/* Guide Card */
.page-resources__guide-card,
.page-resources__strategy-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-resources__guide-card:hover,
.page-resources__strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__guide-card-image,
.page-resources__strategy-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__guide-card-title,
.page-resources__strategy-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-resources__guide-card-title a,
.page-resources__strategy-card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__guide-card-title a:hover,
.page-resources__strategy-card-title a:hover {
    text-decoration: underline;
}

.page-resources__guide-card-description,
.page-resources__strategy-card-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Ensures descriptions take available space */
}

/* Dark section for contrast */
.page-resources__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-resources__dark-section .page-resources__section-title {
    color: #FFFFFF;
}

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

.page-resources__dark-section .page-resources__text-block {
    color: #f0f0f0;
}

.page-resources__dark-section .page-resources__highlight {
    color: #FFFFFF;
}

.page-resources__dark-section .page-resources__strategy-card {
    background-color: rgba(255, 255, 255, 0.15); /* Lighter background for cards on dark section */
    color: #FFFFFF;
    box-shadow: none;
}

.page-resources__dark-section .page-resources__strategy-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-resources__dark-section .page-resources__strategy-card-title {
    color: #FFFFFF;
}

.page-resources__dark-section .page-resources__strategy-card-title a {
    color: #FFFFFF;
}

.page-resources__dark-section .page-resources__strategy-card-description {
    color: #e0e0e0;
}

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

.page-resources__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-resources__faq-item[open] > .page-resources__faq-question {
    background-color: #e8e8e8;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.page-resources__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X or minus */
}

.page-resources__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    text-align: left;
    background-color: #FFFFFF;
    border-top: 1px solid #f0f0f0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

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

/* Other Resources Section */
.page-resources__resource-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    text-align: left;
}

.page-resources__resource-list li {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: #333333;
}

.page-resources__resource-list li:hover {
    background-color: #eef7fc;
    transform: translateY(-3px);
}

.page-resources__resource-list li a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-resources__resource-list li a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-resources__cta {
    background-color: #f0f8ff; /* Light blue background for CTA */
    padding: 80px 20px;
}

.page-resources__cta-content {
    max-width: 800px;
}

.page-resources__cta-content .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__cta-content .page-resources__text-block {
    color: #333333;
    margin-bottom: 40px;
}

.page-resources__cta-button {
    font-size: 1.2em;
    padding: 18px 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__text-block {
        font-size: 0.95em;
    }
    .page-resources__btn-primary,
    .page-resources__cta-button {
        font-size: 1em;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Container responsiveness for images and content */
    .page-resources__section,
    .page-resources__container,
    .page-resources__guide-card,
    .page-resources__strategy-card,
    .page-resources__faq-list,
    .page-resources__resource-list,
    .page-resources__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Ensure content has side padding */
        padding-right: 15px; /* Ensure content has side padding */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources__guide-card-image,
    .page-resources__strategy-card-image {
        height: auto; /* Allow height to adjust */
        min-height: 200px; /* Maintain minimum size */
    }

    .page-resources__resource-list {
        grid-template-columns: 1fr;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 15px 20px;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
}

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