/* style/resources.css */
.page-resources {
    color: #f0f0f0; /* Light text for potential dark body background, adjusted for default white body background in shared.css to ensure contrast */
}

/* Adjusting for default white body background as per instructions */
body {
    background-color: #ffffff; /* Assuming default white background if not explicitly set in shared.css */
}

.page-resources {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #0A2463; /* Main brand color as background for hero text area */
    color: #ffffff;
}

.page-resources__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-resources__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(10, 36, 99, 0.7); /* Semi-transparent main color background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #E0B14B; /* Auxiliary color for emphasis */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-resources__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button--primary {
    background-color: #E0B14B;
    color: #0A2463;
}

.page-resources__hero-button--primary:hover {
    background-color: #f5c760;
    transform: translateY(-3px);
}

.page-resources__hero-button--secondary {
    background-color: transparent;
    border: 2px solid #E0B14B;
    color: #E0B14B;
}

.page-resources__hero-button--secondary:hover {
    background-color: #E0B14B;
    color: #0A2463;
    transform: translateY(-3px);
}

.page-resources__content-area,
.page-resources__additional-content,
.page-resources__why-choose-us,
.page-resources__cta-section,
.page-resources__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.2em;
    color: #0A2463;
    margin-bottom: 20px;
}

.page-resources__section-intro {
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

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

.page-resources__resource-card,
.page-resources__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__resource-card:hover,
.page-resources__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image,
.page-resources__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eeeeee;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title,
.page-resources__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #0A2463;
}

.page-resources__card-title a,
.page-resources__feature-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover,
.page-resources__feature-title a:hover {
    color: #E0B14B;
}

.page-resources__card-summary,
.page-resources__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-button,
.page-resources__feature-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    background-color: #0A2463;
    color: #ffffff;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__card-button:hover,
.page-resources__feature-link:hover {
    background-color: #E0B14B;
    color: #0A2463;
}

.page-resources__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.page-resources__benefit-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    line-height: 1.6;
    color: #333333;
    border-left: 5px solid #E0B14B;
}

.page-resources__benefit-item strong {
    color: #0A2463;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.page-resources__cta-section {
    background-color: #0A2463;
    color: #ffffff;
    padding: 80px 20px;
    border-radius: 15px;
    margin: 60px auto;
}

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

.page-resources__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button--primary {
    background-color: #E0B14B;
    color: #0A2463;
}

.page-resources__cta-button--primary:hover {
    background-color: #f5c760;
    transform: translateY(-3px);
}

.page-resources__cta-button--secondary {
    background-color: transparent;
    border: 2px solid #E0B14B;
    color: #E0B14B;
}

.page-resources__cta-button--secondary:hover {
    background-color: #E0B14B;
    color: #0A2463;
    transform: translateY(-3px);
}

.page-resources__faq-links {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-resources__faq-link {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid #E0B14B;
    border-radius: 25px;
    text-decoration: none;
    color: #0A2463;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__faq-link:hover {
    background-color: #E0B14B;
    color: #0A2463;
}

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

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

    .page-resources__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-content {
        max-width: 90%;
        padding: 15px;
    }

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

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

    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__hero-button {
        width: 100%;
        max-width: 300px;
        padding: 12px 25px;
    }

    .page-resources__content-area,
    .page-resources__additional-content,
    .page-resources__why-choose-us,
    .page-resources__cta-section,
    .page-resources__faq-section {
        padding: 40px 15px;
    }

    .page-resources__section-title {
        font-size: 1.6em;
    }

    .page-resources__section-intro {
        font-size: 0.95em;
    }

    .page-resources__resource-grid,
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__card-image, .page-resources__feature-image {
        height: 200px;
    }

    .page-resources__card-title,
    .page-resources__feature-title {
        font-size: 1.3em;
    }

    .page-resources__card-summary,
    .page-resources__feature-description {
        font-size: 0.9em;
    }

    .page-resources__benefits-list {
        grid-template-columns: 1fr;
    }

    .page-resources__cta-title {
        font-size: 2em;
    }

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

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
        padding: 15px 25px;
    }

    .page-resources__faq-link {
        width: 100%;
        max-width: 300px;
    }

    .page-resources__hero-image,
    .page-resources__card-image,
    .page-resources__feature-image,
    .page-resources__hero-container img,
    .page-resources__resource-card img,
    .page-resources__feature-item img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure all content area images are not smaller than 200px */
    .page-resources img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }

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

    .page-resources__section-title {
        font-size: 1.4em;
    }

    .page-resources__cta-title {
        font-size: 1.8em;
    }
}