/* style/resources.css */

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #444; /* Dark grey for body text for good contrast on light backgrounds */
    background-color: #f8f8f8; /* Light background */
}

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

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A2342 0%, #2a4c7a 100%); /* Deep blue gradient */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #E6B325; /* Accent color for title */
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
}

.page-resources__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-resources__btn--primary {
    background-color: #E6B325; /* Accent color */
    color: #0A2342; /* Main color for text on accent button */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__btn--primary:hover {
    background-color: #ffc94d; /* Lighter accent on hover */
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: #0A2342; /* Main color */
    color: #E6B325; /* Accent color for text on main button */
    border: 2px solid #E6B325;
    padding: 10px 20px;
    font-size: 1em;
}

.page-resources__btn--secondary:hover {
    background-color: #1a3a63; /* Slightly lighter main color on hover */
    color: #ffc94d;
    transform: translateY(-1px);
}

.page-resources__btn--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Section Styles */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2342; /* Main color */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-intro {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Why Us Section */
.page-resources__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: left;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.page-resources__feature-heading {
    font-size: 1.5em;
    color: #0A2342;
    margin-bottom: 15px;
}

.page-resources__feature-text {
    color: #666;
    margin-bottom: 20px;
}

.page-resources__link {
    color: #0A2342; /* Changed to main color for better contrast on light background */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__link:hover {
    color: #E6B325; /* Accent color on hover */
}

/* Articles Section */
.page-resources__section--articles {
    background-color: #f0f4f8; /* Slightly darker background for contrast */
}

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

.page-resources__article-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-resources__article-item:hover {
    transform: translateY(-5px);
}

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-resources__article-title {
    font-size: 1.3em;
    color: #0A2342;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
    min-height: 60px; /* Ensure consistent height for titles */
}

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

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

.page-resources__article-description {
    color: #666;
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-resources__article-item .page-resources__btn--secondary {
    margin: 0 20px 20px 20px;
    align-self: flex-start; /* Align button to the start */
}


/* CTA Section */
.page-resources__section--cta {
    background: #0A2342; /* Main color background */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__cta-content {
    max-width: 900px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #E6B325; /* Accent color for CTA title */
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-resources__section--faq {
    padding-bottom: 80px;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.25em;
    color: #0A2342;
    padding: 20px 25px;
    cursor: pointer;
    margin: 0;
    position: relative;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #E6B325;
    transition: transform 0.3s ease;
}

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

.page-resources__faq-question:hover {
    background-color: #f5f5f5;
}

.page-resources__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: #555;
}

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

.page-resources__faq-answer p {
    margin: 0;
}

.page-resources__faq-answer a {
    color: #0A2342; /* Changed to main color for better contrast on light background */
    text-decoration: none;
    font-weight: bold;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
    color: #E6B325; /* Accent color on hover */
}

/* Newsletter Section */
.page-resources__section--newsletter {
    background-color: #1a3a63; /* Darker blue */
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__newsletter-content {
    max-width: 700px;
}

.page-resources__newsletter-title {
    font-size: 2.2em;
    color: #E6B325;
    margin-bottom: 15px;
}

.page-resources__newsletter-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-resources__newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-resources__newsletter-input {
    padding: 12px 20px;
    border: 1px solid #E6B325;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
    max-width: 350px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-resources__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-resources__newsletter-form .page-resources__btn--primary {
    padding: 12px 25px;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-list {
        grid-template-columns: 1fr;
    }
    .page-resources__newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__newsletter-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-question::after {
        right: 20px;
    }
}