/* style/resources.css */
.page-resources {
    background-color: #1a1a1a; /* Inherited from body, but good to define for scope */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding-top: 0; /* shared already handles body padding-top */
    margin-top: 0;
}

.page-resources__hero-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    margin: 0;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    text-align: center;
}

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

.page-resources__main-heading {
    font-size: 42px;
    color: #FFD700; /* Accent color for main heading */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__sub-heading {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For responsiveness */
}

.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: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold accent */
    color: #2C2F4C; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #2C2F4C;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-resources__guides-section,
.page-resources__strategies-section,
.page-resources__safety-section,
.page-resources__news-section,
.page-resources__faq-section {
    padding: 60px 20px;
    background-color: #242740; /* Slightly lighter dark blue-purple for sections */
    margin-bottom: 20px;
}

.page-resources__section-title {
    font-size: 36px;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-resources__section-description {
    font-size: 17px;
    color: #cccccc;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__card {
    background-color: #2C2F4C; /* Main brand color for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for dark card background */
}

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

.page-resources__card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

.page-resources__card-title {
    font-size: 22px;
    color: #FFD700; /* Accent for card titles */
    padding: 20px 20px 10px;
    margin: 0;
}

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

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

.page-resources__card-text {
    font-size: 16px;
    color: #e0e0e0;
    padding: 0 20px 20px;
    margin: 0;
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #2C2F4C;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 20px 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__card-link:hover {
    background-color: #e0b800;
    color: #1a1a1a;
}

/* Safety Section Specifics */
.page-resources__safety-section {
    background-color: #1a1a1a; /* Darker background for safety */
}

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

.page-resources__text-block {
    flex: 1;
    min-width: 300px;
    color: #f0f0f0;
}

.page-resources__sub-title {
    font-size: 26px;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__text-block p {
    margin-bottom: 15px;
    color: #cccccc;
}

.page-resources__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    /* No filter allowed */
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #2C2F4C; /* Main brand color for FAQ */
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for FAQ item */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2C2F4C; /* Brand color for question */
    border: 1px solid #3c3f5e;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-resources__faq-question:hover {
    background: #3c3f5e;
    border-color: #4d5173;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700; /* Gold for FAQ question text */
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    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: 32px;
    height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Plus to X */
}

.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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: #1a1a1a; /* Dark background for answer */
    color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-heading {
        font-size: 36px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
    }
    .page-resources__text-block,
    .page-resources__image-block {
        min-width: unset;
        width: 100%;
    }
    .page-resources__feature-image {
        max-width: 80%;
    }
}

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

    /* Important: Ensure images and containers do not overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-section,
    .page-resources__intro-section,
    .page-resources__guides-section,
    .page-resources__strategies-section,
    .page-resources__safety-section,
    .page-resources__news-section,
    .page-resources__faq-section,
    .page-resources__container,
    .page-resources__grid,
    .page-resources__card,
    .page-resources__content-wrapper,
    .page-resources__text-block,
    .page-resources__image-block,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }

    .page-resources__hero-section {
        padding-top: 0 !important; /* Shared handles body padding-top */
    }

    .page-resources__main-heading {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources__sub-heading {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-resources__section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-resources__grid {
        gap: 20px;
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-resources__card {
        margin-bottom: 0; /* Remove extra margin if any */
    }

    .page-resources__sub-title {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }
}