/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-resources__btn--primary {
    background-color: #FFC107; /* Secondary color */
    color: #0A2647; /* Primary color for contrast */
}

.page-resources__btn--primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: #0A2647; /* Primary color */
    color: #ffffff;
}

.page-resources__btn--secondary:hover {
    background-color: #1a3a5e;
    transform: translateY(-2px);
}

.page-resources__btn--large {
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-resources__img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A2647 0%, #1c4a7e 100%); /* Gradient with primary color */
    color: #ffffff;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

@media (min-width: 768px) {
    .page-resources__hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 0;
    }
    .page-resources__hero-content {
        flex: 1;
        padding-left: 20px;
    }
    .page-resources__hero-image {
        flex: 1;
        padding-right: 20px;
    }
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFC107; /* Secondary color for emphasis */
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Articles Section */
.page-resources__articles {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2647; /* Primary color */
    text-align: center;
    margin-bottom: 15px;
}

.page-resources__section-subtitle {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-thumbnail {
    height: 200px;
    overflow: hidden;
}

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

.page-resources__article-content {
    padding: 25px;
}

.page-resources__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-resources__article-title a {
    color: #0A2647; /* Primary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FFC107; /* Secondary color on hover */
}

.page-resources__article-category {
    font-size: 0.9em;
    color: #FFC107; /* Secondary color */
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-resources__article-summary {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-resources__faq {
    padding: 60px 0;
    background-color: #f0f2f5;
}

.page-resources__faq-list {
    display: grid;
    gap: 20px;
}

.page-resources__faq-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.2em;
    color: #0A2647; /* Primary color */
    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.5em;
    line-height: 1;
    color: #FFC107;
    transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.page-resources__faq-answer.active {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    margin-top: 15px;
}

/* Call to Action Section */
.page-resources__cta {
    background-color: #0A2647; /* Primary color */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFC107; /* Secondary color */
}

.page-resources__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Floating Ad Menu */
.page-resources__floating-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFC107; /* Secondary color */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.page-resources__floating-ad a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #0A2647; /* Primary color for contrast */
    font-weight: bold;
}

.page-resources__floating-ad img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__floating-ad {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
    }
    .page-resources__floating-ad span {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero {
        padding: 50px 0;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__floating-ad a {
        padding: 8px 12px;
    }
    .page-resources__floating-ad img {
        width: 25px;
        height: 25px;
        margin-right: 8px;
    }
    .page-resources__floating-ad span {
        font-size: 0.8em;
    }
}