/* style/support.css */

/* Base Styles for page-support */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Yellow for titles on dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Button Styles */
.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;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

/* Specific button colors from custom palette */
.page-support__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login yellow font */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand green */
    border: 2px solid #017439;
}

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

.page-support__btn-link {
    background-color: transparent;
    color: #017439;
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-support__btn-link:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand green background */
    color: #ffffff;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for title */
    font-weight: bold;
}

.page-support__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Overlay effect */
    filter: none; /* Ensure no filter is applied */
}

/* Channels Section */
.page-support__channels-section {
    padding: 60px 0;
    background-color: #222; /* Dark background */
    color: #ffffff;
}

.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); /* Slightly lighter dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-support__channel-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied */
}

.page-support__channel-title {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for titles on dark background */
    margin-bottom: 15px;
}

.page-support__channel-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Guide Section */
.page-support__guide-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-support__guide-section .page-support__section-title {
    color: #017439;
}

.page-support__guide-section .page-support__section-intro {
    color: #555555;
}

.page-support__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.page-support__guide-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-support__guide-item:nth-child(even) {
    flex-direction: row-reverse;
}

.page-support__guide-item h3 {
    font-size: 2em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__guide-item p {
    font-size: 1.1em;
    color: #333333;
}

.page-support__guide-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no filter is applied */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #222; /* Dark background */
    color: #ffffff;
}

.page-support__faq-section .page-support__section-intro {
    color: #f0f0f0;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow toggle */
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-support__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Policy Section */
.page-support__policy-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-support__policy-section .page-support__section-title {
    color: #017439;
}

.page-support__policy-section .page-support__section-intro {
    color: #555555;
}

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

.page-support__policy-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333333;
}

.page-support__policy-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied */
}

.page-support__policy-heading {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-support__conclusion-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 900px;
    margin: 60px auto 40px auto;
    color: #333333;
}

.page-support__cta-buttons--bottom {
    margin-top: 0; /* Override default margin-top */
}

/* Global Image Responsiveness */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no filter is applied to change color */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__channel-title,
    .page-support__policy-heading {
        font-size: 1.5em;
    }
    .page-support__guide-item h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
    }

    .page-support__channels-grid,
    .page-support__policy-grid {
        grid-template-columns: 1fr;
    }
    .page-support__channel-card,
    .page-support__policy-item {
        padding: 25px;
    }

    .page-support__guide-steps {
        gap: 40px;
    }
    .page-support__guide-item,
    .page-support__guide-item:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }
    .page-support__guide-image {
        max-width: 100%;
    }

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

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__cta-buttons,
    .page-support__channels-section,
    .page-support__guide-section,
    .page-support__faq-section,
    .page-support__policy-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure channel card and policy item images are at least 200x200 */
.page-support__channel-card img,
.page-support__policy-item img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Default link colors for contrast */
.page-support a:not([class*="btn"]) {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}
.page-support__guide-section a:not([class*="btn"]), /* Specific light background sections */
.page-support__policy-section a:not([class*="btn"]) {
    color: #017439; /* Green for links on light background */
}