/* style/support.css */

/* Base styles for the support page */
.page-support {
    color: #333333; /* Dark text for light body background #f8f9fa */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 80px 0; /* Add some vertical padding for content */
    background-color: #0056b3; /* A darker shade of primary for the hero background */
    color: #ffffff; /* Light text for dark hero background */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make the background image subtle */
}

.page-support__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-support__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffc107; /* Gold for main title */
    font-weight: bold;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Buttons */
.page-support__button {
    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;
    min-width: 150px;
    text-align: center;
    font-size: 1.1em;
}

.page-support__button--primary {
    background-color: #ffc107;
    color: #0056b3;
    border: 2px solid #ffc107;
}

.page-support__button--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.page-support__button--secondary {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.page-support__button--secondary:hover {
    background-color: #ffc107;
    color: #0056b3;
}

.page-support__button--text {
    background-color: transparent;
    color: #007bff;
    border: none;
    padding: 5px 0;
    font-size: 1em;
    text-align: left;
    min-width: unset;
}

.page-support__button--text:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Section Titles */
.page-support__section-title {
    font-size: 2.2em;
    color: #007bff;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-support__faq-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-support__faq-question {
    font-size: 1.2em;
    color: #007bff;
    padding: 18px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eaf6ff;
    border-bottom: 1px solid #e0e0e0;
}

.page-support__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-support__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-support__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #ffffff;
}

.page-support__faq-answer.active {
    max-height: 200px;
    padding: 15px 25px;
}

.page-support__faq-answer p {
    margin: 0 0 10px 0;
    color: #555555;
}

.page-support__faq-answer a {
    color: #007bff;
    text-decoration: none;
}

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

.page-support__faq-image {
    display: block;
    margin: 50px auto 0 auto;
    width: 800px;
    height: 600px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-support__guide-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-support__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-support__guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-support__guide-title {
    font-size: 1.4em;
    color: #007bff;
    padding: 15px 20px 10px 20px;
    margin: 0;
    flex-grow: 1;
}

.page-support__guide-title a {
    color: inherit;
    text-decoration: none;
}

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

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

.page-support__guide-card .page-support__button {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
    min-width: unset;
}

/* Contact CTA Section */
.page-support__contact-cta-section {
    padding: 80px 0;
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
}

.page-support__contact-cta-section .page-support__section-title {
    color: #ffc107;
}

.page-support__contact-cta-section .page-support__section-intro {
    color: #e0e0e0;
    margin-bottom: 40px;
}

.page-support__contact-cta-section .page-support__button {
    margin: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-support__hero-title {
        font-size: 2em;
    }

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

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

    .page-support__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

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

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

    .page-support__faq-answer.active {
        padding: 10px 20px;
    }

    .page-support__faq-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        min-width: 200px;
        min-height: 200px;
        object-fit: contain;
    }

    .page-support__guide-image {
        height: 200px;
    }

    /* Ensure all images within .page-support are responsive and not too small */
    .page-support img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }

    /* Specific rule for guide cards to ensure image size */
    .page-support__guide-card .page-support__guide-image {
        min-width: 200px;
        min-height: 200px;
    }

    /* Prevent horizontal overflow for the main content area */
    .page-support {
        overflow-x: hidden;
    }

    .page-support__container {
        padding: 0 15px;
    }
}

/* Global image styling for content area */
.page-support img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Override for specific images if needed, ensuring they still meet min size */
.page-support__faq-image {
    object-fit: contain;
}