/* style/resources.css */
.page-resources {
    color: #333333; /* Deep gray for readability on light background */
}

.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: #f0f8ff; /* Light background for the hero section */
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    color: #0056b3; /* Darker blue for contrast */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-resources__hero-description {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.page-resources__button--primary {
    background-color: #007bff; /* Primary brand blue */
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-resources__button--primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.page-resources__button--secondary {
    background-color: transparent;
    color: #007bff; /* Primary brand blue text */
    border: 2px solid #007bff;
}

.page-resources__button--secondary:hover {
    background-color: #e0f2ff;
    color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.page-resources__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 6px;
    background-color: #28a745; /* Auxiliary brand green */
    color: #ffffff;
    border: 2px solid #28a745;
}

.page-resources__button--small:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

.page-resources__button--centered {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it block to center with margin auto */
    width: fit-content; /* Adjust width to content */
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1920px;
    margin: 40px auto 0 auto; /* Space below text, centered */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #666666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-resources__article-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

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

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

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

.page-resources__deep-dive-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 50px;
}

.page-resources__deep-dive-section .page-resources__section-title {
    color: #007bff;
    margin-bottom: 30px;
}

.page-resources__deep-dive-section .page-resources__section-description {
    color: #555555;
    margin-bottom: 60px;
}

.page-resources__subsection-title {
    font-size: 2em;
    color: #0056b3;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.page-resources__deep-dive-section p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 20px;
}

.page-resources__deep-dive-section p:last-of-type {
    margin-bottom: 0;
}

.page-resources__conclusion-text {
    font-size: 1.15em;
    font-style: italic;
    text-align: center;
    margin-top: 60px;
    color: #007bff;
    font-weight: 500;
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.15em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.7em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px);
        padding-bottom: 40px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 80%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__content-area {
        padding: 20px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-card {
        margin-bottom: 20px;
    }
    .page-resources__article-image {
        height: 200px; /* Adjust height for mobile */
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    .page-resources__article-summary {
        font-size: 0.9em;
    }
    .page-resources__deep-dive-section {
        padding: 40px 0;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__deep-dive-section p {
        font-size: 0.95em;
    }
    .page-resources__conclusion-text {
        font-size: 1em;
        margin-top: 40px;
    }
    /* Mobile content images: must use max-width: 100%; height: auto; */
    .page-resources__content-area img,
    .page-resources__articles-grid img,
    .page-resources__deep-dive-section img {
        max-width: 100%;
        height: auto;
        box-sizing: border-box; /* Include padding/border in element's total width */
    }
    .page-resources__hero-image {
        width: 100%; /* Ensure hero image is responsive */
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__button {
        width: 90%;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
}