/* style/resources.css */
.page-resources {
    color: #ffffff; /* Dark body background #121212, so text is white */
}

.page-resources__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Adjusted padding-top for header offset */
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    line-height: 1.6;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-resources__btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.page-resources__btn-secondary:hover {
    background-color: #ffc107;
    color: #121212;
}

.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffc107;
}

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

.page-resources__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-resources__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-resources__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    padding: 60px 20px;
    color: #ffffff;
}

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

.page-resources__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffc107;
    line-height: 1.3;
}

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

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

.page-resources__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: #e0e0e0;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-resources__list-item {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-resources__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    color: #007bff;
}

.page-resources__cta-buttons--center {
    margin-top: 40px;
}

.page-resources__video-section {
    position: relative;
    padding: 60px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    display: block;
}

.page-resources__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.page-resources__faq-section {
    padding-bottom: 80px;
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffc107;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

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

.page-resources__faq-title {
    margin: 0;
    color: #ffc107;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px;
}

.page-resources__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #e0e0e0;
}

.page-resources__cta-section {
    padding: 80px 20px;
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: var(--header-offset, 120px) 15px 60px;
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__paragraph,
    .page-resources__list-item,
    .page-resources__card-description {
        font-size: 0.95em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-resources__content-area,
    .page-resources__dark-bg {
        padding: 40px 15px;
    }
    .page-resources__grid,
    .page-resources__grid--three-cols {
        grid-template-columns: 1fr;
    }
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__video-wrapper {
        margin: 20px auto;
    }
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-resources__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__hero-section {
        padding: var(--header-offset, 120px) 10px 40px;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-resources__content-area,
    .page-resources__dark-bg {
        padding: 30px 10px;
    }
}