/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #FFFFFF */
    background-color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 500px;
    background: linear-gradient(90deg, #017439 0%, #017439 50%, #005a2d 100%); /* Dark background for hero */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
}

.page-support__hero-content {
    max-width: 600px;
    z-index: 1;
    text-align: left;
}

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

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

.page-support__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__social-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    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 color for text */
    border: 2px solid #017439;
}

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

.page-support__hero-image-wrapper {
    flex-shrink: 0;
    max-width: 500px; /* Adjust as needed */
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

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

.page-support__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #ffffff;
    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;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #e0e0e0;
}

.page-support__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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 !important;
}

.page-support__faq-answer p {
    margin-bottom: 10px;
    color: #333333;
}
.page-support__faq-answer ol {
    padding-left: 20px;
    margin-bottom: 10px;
}
.page-support__faq-answer li {
    margin-bottom: 5px;
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-support__contact-section .page-support__section-title,
.page-support__contact-section .page-support__section-description {
    color: #ffffff;
}

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

.page-support__contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 250px; /* Ensure cards have similar height */
}

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

.page-support__contact-card p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-support__social-media {
    text-align: center;
    margin-top: 40px;
}

.page-support__social-media-title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-support__social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-support__social-link {
    background-color: #C30808; /* Custom color for social links */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

.page-support__social-link:hover {
    background-color: #e02020;
    border-color: #e02020;
}

/* Guides Section */
.page-support__guides-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-support__guide-card {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensure cards have similar height */
}

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

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

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

.page-support__guide-card p {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Safety Section */
.page-support__safety-section {
    padding: 60px 0;
    background-color: #005a2d; /* Slightly darker brand color for distinction */
    color: #ffffff;
}

.page-support__safety-section .page-support__section-title,
.page-support__safety-section .page-support__section-description {
    color: #ffffff;
}

.page-support__safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-support__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    min-height: 200px;
}

.page-support__feature-card-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-support__feature-card p {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Image styling */
.page-support__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-support__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-section {
        flex-direction: column;
        text-align: center;
    }
    .page-support__hero-content {
        text-align: center;
        max-width: 80%;
    }
    .page-support__hero-image-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .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__social-link {
        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__hero-cta-buttons,
    .page-support__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Images responsive */
    .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__image-wrapper,
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__guides-section,
    .page-support__safety-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-support__faq-question {
        padding: 15px;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }
    .page-support__contact-card,
    .page-support__guide-card,
    .page-support__feature-card {
        min-height: auto; /* Allow cards to adjust height */
    }
}