/* style/support.css */

/* Base styles for the page content, assuming a dark background from shared.css */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: transparent; /* Shared.css will handle body background */
}

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

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

/* Section descriptions (sub-headings/intro paragraphs) */
.page-support__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for readability */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark background sections */
.page-support__dark-bg {
    background-color: #017439; /* Primary brand color */
    padding: 80px 0;
    color: #ffffff;
}

/* Light background sections */
.page-support__light-bg {
    background-color: #ffffff; /* Auxiliary brand color / white */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

/* Card styles */
.page-support__card {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly off-white for contrast on dark sections, or pure white on light sections */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333; /* Default dark text for cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__card h3 {
    color: #017439; /* Brand color for card titles */
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
}

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

/* Buttons - primary */
.page-support__btn-primary {
    display: inline-block;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent; /* For consistency */
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-support__btn-primary:hover {
    background-color: #005a2e; /* Slightly darker green */
    transform: translateY(-2px);
}

/* Buttons - secondary */
.page-support__btn-secondary {
    display: inline-block;
    background-color: #ffffff; /* Auxiliary brand color */
    color: #017439; /* Primary brand color for text */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439; /* Border with primary color */
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-support__btn-secondary:hover {
    background-color: #f0f0f0; /* Slightly darker white */
    color: #005a2e; /* Slightly darker green */
    transform: translateY(-2px);
}

/* Button link inside FAQ answers */
.page-support__btn-link {
    display: inline-block;
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-support__btn-link:hover {
    color: #005a2e;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin: 20px;
}

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

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

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

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for better text contrast, NO color change filter */
}

/* Info Section (Why choose Bet88 support) */
.page-support__info-section .page-support__section-title,
.page-support__info-section .page-support__section-description {
    color: #333333; /* Dark text for light background */
}

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

/* Video Section */
.page-support__video-container {
    margin-top: 80px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__video-title {
    font-size: 2em;
    color: #333333;
    margin-bottom: 15px;
}

.page-support__video-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-support__video-link-wrapper {
    display: block;
    position: relative; 
    cursor: pointer;
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); 
}

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

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it respects max-width */
    cursor: pointer;
}

/* Contact Methods Section */
.page-support__contact-methods .page-support__section-title,
.page-support__contact-methods .page-support__section-description {
    color: #ffffff; /* White text for dark background */
}

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

.page-support__method-icon {
    width: 100%; /* Ensure images are responsive within cards */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.page-support__method-title {
    font-size: 1.6em;
    color: #017439; /* Brand color */
    margin-bottom: 10px;
}

.page-support__method-text {
    color: #555555;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
    color: #333333; /* Dark text for light background */
}

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

.page-support__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-support__faq-item:hover {
    background-color: #f0f0f0;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
}

.page-support__faq-question h3 {
    margin: 0;
    color: #017439; /* Brand color for FAQ questions */
    font-size: 1.2em;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X or minus */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 25px; /* Add bottom padding when open */
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #555555;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming .page-support__section-title,
.page-support__responsible-gaming .page-support__section-description {
    color: #ffffff; /* White text for dark background */
}

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

.page-support__responsible-icon {
    width: 100%; /* Ensure images are responsive within cards */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

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

.page-support__responsible-text {
    color: #555555;
    margin-bottom: 20px;
}

.page-support__btn-full-width {
    display: block;
    width: fit-content; /* Make button fit content initially */
    margin: 40px auto 0 auto;
    max-width: 350px; /* Limit width on desktop */
}

/* Security Section */
.page-support__security .page-support__section-title,
.page-support__security .page-support__section-description {
    color: #333333; /* Dark text for light background */
}

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

.page-support__security-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #555555;
}

.page-support__security-subtitle {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

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

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

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

.page-support__btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
    min-width: 200px; /* Ensure buttons have a minimum width */
}

/* Specific button colors for Register/Login */
.page-support__cta-buttons .page-support__btn-primary {
    background-color: #C30808; /* Red for Register */
    color: #FFFF00; /* Yellow font for Register */
    border-color: #C30808;
}

.page-support__cta-buttons .page-support__btn-primary:hover {
    background-color: #a00606; /* Darker red */
}

.page-support__cta-buttons .page-support__btn-secondary {
    background-color: #C30808; /* Red for Login */
    color: #FFFF00; /* Yellow font for Login */
    border-color: #C30808;
}

.page-support__cta-buttons .page-support__btn-secondary:hover {
    background-color: #a00606; /* Darker red */
    color: #FFFF00;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }

    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        flex-direction: column;
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 60px;
    }

    .page-support__hero-content {
        order: 2; /* Content below image on mobile */
        margin-top: 30px;
    }

    .page-support__hero-image-container {
        position: relative;
        height: 300px; /* Fixed height for mobile hero image */
        order: 1;
    }

    .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 a[class*="button"],
    .page-support a[class*="btn"] {
      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,
    .page-support__button-group,
    .page-support__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-support__cta-buttons {
      flex-direction: column;
    }

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

    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__dark-bg,
    .page-support__light-bg {
        padding: 60px 0;
    }

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

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

    .page-support__video-link-wrapper {
        padding-left: 15px; /* Add padding to link wrapper on mobile */
        padding-right: 15px;
    }

    .page-support__video-wrapper {
        padding-bottom: 75%; /* More square aspect ratio for mobile */
    }

    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-support__faq-question h3 {
        font-size: 1.1em;
    }

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

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

    .page-support__btn-full-width {
        max-width: 100%;
        width: 100%;
    }

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

    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Video mobile responsiveness */
    .page-support video,
    .page-support__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .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-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

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