/* style/resources.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.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;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-light);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

/* General Section Styling */
.page-resources__section {
    padding: 80px 0;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image-content--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-text {
    font-size: 1em;
    margin-bottom: 25px;
}

.page-resources__card-button {
    display: inline-block;
    background-color: var(--login-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
    background-color: darken(var(--login-color), 10%);
}

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

.page-resources__strategy-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-resources__strategy-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-resources__strategy-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-resources__strategy-text {
    font-size: 0.95em;
    margin: 0 15px 20px;
}

.page-resources__strategy-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 25px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__strategy-link:hover {
    color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-resources__safety-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-light);
}

.page-resources__safety-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__safety-text {
    font-size: 1em;
    margin-bottom: 25px;
}

.page-resources__safety-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--secondary-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__safety-link:hover {
    color: lighten(var(--secondary-color), 10%);
    border-color: lighten(var(--secondary-color), 10%);
}

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

.page-resources__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--text-dark);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(0deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    font-size: 1em;
}

.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 p {
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-resources__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

.page-resources__cta-section .page-resources__container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-resources__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

/* Buttons */
.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;
    white-space: nowrap;
}

.page-resources__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Dark/Light Background Classes */
.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

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

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        min-height: 500px;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-resources__hero-actions,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .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-left: 15px;
        padding-right: 15px;
    }

    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__section-title,
    .page-resources__cta-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__image-content,
    .page-resources__strategy-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }

    .page-resources__text-block {
        font-size: 1em;
    }

    .page-resources__grid,
    .page-resources__strategy-grid,
    .page-resources__safety-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card,
    .page-resources__strategy-item,
    .page-resources__safety-item {
        padding: 20px;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

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

    /* Ensure all content containers are constrained */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Color Contrast Fixes (if needed - applied based on body bg being light) */
.page-resources {
    color: var(--text-dark); /* Default for light background */
}

.page-resources__dark-bg {
    color: var(--text-light);
}

.page-resources__light-bg {
    color: var(--text-dark);
}

.page-resources__card {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__faq-question {
    color: var(--primary-color);
}

/* Ensure no filter is used on images */
.page-resources img {
    filter: none; /* Explicitly remove any potential filter */
}