/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure hero takes significant viewport height */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-resources__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5rem;
    color: #FF4500; /* Brand color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-resources__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-resources__section-title {
    font-size: 2.5rem;
    color: #FF4500; /* Brand color for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #1E90FF; /* Auxiliary color for accent */
    border-radius: 2px;
}

.page-resources__paragraph {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__paragraph a {
    color: #1E90FF; /* Links in paragraphs */
    text-decoration: none;
}

.page-resources__paragraph a:hover {
    text-decoration: underline;
}

/* Images */
.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-resources__image-center {
    display: block;
    margin: 40px auto;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-resources__category-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have a consistent height */
}

.page-resources__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    max-height: 200px; /* Limit image height in card */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-resources__card-title {
    font-size: 1.5rem;
    color: #FF4500;
    margin-bottom: 15px;
}

.page-resources__card-title a {
    color: #FF4500;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-description {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn-link {
    display: inline-block;
    color: #1E90FF;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: #FF4500;
    text-decoration: underline;
}

/* Benefits Section */
.page-resources__benefits-section {
    background: #1a1a1a; /* Darker background for contrast */
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.page-resources__benefits-section .page-resources__section-title {
    color: #FF4500;
}

.page-resources__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.page-resources__benefits-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #1E90FF;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__benefits-item strong {
    color: #FF4500;
}

.page-resources__benefits-item a {
    color: #1E90FF;
    text-decoration: none;
}

.page-resources__benefits-item a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-resources__faq-section {
    margin-top: 60px;
}

.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.page-resources__faq-question:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-resources__faq-question h3 {
    font-size: 1.25rem;
    color: #FF4500;
    margin: 0;
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1E90FF;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(0deg); /* No rotation for minus sign */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    font-size: 1.05rem;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px; /* Adjust padding for active state */
}

.page-resources__faq-answer p {
    margin: 0;
    color: #cccccc;
    text-align: justify;
}

.page-resources__faq-answer a {
    color: #1E90FF;
    text-decoration: none;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-resources__cta-section {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background: #0a0a0a; /* Ensure dark background for this section */
}

.page-resources__cta-section .page-resources__section-title {
    color: #FF4500;
}

.page-resources__cta-section .page-resources__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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