/* style/resources.css */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

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

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

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-cta {
    margin-top: 30px;
}

/* General Section Styles */
.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

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

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__section-description,
.page-resources__dark-bg .page-resources__step-title,
.page-resources__dark-bg .page-resources__step-text,
.page-resources__dark-bg .page-resources__tip-title,
.page-resources__dark-bg .page-resources__tip-text {
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-description a,
.page-resources__dark-bg .page-resources__step-text a,
.page-resources__dark-bg .page-resources__tip-text a {
    color: #ffffff;
    text-decoration: underline;
}

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

.page-resources__light-bg .page-resources__section-description a {
    color: #26A9E0;
    text-decoration: underline;
}

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

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

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

.page-resources__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 15px;
}

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* Benefits Section */
.page-resources__benefits-section {
    padding: 80px 0;
}

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

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

.page-resources__benefit-card:hover {
    transform: translateY(-5px);
}

.page-resources__benefit-icon {
    width: 200px; /* Min size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources__benefit-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources__benefit-text {
    font-size: 1em;
    color: #555555;
}

.page-resources__benefit-text a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Guide Section */
.page-resources__guide-section {
    padding: 80px 0;
}

.page-resources__guide-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-resources__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
}

.page-resources__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 15px;
    background-color: #1a8cc4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.page-resources__step-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-resources__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer; /* Indicates video is clickable */
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure no extra space below video */
}

.page-resources__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.page-resources__video-wrapper:hover .page-resources__video-overlay {
    opacity: 1;
}

/* Support Resources Section */
.page-resources__support-resources {
    padding: 80px 0;
}

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

.page-resources__resource-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-resources__resource-card:hover {
    transform: translateY(-5px);
}

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

.page-resources__resource-card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    min-height: 60px;
}

.page-resources__resource-card-title a {
    text-decoration: none;
    color: #26A9E0;
}

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

.page-resources__resource-card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px 20px;
}

.page-resources__resource-card .page-resources__btn-secondary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
}

/* FAQ Section */
.page-resources__faq-section {
    margin-top: 80px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-main-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
}

.page-resources__faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.page-resources__faq-item:last-child {
    border-bottom: none;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    padding: 10px 0;
}

.page-resources__faq-question:hover {
    color: #26A9E0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Or just change to minus sign */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Adjust padding for visual effect */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

/* Download App Section */
.page-resources__download-app {
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    padding: 50px;
    border-radius: 10px;
    margin-top: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__download-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-resources__download-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__download-description a {
    color: #ffffff;
    text-decoration: underline;
}

/* Tips & Strategies Section */
.page-resources__tips-strategies {
    padding: 80px 0;
}

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

.page-resources__tip-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources__tip-card:hover {
    transform: translateY(-5px);
}

.page-resources__tip-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-resources__tip-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__tip-text a {
    color: #ffffff;
    text-decoration: underline;
}

/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

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

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

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

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

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

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

    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources__benefits-grid,
    .page-resources__guide-steps,
    .page-resources__resource-grid,
    .page-resources__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__benefit-card,
    .page-resources__step-item,
    .page-resources__resource-card,
    .page-resources__tip-card {
        padding: 20px;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        margin-left: 0;
    }

    .page-resources__video-wrapper {
        padding-bottom: 75%; /* More suitable for mobile vertical orientation (4:3) or keep 16:9 */
        margin: 40px auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Content area padding for mobile to prevent overflow */
    .page-resources__container,
    .page-resources__hero-content,
    .page-resources__download-app,
    .page-resources__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__faq-section {
        padding: 30px 15px;
    }

    .page-resources__download-app {
        padding: 30px 15px;
    }

    /* Ensure all images are responsive on mobile */
    .page-resources img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
}

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