/* style/support.css */

/* Base styles for the support page */
.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 */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold color for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-support__text-block p {
    margin-bottom: 1em;
    font-size: 1.05em;
    color: #f0f0f0;
}

/* Buttons */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.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: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Important for max-width 100% */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

.page-support__btn-primary {
    background-color: #CC0000;
    color: #ffffff;
    border: 2px solid #CC0000;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212; /* Dark text for light background */
    transform: translateY(-2px);
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Make background image subtle */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-support__hero-section .page-support__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.page-support__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-support__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

/* Intro Section */
.page-support__intro-section {
    background-color: #121212; /* Body background color */
    padding: 60px 0;
    color: #f0f0f0;
}

/* Common Issues Section */
.page-support__common-issues-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 80px 0;
}

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

.page-support__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-support__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.page-support__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

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

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

.page-support__card .page-support__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: auto;
    max-width: 100%;
}

/* Contact Section */
.page-support__contact-section {
    background-color: #121212;
    padding: 80px 0;
    text-align: center;
}

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

.page-support__contact-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.page-support__contact-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__contact-item p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__contact-item .page-support__btn-primary,
.page-support__contact-item .page-support__btn-secondary {
    margin-top: auto;
    width: auto;
    max-width: 100%;
}

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

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    background-color: #CC0000; /* Red background for questions */
    transition: background-color 0.3s ease;
}

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

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Change + to X visually */
}

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

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-support__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Security Section */
.page-support__security-section {
    background-color: #121212;
    padding: 80px 0;
}

/* Final CTA Section */
.page-support__cta-final-section {
    background-color: #CC0000;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

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

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

/* Image specific styles - ensure min size and no filter */
.page-support img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    filter: none; /* Explicitly disable any filter */
    width: 100%; /* Default to 100% width of parent, height auto for responsiveness */
    height: auto;
}

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

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 60px;
    }
    .page-support__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-support__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
.page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-support__container {
        padding: 0 15px;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-support__cards-grid,
    .page-support__contact-channels {
        grid-template-columns: 1fr;
    }
    .page-support__card,
    .page-support__contact-item {
        padding: 25px;
    }
    .page-support__card-image {
        height: 180px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px;
    }

    /* Enforce image responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__contact-channels,
    .page-support__hero-section,
    .page-support__intro-section,
    .page-support__common-issues-section,
    .page-support__contact-section,
    .page-support__faq-section,
    .page-support__security-section,
    .page-support__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
}