/* style/resources.css */

/* Base styling for the page content, ensuring header offset */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below the fixed header */
    background-color: #0d1117; /* Matches body background for consistency if not inherited */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    background-color: #1A202C; /* Main dark theme color */
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Make background image subtle */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #1A202C; /* Dark text on gold */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* General Section Styling */
.page-resources__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* Article Grid Section */
.page-resources__articles-section {
    padding: 80px 0;
    background-color: #1A202C;
}

.page-resources__article-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 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

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

.page-resources__read-more-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A202C;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-resources__read-more-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #0d1117;
    padding: 100px 20px;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    min-width: 180px;
}

.page-resources__cta-button--primary {
    background-color: #FFD700;
    color: #1A202C;
}

.page-resources__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-resources__cta-button--secondary {
    background-color: #1A202C;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-resources__cta-button--tertiary {
    background-color: transparent;
    color: #f0f0f0;
    border: 2px solid #f0f0f0;
}

.page-resources__cta-button--tertiary:hover {
    background-color: #f0f0f0;
    color: #1A202C;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-resources__cta-buttons--inline {
    margin-top: 30px;
}

/* Long Content Section */
.page-resources__long-content-section {
    padding: 80px 0;
    background-color: #1A202C;
}

.page-resources__paragraph {
    font-size: 1.05em;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.page-resources__paragraph a {
    color: #FFD700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.page-resources__sub-title {
    font-size: 2em;
    color: #FFD700;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}