/* style/support.css */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-support__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-support__hero-section > .page-support__container {
  position: relative;
  z-index: 2;
}

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

.page-support__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-support__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-support__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ffffff; /* Light text for dark background */
  text-align: justify;
}

.page-support__about-section,
.page-support__contact-methods,
.page-support__responsible-gaming,
.page-support__video-section,
.page-support__cta-section {
  padding: 80px 0;
}

.page-support__features-section,
.page-support__faq-section,
.page-support__security-privacy,
.page-support__feedback-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

/* Dark Background Sections */
.page-support__dark-bg {
  background-color: #0d0d0d;
}

/* Card Styling */
.page-support__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

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

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

.page-support__card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  flex-grow: 1;
}

.page-support__icon,
.page-support__feature-icon {
  width: 100%; /* Ensure images are responsive within card */
  height: auto;
  max-width: 200px; /* Example: Max width for icons/small images within cards */
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-support__btn-primary:hover {
  background-color: #02944f;
  border-color: #02944f;
  transform: translateY(-2px);
}

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

.page-support__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Specific button colors from custom palette */
.page-support__cta-section .page-support__btn-primary,
.page-support__cta-section .page-support__btn-secondary {
  background-color: #C30808; /* Register/Login button background */
  color: #FFFF00; /* Register/Login button font */
  border-color: #C30808;
}

.page-support__cta-section .page-support__btn-primary:hover,
.page-support__cta-section .page-support__btn-secondary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.page-support__faq-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 1.2em;
  font-weight: bold;
}

.page-support__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: normal;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439; /* Brand color for toggle icon */
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(0deg); /*  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; /* Sufficient height for content */
  padding: 15px 25px 20px;
}

.page-support__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: inherit;
}

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

.page-support__video-wrapper .page-support__video,
.page-support__video-wrapper .page-support__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1.2em;
  }
  .page-support__card-title {
    font-size: 1.5em;
  }
  .page-support__section-text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    min-height: 400px;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__features-grid,
  .page-support__contact-grid,
  .page-support__responsible-grid,
  .page-support__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__about-section,
  .page-support__contact-methods,
  .page-support__responsible-gaming,
  .page-support__video-section,
  .page-support__cta-section,
  .page-support__features-section,
  .page-support__faq-section,
  .page-support__security-privacy,
  .page-support__feedback-section {
    padding: 50px 0;
  }
  .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: 10px 20px 15px;
  }
  .page-support__hero-buttons {
    flex-direction: column;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: auto;
    margin-right: auto;
  }
  .page-support__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image and video responsive rules */
  .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__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; /* Prevent horizontal scroll */
  }
  .page-support__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset */
  }
  .page-support video, .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }
}