/* style/resources.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #0d0d0d; /* Assuming a dark background for shared, if not, adjust */
    --login-button-color: #EA7C07;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.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.5);
    z-index: 2;
}

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

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* General Section Styling */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources__subtitle {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-resources__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-resources__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    margin-right: 15px;
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__button-spacing {
    margin-top: 20px;
}

/* Layouts */
.page-resources__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-resources__grid-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-block {
    flex: 1;
}

.page-resources__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Specific Section Styles */
.page-resources__introduction-section,
.page-resources__faq-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources__download-guide {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources__features-section,
.page-resources__news-updates {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__features-section .page-resources__section-title,
.page-resources__news-updates .page-resources__section-title {
    color: var(--text-light);
}

.page-resources__features-section .page-resources__section-title::after,
.page-resources__news-updates .page-resources__section-title::after {
    background: var(--text-light);
}

.page-resources__security-privacy {
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-resources__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

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

.page-resources__feature-icon {
    width: 100%; /* Ensure card images are large */
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-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;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
}

.page-resources__faq-item[open] .page-resources__faq-question {
    background-color: #e0f2f7; /* Lighter primary color for active state */
}

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

.page-resources__faq-item summary {
    list-style: none;
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
}

.page-resources__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
}

.page-resources__cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Dark/Light Background Classes for Contrast */
.page-resources__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subtitle {
        font-size: 1.5em;
    }
    .page-resources__grid-layout {
        flex-direction: column;
    }
    .page-resources__grid-layout--reverse {
        flex-direction: column;
    }
}

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

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

    .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__subtitle {
        font-size: 1.3em;
    }
    .page-resources__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image responsive rules */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsive rules */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0 !important; /* Remove right margin for stacking */
        margin-bottom: 15px; /* Add bottom margin for spacing when stacked */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__feature-card {
        padding: 20px;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        font-size: 1em;
        padding: 0 15px 15px 15px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }

    /* Ensure content containers don't cause horizontal scroll */
    .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__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}

/* Contrast Fixes - Apply as needed */
.page-resources__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-resources__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}

/* Dark/Light background text colors */
.page-resources__dark-bg h2, .page-resources__dark-bg h3, .page-resources__dark-bg p, .page-resources__dark-bg li {
    color: var(--text-light);
}
.page-resources__light-bg h2, .page-resources__light-bg h3, .page-resources__light-bg p, .page-resources__light-bg li {
    color: var(--text-dark);
}

/* Custom Colors */
.page-resources__login-btn {
    background-color: var(--login-button-color);
    border-color: var(--login-button-color);
    color: var(--text-light);
}
.page-resources__login-btn:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}