/* style/support.css */

/* --- General Styles --- */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f9f9f9; /* Light background for the page */
  line-height: 1.6;
}

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

.page-support__section {
  padding: 40px 0;
}

.page-support__section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-support__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-support__section-title {
  font-size: 32px;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-support__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  position: relative;
  overflow: hidden;
  background-color: #017439; /* Dark background for hero section */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the hero image wrapper */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure image meets minimum size */
}

.page-support__hero-content {
  padding: 20px 20px 60px;
  position: relative;
  z-index: 1;
}

.page-support__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence, ensure contrast with green background */
}

.page-support__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

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

/* --- Buttons --- */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-support__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #FFFF00;
}

.page-support__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-support__btn-small {
  padding: 8px 15px;
  font-size: 14px;
}

.page-support__btn-faq {
  margin-top: 15px;
  margin-right: 10px;
}

/* --- Contact Methods Section --- */
.page-support__contact-methods .page-support__text-block {
  color: #555555;
}

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

.page-support__contact-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__contact-icon {
  width: 100%; /* Ensure image takes full width of card */
  max-width: 250px; /* Max width for icons */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 150px; /* Enforce min size for a general card image */
}

.page-support__card-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__card-description {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* --- FAQ Section --- */
.page-support__faq-section {
  background-color: #f9f9f9;
}

.page-support__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: #333333;
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439; /* Use brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 15px;
  color: #555555;
}
details.page-support__faq-item .page-support__faq-answer p {
  margin-bottom: 10px;
  text-align: left; /* Align text left in answer */
}

.page-support__cta-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* --- Responsible Gaming Section --- */
.page-support__responsible-gaming-section {
  background-color: #ffffff;
}

.page-support__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__responsible-gaming-image {
  flex: 1;
  min-width: 400px; /* Minimum width for image on desktop */
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-support__responsible-gaming-text {
  flex: 1;
  min-width: 400px; /* Minimum width for text on desktop */
  text-align: left;
}

.page-support__responsible-gaming-text .page-support__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

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

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-support__container {
    padding: 15px;
  }

  .page-support__section {
    padding: 30px 0;
  }

  .page-support__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-support__text-block {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* Hero Section */
  .page-support__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
  }

  .page-support__hero-image-wrapper {
    max-height: 250px;
  }

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

  .page-support__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for mobile */
    margin-bottom: 15px;
  }

  .page-support__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

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

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

  /* Contact Methods Section */
  .page-support__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

  .page-support__contact-icon {
    max-width: 200px;
    min-width: 200px; /* Maintain min-width */
    min-height: 150px; /* Maintain min-height */
    margin-bottom: 15px;
  }

  .page-support__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-support__card-description {
    font-size: 14px;
    margin-bottom: 15px;
  }

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

  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  .page-support__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  .page-support__cta-bottom {
    margin-top: 30px;
  }

  /* Responsible Gaming Section */
  .page-support__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-support__responsible-gaming-image {
    min-width: 100%; /* Image takes full width on mobile */
  }

  .page-support__responsible-gaming-text {
    min-width: 100%; /* Text takes full width on mobile */
  }

  /* Universal Image Responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__contact-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-support__container */
  }
}