/* style/support.css */

/* Base Styles & Typography */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-support__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: center;
}

.page-support__text-block:last-child {
  margin-bottom: 0;
}

.page-support__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Color Contrast Specifics */
.page-support__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #2a2a2a;
  color: #ffffff;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 20px 80px;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Brand color as background */
}

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

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

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

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

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

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-support__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Intro Section */
.page-support__intro-section {
  padding: 80px 0;
}

/* Contact Channels Section */
.page-support__contact-channels {
  padding: 80px 0;
}

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

.page-support__channel-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__channel-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__channel-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

.page-support__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  cursor: pointer;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(1, 116, 57, 0.7); /* Brand color for question background */
  color: #ffffff;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #017439;
}

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

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

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
}

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

.page-support__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-support__cta-box {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(1, 116, 57, 0.7);
}

.page-support__cta-box p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Resources Section */
.page-support__resources-section {
  padding: 80px 0;
}

.page-support__resource-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  padding: 80px 0;
}

.page-support__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-support__responsible-gaming-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-support__responsible-gaming-text {
  flex: 1;
  text-align: left;
}

.page-support__responsible-gaming-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-support__inline-link {
  color: #017439;
  text-decoration: underline;
}

.page-support__inline-link:hover {
  color: #00a04a;
}

/* Security & Privacy Section */
.page-support__security-privacy {
  padding: 80px 0;
}

.page-support__policy-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Feedback Section */
.page-support__feedback-section {
  padding: 80px 0;
}

/* Final CTA Section */
.page-support__final-cta {
  padding: 80px 0;
}

.page-support__text-center {
  text-align: center;
}

/* Image & Video Responsive */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support video,
.page-support__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-support__video-section,
.page-support__video-container,
.page-support__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }
  .page-support__hero-description {
    font-size: 1.2em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__text-block {
    font-size: 1em;
  }
  .page-support__responsible-gaming-content {
    flex-direction: column;
  }
  .page-support__responsible-gaming-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  
  .page-support__hero-title {
    font-size: 2.2em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

  .page-support__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-support__channel-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-support__cta-box {
    padding: 30px;
  }

  .page-support__cta-box p {
    font-size: 1.1em;
  }

  .page-support__responsible-gaming-image {
    max-width: 100%;
  }

  .page-support__resource-links,
  .page-support__policy-links {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image, video, button overflow prevention */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__contact-channels,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__responsible-gaming,
  .page-support__security-privacy,
  .page-support__feedback-section,
  .page-support__final-cta,
  .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-x: hidden !important; /* Ensure no horizontal scroll */
  }
  
  .page-support__hero-cta-group,
  .page-support__resource-links,
  .page-support__policy-links,
  .page-support__cta-group {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}