/* style/support.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text color 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;
}

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

.page-support__section-intro {
    font-size: 1.1em;
    color: #cccccc; /* Slightly lighter grey for intro text */
    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: 12px 25px;
    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;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-support__btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
}

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

.page-support__btn-secondary:hover {
    background-color: #ffc107;
    color: #121212; /* Dark text on golden hover */
    border-color: #ffc107;
}

/* Dark background sections for better contrast with primary elements */
.page-support__dark-bg {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent dark for depth */
    padding: 60px 0;
}

/* Card styles */
.page-support__card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text on card background */
}

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

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

.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: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    z-index: -1;
}

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

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

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

.page-support__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Why Choose Section */
.page-support__why-choose-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-support__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-support__feature-title {
    font-size: 1.8em;
    color: #ffc107; /* Golden for feature titles */
    margin-bottom: 15px;
}

.page-support__feature-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-support__contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Push button to bottom */
    padding-bottom: 20px; /* Space for button */
}

.page-support__contact-icon {
    width: 100%; /* Ensure full width within card */
    max-width: 200px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__contact-title {
    font-size: 1.6em;
    color: #ffc107;
    margin-bottom: 15px;
}

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

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
}

.page-support__faq-list {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for FAQ */
    gap: 20px;
}

.page-support__faq-category {
    margin-bottom: 40px;
}

.page-support__faq-category-title {
    font-size: 2em;
    color: #007bff; /* Primary color for category titles */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 123, 255, 0.3);
    padding-bottom: 15px;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

.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); /* Change + to X or - */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    font-size: 1em;
}

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

.page-support__faq-image {
    display: block;
    margin: 40px auto 0;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Guides & Resources Section */
.page-support__resources-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-support__resource-card {
    display: block;
    text-decoration: none;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-support__resource-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 80px 0;
}

.page-support__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

.page-support__responsible-gaming-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* VIP & Affiliate Programs Section */
.page-support__programs-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-support__program-card {
    display: block;
    text-decoration: none;
    height: 100%;
}

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

.page-support__program-description {
    font-size: 1em;
    color: #e0e0e0;
}

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

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

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

/* 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__faq-category-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        height: 500px; /* Adjust hero height for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Limit button width for mobile */
        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.8em;
    }
    .page-support__section-intro {
        font-size: 1em;
    }

    .page-support__features-grid,
    .page-support__contact-grid,
    .page-support__resource-grid,
    .page-support__program-grid {
        grid-template-columns: 1fr;
    }

    .page-support__responsible-gaming-content {
        flex-direction: column;
    }
    .page-support__responsible-gaming-image {
        order: -1; /* Image above text on mobile */
    }

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Container padding for mobile */
    .page-support__container,
    .page-support__why-choose-section,
    .page-support__contact-methods-section,
    .page-support__faq-section,
    .page-support__resources-section,
    .page-support__responsible-gaming-section,
    .page-support__programs-section,
    .page-support__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ specific mobile adjustments */
    .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: 15px 20px 20px;
    }
    .page-support__faq-image {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure no horizontal scroll for any content */
    .page-support {
        overflow-x: hidden;
    }
    .page-support__hero-section,
    .page-support__why-choose-section,
    .page-support__contact-methods-section,
    .page-support__faq-section,
    .page-support__resources-section,
    .page-support__responsible-gaming-section,
    .page-support__programs-section,
    .page-support__cta-section {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__faq-category-title {
        font-size: 1.5em;
    }
}