/* style/resources.css */

/* --- General Styles --- */
.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, default to white */
}

.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-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__link-button,
.page-resources__link-inline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-resources__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-resources__link-button {
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    text-decoration: none;
    font-size: 0.9em;
    display: table; /* To center the link button */
    margin-left: auto;
    margin-right: auto;
}

.page-resources__link-button:hover {
    background-color: #1a7fb8;
}

.page-resources__link-inline {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-resources__link-inline:hover {
    color: #1a7fb8;
}

.page-resources__list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    color: #555555;
}

.page-resources__list li {
    margin-bottom: 10px;
}

/* --- 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: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    background-color: #26A9E0; /* Brand color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to let background color show */
}

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

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

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

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

/* --- Content Section --- */
.page-resources__content-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-resources__article-block {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.page-resources__article-subtitle {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
}

/* --- Tips Section --- */
.page-resources__tips-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-resources__tips-section .page-resources__section-title,
.page-resources__tips-section .page-resources__section-description {
    color: #ffffff;
}

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

.page-resources__card {
    background-color: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for white background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-resources__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* --- Platform Guide Section --- */
.page-resources__platform-guide-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

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

.page-resources__guide-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.page-resources__guide-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources__guide-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__guide-text {
    color: #555555;
    margin-bottom: 20px;
}

/* --- Promotions Section --- */
.page-resources__promotions-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-resources__promotions-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-description {
    color: #ffffff;
}

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

/* Reusing .page-resources__card styles for promotion cards */
.page-resources__promotion-cards .page-resources__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    color: #26A9E0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-resources__faq-item[open] .page-resources__faq-question {
    border-bottom: 1px solid #26A9E0;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 20px 25px;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 1em;
    line-height: 1.6;
}

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

/* --- CTA Button Group --- */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- Image & Video Styles --- */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-resources video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ensure content area images are not tiny */
.page-resources__content-section img,
.page-resources__tips-section img,
.page-resources__platform-guide-section img,
.page-resources__promotions-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Global image CSS for content area, minimum size */
.page-resources :is(img, video):not([class*="hero-image"]) {
    min-width: 200px;
    min-height: 200px;
}

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

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

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

    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .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 15px;
        font-size: 1em;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

    .page-resources__article-block {
        padding: 25px;
        margin-bottom: 30px;
    }

    .page-resources__article-subtitle {
        font-size: 1.5em;
    }

    .page-resources__card-grid,
    .page-resources__guide-steps,
    .page-resources__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-resources__card {
        padding: 25px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

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

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

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

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

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

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

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__article-block,
    .page-resources__guide-item,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-resources__container for overall content area */
    }
}