/* style/resources.css */

/* General page styling */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #F0F2F5; /* Light grey for general text on dark background */
    background-color: #0A192F; /* Main dark blue background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A192F 0%, #1A3450 100%); /* Dark blue gradient */
    padding: 100px 0;
    text-align: center;
    color: #FFD700; /* Gold for hero text */
    position: relative;
    overflow: hidden;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #E0E0E0; /* Lighter grey for description */
}

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

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

.page-resources__btn--primary {
    background-color: #FFD700; /* Gold */
    color: #0A192F; /* Dark blue */
    border: 2px solid #FFD700;
}

.page-resources__btn--primary:hover {
    background-color: #e6c200; /* Darker gold */
    color: #000;
    transform: translateY(-3px);
}

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

.page-resources__btn--secondary:hover {
    background-color: #FFD700; /* Gold */
    color: #0A192F; /* Dark blue */
    transform: translateY(-3px);
}

/* Section Styling */
.page-resources__section {
    padding: 60px 0;
    background-color: #0A192F; /* Consistent dark background */
}

.page-resources__section:nth-of-type(even) {
    background-color: #1A2A40; /* Slightly lighter dark blue for alternating sections */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-subtitle {
    font-size: 1.2em;
    color: #E0E0E0;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__introduction p,
.page-resources__deeper-insights p {
    font-size: 1.1em;
    color: #F0F2F5; /* Light grey for paragraph text */
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-resources__image--intro-banner {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

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

.page-resources__article-card {
    background-color: #1A2A40; /* Card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-resources__article-card .page-resources__article-title {
    font-size: 1.4em;
    color: #FFD700; /* Gold for article titles */
    margin: 20px 20px 10px;
    line-height: 1.3;
}

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

.page-resources__article-card .page-resources__article-title a:hover {
    color: #e6c200; /* Darker gold on hover */
}

.page-resources__article-description {
    font-size: 0.95em;
    color: #C0C0C0; /* Lighter grey for description */
    margin: 0 20px 20px;
    flex-grow: 1; /* Ensures descriptions take up available space */
}

.page-resources__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}

/* CTA Section */
.page-resources__cta-section {
    background: linear-gradient(90deg, #0A192F, #333);
    text-align: center;
    padding: 80px 0;
}

.page-resources__cta-content {
    background-color: #1A2A40; /* Slightly lighter dark background for content block */
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    max-width: 900px;
}

.page-resources__section-title--light {
    color: #FFD700; /* Gold */
    margin-bottom: 25px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #F0F2F5; /* Light grey */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__btn--cta {
    background-color: #FFD700;
    color: #0A192F;
    border: none;
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 50px; /* Pill shape */
    margin: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__btn--cta:hover {
    background-color: #e6c200;
    transform: translateY(-5px) scale(1.02);
}

.page-resources__btn--cta-secondary {
    background-color: #0A192F;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 50px;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__btn--cta-secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
    transform: translateY(-5px) scale(1.02);
}

/* FAQ Section */
.page-resources__faq {
    background-color: #0A192F;
    padding-bottom: 80px;
}

.page-resources__faq-item {
    background-color: #1A2A40;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-resources__faq-item:hover {
    background-color: #2A3B50;
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #FFD700; /* Gold */
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-resources__faq-answer {
    font-size: 1.05em;
    color: #C0C0C0; /* Light grey */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.page-resources__faq-answer.active {
    max-height: 200px; /* Adjust as needed for content length */
    padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__introduction p,
    .page-resources__deeper-insights p {
        font-size: 1em;
    }
    .page-resources__article-card .page-resources__article-title {
        font-size: 1.2em;
    }
    .page-resources__cta-content {
        padding: 30px;
    }
    .page-resources__btn--cta,
    .page-resources__btn--cta-secondary {
        padding: 15px 25px;
        font-size: 1.1em;
        width: 90%;
        max-width: 350px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__btn {
        width: 90%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-content {
        padding: 20px;
    }
    .page-resources__btn--cta,
    .page-resources__btn--cta-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}