/* style/support.css */

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

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

/* Section styling */
.page-support__hero-section,
.page-support__video-section,
.page-support__faq-section,
.page-support__contact-section,
.page-support__terms-section,
.page-support__why-choose-us-section,
.page-support__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't bleed out */
}

/* Color schemes based on body background (#1a1a1a is dark) */
.page-support__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

/* Hero Section */
.page-support__hero-section {
    padding-top: calc(80px + var(--header-offset, 120px)); /* Adjust for fixed header */
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
}

.page-support__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1;
}

.page-support__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

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

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* For dark sections */
    border: 2px solid #ffffff;
}

.page-support__light-bg .page-support__btn-secondary {
    color: #017439; /* For light sections */
    border-color: #017439;
}

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

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


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

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickable */
}

/* FAQ Section */
.page-support__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.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, 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 20px 25px;
}

.page-support__faq-answer p {
    margin: 0;
    line-height: 1.8;
}

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

.page-support__contact-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-support__contact-card:hover {
    transform: translateY(-5px);
}

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

.page-support__contact-card p {
    margin-bottom: 25px;
    color: #555;
}

/* Terms Section */
.page-support__terms-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.page-support__text-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__text-link:hover {
    color: #fff;
}

/* Why Choose Us Section */
.page-support__why-choose-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-support__why-choose-us-text {
    flex: 1;
    min-width: 300px;
    color: #333333;
}

.page-support__why-choose-us-text p {
    margin-bottom: 15px;
}

.page-support__feature-list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-support__feature-list li {
    margin-bottom: 10px;
    color: #333333;
}

.page-support__list-highlight {
    color: #017439;
}

.page-support__why-choose-us-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves like a block element */
    width: 100%; /* Default width */
    height: auto; /* Maintain aspect ratio */
}

/* CTA Section */
.page-support__cta-section {
    padding: 100px 0;
    background-color: #017439; /* Use brand primary color */
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
        padding-bottom: 60px;
        min-height: 450px;
    }

    .page-support__hero-title {
        font-size: 2.2em;
    }

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

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

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

    .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: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied to video section if it's the first section */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .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__why-choose-us-content,
    .page-support__contact-methods,
    .page-support__terms-links {
        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__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-support__why-choose-us-content {
        flex-direction: column;
    }

    .page-support__why-choose-us-image {
        max-width: 100%;
        width: 100%;
    }
}