/* style/resources.css */

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    background-color: #1A2E47; /* Dark background for hero */
    color: #ffffff;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 500px;
    overflow: hidden; /* Prevent content overflow */
}

.page-resources__hero-content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for title */
    line-height: 1.2;
}

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

.page-resources__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #1A2E47; /* Dark text */
    border: 2px solid #FFD700;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2E47;
}

.page-resources__hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 600px; /* Base width for desktop */
    height: 337px; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* NO CSS FILTERS */
}

/* Common Section Styles */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources__intro-section,
.page-resources__safety-section,
.page-resources__cta-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #1A2E47;
    text-align: center;
    margin-bottom: 30px;
    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: #FFD700;
    border-radius: 2px;
}

.page-resources__section-title--light {
    color: #ffffff;
}

.page-resources__section-title--light::after {
    background-color: #FFD700;
}

.page-resources__text-block {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

/* Categories Section */
.page-resources__categories-section {
    padding: 80px 0;
    background-color: #1A2E47; /* Dark background */
    color: #ffffff;
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-resources__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* NO CSS FILTERS */
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #1A2E47;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #1A2E47;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #FFD700;
}

.page-resources__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-resources__card-link {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2E47;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start */
}

.page-resources__card-link:hover {
    background-color: #e6c200;
}

.page-resources__card--dark {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card--dark .page-resources__card-title a {
    color: #FFD700;
}

.page-resources__card--dark .page-resources__card-description {
    color: #e0e0e0;
}

/* Video Section */
.page-resources__video-section {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.page-resources__video-wrapper {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    /* NO CSS FILTERS */
}

.page-resources__video-cta {
    margin-top: 30px;
}

/* Info Cards for Safety Section */
.page-resources__info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-resources__info-card-icon {
    width: 300px; /* Matching HTML attribute */
    height: 200px; /* Matching HTML attribute */
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* NO CSS FILTERS */
}

.page-resources__info-card-title {
    font-size: 1.6em;
    color: #1A2E47;
    margin-bottom: 15px;
}

.page-resources__info-card-title a {
    color: #1A2E47;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__info-card-title a:hover {
    color: #FFD700;
}

.page-resources__info-card-description {
    color: #555555;
    font-size: 1em;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #1A2E47; /* Dark background */
    color: #ffffff;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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.1);
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-heading {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    margin-left: 20px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
    font-size: 1.05em;
    text-align: left;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-resources__faq-answer p {
    margin: 0;
    color: #f0f0f0; /* Ensure text color is light */
}

/* CTA Section (re-using btn styles) */
.page-resources__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 60px;
    }

    .page-resources__hero-content {
        max-width: 80%;
        text-align: center;
    }

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

    .page-resources__hero-image-wrapper {
        width: 80%;
        height: auto;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        gap: 30px;
    }

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

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

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 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;
    }
}