/* style/support.css */

/* General styles for the support page content */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333); /* Default text color, ensuring contrast */
    background-color: var(--bg-color, #F5F7FA); /* Default background color */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #E53935; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-support__sub-title {
    font-size: 1.8em;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__section-description {
    font-size: 1.1em;
    color: var(--text-main, #333333);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO Section */
.page-support__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Specific top padding as required, not var(--header-offset) */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Light background for contrast */
}

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

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

.page-support__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-support__main-title {
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.2em;
    color: var(--text-main, #333333);
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-support__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-support__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

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

.page-support__btn-link {
    background: none;
    color: #E53935;
    border: 1px solid transparent;
    padding: 5px 0;
    font-weight: 500;
    text-align: left;
    display: block;
    margin-top: 10px;
}

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

/* Why Choose Section */
.page-support__why-choose-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-support__feature-item {
    background: #F5F7FA;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-support__feature-title {
    font-size: 1.5em;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__feature-text {
    color: var(--text-main, #333333);
}

/* Support Channels Section */
.page-support__channels-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-support__channel-item {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-support__channel-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too small but still content-rich */
    height: auto;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum image size */
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__channel-title {
    font-size: 1.6em;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__channel-text {
    color: var(--text-main, #333333);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-support__faq-item {
    background: #F5F7FA;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border, #E0E0E0);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main, #333333);
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

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

.page-support__faq-question:hover {
    background-color: #f0f0f0;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #E53935;
    margin-left: 15px;
}

.page-support__faq-item[open] .page-support__faq-question {
    background-color: #f0f0f0;
}

.page-support__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main, #333333);
    line-height: 1.5;
    /* Transition for div based FAQ if not using <details> */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-support__faq-item[open] .page-support__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

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


/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

.page-support__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-support__responsible-gaming-image {
    flex: 1;
    min-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
}

.page-support__responsible-gaming-text {
    flex: 2;
    min-width: 300px;
    color: var(--text-main, #333333);
}

.page-support__responsible-gaming-text p {
    margin-bottom: 15px;
}

/* Contact Form Section */
.page-support__contact-form-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

.page-support__contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background: #F5F7FA;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-support__form-group {
    margin-bottom: 20px;
}

.page-support__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main, #333333);
}

.page-support__form-input,
.page-support__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border, #E0E0E0);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-main, #333333);
    background-color: #ffffff;
    box-sizing: border-box;
}

.page-support__form-input::placeholder,
.page-support__form-textarea::placeholder {
    color: #999;
}

.page-support__form-textarea {
    resize: vertical;
}

.page-support__contact-form .page-support__btn-primary {
    width: 100%;
    text-align: center;
    font-size: 1.1em;
    padding: 15px 30px;
}

/* Call to Action Section */
.page-support__call-to-action-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background */
    text-align: center;
    color: #ffffff; /* White text for contrast */
}

.page-support__call-to-action-section .page-support__section-title,
.page-support__call-to-action-section .page-support__section-description {
    color: #ffffff;
}

.page-support__call-to-action-section .page-support__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border-color: #ffffff;
}

.page-support__call-to-action-section .page-support__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    border-color: #E53935;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-support__hero-section {
        padding-top: 10px !important; /* Specific top padding */
        padding-bottom: 40px;
    }
    .page-support__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-support__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-support__hero-description {
        font-size: 1em;
    }

    /* General sections padding */
    .page-support__why-choose-section,
    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__responsible-gaming-section,
    .page-support__contact-form-section,
    .page-support__call-to-action-section {
        padding: 40px 0;
    }

    /* Generic image and container responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-support__container,
    .page-support__features-grid,
    .page-support__channels-grid,
    .page-support__faq-list,
    .page-support__responsible-gaming-content,
    .page-support__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button and button container responsiveness */
    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link,
    .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;
        text-align: center; /* Center button text when stacked */
    }

    /* Responsible Gaming Section */
    .page-support__responsible-gaming-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-support__responsible-gaming-image {
        width: 100%;
    }
    .page-support__responsible-gaming-text {
        width: 100%;
    }

    /* FAQ Section */
    .page-support__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px;
    }

    /* Contact Form */
    .page-support__contact-form {
        padding: 20px;
    }
    .page-support__contact-form .page-support__btn-primary {
        padding: 12px 20px;
    }
}