:root {
    --primary-color: #FFD700; /* Luxurious Gold */
    --secondary-color: #8B0000; /* Deep Red */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources {
    color: var(--text-color-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.1));
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-resources__hero-description {
    font-size: 1.3em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-resources__hero-image-wrapper {
    margin-top: 40px;
    max-width: 1200px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.page-resources__articles-section,
.page-resources__deep-dive-section,
.page-resources__cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-resources__articles-title,
.page-resources__deep-dive-title,
.page-resources__cta-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__articles-intro,
.page-resources__deep-dive-intro,
.page-resources__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__article-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 20px 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 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-resources__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__article-card:hover .page-resources__article-image {
    transform: scale(1.05);
}

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

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

.page-resources__article-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-card-title a:hover {
    color: var(--primary-color);
}

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

.page-resources__article-summary {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__article-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__deep-dive-section h3 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-resources__deep-dive-section p {
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.page-resources__bullet-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.page-resources__bullet-list li {
    margin-bottom: 8px;
}

.page-resources__bullet-list li strong {
    color: var(--secondary-color);
}

.page-resources__image-block {
    text-align: center;
    margin: 40px 0;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-resources__image-caption {
    font-style: italic;
    color: #666;
    margin-top: 15px;
    font-size: 0.95em;
}

.page-resources__cta-section {
    background: linear-gradient(90deg, var(--secondary-color), rgba(139, 0, 0, 0.8));
    color: var(--text-color-light);
    padding: 60px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 80px;
}

.page-resources__cta-title {
    color: var(--primary-color);
    font-size: 2.8em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-resources__cta-description {
    color: var(--text-color-light);
    font-size: 1.2em;
    margin-bottom: 40px;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__cta-button--primary {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

.page-resources__cta-button--secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-resources__cta-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__articles-title,
    .page-resources__deep-dive-title,
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__article-card-title {
        font-size: 1.4em;
    }
    .page-resources__deep-dive-section h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px);
    }
    .page-resources__hero-section {
        padding: 60px 20px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__articles-title,
    .page-resources__deep-dive-title,
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__articles-intro,
    .page-resources__deep-dive-intro,
    .page-resources__cta-description {
        font-size: 0.95em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image-wrapper {
        height: 200px;
    }
    .page-resources__article-content {
        padding: 20px;
    }
    .page-resources__article-card-title {
        font-size: 1.3em;
    }
    .page-resources__deep-dive-section h3 {
        font-size: 1.6em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
    }
    /* Ensure content images do not overflow */
    .page-resources__hero-image,
    .page-resources__article-image,
    .page-resources__content-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__articles-title,
    .page-resources__deep-dive-title,
    .page-resources__cta-title {
        font-size: 1.5em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__article-card-title {
        font-size: 1.2em;
    }
    .page-resources__article-summary {
        font-size: 0.9em;
    }
    .page-resources__cta-button {
        font-size: 1em;
        padding: 14px 25px;
    }
}