/* style/support.css */

/* Base styles for the support page content area */
.page-support {
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared, ensuring dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header offset for main content */
.page-support__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient using brand color */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 1;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-support__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%; /* Ensure buttons don't overflow */
    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: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-support__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
    transform: translateY(-2px);
}

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

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

.page-support__hero-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

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

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

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

.page-support__section-intro {
    font-size: 1.1em;
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__contact-methods {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
    padding: 60px 0;
}

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

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

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

.page-support__method-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 400px; /* Max width for images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-height: 200px; /* Min size requirement */
}

.page-support__method-title {
    font-size: 1.8em;
    color: #26A9E0; /* Brand color */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-support__faq-section {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.2); /* Darker background for FAQ */
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* Light text */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-support__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
    font-weight: bold;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
    color: #EA7C07; /* Highlight toggle when active */
}

.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 dimmer light text */
}

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

.page-support__faq-answer p {
    margin-bottom: 15px;
    font-size: 0.95em;
}

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

.page-support__faq-link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support__faq-link:hover {
    color: #EA7C07; /* Login color on hover */
}

.page-support__responsible-gaming {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background */
}

.page-support__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

.page-support__responsible-gaming-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-height: 200px; /* Min size requirement */
}

.page-support__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
    color: #ffffff; /* Light text */
}

.page-support__responsible-gaming-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-support__responsible-gaming-text ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-support__responsible-gaming-text li {
    margin-bottom: 10px;
    font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__method-title {
        font-size: 1.5em;
    }
    .page-support__responsible-gaming-subtitle {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important; /* Full width for buttons on mobile */
        padding: 12px 20px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word !important; /* Allow long words to break */
    }

    .page-support__container {
        padding: 30px 15px;
    }
    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-support__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-support__method-grid {
        grid-template-columns: 1fr;
    }
    .page-support__method-card {
        padding: 20px;
    }
    .page-support__method-icon {
        max-width: 100%;
        min-height: 200px;
    }
    .page-support__method-title {
        font-size: 1.4em;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-heading {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px;
    }
    .page-support__responsible-gaming-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-support__responsible-gaming-image {
        max-width: 100%;
        min-height: 200px;
    }
    .page-support__responsible-gaming-subtitle {
        font-size: 1.4em;
    }

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

    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__responsible-gaming {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content from touching edges */
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-support__hero-image-wrapper,
    .page-support__responsible-gaming-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-support__hero-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure no content causes horizontal scroll */
    .page-support {
        overflow-x: hidden;
    }
}

/* Ensure content area images are not too small */
.page-support img:not(.page-support__method-icon):not(.page-support__responsible-gaming-image):not(.page-support__hero-image) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Ensure no CSS filters are used on images */
.page-support img {
    filter: none;
}