.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    min-height: 600px;
    background-color: #0A2240; /* Main brand color for hero background */
    overflow: hidden;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Slightly transparent to let text stand out */
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    color: #E6B34B; /* Accent color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* General Section Styling */
.page-resources__section-title {
    font-size: 2.5em;
    color: #E6B34B;
    text-align: center;
    margin-bottom: 40px;
    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: #E6B34B;
    border-radius: 2px;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #E6B34B;
    margin-bottom: 20px;
}

.page-resources__section-text,
.page-resources__text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-resources__section-text a,
.page-resources__text a {
    color: #E6B34B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__section-text a:hover,
.page-resources__text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

/* Introduction Section - Dark Background */
.page-resources__introduction-section {
    padding: 60px 0;
    background-color: #0A2240; /* Main brand color */
    color: #ffffff;
}

/* Content Sections */
.page-resources__content-section {
    padding: 60px 0;
    background-color: #1a3a5e; /* Slightly lighter dark blue for contrast */
    color: #f0f0f0;
}

.page-resources__content-section:nth-of-type(odd) {
    background-color: #0A2240; /* Alternate sections with main dark blue */
}

/* Grid Layout */
.page-resources__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__grid--reverse {
    grid-template-areas: "text image"; /* For default */
}

.page-resources__grid--reverse .page-resources__grid-item:first-child {
    grid-area: text;
}

.page-resources__grid--reverse .page-resources__grid-item:last-child {
    grid-area: image;
}

.page-resources__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-resources__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-resources__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-resources__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #E6B34B; /* Accent color for bullet points */
    font-weight: bold;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-resources__btn-primary {
    background-color: #E6B34B; /* Accent color */
    color: #0A2240; /* Main color for text */
    border: 2px solid #E6B34B;
    margin-right: 15px;
}

.page-resources__btn-primary:hover {
    background-color: #f5c862;
    border-color: #f5c862;
    color: #0A2240;
}

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

.page-resources__btn-secondary:hover {
    background-color: #E6B34B;
    color: #0A2240;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1000px; /* Max width for video */
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%;
    display: block;
    cursor: pointer;
}


/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #1a3a5e;
    color: #f0f0f0;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    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: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question */
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    font-size: 1.2em;
    color: #E6B34B;
    margin: 0;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #E6B34B;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus if using a minus sign) */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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 to show content */
    padding: 15px 25px 20px 25px;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #0A2240;
    text-align: center;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__grid--reverse {
        grid-template-areas: unset; /* Reset for mobile */
    }
    .page-resources__grid--reverse .page-resources__grid-item:first-child {
        grid-area: unset;
    }
    .page-resources__grid--reverse .page-resources__grid-item:last-child {
        grid-area: unset;
    }
    .page-resources__grid-item {
        text-align: center;
    }
    .page-resources__image {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        margin-right: 0;
        width: 100%;
        max-width: 100% !important; /* Force full width */
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image and video responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__faq-section,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset */
    }
    .page-resources__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__faq-question {
        padding-left: 15px;
        padding-right: 15px;
    }
}