/* style/support.css */

/* Base styles for the support page content */
.page-support {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Ensure consistency with body background */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-support__subtitle {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Buttons in Hero */
.page-support__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-support__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-support__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
    transform: translateY(-2px);
}

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color for secondary action text */
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

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

.page-support__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary brand color for section titles */
}

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

/* Info Section */
.page-support__info-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background for contrast */
}

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

.page-support__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0; /* Add border for definition */
    color: #333333; /* Dark text for white card background */
}

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

.page-support__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-support__card-description {
    font-size: 1em;
    color: #555555;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* White text */
}

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

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

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

.page-support__contact-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__contact-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%; /* Make icons round */
}

.page-support__item-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-support__item-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-support__btn-link {
    background-color: #ffffff;
    color: #26A9E0;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-support__btn-link:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
}

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

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

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

.page-support__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.page-support__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-item summary:hover {
    background-color: #f0f0f0;
}

.page-support__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
    color: #26A9E0; /* Primary brand color for question text */
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: 600;
    color: #26A9E0;
    line-height: 1;
}

.page-support__faq-item[open] .page-support__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

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

.page-support__faq-answer .page-support__btn-link {
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
}

.page-support__faq-answer .page-support__btn-link:hover {
    background-color: #1e87c0;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff;
}

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

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

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

.page-support__guide-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__guide-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
}

.page-support__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__guide-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-support__guide-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Bottom CTA Section */
.page-support__cta-bottom {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.page-support__cta-bottom .page-support__section-title {
    color: #26A9E0;
}

.page-support__cta-bottom .page-support__section-description {
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-section {
        padding: 50px 20px;
    }
    .page-support__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__info-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__cta-bottom {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__container,
    .page-support__hero-section,
    .page-support__info-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__cta-bottom,
    .page-support__card,
    .page-support__contact-item,
    .page-support__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-support__hero-section {
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-support__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        text-align: center;
    }

    .page-support__subtitle {
        font-size: 1em;
    }

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

    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-support__grid,
    .page-support__contact-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
    }

    .page-support__card,
    .page-support__contact-item,
    .page-support__guide-card {
        padding: 25px;
    }

    .page-support__faq-item summary {
        font-size: 1em;
        padding: 18px 20px;
    }
    .page-support__faq-qtext {
        margin-right: 10px;
    }
    .page-support__faq-answer {
        padding: 0 20px 18px 20px;
    }
}

@media (max-width: 480px) {
    .page-support__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-support__section-title {
        font-size: 1.6em;
    }
    .page-support__hero-section {
        padding: 40px 15px;
    }
    .page-support__info-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__cta-bottom {
        padding: 40px 0;
    }
}