/* style/support.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background (#1a1a2e) */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1a1a2e; /* Dark background for hero, consistent with body */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-support__hero-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image to ensure text contrast */
    transform: scale(1.05); /* Slight zoom for visual effect */
}

/* General Section Styling */
.page-support__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-support__dark-section .page-support__section-title {
    color: #ffffff; /* White title on dark sections */
}

.page-support__text-block {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-support__dark-section {
    background-color: #1a1a2e; /* Consistent dark background */
    padding: 60px 0;
}

.page-support__light-bg {
    background-color: #ffffff; /* White background for cards */
    color: #333333; /* Dark text on white background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Intro Section */
.page-support__intro-section {
    padding-bottom: 60px;
}

/* Channels Section */
.page-support__channels-section {
    padding: 60px 0;
    background-color: #0f0f1d; /* Slightly different dark background */
}

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

.page-support__channel-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__channel-icon {
    width: 200px; /* Min size for image */
    height: 150px; /* Min size for image */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-support__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Primary brand color for card titles */
}

.page-support__light-bg .page-support__card-title {
    color: #017439;
}

.page-support__card-text {
    font-size: 0.95em;
    color: #333333;
    margin-bottom: 20px;
    flex-grow: 1; /* Make sure text blocks take up available space */
}

.page-support__email-link {
    color: #017439;
    text-decoration: underline;
}

/* Buttons */
.page-support__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-support__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
}

.page-support__btn-register {
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register font color */
    border: 2px solid #C30808;
}

.page-support__btn-register:hover {
    background-color: #a30606;
    border-color: #a30606;
}

/* Video Section */
.page-support__video-section {
    padding: 60px 0;
    background-color: #1a1a2e;
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    background-color: #000; /* Fallback background for video area */
    border-radius: 8px;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves like a block element */
    cursor: pointer; /* Indicate it's clickable */
}

.page-support__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #f0f0f0;
}

/* Guide Section */
.page-support__guide-section {
    padding: 60px 0;
    background-color: #0f0f1d;
}

.page-support__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-support__list-item {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for list items */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1em;
}

.page-support__list-item strong {
    color: #ffffff;
}

/* Issues Section */
.page-support__issues-section {
    padding-bottom: 60px;
}

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

.page-support__issue-card {
    display: flex;
    flex-direction: column;
}

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

.page-support__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

.page-support__security-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-support__security-content .page-support__list {
    flex: 2;
    min-width: 300px;
}

/* FAQ Section */
.page-support__faq-section {
    padding-bottom: 60px;
}

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #017439; /* Primary brand color for FAQ question background */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-support__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 1em;
    color: #f0f0f0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-support__faq-answer .page-support__btn-primary {
    margin-top: 10px;
}

/* CTA Section */
.page-support__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-support__cta-section .page-support__container {
    padding: 50px 30px;
    border-radius: 10px;
    background-color: #017439; /* Primary brand color for CTA background */
}

.page-support__cta-section .page-support__section-title {
    color: #ffffff;
    padding-top: 0;
    margin-bottom: 20px;
}

.page-support__cta-section .page-support__text-block {
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.4em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding: 40px 15px;
        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-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px;
    }

    .page-support__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .page-support__channels-grid,
    .page-support__issues-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__channel-card,
    .page-support__issue-card {
        padding: 20px;
    }

    .page-support__security-content {
        flex-direction: column;
    }

    .page-support__security-image {
        min-width: unset;
        width: 100%;
        height: auto;
    }

    /* Mobile image and video responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-section,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add horizontal padding to content containers for mobile */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for .page-support__video-section padding-top on mobile */
    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-support__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        overflow: hidden !important;
    }

    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Fill parent wrapper */
    }

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

    .page-support__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

    .page-support__cta-section .page-support__container {
        padding: 30px 15px;
    }
}

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