/* style/support.css */

/* Custom Colors */
:root {
    --page-support-primary: #11A84E;
    --page-support-secondary: #22C768;
    --page-support-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-support-card-bg: #11271B;
    --page-support-background: #08160F;
    --page-support-text-main: #F2FFF6;
    --page-support-text-secondary: #A7D9B8;
    --page-support-border: #2E7A4E;
    --page-support-glow: #57E38D;
    --page-support-gold: #F2C14E;
    --page-support-divider: #1E3A2A;
    --page-support-deep-green: #0A4B2C;

    /* Text colors for light/dark backgrounds */
    --text-on-dark: #F2FFF6; /* Text Main for dark backgrounds */
    --text-on-light: #333333; /* Default dark text for light backgrounds */
    --bg-light: #ffffff;
}

/* Base styles for the page content */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default for main content, assuming body is dark */
    background-color: var(--page-support-background); /* Background color from custom palette */
}

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

.page-support__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* H1/H2 font-size with clamp */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-support-glow); /* Using Glow color for titles */
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
}

.page-support__section-text {
    font-size: 1.1rem;
    color: var(--page-support-text-main);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
    background: var(--page-support-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
    background: transparent;
    color: var(--page-support-glow); /* Glow color for secondary button text */
    border: 2px solid var(--page-support-glow);
}

.page-support__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1); /* Light transparent glow for hover */
    color: var(--page-support-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-support-background);
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none; /* No image filters */
}

.page-support__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-support__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Larger H1 for hero */
    font-weight: 800;
    line-height: 1.1;
    color: var(--page-support-gold); /* Gold color for main title */
    margin-bottom: 20px;
    margin-top: 0;
    letter-spacing: -0.03em;
}

.page-support__hero-description {
    font-size: 1.2rem;
    color: var(--page-support-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure it takes full width of its container */
    max-width: 400px; /* Limit width for button group */
    margin: 0 auto;
}

/* Intro Section */
.page-support__intro-section {
    padding: 80px 0;
    background-color: var(--page-support-deep-green); /* Deep Green for dark section */
    color: var(--page-support-text-main);
}

/* Contact Channels Section */
.page-support__contact-channels {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background */
    color: var(--text-on-light);
}

.page-support__contact-channels .page-support__section-title,
.page-support__contact-channels .page-support__section-text {
    color: var(--text-on-light); /* Ensure text is dark on light background */
}

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

.page-support__channel-card {
    background-color: var(--bg-light); /* Light background for cards */
    color: var(--text-on-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__channel-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* No image filters */
}

.page-support__channel-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--page-support-primary);
    margin-bottom: 15px;
}

.page-support__channel-description {
    font-size: 1rem;
    color: var(--text-on-light);
    margin-bottom: 25px;
    flex-grow: 1; /* Make description take available space */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: var(--page-support-background);
    color: var(--page-support-text-main);
}

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

.page-support__faq-item {
    background-color: var(--page-support-card-bg);
    border: 1px solid var(--page-support-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-support-text-main);
    cursor: pointer;
    background-color: var(--page-support-deep-green);
    border-bottom: 1px solid var(--page-support-divider);
    list-style: none; /* For <details> summary */
}

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

.page-support__faq-qtext {
    flex-grow: 1;
}

.page-support__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--page-support-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

.page-support__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-support-text-secondary);
    background-color: var(--page-support-card-bg);
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Quick Guides Section */
.page-support__guides-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background */
    color: var(--text-on-light);
}

.page-support__guides-section .page-support__section-title,
.page-support__guides-section .page-support__section-text {
    color: var(--text-on-light); /* Ensure text is dark on light background */
}

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

.page-support__guide-card {
    background-color: var(--bg-light); /* Light background for cards */
    color: var(--text-on-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__guide-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* No image filters */
}

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

.page-support__guide-description {
    font-size: 1rem;
    color: var(--text-on-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Security Section */
.page-support__security-section {
    padding: 80px 0;
    background-color: var(--page-support-deep-green);
    color: var(--page-support-text-main);
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background */
    color: var(--text-on-light);
}

.page-support__commitment-section .page-support__section-title,
.page-support__commitment-section .page-support__section-text {
    color: var(--text-on-light); /* Ensure text is dark on light background */
}

/* CTA Bottom Section */
.page-support__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--page-support-background);
    text-align: center;
    color: var(--page-support-text-main);
}

.page-support__cta-bottom-section .page-support__cta-buttons {
    margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }
    .page-support__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-support__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles header offset, small top padding */
    }

    .page-support__hero-image-wrapper {
        max-height: 350px;
    }

    .page-support__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for mobile */
    }

    .page-support__hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-support__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Adjust max-width for mobile buttons */
    }

    .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; /* Ensure full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Add padding to prevent text touching edges */
        padding-right: 15px !important; /* Add padding to prevent text touching edges */
    }

    .page-support__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 25px;
    }

    .page-support__section-text {
        font-size: 1rem;
    }

    .page-support__contact-channels,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__security-section,
    .page-support__commitment-section,
    .page-support__cta-bottom-section,
    .page-support__intro-section {
        padding: 50px 0;
    }

    .page-support__channels-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-support__channel-card,
    .page-support__guide-card {
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-support__channel-icon,
    .page-support__guide-image {
        max-width: 100% !important; /* Ensure images don't overflow */
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile image responsiveness for all img tags */
    .page-support img {
      max-width: 100% !important;
      width: 100% !important; /* Ensure images take full width of container */
      height: auto !important;
      display: block !important;
    }

    /* Container for images/videos/buttons on mobile */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-image-wrapper,
    .page-support__hero-cta-buttons,
    .page-support__channels-grid,
    .page-support__guides-grid,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Special handling for CTA buttons to allow wrapping */
    .page-support__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px !important;
    }
}