/* style/resources.css */
.page-resources {
    color: #ffffff; /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
}

.page-resources__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    filter: brightness(0.6);
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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: 30px;
    color: #f0f0f0;
}

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

.page-resources__btn-primary, .page-resources__btn-secondary, .page-resources__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-resources__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-resources__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.page-resources__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

.page-resources__card, .page-resources__feature-item, .page-resources__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__light-bg .page-resources__card, .page-resources__light-bg .page-resources__feature-item, .page-resources__light-bg .page-resources__promotion-card {
    background-color: #f8f8f8;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card-image, .page-resources__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-title, .page-resources__feature-title, .page-resources__promotion-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources__card-title a, .page-resources__promotion-title a {
    color: inherit;
    text-decoration: none;
}

.page-resources__card-title a:hover, .page-resources__promotion-title a:hover {
    color: #26A9E0;
}

.page-resources__card-text, .page-resources__feature-text, .page-resources__promotion-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__video-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: #ffffff;
    color: #333333;
}

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

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

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

.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f8f8f8;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 20px;
}

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

.page-resources__cta-contact {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(38, 169, 224, 0.1);
    border-radius: 10px;
    color: #333333;
}

.page-resources__cta-contact .page-resources__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources__cta-contact .page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
}

.page-resources__cta-contact .page-resources__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

/* General text styling for dark background */
.page-resources__dark-bg p, .page-resources__dark-bg li {
    color: #f0f0f0;
}

.page-resources__dark-bg h1, .page-resources__dark-bg h2, .page-resources__dark-bg h3 {
    color: #ffffff;
}

/* General text styling for light background */
.page-resources__light-bg p, .page-resources__light-bg li {
    color: #555555;
}

.page-resources__light-bg h1, .page-resources__light-bg h2, .page-resources__light-bg h3 {
    color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary, .page-resources__btn-secondary, .page-resources__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-resources__card-grid, .page-resources__features-grid, .page-resources__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__card, .page-resources__feature-item, .page-resources__promotion-card {
        padding: 20px;
    }

    .page-resources__card-image, .page-resources__promotion-image {
        height: 180px;
    }

    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .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: 15px;
        padding-right: 15px;
        overflow: hidden !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;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 0.9em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 15px;
    }
}