/* style/support.css */
/* 
  Page-specific styles for the Support page.
  All class names must follow BEM naming convention: .page-support__element-name
  Styles are scoped to .page-support.
  Body background is #1a1a2e (dark), so text color should be light (#ffffff) for contrast.
*/

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --dark-background: #1a1a2e; /* From shared.css body background */
    --button-login-color: #EA7C07;
}

.page-support {
    color: var(--text-on-dark); /* Default text color for the page content */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--dark-background); /* Ensure consistency with body background */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-support__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-support__hero-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

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

/* General Section Styling */
.page-support__section {
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-support__dark-section {
    background-color: #1a1a2e; /* Ensure dark background for sections */
    color: var(--text-on-dark);
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box;
}

.page-support__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.page-support__section-text {
    font-size: 1.1em;
    color: var(--text-on-dark);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-support__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-primary:hover {
    background-color: #1f8ac7; /* Slightly darker primary */
    border-color: #1f8ac7;
}

.page-support__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light background for card on dark section */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-dark);
}

.page-support__channel-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    width: 200px;
    height: 200px;
}

.page-support__channel-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__channel-description,
.page-support__channel-contact {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Guides Section */
.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: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__guide-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__guide-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-on-dark);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px; /* Keep horizontal padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-dark);
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 30px; /* Vertical padding when active */
}

.page-support__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Video Section */
.page-support__video-section {
    padding-top: 60px; /* Reset for non-hero section */
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Indicate clickability */
}

.page-support__video-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Commitment Section */
.page-support__commitment-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.page-support__commitment-image {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    width: 400px;
    height: 300px;
}

.page-support__commitment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px;
}

.page-support__commitment-list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-support__commitment-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-top: -2px; /* Adjust vertical alignment */
}

.page-support__commitment-highlight {
    color: var(--primary-color);
}

.page-support__commitment-note {
    margin-top: 40px;
    font-style: italic;
}

/* CTA Section */
.page-support__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__channels-grid,
    .page-support__guides-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .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__btn-primary,
    .page-support__btn-secondary {
        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__cta-actions {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-support__section {
        padding: 40px 15px;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-text {
        font-size: 0.95em;
    }

    /* Images responsiveness for mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__channel-icon,
    .page-support__commitment-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: contain;
    }

    /* Video responsiveness for mobile */
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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-wrapper {
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }

    /* FAQ adjustments */
    .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: 10px 20px;
    }

    .page-support__commitment-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-support__commitment-list {
        max-width: 100%;
    }
    .page-support__commitment-list li {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__faq-question {
        font-size: 1em;
    }
}

/* Ensure no CSS filter on images */
.page-support img {
    filter: none !important;
}