/* style/support.css */

/* Base styles for the page-support scope */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, default to white */
}

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background-color: #f5f5f5; /* Light background for hero */
    position: relative;
    overflow: hidden;
}

.page-support__hero-content {
    max-width: 900px;
    z-index: 10;
    margin-bottom: 40px;
}

.page-support__hero-title {
    font-size: 2.8em;
    color: #017439; /* Brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

/* General Section Styling */
.page-support__content-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-support__dark-section {
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff; /* White text for dark background */
}

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

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

.page-support__dark-section .page-support__section-title {
    color: #ffffff;
}

.page-support__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Feature Grid for Support Topics */
.page-support__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-support__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__feature-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-support__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    min-height: 3em; /* Ensure consistent height for titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-support__feature-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__card-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

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

.page-support__card-btn {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: auto; /* Push button to the bottom of the card */
}

.page-support__card-btn:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

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

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.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: #ffffff;
}

.page-support__faq-title {
    margin: 0;
    color: inherit;
    flex-grow: 1;
    text-align: left;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

/* CRITICAL: Active state for FAQ answer, must use !important for max-height */
.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px; /* Padding for expanded state */
}

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

/* Contact Section */
.page-support__contact-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
    color: #333333;
}

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

.page-support__contact-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__contact-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__contact-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Responsible Gambling Section */
.page-support__responsibility-section {
    padding: 60px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-support__responsibility-list {
    list-style: disc inside;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 20px;
}

.page-support__responsibility-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-support__responsibility-list strong {
    color: #FFFF00; /* Highlight key terms */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.4em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__feature-title {
        font-size: 1.3em;
    }
}

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

    .page-support__hero-section {
        flex-direction: column;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__card-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px; /* Adjust padding for smaller screens */
    }

    .page-support__container {
        padding: 0 15px;
    }

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

    .page-support__content-section,
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__responsibility-section {
        padding: 40px 15px;
    }

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

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

    .page-support__feature-icon {
        height: 180px;
    }

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

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

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

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__content-section,
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__responsibility-section,
    .page-support__feature-grid,
    .page-support__contact-methods,
    .page-support__hero-buttons,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.6em;
    }
    .page-support__feature-title {
        font-size: 1.2em;
    }
}