/* style/support.css */

/* Base styles for the page content */
.page-support {
    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 */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    color: #ffffff; /* White text for dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden; /* Hide overflow from hero image */
}

.page-support__hero-section.page-support__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
}

.page-support__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-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%; /* Ensure container takes full width on mobile */
    box-sizing: border-box;
}

.page-support__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-support__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #ffffff;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
    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;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-support__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* General Section Styles */
.page-support__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-support__section.page-support__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-support__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-support__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    color: inherit;
}

.page-support__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure image behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

/* Channels Section */
.page-support__channels-section {
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
}

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

.page-support__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333; /* Ensure text is dark on white card background */
}

.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color */
}

.page-support__card-text {
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__contact-info {
    font-size: 0.9em;
    margin-top: 10px;
    color: #555555;
}

/* Common Issues Section */
.page-support__common-issues {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-support__issues-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-support__issues-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
}

/* Video Section */
.page-support__video-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-support__video-link {
    display: block; /* Make the anchor cover the video area */
    cursor: pointer; /* Indicate it's clickable */
    text-decoration: none; /* Remove underline for the link */
    color: inherit; /* Inherit color */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure video behaves as a block element */
}

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

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #26A9E0; /* Brand primary color */
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

/* Commitment Section */
.page-support__commitment-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding-bottom: 80px; /* More padding at bottom */
}

.page-support__commitment-section .page-support__btn-primary {
    margin-top: 40px;
    background-color: #EA7C07; /* Login color */
    border-color: #EA7C07;
    font-size: 1.2em;
    padding: 15px 30px;
}

.page-support__commitment-section .page-support__btn-primary:hover {
    background-color: #d86b00;
    border-color: #d86b00;
}


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

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

    .page-support__channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile-specific styles */
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
        min-height: 400px;
    }

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

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

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

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

    .page-support__section {
        padding: 40px 15px;
    }

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

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

    /* Images and videos responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-support__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }

    .page-support__faq-question {
        padding: 15px 20px;
    }

    .page-support__faq-title {
        font-size: 1.1em;
    }

    .page-support__faq-answer {
        padding: 0 20px;
    }

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px;
    }

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

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

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