/* style/support.css */

/* Base styles for the support page content */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-support__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-support__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #CC0000; /* Red underline */
    border-radius: 2px;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #CC0000 0%, #800000 100%); /* Red gradient */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-support__main-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for H1 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold button */
    color: #CC0000; /* Red text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-support__cta-button:hover {
    background: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button--secondary {
    background: #CC0000; /* Red button */
    color: #ffffff; /* White text */
    border: 2px solid #FFD700; /* Gold border */
}

.page-support__cta-button--secondary:hover {
    background: #a30000; /* Darker red on hover */
    border-color: #FFD700;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle background image */
    z-index: 1;
}

/* Contact Options Section */
.page-support__contact-options {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background */
}

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

.page-support__contact-card {
    background: #2a2a2a; /* Slightly lighter dark for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3a3a;
}

.page-support__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-support__contact-icon {
    width: 200px; /* Min size 200px */
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold shadow for icons */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.page-support__card-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    margin-bottom: 15px;
}

.page-support__card-description {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 25px;
}

.page-support__card-button {
    display: inline-block;
    padding: 10px 25px;
    background: #CC0000; /* Red button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-support__card-button:hover {
    background: #a30000; /* Darker red on hover */
    transform: translateY(-1px);
}

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

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

/* FAQ container styles */
.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #2a2a2a; /* Dark background for FAQ item */
    border: 1px solid #3a3a3a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #cccccc;
}

/* FAQ expanded state - ⚠️ Use !important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* ⚠️ Ensure priority, large enough for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #3a3a3a; /* Slightly darker for expanded answer */
    border-radius: 0 0 10px 10px;
}

/* Question styles */
.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #2a2a2a;
    border-radius: 10px; /* Only top corners if active */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-support__faq-question:hover {
    background: #3a3a3a;
}

/* Question title styles */
.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Gold for FAQ questions */
    pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #CC0000; /* Red when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-support__faq-link {
    display: inline-block;
    margin-top: 15px;
    color: #CC0000; /* Red link */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__faq-link:hover {
    color: #FFD700; /* Gold on hover */
}

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

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

.page-support__resource-card {
    display: block;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3a3a;
}

.page-support__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-support__resource-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-support__resource-card h3 {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    padding: 20px 20px 10px;
    margin: 0;
}

.page-support__resource-description {
    font-size: 16px;
    color: #cccccc;
    padding: 0 20px 20px;
    margin: 0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 42px;
    }
    .page-support__hero-description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
    }

    .page-support__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-support__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-support__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-support__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-support__contact-options,
    .page-support__faq-section,
    .page-support__resources-section {
        padding: 60px 0;
    }

    .page-support__contact-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-support__contact-card,
    .page-support__resource-card {
        padding: 25px;
        box-sizing: border-box; /* Ensure padding is included in width */
    }
    .page-support__contact-icon {
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
    }
    .page-support__resource-image {
        width: 100% !important;
        height: auto !important; /* Auto height to maintain aspect ratio */
        max-width: 100% !important;
        display: block !important;
    }

    /* FAQ specific mobile styles */
    .page-support__faq-list {
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-support__faq-question {
        padding: 18px 20px;
    }
    .page-support__faq-question h3 {
        font-size: 16px;
    }
    .page-support__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }
    .page-support__faq-link {
        font-size: 15px;
    }
    
    /* Ensure all images are responsive and do not overflow */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Keep 100% height for hero bg */
    }

    /* Ensure all video containers are responsive and do not overflow */
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}