/* style/support.css */

:root {
    --k89bet-green: #017439;
    --k89bet-white: #FFFFFF;
    --k89bet-red: #C30808;
    --k89bet-yellow: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-support {
    font-family: Arial, sans-serif;
    color: var(--text-dark); /* Default text color for light body background */
    line-height: 1.6;
}

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

.page-support__center-text {
    text-align: center;
}

.page-support__dark-section {
    background-color: var(--k89bet-green);
    color: var(--text-light);
}

.page-support__light-bg {
    background-color: var(--k89bet-white);
    color: var(--text-dark);
}

.page-support__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from parent section */
    line-height: 1.2;
}

.page-support__dark-section .page-support__section-title {
    color: var(--text-light);
}

.page-support__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover; /* Cover for desktop */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-support__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-support__hero-content .page-support__description {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

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

.page-support__btn-primary {
    background-color: var(--k89bet-red); /* Custom color for register/login */
    color: var(--k89bet-yellow); /* Custom color for register/login font */
    border: 2px solid var(--k89bet-red);
}

.page-support__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-support__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-support__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--k89bet-green);
}

.page-support__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-support__btn-link {
    display: inline-block;
    color: var(--k89bet-green);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-support__btn-link:hover {
    color: #005a2d;
    text-decoration: underline;
}

/* Why Choose Us Section */
.page-support__why-choose-us {
    padding: 60px 0;
}

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

.page-support__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: var(--k89bet-white);
    color: var(--text-dark);
}

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

.page-support__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

/* Contact Channels Section */
.page-support__contact-channels {
    padding: 60px 0;
}

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

.page-support__channel-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: var(--k89bet-white);
    color: var(--text-dark);
}

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

.page-support__channel-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

/* Common Issues Section */
.page-support__common-issues {
    padding: 60px 0;
}

.page-support__issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-support__issue-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--k89bet-white);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-support__issue-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-support__issue-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--k89bet-green);
}

.page-support__issue-title a {
    color: inherit;
    text-decoration: none;
}

.page-support__issue-title a:hover {
    text-decoration: underline;
}

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

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

.page-support__faq-item {
    background-color: var(--k89bet-white);
    color: var(--text-dark);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
}

.page-support__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--k89bet-green);
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-support__faq-answer p {
    flex: 1;
    margin: 0;
}

.page-support__faq-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Contact CTA Section */
.page-support__contact-cta {
    padding: 60px 0;
    text-align: center;
}

/* General Image Styling */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images behave as block elements for max-width */
}

.page-support__card {
    background: var(--k89bet-white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__container {
        padding: 0 15px;
    }

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

    .page-support__hero-content {
        padding: 30px 15px;
    }

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

    .page-support__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 80%;
    }

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

    .page-support__feature-item,
    .page-support__channel-item,
    .page-support__issue-card {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-support__faq-list {
        margin: 0 15px;
    }
}

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

    .page-support__hero-section {
        padding-top: 10px !important;
        min-height: 400px;
    }

    .page-support__hero-image {
        object-fit: contain !important; /* Contain for mobile hero */
        position: relative;
        max-height: 300px;
        aspect-ratio: unset;
    }

    .page-support__hero-content {
        padding: 20px 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-support__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        font-weight: 700;
    }

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

    .page-support__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        padding-right: 15px;
        font-size: 1em;
    }

    /* General image and container responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__features-grid,
    .page-support__channels-grid,
    .page-support__issues-grid,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-support__feature-item,
    .page-support__channel-item,
    .page-support__issue-card {
        margin-left: 0;
        margin-right: 0;
    }

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

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

    .page-support__faq-answer {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .page-support__faq-icon {
        width: 80px;
        height: 80px;
        margin-top: 10px;
    }

    /* No specific game grid or winner list for support page, but general rules apply */
    /* Placeholder for other content modules if they were present */
    .page-support__why-choose-us,
    .page-support__contact-channels,
    .page-support__common-issues,
    .page-support__faq-section,
    .page-support__contact-cta {
        padding-left: 0;
        padding-right: 0;
    }
}