/* style/support.css */

/* Base styles for the page content */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background is light */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px; /* Adjusted padding-top via inline style */
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

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

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

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

.page-support__hero-image-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%; /* Adjust as needed */
    max-width: 900px; /* Ensure image isn't too large */
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

/* General Section Styling */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-support__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-support__section-title--light {
    color: #ffffff;
}

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

.page-support__section-description--light {
    color: #f0f0f0;
}

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

.page-support__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-support__btn-primary:hover {
    background-color: #d16b06;
}

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

.page-support__btn-secondary:hover {
    background-color: #e0f7fa;
    color: #208cb2;
    border-color: #208cb2;
}

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

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

.page-support__channel-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__channel-icon {
    width: 100%;
    max-width: 150px; /* Smaller display size for icons */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Enforce min-size for actual image, but display smaller */
    min-height: 200px;
}

.page-support__channel-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-support__channel-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
    flex-grow: 1; /* Allow text to take available space */
}

.page-support__channel-contact {
    display: block;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 15px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-support__faq-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.page-support__faq-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Adjust width for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-support__faq-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-support__faq-list {
    flex: 1;
    max-width: 50%; /* Adjust width for desktop */
}

.page-support__faq-category-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-support__faq-answer p {
    margin: 0;
    color: #f0f0f0; /* Ensure text color is light */
}

.page-support__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Resources Section */
.page-support__resources-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-support__resource-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.page-support__resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-support__resource-title {
    font-size: 1.4em;
    margin: 20px 20px 10px;
    color: #26A9E0;
}

.page-support__resource-description {
    font-size: 0.95em;
    margin: 0 20px 20px;
    color: #555555;
    flex-grow: 1;
}

/* Why Choose Section */
.page-support__why-choose-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-support__why-choose-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-support__why-choose-text {
    flex: 1;
}

.page-support__why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-support__why-choose-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-support__why-choose-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.page-support__why-choose-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-support__why-choose-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__faq-grid,
    .page-support__why-choose-content {
        flex-direction: column;
        align-items: center;
    }
    .page-support__faq-image-wrapper,
    .page-support__faq-list,
    .page-support__why-choose-image-wrapper,
    .page-support__why-choose-text {
        max-width: 100%;
    }
    .page-support__hero-image-wrapper {
        width: 80%;
        position: static;
        margin-top: 30px;
        opacity: 0.3;
    }
    .page-support__hero-section {
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 15px 30px; /* Adjusted padding-top via inline style */
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__resources-section,
    .page-support__why-choose-section,
    .page-support__cta-final-section {
        padding: 40px 0;
    }
    .page-support__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure content images are not too small */
        min-height: 200px !important; /* Ensure content images are not too small */
    }
    
    /* All containers with images/videos/buttons */
    .page-support__hero-image-wrapper,
    .page-support__channel-card,
    .page-support__faq-image-wrapper,
    .page-support__resource-card,
    .page-support__why-choose-image-wrapper,
    .page-support__cta-buttons,
    .page-support__channel-icon, /* Specifically target icons if they are images */
    .page-support__resource-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Reset margin for stacking */
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-support__channel-icon {
        max-width: 200px !important; /* Specific max-width for smaller icons, but min-width still 200px */
        width: auto !important; /* Allow natural width */
    }

    .page-support__faq-list {
        padding: 0 15px; /* Add padding to FAQ list */
    }

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

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

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

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.6em;
    }
    .page-support__channels-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }
    .page-support__channel-card,
    .page-support__resource-card {
        padding: 20px;
    }
    .page-support__channel-title,
    .page-support__resource-title {
        font-size: 1.3em;
    }
    .page-support__faq-category-title {
        font-size: 1.4em;
    }
}