/* style/support.css */

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

/* Base styles for the page content */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Page background from custom colors */
    padding-bottom: 60px; /* Ensure space above footer */
}

.page-support a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support a:hover {
    color: var(--color-gold);
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-deep-green); /* Dark background for hero */
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-support__hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 1;
    color: var(--color-text-main);
    margin-bottom: 40px;
}

.page-support__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-support__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-support__cta-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
}

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

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

.page-support__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--color-gold);
}

/* Section Titles */
.page-support__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-support__section-intro {
    font-size: 1.05em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-secondary);
}

/* Channels Section */
.page-support__channels-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Dark background */
}

.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: var(--color-card-bg); /* Card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    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(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-support__channel-icon {
    width: 100%;
    max-width: 250px; /* Limit image width within card */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px; 
    min-width: 200px; /* Enforce min-size rule for images */
    min-height: 200px;
}

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

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

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: var(--color-background); /* Page background */
}

.page-support__faq-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 40px auto 60px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min-size rule */
    min-height: 200px;
}

.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: var(--color-card-bg); /* Card background */
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--color-card-bg); /* Ensure background is consistent */
    color: var(--color-text-main);
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none; /* For <summary> tag */
}

.page-support__faq-question::-webkit-details-marker {
    display: none;
}

.page-support__faq-question:hover {
    background-color: var(--color-divider);
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--color-gold);
}

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

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

.page-support__faq-answer p {
    margin-top: 15px;
}

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

.page-support__guides-image {
    width: 100%;
    height: auto;
    max-width: 700px;
    display: block;
    margin: 40px auto 60px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min-size rule */
    min-height: 200px;
}

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

.page-support__guide-card {
    background-color: var(--color-card-bg); /* Card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

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

/* Commitment Section */
.page-support__commitment-section {
    padding: 60px 0;
    background-color: var(--color-background); /* Page background */
}

.page-support__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-support__commitment-item {
    background-color: var(--color-card-bg); /* Card background */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__commitment-heading {
    font-size: 1.3em;
    color: var(--color-text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-support__commitment-heading::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: var(--color-gold);
}

.page-support__commitment-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* Contact CTA Section */
.page-support__contact-cta-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Dark background */
    text-align: center;
}

.page-support__contact-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-support__contact-cta-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 40px auto 60px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min-size rule */
    min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-content {
        padding: 20px;
    }
}

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

    .page-support__container {
        padding: 0 15px; /* Adjust padding for mobile */
    }

    .page-support__hero-section,
    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__commitment-section,
    .page-support__contact-cta-section {
        padding: 40px 0; /* Adjust section padding */
    }

    .page-support__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
    }

    .page-support__section-title {
        font-size: 1.8em; /* Smaller H2 for mobile */
    }

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

    .page-support__btn-primary,
    .page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content */
    .page-support__hero-section,
    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__commitment-section,
    .page-support__contact-cta-section,
    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__commitment-item,
    .page-support__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-support__channel-icon {
        width: 100% !important; /* Ensure card images fill width */
        max-width: 250px !important; /* Example max-width if needed to prevent too wide images */
        height: auto !important;
        min-width: 200px !important; /* Maintain minimum size */
        min-height: 200px !important;
    }

    .page-support__faq-image,
    .page-support__guides-image,
    .page-support__contact-cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}