/* style/support.css */

/* Base styles for the support page content */
.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #FFFFFF */
    background-color: #f8f8f8; /* A slightly off-white background for sections */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text for desktop and mobile */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: #FFFFFF; /* Ensures a clean separation */
    overflow: hidden; /* Prevent content overflow */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 30px;
}

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

.page-support__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-support__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Essential for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center; /* Center text within buttons */
}

.page-support__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #26A9E0;
    border-color: #26A9E0;
}

/* Section common styles */
.page-support__how-we-help-section,
.page-support__faq-section,
.page-support__contact-section,
.page-support__responsible-gaming-section,
.page-support__why-choose-us-section {
    padding: 80px 0;
}

.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-support__dark-bg {
    background-color: #26A9E0; /* Primary color as dark background */
    color: #ffffff; /* White text for dark background */
}

.page-support__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-support__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit; /* Inherit color from parent section */
}

/* How We Help Section */
.page-support__service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-support__service-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-support__service-icon {
    width: 100px; /* Fixed size for icons */
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Ensure icons fit without cropping */
}

.page-support__service-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__service-text {
    font-size: 1rem;
    color: #555555;
}

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

.page-support__faq-item {
    background-color: #ffffff; /* White background for FAQ items in dark section */
    color: #333333; /* Dark text for white background */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-support__faq-item[open] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0; /* Light grey for summary background */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-support__faq-item[open] .page-support__faq-question {
    background-color: #e5e5e5;
    border-bottom: 1px solid #d0d0d0;
}

.page-support__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question text */
}

.page-support__faq-toggle {
    font-size: 1.8rem;
    font-weight: normal;
    color: #26A9E0;
    margin-left: 15px;
    line-height: 1;
}

.page-support__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #555555;
    background-color: #ffffff;
}

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

.page-support__faq-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-support__faq-link:hover {
    color: #1a8cc7;
}

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

.page-support__contact-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-support__contact-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-support__contact-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__contact-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 25px;
}

/* Responsible Gaming Section (reusing CTA buttons) */
.page-support__responsible-gaming-section .page-support__cta-buttons {
    margin-top: 40px;
}

/* Why Choose Us Section */
.page-support__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.page-support__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-support__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-support__feature-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__feature-text {
    font-size: 1rem;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-section,
    .page-support__how-we-help-section,
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__responsible-gaming-section,
    .page-support__why-choose-us-section {
        padding: 60px 0;
    }
}

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

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

    .page-support__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-support__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

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

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
    }

    .page-support__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-support__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-support__service-grid,
    .page-support__contact-methods,
    .page-support__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-support__service-item,
    .page-support__contact-card,
    .page-support__feature-item {
        padding: 25px;
    }

    .page-support__service-icon,
    .page-support__contact-icon,
    .page-support__feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .page-support__service-title,
    .page-support__contact-title,
    .page-support__feature-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .page-support__service-text,
    .page-support__contact-text,
    .page-support__feature-text {
        font-size: 0.95rem;
    }

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

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

    /* Ensure all images are responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important; /* Explicitly set width to 100% for images in mobile */
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all video containers are responsive (though no videos are used in this page) */
    .page-support video,
    .page-support__video-wrapper,
    .page-support__video-container,
    .page-support__video-section {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* For video tag */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}