.page-resources {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure body background is dark */
}

/* Fixed Header Offset */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px; /* Minimum height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

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

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

.page-resources__cta-button {
    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;
    cursor: pointer;
    border: none;
    font-size: 1.1em;
    text-align: center;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Accent color */
    color: #1A202C; /* Dark text for accent background */
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    margin-left: 20px;
}

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

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Accent color */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__section-description,
.page-resources__paragraph {
    font-size: 1.1em;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__paragraph {
    text-align: left; /* Paragraphs can be left-aligned */
    margin-bottom: 15px;
    color: #cccccc;
}

.page-resources__dark-section {
    background-color: #1A202C; /* Main brand color for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__articles-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-resources__article-card {
    background-color: #1A202C; /* Card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: #ffffff;
    min-height: 450px; /* Ensure cards have a minimum height */
}

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-resources__article-card h3 {
    font-size: 1.4em;
    color: #FFD700;
    padding: 20px 20px 10px;
    margin: 0;
}

.page-resources__article-card h3 a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources__article-card h3 a:hover {
    text-decoration: underline;
}

.page-resources__article-excerpt {
    font-size: 1em;
    color: #cccccc;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-resources__read-more-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A202C;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 40px); /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources__read-more-button:hover {
    background-color: #e6c200;
}

.page-resources__more-resources-text {
    margin-top: 40px;
    font-style: italic;
    color: #b0b0b0;
}

.page-resources__video-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.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 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block; /* Ensures no extra space below video */
    min-width: 200px; /* Minimum video size */
    min-height: 200px; /* Minimum video size */
}

.page-resources__video-caption {
    text-align: center;
    font-style: italic;
    color: #b0b0b0;
    margin-top: 10px;
}

.page-resources__faq-section {
    padding: 80px 0;
    background-color: #1A202C;
}

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

.page-resources__faq-item {
    background-color: #2a3340; /* Slightly lighter dark background for FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    cursor: pointer;
    background-color: #2a3340;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    color: #FFD700;
    font-size: 1em; /* Adjust h3 size within question */
}

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

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    background-color: #3b4555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
    text-align: left;
    font-size: 1em;
}

.page-resources__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

.page-resources__why-ph88-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-resources__feature-item {
    background-color: #1A202C;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-resources__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources__feature-text {
    font-size: 1em;
    color: #cccccc;
}

.page-resources__final-cta-text {
    margin-top: 50px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
}

.page-resources__large-cta-button {
    margin-top: 30px;
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-resources__cta-banner {
    background-color: #FFD700; /* Accent color for CTA banner */
    padding: 60px 0;
    text-align: center;
    color: #1A202C; /* Dark text for accent background */
}

.page-resources__cta-banner .page-resources__cta-title {
    color: #1A202C;
    margin-bottom: 20px;
}

.page-resources__cta-banner .page-resources__cta-description {
    color: #333333;
    margin-bottom: 30px;
}

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

.page-resources__cta-banner .page-resources__btn-primary {
    background-color: #1A202C;
    color: #FFD700;
}

.page-resources__cta-banner .page-resources__btn-primary:hover {
    background-color: #0d1016;
}

.page-resources__cta-banner .page-resources__btn-secondary {
    background-color: transparent;
    color: #1A202C;
    border-color: #1A202C;
    margin-left: 0; /* Remove extra margin for banner buttons */
}

.page-resources__cta-banner .page-resources__btn-secondary:hover {
    background-color: #1A202C;
    color: #FFD700;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-description,
    .page-resources__section-description,
    .page-resources__paragraph {
        font-size: 1em;
    }
    .page-resources__articles-grid,
    .page-resources__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-resources__hero-content {
        padding: 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        margin: 5px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__btn-secondary {
        margin-left: 0;
    }
    .page-resources__cta-banner .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
}