/* style/support.css */

/* Base Styles for the page-support scope */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* As per body background from shared.css */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #ffffff; /* White text for contrast */
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-support__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* Section common styles */
.page-support__contact-channels,
.page-support__guide-section,
.page-support__contact-form-section,
.page-support__responsible-gaming {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-support__faq-section,
.page-support__video-section {
    padding: 60px 20px;
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for contrast */
}

.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

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

.page-support__channel-card,
.page-support__guide-card {
    background-color: #f8f8f8; /* Slightly off-white for cards in light sections */
    color: #333333; /* Dark text for light card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__channel-card .page-support__card-title,
.page-support__guide-card .page-support__card-title {
    font-size: 1.5em;
    margin: 15px 0;
    color: #26A9E0; /* Brand color for card titles */
}

.page-support__guide-card .page-support__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-support__guide-card .page-support__card-title a:hover {
    text-decoration: underline;
}

.page-support__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text grow to push button to bottom */
}

.page-support__channel-icon,
.page-support__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-support__btn-link {
    background-color: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom of card */
}

.page-support__btn-link:hover {
    background-color: #1e87b3;
    border-color: #1e87b3;
}


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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff; /* White text for dark background */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker background for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-support__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Slightly off-white for answer text */
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

/* Video Section */
.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-support__video-link {
    display: block; /* Make the whole area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact Form Section */
.page-support__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f8f8f8; /* Light background for form */
    color: #333333; /* Dark text for form */
    padding: 40px;
    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: bold;
    color: #333333;
}

.page-support__form-input,
.page-support__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

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

.page-support__contact-form .page-support__btn-primary {
    width: auto;
    min-width: 180px;
    margin-top: 15px;
}

/* Responsible Gaming Section */
.page-support__responsible-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-support__responsible-links .page-support__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__responsible-links .page-support__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 15px;
    }

    .page-support__hero-title {
        font-size: 2.2em;
    }

    .page-support__hero-description {
        font-size: 1em;
    }

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

    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__contact-channels,
    .page-support__faq-section,
    .page-support__guide-section,
    .page-support__video-section,
    .page-support__contact-form-section,
    .page-support__responsible-gaming {
        padding: 40px 15px;
    }

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

    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__channels-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__channel-card,
    .page-support__guide-card {
        padding: 25px;
    }

    .page-support__channel-icon,
    .page-support__guide-image {
        min-width: 200px;
        min-height: 200px;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px;
    }

    .page-support__video-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for better mobile viewing if needed, e.g., 4:3 */
    }

    .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,
    .page-support__contact-form-section,
    .page-support__responsible-gaming {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Ensure all content sections and cards respect mobile padding */
    .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;
    }
    
    .page-support__responsible-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Ensure content area images are not tiny */
.page-support img {
    min-width: 200px;
    min-height: 200px;
}