/* style/support.css */

/* Custom Color Variables */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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;

    /* General text/background for contrast, based on body background being dark */
    --text-on-dark-bg: var(--color-text-main); /* #F2FFF6 */
    --text-on-light-bg: #333333;
    --bg-light: #ffffff;
}

/* Base styles for the page content, applying colors based on body background */
/* body background is --color-background (#08160F), which is dark. So text should be light. */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for the page */
    background-color: var(--color-background); /* Ensure consistent background */
}

/* Sections with light background for contrast */
.page-support__light-bg {
    background-color: var(--bg-light);
    color: var(--text-on-light-bg);
}
.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__card-title a {
    color: var(--color-primary); /* Use primary color for titles on light background */
}
.page-support__light-bg .page-support__text-block,
.page-support__light-bg .page-support__card-text {
    color: var(--text-on-light-bg);
}


/* Dark sections for consistency */
.page-support__dark-section {
    background-color: var(--color-background); /* Already the default, but explicit */
    color: var(--text-on-dark-bg);
}

/* 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: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--color-deep-green); /* A slightly different dark green for hero bg */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image to make text readable */
    display: block;
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-support__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Button Styles */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-support__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--color-primary); /* Primary color for section titles */
    position: relative;
    padding-bottom: 15px;
}

.page-support__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.page-support__text-block {
    font-size: 1.05rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark-bg);
}

/* Feature Grid */
.page-support__features-grid,
.page-support__contact-grid,
.page-support__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styles */
.page-support__card {
    background-color: var(--color-card-bg); /* Custom card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border); /* Custom border color */
    color: var(--text-on-dark-bg);
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-support__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
}

.page-support__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-text-main); /* Card title color */
}
.page-support__card-title a {
    color: var(--color-text-main); /* Link color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-support__card-title a:hover {
    color: var(--color-gold);
}

.page-support__card-text {
    font-size: 1rem;
    color: var(--color-text-secondary); /* Secondary text color for card content */
    margin-bottom: 20px;
}

/* FAQ Section */
.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); /* Use card background for FAQ items */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-support__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-main);
    user-select: none;
    outline: none;
    list-style: none; /* Remove default marker */
    transition: color 0.3s ease;
}

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

.page-support__faq-item summary:hover {
    color: var(--color-gold);
}

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

.page-support__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.page-support__faq-item[open] .page-support__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-align: left;
}

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

/* Contact Methods */
.page-support__contact-methods .page-support__card .page-support__btn-primary,
.page-support__contact-methods .page-support__card .page-support__btn-secondary {
    margin-top: 20px;
}
.page-support__email-link,
.page-support__phone-link {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-support__email-link:hover,
.page-support__phone-link:hover {
    text-decoration: underline;
    color: var(--color-glow);
}

/* Final CTA */
.page-support__final-cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--color-deep-green); /* Use deep green for a stronger CTA */
}
.page-support__final-cta-section .page-support__section-title {
    color: var(--color-gold);
}
.page-support__final-cta-section .page-support__text-block {
    color: var(--color-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-support__section-title {
        font-size: 2rem;
    }
    .page-support__hero-description {
        font-size: 1rem;
    }
    .page-support__faq-item summary {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding for section */
    }

    .page-support__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-support__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 1rem !important;
        margin: 0 auto; /* Center buttons */
    }
    .page-support__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-support__section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .page-support__text-block {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-support__features-grid,
    .page-support__contact-grid,
    .page-support__resource-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__card {
        padding: 25px;
        border-radius: 10px;
    }

    .page-support__card img {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__card-title {
        font-size: 1.3rem;
    }

    .page-support__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* Ensure all images are responsive */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Video responsiveness (if video were present, it would apply here) */
    .page-support video,
    .page-support__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-support__video-section {
        padding-top: 10px !important;
    }
}

/* Contrast Fixes - Ensure text on card backgrounds is readable */
/* .page-support__card uses var(--color-card-bg) which is #11271B (dark) so text is var(--text-on-dark-bg) (#F2FFF6) which is light. This is good contrast. */
/* .page-support__light-bg uses var(--bg-light) which is #ffffff (light) so text is var(--text-on-light-bg) (#333333) which is dark. This is good contrast. */
/* .page-support__btn-primary has gradient bg (darker tones) and white text. Good. */
/* .page-support__btn-secondary has transparent bg, gold border/text. On dark background (hero/dark-section) this is fine. On light background, it becomes gold text on white. Gold is #F2C14E. White is #ffffff. Contrast ratio is 2.5:1, which is BAD. */
/* Need to adjust .page-support__btn-secondary for light backgrounds. */
.page-support__light-bg .page-support__btn-secondary {
    background: var(--color-primary); /* Use primary color as background for better contrast */
    color: #ffffff;
    border-color: var(--color-primary);
}
.page-support__light-bg .page-support__btn-secondary:hover {
    background: var(--color-button-gradient-start);
    color: #ffffff;
}