/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--accent-color, #f8f9fa); /* Inherit from shared or fallback to light gray */
}

/* Fixed Header Spacing */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjusted padding-bottom */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Blue to white gradient */
    color: #ffffff; /* White text for hero section */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px; /* Add horizontal padding */
}

.page-support__main-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff; /* White title for hero */
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff; /* White description for hero */
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-support__cta-button:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-support__section-title--light {
    color: #ffffff; /* White title for dark backgrounds */
}

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

.page-support__section-description--light {
    color: #f0f0f0; /* Light description for dark backgrounds */
}

/* Backgrounds */
.page-support__light-bg {
    background-color: #FFFFFF; /* Explicit white background */
    color: #333333;
}

.page-support__dark-bg {
    background-color: #26A9E0; /* Primary color as dark background */
    color: #ffffff;
}

/* Guide Section */
.page-support__guide-section {
    padding: 60px 0;
}

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

.page-support__guide-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__guide-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure images fill their container */
}

.page-support__guide-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-support__guide-text {
    margin-bottom: 25px;
    color: #555555;
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-support__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-support__faq-list {
    margin-top: 40px;
}

/* FAQ item styles - EXACTLY AS PROVIDED IN PROMPT */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important as required */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light background */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333;
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #333;
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
}

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

.page-support__contact-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__contact-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure images fill their container */
}

.page-support__contact-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-support__contact-text {
    margin-bottom: 25px;
    color: #555555;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-support__btn-primary:hover {
    background: #1e87c6;
    border-color: #1e87c6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
}

/* Card styling for general use */
.page-support__card {
    background: #ffffff; /* Explicit white background for cards */
    color: #333333; /* Dark text for cards */
    border: 1px solid #e0e0e0; /* Add border for definition */
}

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

@media (max-width: 768px) {
    /* Mobile Fixed Header Spacing */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* 🚨 Required for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__main-title {
        font-size: 2em;
        line-height: 1.3;
    }
    .page-support__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important; /* 🚨 Required for buttons */
        width: 100% !important; /* 🚨 Required for buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__container {
        padding: 30px 15px;
        max-width: 100% !important; /* 🚨 Required for containers */
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-support__guide-grid,
    .page-support__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__guide-item,
    .page-support__contact-card {
        padding: 20px;
    }

    .page-support__guide-item img,
    .page-support__contact-card img,
    .page-support__hero-image img,
    .page-support img { /* General image responsive rule */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .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;
    }

    /* FAQ item styles for mobile - EXACTLY AS PROVIDED IN PROMPT */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-support__faq-answer {
        padding: 0 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }

    /* Button containers mobile adaptation */
    .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; /* Stack buttons vertically on mobile */
    }
}