/* style/support.css */

/* --- General Styles --- */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
    overflow-x: hidden; /* Prevent horizontal scroll for the main content area */
}

.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: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-support__section-title--white {
    color: #FFFFFF;
}

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

.page-support__section-text--white {
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-support__btn-primary:hover {
    background-color: #005a2e; /* Darker green on hover */
    transform: translateY(-2px);
}

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

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

/* --- Hero Section --- */
.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
    /* No filter to change color, only brightness for contrast */
}

.page-support__hero-section .page-support__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.2;
}

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

/* --- Introduction Section --- */
.page-support__introduction-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

/* --- Contact Methods Section --- */
.page-support__contact-methods-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
}

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

.page-support__contact-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__contact-card--dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__contact-card--dark .page-support__card-title {
    color: #FFFFFF;
}
.page-support__contact-card--dark .page-support__card-description {
    color: #f0f0f0;
}


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

.page-support__contact-icon {
    object-fit: contain;
    margin-bottom: 20px;
    /* Ensure min size for images in content areas */
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow natural width or be controlled by flex/grid */
    height: auto; /* Maintain aspect ratio */
}

.page-support__contact-card .page-support__cta-button {
    margin-top: auto; /* Push button to bottom */
}

.page-support__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- FAQ Section --- */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-support__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-item-title {
    font-size: 1.25em;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    color: #017439;
    font-weight: bold;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

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

.page-support__faq-answer p {
    margin-bottom: 15px;
    text-align: left;
}
.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- Responsible Gaming Section --- */
.page-support__responsible-gaming-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #FFFFFF;
}

.page-support__responsible-gaming-section .page-support__section-title {
    color: #FFFFFF;
}

.page-support__responsible-gaming-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    /* Ensure min size for images */
    min-width: 200px;
    min-height: 200px;
    width: auto;
}

/* --- Resources Section --- */
.page-support__resources-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-support__resource-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-support__resource-item {
    background-color: #FFFFFF;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__resource-item a {
    display: block;
    padding: 18px 25px;
    font-size: 1.1em;
    color: #333333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__resource-item a:hover {
    color: #017439;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.page-support__resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Feedback Section --- */
.page-support__feedback-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #FFFFFF;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.2em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__section-text {
        font-size: 1em;
    }
    .page-support__contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    /* Fixed header spacing for mobile */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important; /* Enforce full width */
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Button containers for mobile */
    .page-support__container .page-support__cta-button {
        max-width: 300px !important; /* Limit individual buttons to a reasonable width if not in a grid */
        width: 100% !important;
    }

    .page-support__contact-grid {
        grid-template-columns: 1fr;
    }

    .page-support__contact-card,
    .page-support__faq-item,
    .page-support__resource-item {
        margin-left: 15px;
        margin-right: 15px;
        max-width: 100% !important;
        width: auto !important;
        box-sizing: border-box !important;
    }

    .page-support__contact-icon {
        min-width: 200px !important; /* Enforce min size for mobile */
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__responsible-gaming-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All images responsive for mobile */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image containers responsive for mobile */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__contact-methods-section,
    .page-support__responsible-gaming-section,
    .page-support__resources-section,
    .page-support__feedback-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal overflow */
    }

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

    .page-support__faq-question {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsive (if any, though none directly in HTML for this page, keeping for completeness) */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__faq-item-title {
        font-size: 1.1em;
    }
}