/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #f8f8f8; /* Light background for the content area */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for contrast with gold/red */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the image to make text stand out */
    display: block;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources__hero-cta-button {
    display: inline-block;
    background-color: #8B0000; /* Dark Red for CTA button */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #FFD700; /* Gold border */
}

.page-resources__hero-cta-button:hover {
    background-color: #FFD700; /* Gold on hover */
    color: #8B0000;
    transform: translateY(-3px);
    border-color: #8B0000;
}

/* Introduction Section */
.page-resources__intro-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-resources__intro-heading {
    font-size: 2.5em;
    color: #8B0000; /* Dark red heading */
    margin-bottom: 25px;
}

.page-resources__intro-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Why Section */
.page-resources__why-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.page-resources__why-heading {
    font-size: 2.5em;
    color: #8B0000;
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__why-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-resources__why-text {
    flex: 1;
    min-width: 300px;
}

.page-resources__why-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-resources__why-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__why-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    min-width: 200px;
    min-height: 200px;
}

/* Categories Section */
.page-resources__categories-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-resources__categories-heading {
    font-size: 2.5em;
    color: #8B0000;
    margin-bottom: 25px;
}

.page-resources__categories-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

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

.page-resources__category-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-resources__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-resources__category-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold for category titles */
    margin-bottom: 15px;
}

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

.page-resources__category-link {
    display: inline-block;
    background-color: #8B0000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__category-link:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Articles Section */
.page-resources__articles-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-resources__articles-heading {
    font-size: 2.5em;
    color: #8B0000;
    text-align: center;
    margin-bottom: 25px;
}

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

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    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 6px 16px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: #8B0000; /* Dark red for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-resources__article-category {
    font-size: 0.9em;
    color: #999999;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

.page-resources__article-button {
    display: inline-block;
    background-color: #FFD700; /* Gold for read more button */
    color: #333333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.page-resources__article-button:hover {
    background-color: #8B0000; /* Dark red on hover */
    color: #ffffff;
}

/* CTA Section */
.page-resources__cta-section {
    background-color: #8B0000; /* Dark red background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__cta-heading {
    font-size: 2.8em;
    color: #FFD700; /* Gold heading */
    margin-bottom: 20px;
}

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

.page-resources__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #333333;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #ffffff; /* White border */
}

.page-resources__cta-button:hover {
    background-color: #ffffff;
    color: #8B0000;
    transform: translateY(-3px);
    border-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__intro-heading,
    .page-resources__why-heading,
    .page-resources__categories-heading,
    .page-resources__articles-heading,
    .page-resources__cta-heading {
        font-size: 2em;
    }
    .page-resources__article-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .page-resources__why-content-wrapper {
        flex-direction: column;
    }

    .page-resources__intro-heading,
    .page-resources__why-heading,
    .page-resources__categories-heading,
    .page-resources__articles-heading,
    .page-resources__cta-heading {
        font-size: 1.8em;
    }
    .page-resources__intro-text,
    .page-resources__why-paragraph,
    .page-resources__categories-intro,
    .page-resources__category-description,
    .page-resources__articles-intro,
    .page-resources__article-summary,
    .page-resources__cta-description {
        font-size: 0.95em;
    }

    .page-resources__category-grid,
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__article-image {
        height: 200px;
    }
    
    .page-resources__article-card,
    .page-resources__category-item {
      margin-bottom: 20px;
    }
    
    /* Mobile content area images must not overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    /* Specific image sizing for content area */
    .page-resources__why-image,
    .page-resources__article-image {
        max-width: 100%;
        height: auto;
        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__intro-heading,
    .page-resources__why-heading,
    .page-resources__categories-heading,
    .page-resources__articles-heading,
    .page-resources__cta-heading {
        font-size: 1.5em;
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    .page-resources__cta-button {
        font-size: 1.2em;
        padding: 15px 25px;
    }
}