/* style/resources.css */

/* Base styles */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    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;
    white-space: normal;
    word-wrap: break-word;
    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: #1e87c2;
    border-color: #1e87c2;
}

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
}

.page-resources__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

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

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

.page-resources__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

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

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Info Section */
.page-resources__info-section,
.page-resources__guide-section,
.page-resources__features-section,
.page-resources__security-section,
.page-resources__faq-section,
.page-resources__cta-bottom-section {
    padding: 80px 0;
}

.page-resources__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Guide Section */
.page-resources__guide-section .page-resources__section-text,
.page-resources__guide-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__ordered-list,
.page-resources__unordered-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-resources__list-item strong {
    color: #ffffff;
}

.page-resources__list-item a {
    color: #fff;
    text-decoration: underline;
}

.page-resources__list-item a:hover {
    color: #f0f0f0;
}

/* Features Section */
.page-resources__features-section .page-resources__section-text,
.page-resources__features-section .page-resources__section-title {
    color: #333333;
}

.page-resources__unordered-list .page-resources__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    color: #333333;
}

.page-resources__unordered-list .page-resources__list-item strong {
    color: #26A9E0;
}

/* Security Section */
.page-resources__security-section .page-resources__section-text,
.page-resources__security-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__security-section .page-resources__unordered-list .page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #ffffff;
    color: #ffffff;
}

.page-resources__security-section .page-resources__unordered-list .page-resources__list-item strong {
    color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-section .page-resources__section-text,
.page-resources__faq-section .page-resources__section-title {
    color: #333333;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

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

.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;
    background-color: #f9f9f9;
    color: #555555;
}

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

.page-resources__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* CTA Bottom Section */
.page-resources__cta-bottom-section {
    text-align: center;
}

.page-resources__cta-bottom-section .page-resources__section-title,
.page-resources__cta-bottom-section .page-resources__section-text {
    color: #ffffff;
}

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

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

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

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

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

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

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

    .page-resources__section-text {
        font-size: 0.95em;
    }

    .page-resources__info-section,
    .page-resources__guide-section,
    .page-resources__features-section,
    .page-resources__security-section,
    .page-resources__faq-section,
    .page-resources__cta-bottom-section {
        padding: 50px 0;
    }

    .page-resources__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness */
    .page-resources video,
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__list-item {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
}

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

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