/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Ensure this is consistent with shared.css if overriding */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-support__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

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

/* General Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-tertiary,
.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;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text breaks */
    max-width: 100%; /* Ensure responsiveness */
}

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

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-support__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-support__btn-tertiary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-support__btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-support__btn-link {
    color: #26A9E0;
    text-decoration: underline;
    padding: 0;
    border: none;
    background: none;
}

.page-support__btn-link:hover {
    color: #1e87b5;
}

/* Section Styling */
.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark background */
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter dark for contrast with body */
    padding: 60px 0;
    color: #ffffff;
}

.page-support__light-bg {
    background-color: #1a1a1a; /* Dark gray for contrast */
    padding: 60px 0;
    color: #ffffff;
}

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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

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

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

.page-support__channel-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
}

.page-support__faq-grid {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
    content: '−'; /* Visually change to minus, though JS handles text */
}

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

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

.page-support__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

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

.page-support__faq-answer a:hover {
    color: #1e87b5;
}

/* Guides Section */
.page-support__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__guide-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__guide-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-support__guide-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-support__guide-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Policies Section */
.page-support__policies-section {
    padding: 60px 0;
}

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

.page-support__policy-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__policy-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-support__policy-description {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Feedback Section */
.page-support__feedback-section {
    text-align: center;
    padding: 80px 0;
}

.page-support__feedback-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Conclusion Section */
.page-support__conclusion-section {
    padding: 60px 0 80px;
    text-align: center;
}

.page-support__section-outro {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 20px auto 40px;
}

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


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

@media (max-width: 768px) {
    .page-support__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    /* General Button Mobile Adaption */
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-tertiary,
    .page-support__btn-link,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-support__hero-cta,
    .page-support__feedback-cta {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    /* Images Mobile Adaption */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers Mobile Adaption */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__policies-section,
    .page-support__feedback-section,
    .page-support__conclusion-section,
    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__policy-card {
        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__channels-grid,
    .page-support__guides-grid,
    .page-support__policies-grid {
        grid-template-columns: 1fr;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        font-size: 0.95em;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-heading {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-support__channel-icon {
        width: 200px !important;
        height: auto !important;
    }
    .page-support__guide-image {
        height: auto !important;
    }
}

/* Ensure content area images are at least 200px */
.page-support__channels-section img,
.page-support__faq-section img,
.page-support__guides-section img,
.page-support__policies-section img,
.page-support__feedback-section img,
.page-support__conclusion-section img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filter allowed for images */
.page-support img {
    filter: none;
}