/* style/support.css */

/* --- Base Styles & Layout --- */
.page-support {
  background-color: var(--background-color, #08160F); /* Fallback to custom palette */
  color: var(--text-main, #F2FFF6); /* Fallback to custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Buttons --- */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__faq-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--deep-green, #0A4B2C);
}

.page-support__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  color: #ffffff;
}

.page-support__faq-link {
  background: var(--deep-green, #0A4B2C);
  color: #ffffff;
  border: none;
  font-size: 0.9em;
  padding: 8px 15px;
  margin-top: 15px;
}
.page-support__faq-link:hover {
  opacity: 0.9;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-support__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  color: var(--text-main, #F2FFF6);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

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

.page-support__card-bg {
  background-color: var(--card-bg, #11271B);
}

.page-support__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.page-support__faq-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  min-height: 200px;
}

.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-support__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow, #57E38D);
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
}
.page-support__faq-answer p {
  margin-bottom: 10px;
}


/* --- Contact Section --- */
.page-support__contact-section {
  padding: 80px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-support__contact-card {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: contain;
}

.page-support__contact-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-support__contact-text {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* --- Guides Section --- */
.page-support__guides-section {
  padding: 80px 0;
}

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

.page-support__guide-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-support__guide-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-support__guide-title {
  font-size: 1.3em;
  color: var(--gold, #F2C14E);
  margin: 20px 15px 10px 15px;
  line-height: 1.3;
}
.page-support__guide-title a {
  color: inherit;
  text-decoration: none;
}
.page-support__guide-title a:hover {
  text-decoration: underline;
}

.page-support__guide-text {
  color: var(--text-secondary, #A7D9B8);
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-primary {
  margin: 0 15px 20px 15px;
}


/* --- Responsible Gaming Section --- */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-support__responsible-gaming-text {
  flex: 1;
  text-align: left;
}
.page-support__responsible-gaming-text .page-support__section-title {
  text-align: left;
}
.page-support__responsible-gaming-text .page-support__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-support__responsible-gaming-image {
  flex: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  min-height: 200px;
  max-width: 600px; /* Adjust based on layout */
}


/* --- Commitment Section --- */
.page-support__commitment-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-support__commitment-item {
  padding: 25px;
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-support__commitment-subtitle {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-support__commitment-text {
  color: var(--text-secondary, #A7D9B8);
}

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


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has padding-top from shared.css */
  }

  .page-support__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-support__cta-buttons .page-support__btn-primary,
  .page-support__cta-buttons .page-support__btn-secondary {
    width: 100%;
  }

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

  /* Images responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__hero-image-wrapper,
  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__guides-section,
  .page-support__responsible-gaming-section,
  .page-support__commitment-section,
  .page-support__container,
  .page-support__contact-card,
  .page-support__guide-card,
  .page-support__commitment-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-support__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-support__faq-image {
    order: -1; /* Image above text on mobile */
  }

  .page-support__contact-methods,
  .page-support__guides-grid,
  .page-support__commitment-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__responsible-gaming-content {
    flex-direction: column-reverse; /* Image above text on mobile */
    gap: 30px;
  }
  .page-support__responsible-gaming-text {
    text-align: center;
  }
  .page-support__responsible-gaming-text .page-support__section-title,
  .page-support__responsible-gaming-text .page-support__section-description {
    text-align: center;
  }

  /* Buttons responsiveness */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__faq-link,
  .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;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* Ensure minimum image size for content images */
.page-support__contact-icon,
.page-support__guide-image,
.page-support__responsible-gaming-image {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast fixes based on palette */
/* Assuming body background is dark based on custom palette, so text is light */
/* If shared.css sets a light body background, this section needs to be adjusted.
   However, given the custom palette, it's designed for dark background. */
.page-support {
  color: var(--text-main, #F2FFF6); /* Main text for dark background */
}

/* Card backgrounds are also dark */
.page-support__card-bg,
.page-support__contact-card,
.page-support__guide-card,
.page-support__faq-item,
.page-support__commitment-item {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  color: var(--text-main, #F2FFF6); /* Light text on dark card */
}

/* Specific section that needs dark background and light text */
.page-support__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

/* Ensure links are visible */
.page-support a {
  color: var(--gold, #F2C14E); /* Using gold for links */
  text-decoration: underline;
}
.page-support a:hover {
  color: var(--glow, #57E38D);
}

/* Override for specific text elements if they appear in cards */
.page-support__contact-text,
.page-support__guide-text,
.page-support__commitment-text,
.page-support__faq-answer {
  color: var(--text-secondary, #A7D9B8); /* Secondary text on dark background */
}

/* Ensure titles on cards are gold */
.page-support__contact-title,
.page-support__guide-title,
.page-support__commitment-subtitle {
  color: var(--gold, #F2C14E);
}