/* style/support.css */

/* Base Styles for the page-support scope */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-support__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 30px;
    border-radius: 10px;
    background: rgba(1, 116, 57, 0.8); /* Brand color with transparency */
    color: #ffffff;
}

.page-support__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #ffff00; /* Yellow for prominence */
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

/* General Section Styling */
.page-support__introduction-section,
.page-support__contact-channels-section,
.page-support__faq-section,
.page-support__responsible-gaming-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-support__common-issues-section,
.page-support__video-section,
.page-support__cta-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-support__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles on light backgrounds */
}

.page-support__dark-section .page-support__section-title {
    color: #ffff00; /* Yellow for titles on dark backgrounds */
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Card Styling */
.page-support__card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333; /* Dark text on card background */
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

/* Buttons */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow text for primary button */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: #017439; /* Green brand color */
    color: #ffffff; /* White text for secondary button */
    border: 2px solid #017439;
}

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

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

.page-support__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-support__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Issue Categories */
.page-support__issue-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter card on dark section */
    color: #ffffff; /* Light text on card */
}

.page-support__category-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #ffff00; /* Yellow for titles on dark card */
}

.page-support__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.page-support__category-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__category-list a:hover {
    color: #ffff00;
}

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

.page-support__channel-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-support__channel-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__channel-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

/* Video Section */
.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 8px;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer;
}

.page-support__video-cta {
    margin-top: 20px;
}

/* FAQ Section */
.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: #ffffff; /* White background for answer */
    color: #333333; /* Dark text for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

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

.page-support__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #005a2e;
}

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

.page-support__cta-section .page-support__section-title {
    color: #ffff00; /* Yellow title on green background */
}

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

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

.page-support__responsible-gaming-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    min-height: 200px; /* Min size constraint */
}

.page-support__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    color: #333333;
}

.page-support__responsible-gaming-subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__responsible-gaming-text p {
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__responsible-gaming-image,
    .page-support__responsible-gaming-text {
        max-width: 100%;
    }
}

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

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

    .page-support__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-support__channel-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Min size constraint */
        min-height: 200px; /* Min size constraint */
    }

    .page-support__video-wrapper {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* General image responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections on mobile to prevent content touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__responsible-gaming-content {
        flex-direction: column;
    }
    .page-support__responsible-gaming-image {
        max-width: 100% !important;
        min-width: 200px; /* Min size constraint */
        min-height: 200px; /* Min size constraint */
    }
    .page-support__responsible-gaming-text {
        max-width: 100% !important;
    }
}

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