/* style/support.css */

/* Base styles for the support page content */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

.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%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space 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;
    max-width: 900px;
    padding: 20px;
}

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

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

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

/* General Section Styles */
.page-support__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-support__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-support__section-title--white {
    color: #ffffff;
}
.page-support__section-title--white::after {
    background-color: #ffffff;
}

.page-support__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__text-block--white {
    color: #f0f0f0;
}

/* Intro Section */
.page-support__intro-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background for contrast */
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__faq-list {
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
}

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

.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: #fcfcfc;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #e8f5e9; /* Lighter green 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 to X effect */
}

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

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

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #555555;
    font-size: 1em;
}

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

.page-support__faq-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Video Section */
.page-support__video-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #ffffff;
    text-align: center;
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-support__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.page-support__video-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

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

.page-support__channel-card {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-support__channel-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-support__contact-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-support__commitment-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-support__cta-final {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__cta-final-title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.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: #a30606;
    border-color: #a30606;
}

.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;
    border-color: #017439;
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .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__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-support__text-block {
        font-size: 0.95em;
    }
    .page-support__intro-section,
    .page-support__faq-section,
    .page-support__video-section,
    .page-support__contact-section,
    .page-support__commitment-section {
        padding: 50px 0;
    }
    .page-support__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 15px 20px;
    }
    .page-support__video-wrapper {
        margin: 30px auto;
    }
    .page-support__video-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__contact-channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__channel-card {
        padding: 25px;
    }
    .page-support__cta-final {
        padding: 30px;
    }
    .page-support__cta-final-title {
        font-size: 1.5em;
    }

    /* Mobile image and video responsive adaptation */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        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-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}