/* style/support.css */

/* Base styles */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-support__section-title,
.page-support__hero-title,
.page-support__cta-title {
  color: #26A9E0;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-description,
.page-support__hero-description,
.page-support__cta-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-support__hero-section.page-support__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

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

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

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-support__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

/* Topics Section */
.page-support__topics-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-support__topic-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px; /* Ensure cards have enough space for image and text */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-support__topic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__topic-icon {
  width: 200px; /* Minimum size */
  height: 150px; /* Adjust height to maintain aspect ratio, ensure >= 200px for either dimension */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-support__topic-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-support__topic-title a:hover {
  text-decoration: underline;
}

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

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

.page-support__faq-section.page-support__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.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); /* Or change to '-' */
}

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

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

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

/* Contact Section */
.page-support__contact-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-support__contact-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 380px; /* Ensure consistent card height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-support__contact-icon {
  width: 200px; /* Minimum size */
  height: 150px; /* Adjust height to maintain aspect ratio, ensure >= 200px for either dimension */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-support__contact-card .page-support__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
  margin-top: auto;
}

.page-support__contact-card .page-support__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 60px 0;
  color: #ffffff;
}

.page-support__responsible-gaming-section.page-support__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-support__responsible-gaming-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-height: 200px;
}

.page-support__responsible-gaming-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-support__responsible-gaming-card .page-support__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-support__responsible-gaming-card .page-support__card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-support__responsible-gaming-card .page-support__card-title a:hover {
  text-decoration: underline;
}

.page-support__responsible-gaming-card .page-support__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Video Section */
.page-support__video-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.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 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 20px;
  color: #ffffff;
}

.page-support__cta-section.page-support__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-support__cta-content {
  text-align: center;
}

.page-support__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title,
  .page-support__cta-title {
    font-size: 2em;
  }
  .page-support__topics-grid,
  .page-support__contact-grid,
  .page-support__responsible-gaming-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 60px 15px;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__section-title,
  .page-support__cta-title {
    font-size: 1.8em;
  }
  .page-support__section-description,
  .page-support__cta-description {
    font-size: 0.95em;
  }
  .page-support__container {
    padding: 0 15px;
  }

  /* Mobile image and video adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__topics-grid,
  .page-support__contact-grid,
  .page-support__responsible-gaming-grid,
  .page-support__video-wrapper,
  .page-support__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-support__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
  }
  
  .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;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-support__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-support__topic-card,
  .page-support__contact-card,
  .page-support__responsible-gaming-card {
    padding: 25px;
    min-height: auto;
  }
  .page-support__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-support__faq-answer {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__section-title,
  .page-support__cta-title {
    font-size: 1.5em;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}