/* style/resources.css */

/* Base Styles for .page-resources */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming body handles the dark background */
}

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

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

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter text for descriptions */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    background-color: #000000; /* Dark background for hero */
    overflow: hidden;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly transparent to make text readable */
    filter: brightness(0.6); /* Darken image for better text contrast */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    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;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-resources__btn-tertiary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 1em;
}

.page-resources__btn-tertiary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Introduction Section */
.page-resources__introduction-section {
    background-color: var(--dark-bg-1); /* Use body background for consistency */
    color: #ffffff;
    padding: 60px 20px;
}

.page-resources__introduction-section .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__introduction-section .page-resources__section-description {
    color: #f0f0f0;
}

/* Guides Section */
.page-resources__guides-section {
    background-color: var(--dark-bg-1);
    color: #ffffff;
    padding: 60px 20px;
}

.page-resources__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.page-resources__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__guide-card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__guide-card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__guide-card-title a:hover {
    color: #ffffff;
}

.page-resources__guide-card-text {
    color: #f0f0f0;
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* News Section */
.page-resources__news-section {
    background-color: #1a1a1a; /* A slightly different dark background for contrast */
    color: #ffffff;
    padding: 60px 20px;
}

.page-resources__news-section .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__news-section .page-resources__section-description {
    color: #f0f0f0;
}

.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__news-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.page-resources__news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__news-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__news-card-title {
    font-size: 1.3em;
    color: #26A9E0;
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-resources__news-card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-card-title a:hover {
    color: #ffffff;
}

.page-resources__news-card-text {
    color: #f0f0f0;
    font-size: 0.95em;
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: var(--dark-bg-1);
    color: #ffffff;
    padding: 60px 20px;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    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: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.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);
}

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

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

.page-resources__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space if there are multiple paragraphs */
}

.page-resources__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

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

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
    font-size: 2.8em;
}

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

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

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

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

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

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

    .page-resources__section-description {
        font-size: 1em;
    }

    .page-resources__guides-grid,
    .page-resources__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: 0 !important; /* Ensures no double padding if shared provides it for body */
    }

    .page-resources__hero-content {
        padding: 15px;
    }

    .page-resources__hero-title {
        font-size: 2.5em !important;
        margin-bottom: 15px !important;
    }

    .page-resources__hero-description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }

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

    /* General containers and padding */
    .page-resources__container {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }

    .page-resources__section-description {
        font-size: 0.95em !important;
        margin-bottom: 25px !important;
    }

    /* Buttons */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-tertiary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important; /* Adjust padding for mobile */
        font-size: 1em !important;
    }

    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Add padding to container */
    }

    /* Guides Section */
    .page-resources__guides-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-resources__guide-card {
        padding: 20px !important;
    }

    .page-resources__guide-card-image {
        height: 180px !important;
    }

    .page-resources__guide-card-title {
        font-size: 1.2em !important;
    }

    /* News Section */
    .page-resources__news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-resources__news-card-image {
        height: 200px !important;
    }

    .page-resources__news-card-title {
        font-size: 1.1em !important;
        padding: 15px 15px 8px !important;
    }

    .page-resources__news-card-text {
        padding: 0 15px 15px !important;
        font-size: 0.9em !important;
    }

    /* FAQ Section */
    .page-resources__faq-question {
        padding: 15px 20px !important;
    }

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

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

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

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

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

    .page-resources__cta-section .page-resources__section-title {
        font-size: 2em !important;
    }

    .page-resources__cta-section .page-resources__section-description {
        font-size: 1.1em !important;
    }

    /* Universal image responsive for content area, excluding logo items if any */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}