/* style/resources.css */

/* Base styles for the page content wrapper */
.page-resources {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #E0E0E0; /* Light grey for general text on dark backgrounds */
    background-color: #0A2239; /* Main dark blue background */
}

/* Container for content width */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Highlight color for keywords */
.page-resources .highlight {
    color: #FFD700; /* Gold for highlights */
    font-weight: bold;
}

/* Section Titles */
.page-resources__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for main section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}
.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* General text paragraph */
.page-resources__text {
    font-size: 1.1em;
    color: #C0C0C0; /* Lighter grey for readability */
    margin-bottom: 20px;
    text-align: justify;
}

/* Links within text */
.page-resources__text a {
    color: #FFD700;
    text-decoration: underline;
}
.page-resources__text a:hover {
    color: #e6c200;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.page-resources__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #0A2239; /* Dark blue text on gold */
    border: 2px solid #FFD700;
}
.page-resources__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text on dark background */
    border: 2px solid #FFD700;
}
.page-resources__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A2239; /* Dark blue text on gold on hover */
    transform: translateY(-2px);
}

.page-resources__btn--detail {
    background-color: #0A2239;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 8px 15px;
    font-size: 0.95em;
    border-radius: 5px;
}
.page-resources__btn--detail:hover {
    background-color: #FFD700;
    color: #0A2239;
    transform: translateY(-1px);
}

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

/* Image styles */
.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-resources__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0A2239, #1A3A54); /* Gradient background */
    position: relative;
    overflow: hidden;
}
.page-resources__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%231a3a54" opacity="0.1"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}
.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.page-resources__hero-title {
    font-size: 3.5em;
    color: #FFFFFF; /* White for hero title */
    margin-bottom: 20px;
    line-height: 1.2;
}
.page-resources__hero-description {
    font-size: 1.4em;
    color: #E0E0E0;
    margin-bottom: 40px;
}
.page-resources__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.page-resources__hero-image {
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* Introduction Section */
.page-resources__introduction {
    padding: 60px 0;
    background-color: #0A2239;
}

/* Articles Grid Section */
.page-resources__articles {
    padding: 60px 0;
    background-color: #1A3A54; /* Slightly lighter dark blue for contrast */
}
.page-resources__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-resources__article-card {
    background-color: #0A2239; /* Dark blue card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #FFD700;
}
.page-resources__article-title {
    font-size: 1.5em;
    color: #FFD700;
    padding: 15px 20px 10px;
    min-height: 70px; /* Ensure consistent height for titles */
}
.page-resources__article-description {
    font-size: 0.95em;
    color: #C0C0C0;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow description to take available space */
}
.page-resources__article-card .page-resources__btn--detail {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}


/* CTA Banner - Register */
.page-resources__cta-banner {
    background: linear-gradient(90deg, #0A2239, #2A4A64); /* Darker gradient */
    padding: 80px 20px;
    text-align: center;
    color: #FFFFFF;
}
.page-resources__cta-banner--register {
    background: linear-gradient(90deg, #0A2239, #2A4A64);
}
.page-resources__cta-banner--final {
    background: linear-gradient(90deg, #2A4A64, #0A2239);
}
.page-resources__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 25px;
}
.page-resources__cta-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.page-resources__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Promo Section */
.page-resources__promo-section {
    padding: 60px 0;
    background-color: #0A2239;
}
.page-resources__promo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}
.page-resources__promo-image {
    flex: 1 1 45%; /* Takes about half width */
    min-width: 300px;
}
.page-resources__promo-text {
    flex: 1 1 45%;
    min-width: 300px;
    color: #C0C0C0;
}
.page-resources__promo-text h3 {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
}
.page-resources__promo-text p {
    font-size: 1.1em;
    margin-bottom: 30px;
}


/* FAQ Section */
.page-resources__faq {
    padding: 60px 0 80px;
    background-color: #1A3A54; /* Slightly lighter dark blue */
}
.page-resources__faq-list {
    margin-top: 40px;
}
.page-resources__faq-item {
    background-color: #0A2239;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.page-resources__faq-question {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-resources__faq-question::after {
    content: '+';
    font-size: 1.2em;
    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;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    padding-top: 0;
}
.page-resources__faq-answer.open {
    max-height: 200px; /* Adjust as needed for content */
    padding-top: 15px;
}
.page-resources__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}
.page-resources__faq-answer a:hover {
    color: #e6c200;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
    .page-resources__cta-title {
        font-size: 2.5em;
    }
    .page-resources__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__promo-image {
        order: -1; /* Image appears first on smaller screens */
    }
    .page-resources__promo-text {
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__text {
        font-size: 1em;
    }
    .page-resources__btn--large {
        padding: 12px 25px;
        font-size: 1.1em;
        width: 100%; /* Full width buttons */
        margin: 5px 0;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__faq-question {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
}