/* style/support.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
}

/* Base styles for the page-support scope */
.page-support {
    font-family: Arial, sans-serif;
    background-color: var(--color-background); /* Dark background from custom colors */
    color: var(--color-text-main); /* Light text for dark background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as per rules */
    background-color: var(--color-deep-green); /* Use a dark brand color for the section background */
    overflow: hidden;
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on common aspect ratios like 16:9 for 1200x675 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-support__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    z-index: 1;
    color: var(--color-text-main); /* Ensure light text */
}

.page-support__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* H1 clamp font-size */
    font-weight: bold;
    color: var(--color-gold); /* Using gold for main title for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* General Section Styles */
.page-support__section-title {
    font-size: 2.5em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-support__sub-title {
    font-size: 1.8em;
    color: var(--color-text-main);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.page-support__dark-section {
    background-color: var(--color-card-bg); /* Use a dark background from custom colors */
    padding: 60px 0;
}

.page-support__introduction-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

/* Card Styles */
.page-support__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-support__card:hover {
    transform: translateY(-5px);
}

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

.page-support__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Button Styles */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    min-width: 150px; /* Ensure buttons are not too small */
}

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

.page-support__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-support__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-support__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

.page-support__text-link {
    color: var(--color-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.page-support__text-link:hover {
    color: var(--color-glow);
}


/* FAQ Section */
.page-support__faq-list {
    margin-top: 30px;
}

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

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

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

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

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

.page-support__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.page-support__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-support__contact-card {
    background-color: var(--color-deep-green);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-support__contact-card:hover {
    transform: translateY(-5px);
}

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

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

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

    .page-support__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

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

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

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

    /* Force responsive images and videos */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__hero-section,
    .page-support__introduction-section,
    .page-support__getting-started-section,
    .page-support__transactions-section,
    .page-support__game-guides-section,
    .page-support__promotions-section,
    .page-support__security-section,
    .page-support__faq-section,
    .page-support__contact-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-content {
        padding: 20px 10px;
    }

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

    .page-support__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-support__sub-title {
        font-size: 1.5em;
    }

    .page-support__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Mobile card shadow */
    }

    .page-support__card-image {
        height: auto; /* Allow height to adjust */
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    
    .page-support__cta-buttons .page-support__btn-primary,
    .page-support__cta-buttons .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    /* Video and Button containers mobile adaptation */
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container,
    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-support__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
}

/* Ensure content area images respect min-width 200px */
.page-support__getting-started-section img,
.page-support__transactions-section img,
.page-support__game-guides-section img,
.page-support__security-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast Fixes - if needed */
.page-support__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-support__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}