/* style/resources.css */
:root {
    --primary-color: #0A1931;
    --secondary-color: #E0B400;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f8f8f8;
    --background-dark: #0A1931;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-light);
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-color-light);
    max-width: 900px;
    padding: 0 20px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-resources__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--text-color-light);
}

.page-resources__section {
    padding: 60px 20px;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color-dark);
}

.page-resources__dark-section {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-resources__dark-section .page-resources__section-title {
    color: var(--secondary-color);
}

.page-resources__dark-section .page-resources__section-description {
    color: rgba(255, 255, 255, 0.8);
}

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

.page-resources__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-color-dark);
}

.page-resources__feature-item:hover {
    transform: translateY(-10px);
}

.page-resources__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__feature-text {
    font-size: 1em;
    color: var(--text-color-dark);
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: var(--text-color-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__dark-section .page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
}

.page-resources__dark-section .page-resources__card-title {
    color: var(--secondary-color);
}

.page-resources__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources__card-text {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__dark-section .page-resources__card-text {
    color: rgba(255, 255, 255, 0.8);
}

.page-resources__video-section {
    background-color: #222;
    text-align: center;
}

.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 0 auto;
    border-radius: 10px;
}

.page-resources__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

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

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

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

.page-resources__faq-question:hover {
    background-color: #e0e0e0;
}

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

.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-out, padding 0.3s ease-out;
    color: var(--text-color-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px;
}

.page-resources__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

.page-resources__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources__cta {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__feature-grid,
    .page-resources__guide-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__feature-item,
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__feature-image {
        height: 200px;
    }
    .page-resources__feature-title,
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources__hero-section .page-resources__container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Mobile video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-resources__video-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    /* Mobile button responsiveness */
    .page-resources__hero-cta, .page-resources__cta {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-section {
        height: 400px;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
}