/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Container for general content centering */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles and descriptions */
.page-support__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    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;
}

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

.page-support__btn-primary:hover {
    background-color: #02944b;
    border-color: #02944b;
}

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

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

/* Custom button colors */
.page-support__btn-register {
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register font color */
    border-color: #C30808;
}

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

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

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-support__hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-support__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

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

/* Channels Section */
.page-support__channels-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 400px; /* Ensure cards have similar height */
}

.page-support__channel-icon {
    width: 200px; /* Min size 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-support__channel-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-support__faq-heading {
    margin: 0;
    flex-grow: 1;
    color: #ffffff; /* Ensure heading color is light */
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439; /* Brand color for toggle */
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
    content: '−'; /* Change to minus sign */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Ensure answer text is light */
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 20px;
}

.page-support__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0; /* Ensure paragraph text in answer is light */
}

.page-support__faq-answer a {
    color: #017439; /* Brand color for links in answers */
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #02944b;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff;
}

.page-support__responsible-gambling-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-support__responsible-gambling-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Ensure min image size */
}

.page-support__responsible-gambling-text {
    flex: 1;
}

.page-support__responsible-gambling-text .page-support__section-title,
.page-support__responsible-gambling-text .page-support__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: #ffffff; /* Ensure text is white on brand background */
}

.page-support__responsible-gambling-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-support__responsible-gambling-list li {
    margin-bottom: 10px;
}

/* CTA Section */
.page-support__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__section-description {
        font-size: 1em;
    }
    .page-support__responsible-gambling-content {
        flex-direction: column;
        text-align: center;
    }
    .page-support__responsible-gambling-image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-support__responsible-gambling-text .page-support__section-title,
    .page-support__responsible-gambling-text .page-support__section-description {
        text-align: center;
    }
    .page-support__responsible-gambling-list {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px; /* Constrain list width for better readability */
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-bottom: 60px;
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .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-register,
    .page-support__btn-login {
        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 {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__channels-grid {
        grid-template-columns: 1fr;
    }
    .page-support__channel-card {
        min-height: auto;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }
    .page-support__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-support__responsible-gambling-image {
        max-width: 100% !important;
        min-width: 200px !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-support__responsible-gambling-content {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-support__channels-section .page-support__container,
    .page-support__faq-section .page-support__container,
    .page-support__cta-section .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* All images responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-support__hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Ensure content area images meet minimum size on desktop and are responsive on mobile */
.page-support__channel-icon,
.page-support__responsible-gambling-image {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow natural width on desktop */
    height: auto;
}

/* Dark background classes */
.page-support__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}