/* style/support.css */
.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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 */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #1a1a2e; /* Dark background for hero */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    text-align: center;
}

.page-support__hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    padding: 20px;
    position: relative;
}

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

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* General Section Styling */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-support__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Default for dark sections */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Dark Section Styling */
.page-support__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

/* Buttons */
.page-support__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.page-support__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.page-support__btn-text-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support__btn-text-link:hover {
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-support__contact-methods .page-support__section-title,
.page-support__contact-methods .page-support__section-description {
    color: #ffffff;
}

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

.page-support__method-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-support__method-card:hover {
    transform: translateY(-5px);
}

.page-support__method-title {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for card titles on dark background */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__method-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-support__method-contact {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #f0f0f0; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
    color: #333333;
}

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand color for questions */
    transition: background-color 0.3s ease;
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 30px;
    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;
    padding: 15px 30px;
}

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

/* Responsible Gaming Section */
.page-support__responsible-gaming .page-support__section-title,
.page-support__responsible-gaming .page-support__section-description {
    color: #ffffff;
}

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

.page-support__info-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__info-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Security & Privacy Section */
.page-support__security-privacy {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-support__security-privacy .page-support__section-title,
.page-support__security-privacy .page-support__section-description {
    color: #333333;
}

.page-support__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-support__security-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-support__security-subtitle {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__security-item p {
    color: #555555;
}

.page-support__link-group {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-support__link-group .page-support__btn-text-link {
    color: #017439; /* Brand color for links on light background */
}

.page-support__link-group .page-support__btn-text-link:hover {
    color: #004d26;
}

/* Feedback & CTA Section */
.page-support__feedback-cta {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    padding-bottom: 0;
}

.page-support__feedback-cta .page-support__section-title,
.page-support__feedback-cta .page-support__section-description {
    color: #ffffff;
}

.page-support__cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 80px;
    flex-wrap: wrap;
}

.page-support__feedback-content {
    flex: 1;
    min-width: 300px;
}

.page-support__cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-support__cta-title {
    font-size: 2em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__cta-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-support__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Images */
.page-support__image-container {
    margin-top: 40px;
    text-align: center;
}

.page-support__image-container--bottom {
    margin-top: 0;
}

.page-support__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

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

    .page-support__cta-flex {
        flex-direction: column;
        text-align: center;
    }

    .page-support__feedback-content,
    .page-support__cta-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

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

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

    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-support__method-grid,
    .page-support__info-grid,
    .page-support__security-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__method-card,
    .page-support__info-card,
    .page-support__security-item {
        padding: 20px;
    }

    .page-support__method-title,
    .page-support__info-title,
    .page-support__security-subtitle {
        font-size: 1.5em;
    }

    .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__cta-title {
        font-size: 1.8em;
    }

    .page-support__cta-text {
        font-size: 1em;
    }

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

    .page-support__hero-image-wrapper,
    .page-support__image-container,
    .page-support__image-container--bottom,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__responsible-gaming,
    .page-support__security-privacy,
    .page-support__feedback-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness - MUST USE !important */
    .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;
    }
    
    .page-support__hero-cta,
    .page-support__link-group,
    .page-support__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-support__cta-buttons {
        flex-direction: column !important;
    }
}