/* style/support.css */

/* Base styles for the page content */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default light text for dark background */
    background-color: var(--bg-color); /* Base background color from shared */
}

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg-color: #11271B;
    --bg-color: #08160F; /* Main background */
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-support__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
    text-align: justify;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom */
    background-color: var(--bg-color);
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__hero-content {
    max-width: 800px;
    text-align: center;
}

.page-support__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold-color); /* Using gold for prominence */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-support__btn-primary {
    background: var(--button-gradient-start); /* Fallback */
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-support__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Cards */
.page-support__card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

/* Dark sections for contrast */
.page-support__dark-section {
    background-color: var(--deep-green-color); /* Slightly different dark green */
    padding: 60px 0;
}

/* Contact Channels Section */
.page-support__contact-channels-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.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: 100%;
    max-width: 200px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

.page-support__channel-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

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

.page-support__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-support__faq-item {
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
}

.page-support__faq-item[open] > .page-support__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-support__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-support__faq-answer {
    padding: 20px;
    background-color: var(--card-bg-color);
    color: var(--text-secondary-color);
    font-size: 1em;
    border-top: none;
}

/* Guides Section */
.page-support__guides-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

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

.page-support__guide-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

.page-support__guide-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-support__security-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

/* CTA Section */
.page-support__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-color);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-support__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Remove min-width on mobile to allow scaling */
        min-height: unset !important; /* Remove min-height on mobile to allow scaling */
    }

    .page-support__hero-image-wrapper,
    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__security-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video section top padding */
    .page-support__hero-section {
        padding-top: 10px !important; /* body already has padding-top from shared */
    }

    /* Buttons */
    .page-support__hero-cta-buttons,
    .page-support__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        align-items: stretch !important; /* Stretch buttons to full width */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button container */
        overflow: hidden !important;
    }

    .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;
        padding-left: 15px; /* Ensure button text has space */
        padding-right: 15px;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }

    .page-support__hero-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }

    .page-support__hero-description {
        font-size: 1em;
    }

    .page-support__text-block {
        font-size: 0.95em;
    }

    .page-support__channels-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-support__channel-icon,
    .page-support__guide-image {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content area images also adhere to min size on desktop */
.page-support__channel-icon,
.page-support__guide-image,
.page-support__security-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for mobile min-size removal if needed */
@media (max-width: 768px) {
    .page-support__channel-icon,
    .page-support__guide-image,
    .page-support__security-image {
        min-width: unset;
        min-height: unset;
    }
}