/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
    min-height: 500px;
}

.page-support__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

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

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

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login type buttons */
    border: 2px solid #C30808;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* General Section Styles */
.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #017439; /* Darker text for light background */
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555; /* Darker text for light background */
}

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

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    position: relative;
    overflow: hidden;
}

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

.page-support__faq-section .page-support__section-description {
    color: #555555;
}

.page-support__faq-list {
    max-width: 800px;
    margin: 0 auto 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;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7ed; /* Light green for question background */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-support__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-support__faq-item[open] .page-support__faq-question {
    background-color: #dcf1e0;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-support__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #444444;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
}

.page-support__faq-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-support__faq-link:hover {
    text-decoration: underline;
}

.page-support__cta-contact {
    text-align: center;
    margin-top: 50px;
}

.page-support__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333333;
}

.page-support__faq-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: auto;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    min-width: 200px;
    min-height: 200px;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

.page-support__contact-methods .page-support__section-title {
    color: #ffffff;
}

.page-support__contact-methods .page-support__section-description {
    color: #f0f0f0;
}

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

.page-support__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #333333; /* Dark text for light card background */
}

.page-support__method-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size, will be scaled down by CSS */
    min-height: 200px; /* Min image size */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-support__method-text {
    font-size: 1.05em;
    margin-bottom: 25px;
}

.page-support__phone-number {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-support__phone-number:hover {
    text-decoration: underline;
}

/* Guide Section */
.page-support__guide-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Light background */
    color: #333333;
}

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

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

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

.page-support__guide-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-support__guide-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-support__guide-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4em;
    line-height: 1.3;
    color: #017439;
}

.page-support__guide-card h3 a {
    color: #017439;
    text-decoration: none;
}

.page-support__guide-card h3 a:hover {
    text-decoration: underline;
}

.page-support__guide-text {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: #666666;
}

.page-support__btn-link {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: #017439;
    border: 1px solid #017439;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Call to Action Section */
.page-support__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-support__cta-section .page-support__section-title {
    color: #ffffff;
}

.page-support__cta-section .page-support__section-description {
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__hero-image {
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    /* Mobile Fixed Header Spacing */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size on mobile as well */
        min-height: 200px !important; /* Enforce min size on mobile as well */
    }

    /* Video responsiveness (if any) */
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers for images/videos */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .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;
        text-align: center;
    }

    .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__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-support__guide-cards {
        grid-template-columns: 1fr;
    }
    .page-support__faq-image {
        display: none; /* Hide on mobile to save space */
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.6em;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 12px 20px;
    }
}