/* style/resources.css */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    color: #333333; /* Dark text on default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2463; /* Main brand color */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Accent color */
    border-radius: 2px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-resources__hero-section {
    background-color: #0A2463; /* Dark background for hero */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.page-resources__hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-resources__hero-content {
    color: #ffffff;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.5;
}

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

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

.page-resources__btn--primary {
    background-color: #FFD700; /* Gold */
    color: #0A2463; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-resources__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

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

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

.page-resources__btn--link {
    color: #0A2463;
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-resources__btn--link:hover {
    color: #FFD700;
    transform: none;
}

.page-resources__btn--cta {
    background-color: #0A2463;
    color: #FFD700;
    border: 2px solid #0A2463;
}

.page-resources__btn--cta:hover {
    background-color: #FFD700;
    color: #0A2463;
    border-color: #FFD700;
    transform: translateY(-3px);
}

.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__value-proposition-section,
.page-resources__community-section,
.page-resources__call-to-action,
.page-resources__faq-section,
.page-resources__download-section {
    padding: 60px 0;
}

.page-resources__intro-section .page-resources__section-description,
.page-resources__value-proposition-section .page-resources__section-description,
.page-resources__community-section .page-resources__section-description {
    text-align: left;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__articles-section {
    background-color: #f9f9f9;
}

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.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: 15px;
    color: #0A2463;
}

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

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

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

.page-resources__value-proposition-section {
    background-color: #f0f4f8;
}

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

.page-resources__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__feature-icon {
    width: 300px; /* Min width 200px enforced */
    height: 200px; /* Min height 200px enforced */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources__feature-title {
    font-size: 1.3em;
    color: #0A2463;
    margin-bottom: 10px;
}

.page-resources__feature-description {
    font-size: 0.9em;
    color: #666666;
}

.page-resources__call-to-action {
    background-color: #0A2463; /* Dark blue background */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-resources__call-to-action .page-resources__section-title {
    color: #FFD700; /* Gold title */
}

.page-resources__call-to-action .page-resources__section-description {
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-resources__community-section {
    background-color: #f9f9f9;
}

.page-resources__community-section--alt {
    background-color: #eef2f6;
}

.page-resources__faq-section {
    background-color: #ffffff;
}

.page-resources__faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
}

.page-resources__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #0A2463;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-resources__faq-question::after {
    content: '+';
    font-size: 1.2em;
    color: #FFD700;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

.page-resources__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}

.page-resources__download-section {
    background-color: #0A2463;
    color: #ffffff;
}

.page-resources__download-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.page-resources__download-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-resources__download-content .page-resources__section-title {
    color: #FFD700;
    text-align: left;
}

.page-resources__download-content .page-resources__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-resources__download-content .page-resources__section-description {
    color: #e0e0e0;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-resources__download-image {
    flex: 1 1 40%;
    max-width: 400px; /* Min width 200px enforced */
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__article-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .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__btn {
        width: 100%;
        padding: 12px 20px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__article-grid,
    .page-resources__features-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image,
    .page-resources__feature-icon,
    .page-resources__download-image {
        max-width: 100%;
        height: auto; /* Ensure images scale down */
        min-width: 200px; /* Ensure images don't go below 200px as per rule */
        min-height: 200px;
        object-fit: contain;
    }
    .page-resources__download-container {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__download-content {
        text-align: center;
    }
    .page-resources__download-content .page-resources__section-title {
        text-align: center;
    }
    .page-resources__download-content .page-resources__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .page-resources__download-content .page-resources__section-description {
        text-align: center;
    }
    .page-resources__container {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__btn {
        font-size: 1em;
    }
}

/* Ensure all images within .page-resources are at least 200px by default */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
}