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

.page-resources__hero-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-resources__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-resources__hero-content {
    max-width: 900px;
}

.page-resources__hero-title {
    color: #007BFF;
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

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

.page-resources__btn--primary {
    background-color: #007BFF;
    color: #ffffff;
}

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

.page-resources__btn--secondary {
    background-color: #FFC107;
    color: #333333;
}

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

.page-resources__btn--tertiary {
    background-color: #e9ecef;
    color: #007BFF;
    padding: 10px 20px;
    font-size: 1em;
}

.page-resources__btn--tertiary:hover {
    background-color: #dae0e5;
    color: #0056b3;
}

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

.page-resources__articles-section,
.page-resources__additional-info-section,
.page-resources__cta-section,
.page-resources__about-plus777 {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__section-title {
    color: #007BFF;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

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

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    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 20px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-resources__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-resources__article-card:hover .page-resources__card-image {
    transform: scale(1.05);
}

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

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

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

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

.page-resources__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__feature-icon {
    width: 200px; /* Min size for content images */
    height: 133px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-resources__feature-description {
    color: #666666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-resources__cta-section {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin: 60px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-resources__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__cta-actions .page-resources__btn {
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 10px;
}

.page-resources__cta-actions .page-resources__btn--primary {
    background-color: #FFC107;
    color: #333333;
}

.page-resources__cta-actions .page-resources__btn--primary:hover {
    background-color: #e0a800;
}

.page-resources__cta-actions .page-resources__btn--secondary {
    background-color: #ffffff;
    color: #007BFF;
}

.page-resources__cta-actions .page-resources__btn--secondary:hover {
    background-color: #e9ecef;
}

.page-resources__about-plus777 {
    padding: 60px 0;
    background-color: #f8f9fa;
}

@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px);
    }
    .page-resources__hero-section {
        padding: 60px 15px;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 100%;
        max-width: 300px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-intro {
        font-size: 1em;
    }
    .page-resources__article-grid,
    .page-resources__features-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-card,
    .page-resources__feature-card {
        margin-bottom: 20px;
    }
    .page-resources__cta-section {
        padding: 60px 15px;
        margin: 40px 20px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    /* Mobile image sizing for content area - MUST be max-width: 100%; height: auto; */
    .page-resources__hero-image,
    .page-resources__card-image,
    .page-resources__feature-icon {
        max-width: 100%;
        height: auto;
    }
    /* Ensure all images within .page-resources are not smaller than 200px */
    .page-resources img {
        min-width: 200px;
        min- /* Adjust height for aspect ratio, but ensure width is at least 200px */
    }
    .page-resources__card-image-wrapper {
      height: auto; /* Allow height to adjust with max-width: 100% */
    }
}