.page-resources {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #FCBC45; /* Accent color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    white-space: nowrap;
}

/* Hero Section */
.page-resources__hero-section {
    background: #000000; /* Dark background for hero */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #FCBC45; /* Accent color for hero title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-resources__button--login {
    background-color: #FCBC45; /* Custom color for Login button */
    color: #000000;
}

.page-resources__button--login:hover {
    background-color: #e0a73d;
}

.page-resources__button--register {
    background-color: transparent;
    border: 2px solid #FFFFFF; /* Custom color for Register button text, border white */
    color: #FFFFFF; /* Custom color for Register button text */
}

.page-resources__button--register:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

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

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    display: block;
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
}

/* Intro Text Section */
.page-resources__intro-text {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-resources__intro-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0;
    text-align: justify;
}

/* Articles Section */
.page-resources__articles-section {
    padding: 60px 0;
}

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

.page-resources__article-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for card */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__article-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image size */
    overflow: hidden;
}

.page-resources__article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
}

.page-resources__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FCBC45;
}

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

.page-resources__article-title a:hover {
    color: #e0a73d;
}

.page-resources__article-summary {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__button--read-more {
    background-color: #000000;
    color: #FCBC45;
    border: 1px solid #FCBC45;
    align-self: flex-start;
}

.page-resources__button--read-more:hover {
    background-color: #FCBC45;
    color: #000000;
}

/* Why Choose Us Section */
.page-resources__why-choose-us {
    background-color: #000000; /* Darker background for contrast */
    padding: 80px 0;
}

.page-resources__why-choose-us .page-resources__section-title {
    color: #FFFFFF;
}

.page-resources__why-choose-us .page-resources__section-description {
    color: #f0f0f0;
}

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

.page-resources__highlight-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-resources__highlight-item:hover {
    transform: translateY(-5px);
}

.page-resources__highlight-title {
    font-size: 1.8em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-resources__highlight-item p {
    color: #cccccc;
    font-size: 1em;
    line-height: 1.7;
}

/* More Resources Section (Feature List) */
.page-resources__more-resources-section {
    padding: 60px 0;
}

.page-resources__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__feature-item img {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
}

.page-resources__feature-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__feature-title {
    font-size: 1.4em;
    color: #FCBC45;
    padding-bottom: 10px;
}

.page-resources__feature-text {
    font-size: 0.95em;
    color: #cccccc;
    padding-bottom: 20px;
    flex-grow: 1;
}

.page-resources__button--learn-more {
    background-color: #000000;
    color: #FCBC45;
    border: 1px solid #FCBC45;
    align-self: flex-start;
}

.page-resources__button--learn-more:hover {
    background-color: #FCBC45;
    color: #000000;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0 80px;
    background-color: #000000; /* Darker background */
}

.page-resources__faq-list {
    margin-top: 50px;
}

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

.page-resources__faq-question {
    font-size: 1.3em;
    color: #FCBC45;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #cccccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    padding-top: 0;
}

.page-resources__faq-answer.active {
    max-height: 250px; /* Increased max-height for expanded content */
    padding-top: 15px;
}

.page-resources__faq-contact {
    text-align: center;
    margin-top: 40px;
}

.page-resources__faq-contact p {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources__button--contact {
    background-color: #FCBC45;
    color: #000000;
}

.page-resources__button--contact:hover {
    background-color: #e0a73d;
}

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

.page-resources__cta-container {
    max-width: 900px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #000000;
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 40px;
}

.page-resources__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-resources__button--primary {
    background-color: #000000;
    color: #FCBC45;
}

.page-resources__button--primary:hover {
    background-color: #333333;
    color: #FCBC45;
}

.page-resources__button--secondary {
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.page-resources__button--secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-resources__hero-section {
        padding: 60px 20px;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        padding-top: 20px;
    }
    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__article-grid,
    .page-resources__feature-highlights,
    .page-resources__feature-list {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image-wrapper,
    .page-resources__feature-item img {
        height: 220px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Ensure content images do not overflow on mobile */
    .page-resources__articles-section img,
    .page-resources__why-choose-us img,
    .page-resources__more-resources-section img,
    .page-resources__faq-section img {
        max-width: 100%;
        height: auto;
    }
}