/* style/support.css */

/* Base Styles for the Support Page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-support__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-support__dark-bg {
    background-color: #000000; /* Explicitly dark background for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-support__light-bg {
    background-color: #ffffff; /* Explicitly light background for sections */
    color: #333333;
    padding: 60px 0;
}

.page-support__light-bg .page-support__section-title {
    color: #26A9E0;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    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;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

.page-support__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb4;
    border-color: #1a7fb4;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-support__hero-section .page-support__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

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

.page-support__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-support__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-support__introduction-section .page-support__section-title {
    color: #26A9E0;
}
.page-support__introduction-section .page-support__paragraph {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

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

.page-support__faq-section .page-support__section-title {
    color: #26A9E0;
}

.page-support__faq-section .page-support__section-subtitle {
    color: #f0f0f0;
}

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

.page-support__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.page-support__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: color 0.3s ease;
}

.page-support__faq-question:hover {
    color: #26A9E0;
}

.page-support__faq-heading {
    margin: 0;
    font-size: 1.1em;
    flex-grow: 1;
    color: inherit; /* Inherit color from parent */
}

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

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

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

.page-support__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    color: inherit;
}

.page-support__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Contact Methods Section */
.page-support__contact-methods {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-support__contact-methods .page-support__section-title {
    color: #26A9E0;
}

.page-support__contact-methods .page-support__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #333333;
}

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

.page-support__contact-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have similar height */
    color: #333333;
}

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

.page-support__contact-card .page-support__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__contact-card .page-support__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-support__contact-note {
    margin-top: 40px;
    font-style: italic;
    color: #555555;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling {
    text-align: center;
    padding: 60px 0;
    background-color: #000000;
    color: #ffffff;
}

.page-support__responsible-gambling .page-support__section-title {
    color: #26A9E0;
}

.page-support__responsible-gambling .page-support__paragraph {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-support__responsible-gambling .page-support__btn-secondary {
    margin-top: 30px;
}

/* Additional Resources Section */
.page-support__additional-resources {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-support__additional-resources .page-support__section-title {
    color: #26A9E0;
}

.page-support__additional-resources .page-support__paragraph {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #333333;
}

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

.page-support__resource-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px; /* Ensure cards have similar height */
    color: #333333;
}

.page-support__resource-card .page-support__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-support__resource-card .page-support__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__resource-card .page-support__card-title a:hover {
    color: #1a7fb4;
    text-decoration: underline;
}

.page-support__resource-card .page-support__card-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 0;
}

/* 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__faq-question {
        font-size: 1.1em;
    }
}

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

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

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

    .page-support__hero-section .page-support__container {
        flex-direction: column;
        text-align: center;
    }

    .page-support__hero-content {
        text-align: center;
    }

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

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

    /* Ensure image containers do not overflow */
    .page-support__hero-image-wrapper,
    .page-support__contact-card,
    .page-support__resource-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsiveness */
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .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;
        margin-bottom: 10px;
    }

    .page-support__contact-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .page-support__resources-grid {
        grid-template-columns: 1fr; /* Stack resource cards vertically */
    }

    .page-support__contact-card {
        padding: 20px;
        min-height: auto;
    }

    .page-support__resource-card {
        padding: 20px;
        min-height: auto;
    }

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

    .page-support__faq-question {
        font-size: 1em;
    }

    .page-support__faq-toggle {
        font-size: 1.2em;
    }

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

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

    /* Ensure all content containers do not cause horizontal scroll */
    .page-support__section,
    .page-support__container,
    .page-support__hero-section,
    .page-support__introduction-section,
    .page-support__faq-section,
    .page-support__contact-methods,
    .page-support__responsible-gambling,
    .page-support__additional-resources {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__hero-content {
      padding-bottom: 20px;
    }
    .page-support__hero-section .page-support__container {
      gap: 20px;
    }
}