/* style/support.css */

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

/* Section common styles */
.page-support__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-support__dark-section {
    background-color: rgba(139, 0, 0, 0.2); /* Semi-transparent dark red for contrast */
    color: #ffffff;
}

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

.page-support__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Golden primary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-support__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly lighter for intro text */
}

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

.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(139, 0, 0, 0.5)); /* Darker overlay for text contrast */
    z-index: -1;
}

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

.page-support__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-support__btn-primary {
    background-color: #FFD700;
    color: #121212; /* Dark text on golden button for contrast */
}

.page-support__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.page-support__btn-secondary:hover {
    background-color: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
}

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

.page-support__card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text on card background */
    height: 100%; /* Ensure cards have equal height */
}

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

.page-support__feature-icon,
.page-support__contact-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Adjust icon size */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-support__card-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Make text content fill available space */
}

/* Common Issues section specific styles */
.page-support__issue-card {
    text-align: left;
}

.page-support__list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #f0f0f0;
}

.page-support__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-support__list li::before {
    content: '•'; /* Custom bullet point */
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Contact Us section specific styles */
.page-support__contact-card .page-support__cta-button {
    margin-top: auto; /* Push button to the bottom of the card */
}

/* FAQ Section */
.page-support__faq-section {
    text-align: left;
}

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 215, 0, 0.1); /* Light golden background for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    line-height: 1;
    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 */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
    color: #f0f0f0;
}

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

.page-support__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
    background-color: rgba(139, 0, 0, 0.1); /* Light red tint */
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

/* Call to Action Section */
.page-support__cta-section {
    padding-bottom: 80px;
}

/* General image styling for content areas */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text contrast fix for dark sections with lighter intro text */
.page-support__text-contrast-fix {
    color: #f0f0f0; /* Ensure light text on dark background */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section {
        padding: 40px 15px;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__section-intro {
        font-size: 1em;
    }

    /* Images responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure content containers are responsive and don't overflow */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__feature-grid,
    .page-support__issue-grid,
    .page-support__contact-grid,
    .page-support__faq-list,
    .page-support__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsive */
    .page-support__cta-button,
    .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;
        margin-left: auto;
        margin-right: auto;
        display: block !important; /* Ensure buttons stack */
    }

    /* Button groups on mobile */
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
      display: flex;
      flex-direction: column; /* Stack buttons vertically on mobile */
      gap: 15px; /* Space between stacked buttons */
    }

    .page-support__feature-grid,
    .page-support__issue-grid,
    .page-support__contact-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-support__feature-icon,
    .page-support__contact-icon {
        max-width: 150px; /* Smaller icons on mobile */
        min-width: 150px; /* Keep min size consistent */
        min-height: 150px;
    }

    .page-support__faq-question {
        padding: 15px 20px;
    }

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

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

/* Ensure images in cards are not too small */
.page-support__card img {
    min-width: 200px;
    min-height: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Specific styling for the hero section to ensure it uses the header offset correctly */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop default */
}

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