/* style/support.css */

/* Base styles for the page content, ensuring text color contrasts with dark body background */
.page-support {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Section styling */
.page-support__hero-section,
.page-support__why-choose-us,
.page-support__faq-section,
.page-support__contact-channels,
.page-support__resources-cta {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure no overflow from child elements */
}

/* Fixed header offset for the first main content section */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Color contrast enforcement based on body background (#0a0a0a - dark) */
.page-support__dark-bg {
    background-color: #0a0a0a; /* Or a darker shade of brand color */
    color: #ffffff;
}

.page-support__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-support__hero-section {
    text-align: center;
    background-color: #017439; /* Brand primary color for hero */
    padding-bottom: 80px;
    position: relative;
}

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

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

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General section titles and descriptions */
.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit from parent section's color */
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from parent section's color */
}

/* 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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

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

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

.page-support__feature-card,
.page-support__channel-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text for light background card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__feature-icon,
.page-support__channel-icon {
    width: 100%; /* Make icon fill card width */
    height: auto;
    max-height: 200px; /* Limit height for icons */
    object-fit: contain; /* Ensure image fits without cropping */
    margin: 0 auto 20px auto;
    border-radius: 8px; /* Slightly rounded corners for images */
}

.page-support__feature-title,
.page-support__channel-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for titles */
}

.page-support__feature-text,
.page-support__channel-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__channel-card .page-support__btn-primary,
.page-support__channel-card .page-support__btn-secondary {
    width: fit-content;
    margin: 0 auto; /* Center buttons within cards */
}

/* FAQ Section */
.page-support__faq-category {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.page-support__category-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
    border-bottom: 2px solid #017439;
    padding-bottom: 10px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items on dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: #017439; /* Brand primary color for question background */
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #005a2e; /* Slightly darker brand color on hover */
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 sign */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Light text for answer content */
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-support__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space at the bottom of the paragraph */
}

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

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

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

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
        padding-bottom: 40px;
    }

    .page-support__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-support__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

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

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

    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__features-grid,
    .page-support__channels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__feature-card,
    .page-support__channel-card {
        padding: 20px;
    }

    .page-support__feature-title,
    .page-support__channel-title {
        font-size: 1.3em;
    }

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

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

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

    /* Image responsive rules */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__hero-section,
    .page-support__why-choose-us,
    .page-support__faq-section,
    .page-support__contact-channels,
    .page-support__resources-cta,
    .page-support__container,
    .page-support__features-grid,
    .page-support__channels-grid,
    .page-support__feature-card,
    .page-support__channel-card,
    .page-support__faq-item,
    .page-support__cta-buttons {
        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 padding adjustments for sections that might have 0 padding on desktop */
    .page-support__hero-section,
    .page-support__why-choose-us,
    .page-support__faq-section,
    .page-support__contact-channels,
    .page-support__resources-cta {
        padding-left: 0;
        padding-right: 0;
    }
    .page-support__hero-section .page-support__container,
    .page-support__why-choose-us .page-support__container,
    .page-support__faq-section .page-support__container,
    .page-support__contact-channels .page-support__container,
    .page-support__resources-cta .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
    }
}