:root {
    --primary-color: #0A192F;
    --secondary-color: #E0B400;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --background-light: #ffffff;
    --background-dark: #0A192F;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.page-resources a:hover {
    color: #FFD700; /* Slightly brighter gold */
}

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

/* Hero Section */
.page-resources-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow: hidden;
}

.page-resources-hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-resources-hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-cta-button:hover {
    background: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-resources-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.page-resources-section:nth-of-type(odd) {
    background-color: #f8f8f8;
}

.page-resources-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources-section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.page-resources-section p {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Card Grid */
.page-resources-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.page-resources-card h3 a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-resources-card h3 a:hover {
    color: var(--secondary-color);
}

.page-resources-card p {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px 20px 20px;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 0;
}

.page-resources-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.page-resources-card-button:hover {
    background: #FFD700;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-resources-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color);
    flex-grow: 1;
    text-align: left;
}

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    text-align: left;
    font-size: 1em;
}

/* Article List */
.page-resources-article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-resources-article-item {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources-article-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources-article-item h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.page-resources-article-item h3 a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-resources-article-item h3 a:hover {
    color: var(--secondary-color);
}

.page-resources-article-item p {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px 20px 20px;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 0;
}

.page-resources-read-more {
    display: inline-block;
    padding: 8px 15px;
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.page-resources-read-more:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-hero h1 {
        font-size: 2.5em;
    }
    .page-resources-hero p {
        font-size: 1em;
    }
    .page-resources-section h2 {
        font-size: 2em;
    }
    .page-resources-section p {
        font-size: 1em;
    }
    .page-resources-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources-article-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-hero {
        padding: 40px 15px;
    }
    .page-resources-hero h1 {
        font-size: 2em;
    }
    .page-resources-hero p {
        font-size: 0.95em;
    }
    .page-resources-cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources-section {
        padding: 60px 0;
    }
    .page-resources-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-section h2::after {
        bottom: -10px;
    }
    .page-resources-section p {
        margin-bottom: 40px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-hero h1 {
        font-size: 1.8em;
    }
    .page-resources-hero p {
        font-size: 0.9em;
    }
    .page-resources-cta-button {
        width: 100%;
        box-sizing: border-box;
    }
    .page-resources-card-grid,
    .page-resources-article-list {
        grid-template-columns: 1fr;
    }
    .page-resources-card h3,
    .page-resources-article-item h3 {
        font-size: 1.3em;
    }
    .page-resources-card-button,
    .page-resources-read-more {
        width: calc(100% - 40px);
        text-align: center;
    }
}