/* style/support.css */

/* --- Base Styles --- */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Explicitly setting page background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

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

/* --- Hero Section --- */
.page-support__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #017439, #005f2f); /* Darker green gradient */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-support__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for title for contrast */
}

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

.page-support__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-support__btn-primary {
  background: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow text for primary button */
  border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
  background: #017439; /* Green for secondary action */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
  background: #005f2f;
  border-color: #005f2f;
  transform: translateY(-2px);
}

.page-support__btn-link {
  background: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 25px;
}

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


.page-support__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.2; /* Subtle background image */
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

/* --- Channels Section --- */
.page-support__channels-section {
  padding: 80px 0;
  background: #f8f8f8; /* Light background */
}

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

.page-support__channel-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards have similar height */
}

.page-support__channel-card:hover {
  transform: translateY(-5px);
}

.page-support__channel-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

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

.page-support__channel-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to fill space */
}

.page-support__link-inline {
  color: #017439;
  text-decoration: underline;
}

.page-support__link-inline:hover {
  color: #005f2f;
}

/* --- Guides Section --- */
.page-support__guides-section {
  padding: 80px 0;
  background: #017439; /* Dark background */
  color: #ffffff;
}

.page-support__guides-section .page-support__section-title {
  color: #FFFF00; /* Yellow title for dark background */
}

.page-support__guides-section .page-support__section-description {
  color: #f0f0f0;
}

.page-support__guide-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__guide-title {
  font-size: 2em;
  color: #FFFF00; /* Yellow title for guides */
  margin-bottom: 20px;
}

.page-support__guide-content p,
.page-support__guide-content li {
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-support__guide-content strong {
  color: #ffffff;
}

.page-support__list,
.page-support__list-ordered {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-support__list li,
.page-support__list-ordered li {
  margin-bottom: 8px;
}

.page-support__tip {
  font-style: italic;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-left: 4px solid #FFFF00; /* Yellow accent */
  border-radius: 5px;
  margin-top: 20px;
}

.page-support__guide-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* --- Security Section --- */
.page-support__security-section {
  padding: 80px 0;
  background: #f8f8f8; /* Light background */
}

.page-support__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-support__security-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

.page-support__security-text {
  width: 50%;
}

.page-support__security-subtitle {
  font-size: 1.5em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-support__security-text p,
.page-support__security-text li {
  color: #555555;
  margin-bottom: 10px;
}

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

.page-support__responsible-gaming-section .page-support__section-title {
  color: #FFFF00; /* Yellow title for dark background */
}

.page-support__responsible-gaming-section .page-support__section-description {
  color: #f0f0f0;
}

.page-support__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right */
}

.page-support__responsible-gaming-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Min size for images */
  min-height: 200px;
}

.page-support__responsible-gaming-text {
  width: 50%;
}

.page-support__responsible-gaming-subtitle {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow subtitle for dark background */
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-support__responsible-gaming-text p,
.page-support__responsible-gaming-text li {
  color: #f0f0f0;
  margin-bottom: 10px;
}

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

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

.page-support__faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Important for max-height transition */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-support__faq-heading {
  font-size: 1.3em;
  color: #017439;
  margin: 0;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
  content: "−"; /* Change content on active */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px; /* Initial padding */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-support__faq-answer p {
  margin: 0 0 10px 0;
  color: #555555;
}

/* --- CTA Section --- */
.page-support__cta-section {
  padding: 60px 0;
  background: #f8f8f8; /* Light background */
  text-align: center;
}

.page-support__cta-container {
  max-width: 800px;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.5em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__guide-title {
    font-size: 1.8em;
  }
  .page-support__security-content,
  .page-support__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }
  .page-support__security-image,
  .page-support__security-text,
  .page-support__responsible-gaming-image,
  .page-support__responsible-gaming-text {
    width: 100%;
  }
  .page-support__security-image,
  .page-support__responsible-gaming-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

  .page-support__container {
    padding: 0 15px; /* Add padding to containers on mobile */
  }

  .page-support__hero-section {
    padding: 40px 15px;
  }

  .page-support__hero-title {
    font-size: 2em;
  }

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

  .page-support__hero-buttons,
  .page-support__guide-buttons,
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px; /* Adjust padding for full width buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__channels-section,
  .page-support__guides-section,
  .page-support__security-section,
  .page-support__responsible-gaming-section,
  .page-support__cta-section,
  .page-support__faq-section {
    padding: 40px 0;
  }

  .page-support__channel-card {
    min-height: auto; /* Allow cards to adjust height */
  }

  /* All images responsive on mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive on mobile */
  .page-support__hero-image-wrapper,
  .page-support__channel-card,
  .page-support__security-content,
  .page-support__responsible-gaming-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-support__channel-icon,
  .page-support__security-image,
  .page-support__responsible-gaming-image {
    max-width: 100%;
    height: auto;
    min-width: unset; /* Remove min-width on mobile for better scaling */
    min-height: unset; /* Remove min-height on mobile for better scaling */
  }

  /* Video responsiveness (if any, though none currently) */
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }
  
  .page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-heading {
    font-size: 1.1em;
  }
  .page-support__faq-answer {
    padding: 0 20px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px;
  }
}

/* Ensure color contrast for dark/light sections */
.page-support__dark-section {
  color: #ffffff;
}
.page-support__dark-section .page-support__section-title {
  color: #FFFF00;
}
.page-support__dark-section .page-support__section-description {
  color: #f0f0f0;
}
.page-support__dark-section .page-support__guide-title {
  color: #FFFF00;
}
.page-support__dark-section .page-support__guide-content p,
.page-support__dark-section .page-support__guide-content li {
  color: #f0f0f0;
}
.page-support__dark-section .page-support__tip {
  color: #f0f0f0;
}
.page-support__dark-section .page-support__responsible-gaming-subtitle {
  color: #FFFF00;
}
.page-support__dark-section .page-support__responsible-gaming-text p,
.page-support__dark-section .page-support__responsible-gaming-text li {
  color: #f0f0f0;
}

.page-support__light-bg {
  color: #333333;
}
.page-support__light-bg .page-support__section-title {
  color: #017439;
}
.page-support__light-bg .page-support__section-description {
  color: #555555;
}
.page-support__light-bg .page-support__channel-title {
  color: #017439;
}
.page-support__light-bg .page-support__channel-text {
  color: #555555;
}
.page-support__light-bg .page-support__security-subtitle {
  color: #017439;
}
.page-support__light-bg .page-support__security-text p,
.page-support__light-bg .page-support__security-text li {
  color: #555555;
}
.page-support__light-bg .page-support__faq-heading {
  color: #017439;
}
.page-support__light-bg .page-support__faq-answer p {
  color: #555555;
}

/* Ensure images do not have filters */
.page-support img {
  filter: none;
}