/* 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 (#121212) */
}

/* Header offset for fixed header */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), #017439; /* Dark overlay on brand color */
    text-align: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

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

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

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

/* Buttons - Specific colors as per instructions */
.page-support__btn-register,
.page-support__btn-login,
.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;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

.page-support__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-support__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

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

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

.page-support__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #005a2d;
    border-color: #005a2d;
}

/* Section common styles */
.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Dark section styling */
.page-support__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 20px;
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Darker background for contrast with hero */
    color: #ffffff;
}

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

.page-support__contact-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__contact-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    /* filter: invert(1); -- Removed as per instruction to not use filter for color change */
}

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

.page-support__contact-card .page-support__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-support__contact-card .page-support__card-email,
.page-support__contact-card .page-support__card-phone,
.page-support__contact-card .page-support__card-hours {
    font-size: 1em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-support__contact-card a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: none;
}
.page-support__contact-card a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 20px;
    background-color: #222222; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Lighter semi-transparent white */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 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: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-qtext {
    flex-grow: 1;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

/* For details tag, hide default marker */
.page-support__faq-item summary {
    list-style: none;
}
.page-support__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-support__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border for distinction */
}
.page-support__faq-answer p {
    margin-bottom: 10px;
}
.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-support__faq-answer strong {
    color: #FFFF00; /* Yellow for emphasis in FAQ answers */
}


/* Policies Section */
.page-support__policies-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

/* Feedback Section */
.page-support__feedback-section {
    padding: 60px 20px;
    background-color: #222222; /* Darker background */
    color: #ffffff;
    text-align: center;
}

/* Bottom CTA Section */
.page-support__cta-bottom-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

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

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

@media (max-width: 768px) {
    .page-support__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }

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

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

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

    .page-support__btn-register,
    .page-support__btn-login,
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
        margin: 0 auto; /* Center buttons */
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

    .page-support__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-support__contact-card {
        padding: 25px;
    }

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

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

    .page-support__policy-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image responsive adaptations */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__contact-section,
    .page-support__faq-section,
    .page-support__policies-section,
    .page-support__feedback-section,
    .page-support__cta-bottom-section,
    .page-support__contact-methods,
    .page-support__policy-links,
    .page-support__hero-buttons,
    .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 */
    }

    /* Override padding for hero section to prevent double padding if shared provides it */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* For buttons in flex containers, ensure wrapping */
    .page-support__hero-buttons,
    .page-support__cta-buttons,
    .page-support__policy-links {
        flex-direction: column !important;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.6em;
    }
}

/* Ensure no filter is used on images */
.page-support img {
    filter: none !important;
}

/* Content area image CSS dimensions lower bound */
/* This rule ensures that any image within .page-support does not get shrunk below 200px by page-specific CSS */
.page-support img {
    min-width: 200px;
    min-height: 200px;
    /* The max-width: 100% and height: auto; will be handled by the mobile media query and general responsive practices. */
    /* This min-size is for desktop to prevent small icons, as per global image requirements. */
}