/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark grey for general text on light backgrounds */
    background-color: #ffffff;
}

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

/* Hero Section */
.page-resources__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ffffff; /* White text on hero background */
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1E90FF, #0f4d8a); /* Darker blue gradient for hero background */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly transparent to let gradient show */
    z-index: 0;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for hero title */
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Lighter grey for description */
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #1a1a1a; /* Dark text for gold button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 0;
}

.page-resources__bg-alt {
    background-color: #f8f8f8; /* Light grey background for alternating sections */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Dodger blue for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-title--white {
    color: #ffffff; /* White title on dark backgrounds */
}

.page-resources__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333333; /* Dark grey for general text */
}

.page-resources__text--center {
    text-align: center;
}

.page-resources__text--white {
    color: #f0f0f0; /* Lighter grey for text on dark backgrounds */
}

/* Highlighted text within titles/descriptions */
.page-resources .highlight {
    color: #FFD700; /* Gold for highlights */
}

/* Flex container for sections with image and text */
.page-resources__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-resources__flex-container.page-resources__flex-reverse {
    flex-direction: row-reverse;
}

.page-resources__content-block {
    flex: 1;
}

.page-resources__image-block {
    flex: 1;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Resource List Section */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #1E90FF; /* Dodger blue for card titles */
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #1E90FF; /* Link color for card title */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #0f4d8a; /* Darker blue on hover */
}

.page-resources__card-description {
    font-size: 0.95em;
    color: #555555; /* Slightly lighter grey for description */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #1a1a1a; /* Dark text for gold button */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
}

/* Call to Action Section */
.page-resources__cta {
    position: relative;
    background: linear-gradient(135deg, #1E90FF, #0f4d8a); /* Dark blue gradient */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Slightly transparent */
    z-index: 0;
}

.page-resources__cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

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

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

.page-resources__cta-button--primary {
    background-color: #FFD700; /* Gold button */
    color: #1a1a1a; /* Dark text */
}

.page-resources__cta-button--primary:hover {
    background-color: #e6c200; /* Darker gold */
    transform: translateY(-2px);
}

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

.page-resources__cta-button--secondary:hover {
    background-color: #FFD700; /* Gold background */
    color: #1a1a1a; /* Dark text */
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__flex-container {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__flex-container.page-resources__flex-reverse {
        flex-direction: column; /* Revert for smaller screens */
    }
    .page-resources__image-block {
        order: -1; /* Image appears before text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        min-height: 400px;
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-button,
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
}