/* style/support.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --login-button-color: #EA7C07;
    --border-color: #e0e0e0;
}

.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
}

.page-support__main-heading {
    font-size: 3.2em;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.page-support__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-support__section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-support__dark-section .page-support__section-description {
    color: var(--text-light);
}

.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(38, 169, 224, 0.7) 100%);
    color: var(--text-light);
    overflow: hidden;
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-support__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-support__hero-description {
    font-size: 1.25em;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-support__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--login-button-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-support__cta-button:hover {
    background: darken(var(--login-button-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__section {
    padding: 80px 20px;
    text-align: center;
}

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

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

.page-support__dark-section .page-support__section-title {
    color: var(--text-light);
}

.page-support__dark-section .page-support__section-title::after {
    background: var(--text-light);
}

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

.page-support__grid-two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.page-support__grid-three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.page-support__card {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.page-support__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-support__contact-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    object-fit: contain;
    min-width: 200px;
    min-height: 200px;
}

.page-support__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__card-text {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
    flex-grow: 1;
}

.page-support__card-alt {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.page-support__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ Section Styles */
.page-support__faq-area {
    padding-bottom: 80px;
}

.page-support__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.page-support__faq-question:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none;
}

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: var(--login-button-color);
    transform: rotate(180deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9fbfd;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-color: var(--primary-color);
}

.page-support__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 1em;
    line-height: 1.8;
    text-align: left;
}

.page-support__responsible-gaming {
    background-color: #f0f8ff;
    color: var(--text-dark);
    padding: 60px 20px;
}

.page-support__responsible-gaming .page-support__section-title {
    color: var(--primary-color);
}

.page-support__responsible-gaming .page-support__section-title::after {
    background: var(--primary-color);
}

.page-support__feedback-suggestions {
    padding-bottom: 80px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__grid-two-columns {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .page-support__grid-three-columns {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-support__main-heading {
        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 {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__main-heading {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-support__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-support__cta-button {
        padding: 15px 35px;
        font-size: 1em;
        width: 100% !important;
        max-width: 300px !important; /* Constrain max width for buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-support__section {
        padding: 50px 15px;
    }
    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-support__card {
        padding: 25px;
        border-radius: 8px;
        margin-left: 0;
        margin-right: 0;
    }
    .page-support__card-image, .page-support__contact-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-question h3 {
        font-size: 1em;
    }
    .page-support__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }
    .page-support__btn-secondary {
        padding: 10px 25px;
        font-size: 0.95em;
        width: 100% !important;
        max-width: 250px !important; /* Constrain max width for buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Ensure all images are responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__hero-container,
    .page-support__hero-content,
    .page-support__grid-two-columns,
    .page-support__grid-three-columns,
    .page-support__faq-list,
    .page-support__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-support__grid-two-columns, .page-support__grid-three-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__contact-card {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .page-support__main-heading {
        font-size: 1.8em;
    }
    .page-support__hero-description {
        font-size: 0.9em;
    }
    .page-support__section-title {
        font-size: 1.6em;
    }
    .page-support__card-title {
        font-size: 1.3em;
    }
    .page-support__card-text {
        font-size: 0.9em;
    }
    .page-support__faq-question h3 {
        font-size: 0.95em;
    }
}