/* style/resources.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --highlight-color: #ff6b35;
}

.page-resources {
    background-color: var(--background-light);
    color: var(--text-color-dark); /* Default to dark text on light background for main content */
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

.page-resources__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), #2C4A87);
    color: var(--text-color-light);
    overflow: hidden;
}

.page-resources__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

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

.page-resources__hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 800px;
}

.page-resources__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-primary:hover {
    background: #f0c42f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__btn-secondary:hover {
    background: #1a3a7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__section {
    padding: 60px 20px;
    position: relative;
}

.page-resources__section--intro {
    background-color: var(--background-light);
}

.page-resources__section--selection-guide {
    background-color: var(--card-background);
}

.page-resources__section--strategies {
    background-color: var(--background-light);
}

.page-resources__section--safety {
    background-color: var(--card-background);
}

.page-resources__section--faq {
    background-color: var(--background-light);
}

.page-resources__section--related-articles {
    background-color: var(--card-background);
}

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

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

.page-resources__section-description {
    font-size: 18px;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-block {
    flex: 1;
}

.page-resources__text-block h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-resources__text-block p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.page-resources__image-block {
    flex: 1;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-resources__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistent look */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-resources__card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-resources__callout-text {
    font-size: 18px;
    font-style: italic;
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
    color: var(--text-color-dark);
}

.page-resources__cta-group {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__safety-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: var(--text-color-dark);
}

.page-resources__safety-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
}

.page-resources__safety-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources__safety-text {
    font-size: 15px;
    line-height: 1.6;
}

.page-resources__safety-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: var(--text-color-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-dark);
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X or rotate for minus sign */
}

.page-resources__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-resources__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Related Articles */
.page-resources__article-card {
    display: block;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.page-resources__article-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    padding: 20px 20px 10px;
}

.page-resources__article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
    padding: 0 20px 20px;
}

.page-resources__highlight {
    font-weight: bold;
    color: var(--highlight-color);
}

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

    .page-resources__hero-subtitle {
        font-size: 18px;
    }

    .page-resources__section-title {
        font-size: 32px;
    }

    .page-resources__content-wrapper {
        flex-direction: column;
    }

    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-resources__grid-3-col, .page-resources__grid-2-col {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-resources__hero-image {
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .page-resources__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

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

    .page-resources__container {
        padding: 0;
    }

    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-resources__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-resources__text-block h3 {
        font-size: 20px;
    }

    .page-resources__text-block p {
        font-size: 15px;
    }

    .page-resources__card {
        padding: 25px;
    }

    .page-resources__card-title {
        font-size: 20px;
    }

    .page-resources__card-text {
        font-size: 14px;
    }

    .page-resources__callout-text {
        font-size: 16px;
        margin: 30px auto;
    }

    .page-resources__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__safety-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .page-resources__safety-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .page-resources__safety-title {
        font-size: 18px;
    }

    .page-resources__safety-text {
        font-size: 14px;
    }

    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

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

    .page-resources__article-title {
        font-size: 18px;
        padding: 15px 15px 8px;
    }

    .page-resources__article-excerpt {
        font-size: 14px;
        padding: 0 15px 15px;
    }

    /* Mobile specific image handling */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__section,
    .page-resources__container,
    .page-resources__card,
    .page-resources__content-wrapper,
    .page-resources__image-block,
    .page-resources__text-block,
    .page-resources__safety-item,
    .page-resources__article-card,
    .page-resources__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}