/* style/support.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
    background: var(--background-color);
}

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

.page-support__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: var(--primary-color);
    overflow: hidden;
}

.page-support__dark-bg {
    background: var(--primary-color);
    color: var(--light-text-color);
}

.page-support__light-bg {
    background: var(--secondary-color);
    color: var(--dark-text-color);
}

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

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

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-support__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-support__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background: var(--login-button-color);
    color: var(--light-text-color);
    border: 2px solid var(--login-button-color);
}

.page-support__btn-primary:hover {
    background: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-support__btn-secondary {
    background: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.page-support__btn-secondary:hover {
    background: var(--light-text-color);
    color: var(--primary-color);
}

.page-support__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-support__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

.page-support__why-choose-section,
.page-support__common-issues-section,
.page-support__responsible-gambling-section {
    padding: 60px 0;
}

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

.page-support__card {
    background: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
}

.page-support__dark-bg .page-support__card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__dark-bg .page-support__card:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-support__feature-title,
.page-support__method-title,
.page-support__issue-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: inherit;
}

.page-support__issue-title a {
    color: inherit;
    text-decoration: none;
}

.page-support__issue-title a:hover {
    text-decoration: underline;
}

.page-support__method-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    width: 400px; /* display size */
    height: 300px; /* display size */
}

.page-support__contact-methods-section {
    padding: 60px 0;
    text-align: center;
}

.page-support__faq-section {
    padding: 60px 0;
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    text-align: left;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1em;
    background: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background: darken(var(--primary-color), 10%);
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--secondary-color);
    color: var(--dark-text-color);
    border-radius: 0 0 8px 8px;
}

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

.page-support__faq-item.active .page-support__faq-question {
    border-radius: 8px 8px 0 0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 0 20px 15px 20px;
    border-top: 1px solid #e0e0e0;
}

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

.page-support__responsible-gambling-section {
    padding: 60px 0;
}

.page-support__responsible-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    flex-wrap: wrap;
}

.page-support__responsible-image {
    flex: 1 1 40%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 300px;
    width: 600px; /* display size */
    height: 450px; /* display size */
}

.page-support__responsible-text-block {
    flex: 1 1 50%;
    text-align: left;
}

.page-support__responsible-text-block p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

.page-support__cta-content {
    max-width: 900px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__responsible-content {
        flex-direction: column;
        text-align: center;
    }
    .page-support__responsible-image {
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }
    .page-support__responsible-text-block {
        text-align: center;
    }
}

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

    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-support__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        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__section-title {
        font-size: 1.6em;
    }

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

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

    .page-support__card {
        padding: 20px;
    }

    .page-support__method-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }

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

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 0 15px 12px 15px;
    }

    .page-support__responsible-image {
        min-width: 200px;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__why-choose-section,
    .page-support__contact-methods-section,
    .page-support__common-issues-section,
    .page-support__faq-section,
    .page-support__responsible-gambling-section,
    .page-support__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure images in content areas are not smaller than 200px */
.page-support img:not(.page-support__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters on images */
.page-support img {
    filter: none;
}

/* Color contrast safety */
.page-support__dark-bg .page-support__section-title,
.page-support__dark-bg .page-support__section-description {
    color: var(--light-text-color);
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__section-description {
    color: var(--dark-text-color);
}

.page-support__card p,
.page-support__card h3 {
    color: inherit;
}

.page-support__faq-item.active .page-support__faq-answer {
    background: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-support__faq-item.active .page-support__faq-answer p {
    color: var(--dark-text-color);
}