/* style/support.css */

/* Base styles for the page-support scope */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Ensures a light background for main content */
    overflow-x: hidden; /* Prevent horizontal scroll for the entire page content */
}

/* Header offset to prevent content being hidden by fixed header */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* Section base styles */
.page-support__hero-section,
.page-support__channels-section,
.page-support__issues-section,
.page-support__commitment-section,
.page-support__faq-section,
.page-support__cta-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow issues within sections */
}

/* Container for content width limitation */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for smaller screens */
    box-sizing: border-box;
}

/* Titles and descriptions */
.page-support__main-title {
    font-size: 2.8em;
    color: #FFFFFF; /* White text for dark hero background */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__intro-text {
    font-size: 1.2em;
    color: #FFFFFF; /* White text for dark hero background */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for section titles */
}

.page-support__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

.page-support__card-title,
.page-support__issue-title,
.page-support__commitment-heading,
.page-support__faq-heading {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__card-text,
.page-support__issue-text,
.page-support__commitment-text,
.page-support__card-detail {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
}

/* Hero Section */
.page-support__hero-section {
    background: linear-gradient(135deg, #26A9E0, #1a7bb7); /* Gradient using brand colors */
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure hero section has a decent height */
    position: relative;
    overflow: hidden;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
    filter: none; /* No CSS filters */
}

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

/* Call to Action Buttons */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
    background-color: #1a7bb7;
    border-color: #1a7bb7;
}

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bb7;
    border-color: #1a7bb7;
}

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

.page-support__btn-link:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Channel Grid Section */
.page-support__channels-section {
    background-color: #f8f9fa; /* Light background for contrast */
}

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

.page-support__channel-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-support__card-image {
    width: 100%; /* Ensure images fill card width */
    height: auto;
    max-height: 200px; /* Max height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    filter: none; /* No CSS filters */
}

/* Issues Section */
.page-support__issues-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #FFFFFF;
}

.page-support__issues-section .page-support__section-title,
.page-support__issues-section .page-support__section-description {
    color: #FFFFFF; /* White text for dark background */
}

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

.page-support__issue-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-support__issue-card .page-support__issue-title {
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-support__issue-card .page-support__issue-text {
    color: #555555;
    flex-grow: 1; /* Make text take available space */
}

.page-support__issue-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #555555;
}

.page-support__issue-list li {
    margin-bottom: 5px;
}

/* Commitment Section */
.page-support__commitment-section {
    background-color: #f0f5f9; /* Lighter blue/gray background */
    color: #333333;
}

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

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

.page-support__commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-support__commitment-icon {
    width: 200px; /* Adjusting to meet min size requirement */
    height: 200px; /* Adjusting to meet min size requirement */
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    filter: none; /* No CSS filters */
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-support__faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.page-support__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    background-color: #f9f9f9; /* Slightly different background for question */
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

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

.page-support__faq-heading {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
    flex-grow: 1;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #FFFFFF;
    border-radius: 0 0 5px 5px;
}

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

.page-support__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

/* CTA Section */
.page-support__cta-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #FFFFFF;
    padding: 80px 20px;
}

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

.page-support__cta-description {
    font-size: 1.2em;
    color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 2.5em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-support {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden !important; /* Prevent horizontal scroll for the entire page content */
    }

    .page-support__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-support__hero-content {
        padding: 0;
    }

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

    .page-support__intro-text {
        font-size: 1em;
    }

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

    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__channel-grid,
    .page-support__issue-grid,
    .page-support__commitment-points {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-support__channel-card,
    .page-support__issue-card,
    .page-support__commitment-item {
        padding: 20px;
    }

    /* Image responsive handling for content area */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers holding images/videos/buttons must also be responsive */
    .page-support__hero-section,
    .page-support__channels-section,
    .page-support__issues-section,
    .page-support__commitment-section,
    .page-support__faq-section,
    .page-support__cta-section,
    .page-support__channel-card,
    .page-support__issue-card,
    .page-support__commitment-item,
    .page-support__faq-list,
    .page-support__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Specific override for .page-support__container to ensure it matches the general section padding */
    .page-support__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

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

    .page-support__faq-question {
      padding: 10px;
    }
    .page-support__faq-heading {
      font-size: 1em;
    }
}

/* Color contrast enforcement (default body is light, so use dark text) */
.page-support {
    color: #333333; /* Default text color for light backgrounds */
}

.page-support__card {
    background: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for cards */
    border: 1px solid #e0e0e0;
}

.page-support__dark-bg {
    background: #26A9E0; /* Brand color as dark background */
    color: #ffffff; /* White text on dark background */
}

/* Ensure titles on dark backgrounds are white */
.page-support__hero-section .page-support__main-title,
.page-support__hero-section .page-support__intro-text,
.page-support__issues-section .page-support__section-title,
.page-support__issues-section .page-support__section-description,
.page-support__cta-section .page-support__cta-title,
.page-support__cta-section .page-support__cta-description {
    color: #ffffff;
}

/* No CSS filters for images */
.page-support img {
    filter: none; /* Explicitly disable any filters */
}