/* style/resources.css */

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

.page-resources__section-title {
    color: #FFD700; /* Accent color for main titles */
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    padding: 0 15px; /* Prevent text overflow on small screens */
}

.page-resources__section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Prevent text overflow on small screens */
}

/* Hero Section */
.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0A192F, #1A3A5F); /* Subtle gradient for depth */
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 2; /* Ensure content is above image */
    position: relative;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-resources__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 150px; /* Ensure buttons have a minimum width */
    text-align: center;
}

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

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

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

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

.page-resources__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain max width for desktop */
    margin-top: 40px;
    z-index: 1; /* Keep content above */
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
}

/* Articles Section */
.page-resources__articles-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__articles-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.08); /* Slightly transparent white for card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    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 20px rgba(0, 0, 0, 0.5);
}

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

.page-resources__article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
    display: block;
    min-width: 200px; /* Ensure card images are not too small */
    min-height: 200px; /* Ensure card images are not too small */
}

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

.page-resources__article-title {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-resources__btn--link {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    align-self: flex-start; /* Align button to start of flex container */
}

.page-resources__btn--link:hover {
    background-color: #FFD700;
    color: #0A192F;
}

/* Why Choose Us Section */
.page-resources__why-choose-us-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
    border-radius: 10px;
    margin-bottom: 80px;
}

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

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-resources__feature-title {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-resources__feature-text {
    color: #cccccc;
    font-size: 0.95rem;
}

/* CTA Section */
.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1A3A5F, #0A192F);
    margin-bottom: 80px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-resources__cta-image {
    width: 100%;
    max-width: 800px; /* Constrain max width for desktop */
    margin: 40px auto 0;
}

.page-resources__cta-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
}

/* Commitment Section */
.page-resources__commitment-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-resources__commitment-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-resources__commitment-heading {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-resources__commitment-text {
    color: #cccccc;
    font-size: 0.95rem;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5rem;
    }

    .page-resources__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific rules for images */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }

    .page-resources__hero-section {
        padding: 40px 15px;
    }

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

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

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

    .page-resources__btn {
        width: 100%;
        max-width: 280px; /* Constrain button width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-resources__articles-section,
    .page-resources__why-choose-us-section,
    .page-resources__cta-section,
    .page-resources__commitment-section {
        padding: 40px 15px;
    }

    .page-resources__articles-grid,
    .page-resources__feature-list,
    .page-resources__commitment-points {
        grid-template-columns: 1fr; /* Stack cards/items on mobile */
    }

    .page-resources__article-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    .page-resources__article-title {
        font-size: 1.3rem;
    }

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

    .page-resources__section-description {
        font-size: 0.95rem;
    }

    .page-resources__hero-image img,
    .page-resources__article-image img,
    .page-resources__cta-image img {
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px; /* Ensure images are not too small */
    }
}

/* Ensure no image filters are applied */
.page-resources img {
    filter: none !important;
}

/* Content area images must be at least 200px wide/high */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure no smaller dimensions are applied to images in content area */
.page-resources__hero-image img,
.page-resources__article-image img,
.page-resources__cta-image img {
    width: auto; /* Allow width to be determined by max-width */
    height: auto; /* Allow height to be determined by max-height */
}

/* Override any potential smaller image dimensions on mobile, if necessary */
@media (max-width: 768px) {
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    /* Explicitly ensure content images are not shrunk below 200px by specific rules if they were */
    .page-resources__hero-image img,
    .page-resources__article-image img,
    .page-resources__cta-image img {
        min-width: 200px; /* Re-assert minimum size */
        min-height: 200px; /* Re-assert minimum size */
    }
}