/* 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: #1a1a1a; /* Inherited from body, explicit for clarity */
}

.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: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-support__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(0, 0, 0, 0.8)); /* Overlay for text readability */
    z-index: 1;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-support__hero-section .page-support__container {
    position: relative;
    z-index: 2;
}

.page-support__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-inline,
.page-support__btn-cta {
    display: inline-block;
    padding: 15px 30px;
    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;
    word-wrap: break-word;
}

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

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

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
}

.page-support__btn-inline {
    background-color: transparent;
    color: #017439;
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 10px;
}

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

.page-support__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-support__btn-cta {
    padding: 18px 35px;
    font-size: 1.1em;
    border: none;
}

.page-support__btn-register {
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom color for Register text */
}

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

.page-support__btn-login {
    background-color: #C30808; /* Custom color for Login */
    color: #FFFF00; /* Custom color for Login text */
}

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

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

.page-support__btn-download:hover {
    background-color: #005a2d;
}

/* Section specific styles */
.page-support__why-choose-section,
.page-support__contact-methods-section,
.page-support__responsible-gaming-section,
.page-support__cta-section {
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-support__why-choose-section .page-support__section-title,
.page-support__why-choose-section .page-support__section-intro,
.page-support__contact-methods-section .page-support__section-title,
.page-support__contact-methods-section .page-support__section-intro,
.page-support__responsible-gaming-section .page-support__section-title,
.page-support__responsible-gaming-section .page-support__section-intro,
.page-support__cta-section .page-support__section-title,
.page-support__cta-section .page-support__section-intro {
    color: #333333;
}

.page-support__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

.page-support__feature-card,
.page-support__contact-card {
    background-color: rgba(1, 116, 57, 0.05); /* Light transparent green for card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333; /* Dark text for these cards */
}

.page-support__feature-card .page-support__card-title,
.page-support__contact-card .page-support__card-title {
    color: #017439; /* Brand green for titles */
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-support__feature-card .page-support__card-description,
.page-support__contact-card .page-support__card-description {
    color: #555555;
    font-size: 1em;
    flex-grow: 1;
}

.page-support__feature-icon,
.page-support__contact-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

/* Common Issues / FAQ Section */
.page-support__common-issues-section,
.page-support__faq-section {
    padding: 80px 0;
}

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

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

.page-support__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    max-height: 0; /* Hidden by default for details tag */
    overflow: hidden; /* Important for smooth transition */
    transition: max-height 0.4s ease-out;
}

/* For details tag, the answer is shown by default if open, JS will handle toggle icon */
.page-support__faq-item[open] .page-support__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth transition */
}

/* Custom styling for details/summary to remove default marker */
.page-support__faq-item details > summary {
    list-style: none;
}
.page-support__faq-item details > summary::-webkit-details-marker {
    display: none;
}


.page-support__faq-answer p {
    margin-bottom: 15px;
}

.page-support__email-link,
.page-support__phone-link,
.page-support__inline-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__email-link:hover,
.page-support__phone-link:hover,
.page-support__inline-link:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-support__contact-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #555555;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section .page-support__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-support__image-left {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.page-support__text-content {
    flex: 2;
    color: #333333;
}

.page-support__text-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* CTA Section */
.page-support__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Image optimization rules (global for page-support) */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 80px 0;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.2em;
        line-height: 1.2;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-cta,
    .page-support__btn-register,
    .page-support__btn-login,
    .page-support__btn-download {
        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__cta-buttons,
    .page-support__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 15px;
        overflow: hidden !important;
    }

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

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

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

    .page-support__feature-card,
    .page-support__contact-card,
    .page-support__faq-item {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

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

    .page-support__responsible-gaming-section .page-support__content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-support__image-left {
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Ensure all images are responsive in content areas */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll for containers */
    }
    
    /* Content area images should not be smaller than 200px */
    /* This rule ensures that any img within .page-support does not display smaller than 200px */
    /* It's a general safety net, specific images might have larger explicit widths/heights */
    .page-support__content-area img,
    .page-support__feature-icon,
    .page-support__contact-icon,
    .page-support__image-left {
        min-width: 200px; /* Minimum display width */
        min-height: 200px; /* Minimum display height */
        object-fit: cover;
    }
}

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