/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #E0E0E0; /* Light grey for general text on dark backgrounds */
    background-color: #0A192F; /* Main dark blue background */
}

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

/* Typography */
.page-resources h1,
.page-resources h2,
.page-resources h3 {
    color: #FFD700; /* Gold for headings */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources h1 {
    font-size: 2.8em;
    color: #FFFFFF; /* White for main hero title */
}

.page-resources h2 {
    font-size: 2.2em;
    padding-top: 40px;
}

.page-resources h3 {
    font-size: 1.6em;
    color: #FFD700; /* Gold for subheadings */
}

.page-resources .highlight {
    color: #FFD700; /* Gold for highlighting keywords */
}

.page-resources p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: #C0C0C0; /* Slightly lighter grey for paragraph text */
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.page-resources__btn--primary {
    background-color: #FFD700; /* Gold background */
    color: #0A192F; /* Dark blue text */
    margin: 10px 10px 10px 0;
}

.page-resources__btn--primary:hover {
    background-color: #E6C200; /* Slightly darker gold on hover */
    color: #000000; /* Black text on hover for better contrast */
}

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

.page-resources__btn--secondary:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #0A192F; /* Dark blue text on hover */
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A192F 0%, #1A2A40 100%); /* Dark gradient */
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15; /* Subtle background image */
    z-index: 0;
}

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Intro Section */
.page-resources__intro {
    padding: 60px 0;
    background-color: #1A2A40; /* Slightly lighter dark blue */
}

.page-resources__section-title {
    margin-bottom: 40px;
    color: #FFD700;
}

.page-resources__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-item {
    background-color: #0A192F;
    border: 1px solid #FFD700;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(33% - 60px); /* Three items per row on desktop */
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Make icons stand out */
}

.page-resources__feature-title {
    color: #FFD700;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.page-resources__feature-description {
    color: #C0C0C0;
    font-size: 0.95em;
}

/* Articles Section */
.page-resources__articles {
    padding: 60px 0;
    background-color: #0A192F;
}

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

.page-resources__article-item {
    background-color: #1A2A40;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #FFD700;
}

.page-resources__article-item h3 {
    text-align: left;
    padding: 15px 20px 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

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

.page-resources__article-item h3 a:hover {
    color: #E6C200;
}

.page-resources__article-description {
    padding: 0 20px 15px;
    color: #C0C0C0;
    font-size: 0.9em;
    flex-grow: 1; /* Ensures buttons align at bottom */
}

.page-resources__article-item .page-resources__btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-resources__cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #1A2A40;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #FFFFFF;
}

/* About Section */
.page-resources__about {
    padding: 60px 0;
    background-color: #1A2A40;
    text-align: center;
}

.page-resources__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact CTA Section */
.page-resources__contact-cta {
    padding: 60px 0;
    background-color: #0A192F;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources h1 {
        font-size: 2.5em;
    }
    .page-resources h2 {
        font-size: 1.8em;
    }
    .page-resources h3 {
        font-size: 1.4em;
    }
    .page-resources p {
        font-size: 1em;
    }
    .page-resources__features {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__feature-item {
        flex: 1 1 80%;
    }
    .page-resources__article-item h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources h1 {
        font-size: 2em;
    }
    .page-resources h2 {
        font-size: 1.6em;
    }
    .page-resources h3 {
        font-size: 1.2em;
    }
    .page-resources p {
        font-size: 1em;
    }
    .page-resources__article-list {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-resources__cta .page-resources__btn {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__btn {
        width: 100%;
        margin: 5px 0;
    }
    .page-resources__features {
        gap: 20px;
    }
    .page-resources__feature-item {
        padding: 20px;
    }
    .page-resources__cta .page-resources__btn {
        width: 100%; /* Ensure both buttons stack */
    }
}