/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Midnight Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #0a0a2a;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
}

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

.page-resources-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-resources-section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* Hero Section */
.page-resources-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

.page-resources-hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

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

.page-resources-hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-resources-cta-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-resources-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources-card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    padding: 15px;
    margin-bottom: 0;
}

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

.page-resources-card-title a:hover {
    color: var(--primary-color);
}

.page-resources-card-text {
    padding: 0 15px 15px;
    font-size: 0.95em;
    color: #666;
    flex-grow: 1;
}

.page-resources-card-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 15px 15px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources-card-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* List Styles */
.page-resources-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-resources-list-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 1.05em;
    border-left: 5px solid var(--primary-color);
    color: var(--text-dark);
}

.page-resources-list-item strong {
    color: var(--secondary-color);
}

.page-resources-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

.page-resources-article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources-article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources-article-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

.page-resources-article-title a:hover {
    color: var(--primary-color);
}

.page-resources-article-excerpt {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

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

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

.page-resources-faq-list .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

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

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

.page-resources-faq-list .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.page-resources-faq-list .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-resources-faq-list .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background: var(--background-light);
    color: var(--text-dark);
}

.page-resources-faq-list .faq-answer p {
    margin-bottom: 15px;
    padding-top: 10px;
}

.page-resources-faq-list .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 15px 25px;
}

.page-resources-faq-list .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

/* Contact CTA Section */
.page-resources-contact-cta {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0;
}

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

.page-resources-contact-cta .page-resources-section-title {
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources-contact-cta .page-resources-section-intro {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-resources-contact-cta .page-resources-cta-button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    margin: 0 15px 20px;
}

.page-resources-contact-cta .page-resources-cta-button:hover {
    background: var(--text-light);
    color: var(--secondary-color);
    border-color: var(--text-light);
}

.page-resources-contact-cta .page-resources-register-button {
    background: var(--text-light);
    color: var(--secondary-color);
    border-color: var(--text-light);
}

.page-resources-contact-cta .page-resources-register-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-hero-title {
        font-size: 2.8em;
    }

    .page-resources-hero-description {
        font-size: 1.1em;
    }

    .page-resources-section-title {
        font-size: 2em;
    }

    .page-resources-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-hero {
        padding: 60px 15px;
    }
    .page-resources-hero-image {
        max-height: 350px;
    }
    .page-resources-hero-title {
        font-size: 2.2em;
    }
    .page-resources-hero-description {
        font-size: 1em;
    }
    .page-resources-cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources-section {
        padding: 40px 0;
    }
    .page-resources-section-title {
        font-size: 1.8em;
    }
    .page-resources-section-intro {
        font-size: 0.95em;
    }
    .page-resources-card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-article-list {
        grid-template-columns: 1fr;
    }
    .page-resources-faq-list .faq-question {
        padding: 15px 20px;
    }
    .page-resources-faq-list .faq-question h3 {
        font-size: 1.1em;
    }
    .page-resources-faq-list .faq-answer {
        padding: 0 20px;
    }
    .page-resources-faq-list .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-resources-contact-cta .page-resources-cta-button {
        margin: 0 8px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-hero-title {
        font-size: 1.8em;
    }
    .page-resources-hero-description {
        font-size: 0.9em;
    }
    .page-resources-cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-resources-section-title {
        font-size: 1.5em;
    }
    .page-resources-list-item {
        font-size: 0.9em;
        padding: 15px;
    }
    .page-resources-article-title {
        font-size: 1.2em;
    }
    .page-resources-read-more {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .page-resources-faq-list .faq-question h3 {
        font-size: 1em;
    }
    .page-resources-faq-list .faq-toggle {
        font-size: 20px;
    }
    .page-resources-contact-cta .page-resources-cta-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}