/* style/support.css */

/* Base styles for the page content, ensuring proper text color for contrast */
/* Assuming body background is dark (from shared.css var(--background-color)) based on Red Gold v2 theme */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  line-height: 1.6;
  background-color: #B71C1C; /* Background color for the page content area if needed, but primary background is from body */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles header-offset */
  overflow: hidden;
  background-color: #7A0E0E; /* Deep Red for hero background */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit image height */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and text */
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
  border-radius: 8px;
}

.page-support__hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: bold;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.15rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-support__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-support__cta-button--small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* General Section Styling */
.page-support__contact-methods-section,
.page-support__faq-section,
.page-support__responsible-gaming-section,
.page-support__security-privacy-section,
.page-support__getting-started-section,
.page-support__technical-support-section,
.page-support__payment-support-section,
.page-support__final-cta-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__section-description {
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Methods */
.page-support__method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__method-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border: 1px solid #F2B544; /* Border */
}

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

.page-support__method-icon {
  width: 250px; /* Adjusted to be >200px */
  height: 250px; /* Adjusted to be >200px */
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px #FFCC66); /* Glow */
}

.page-support__method-title {
  font-size: 1.8rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__method-text {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 25px;
}

.page-support__btn-secondary {
  display: inline-block;
  background-color: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #F2B544; /* Border */
}

.page-support__btn-secondary:hover {
  background-color: #E53935; /* Auxiliary Color */
  transform: translateY(-2px);
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  background-color: #C91F17; /* Main Color */
  border-bottom: 1px solid #7A0E0E; /* Deep Red */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-support__faq-question::-webkit-details-marker {
  display: none;
}

.page-support__faq-question:hover {
  background-color: #E53935; /* Auxiliary Color */
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  color: #FFF5E1; /* Text Main */
}

.page-support__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  background-color: #D32F2F; /* Card BG */
}

.page-support__faq-answer p {
  margin: 0;
  color: #FFF5E1; /* Ensure text color */
}

.page-support__faq-answer a {
  color: #FFD86A; /* Gold-like for links */
  text-decoration: underline;
}

.page-support__faq-answer a:hover {
  color: #E6B800; /* Darker gold on hover */
}

.page-support__faq-illustration {
    display: block;
    max-width: 500px;
    height: auto;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-support__responsible-gaming-list {
  list-style-type: disc;
  padding-left: 25px;
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  max-width: 700px;
  margin: 0 auto;
}

.page-support__responsible-gaming-list li {
  margin-bottom: 10px;
}

.page-support__responsible-gaming-list strong {
  color: #F4D34D; /* Gold */
}

.page-support__responsible-gaming-image {
    display: block;
    max-width: 600px;
    height: auto;
    margin: 20px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Security & Privacy Section */
.page-support__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__feature-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border */
}

.page-support__feature-title {
  font-size: 1.6rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__feature-text {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
}

.page-support__security-image {
    display: block;
    max-width: 800px;
    height: auto;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Getting Started Section */
.page-support__getting-started-list {
  list-style-type: decimal;
  padding-left: 25px;
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  max-width: 800px;
  margin: 40px auto;
}

.page-support__getting-started-list li {
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-support__getting-started-list strong {
  color: #F4D34D; /* Gold */
}

/* Technical Support & Payment Support Sections */
.page-support__technical-issues-list,
.page-support__payment-topics-list {
  list-style-type: disc;
  padding-left: 25px;
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  max-width: 800px;
  margin: 40px auto;
}

.page-support__technical-issues-list li,
.page-support__payment-topics-list li {
  margin-bottom: 10px;
}

.page-support__technical-support-section a,
.page-support__payment-support-section a {
  color: #FFD86A; /* Gold-like for links */
  text-decoration: underline;
}

.page-support__technical-support-section a:hover,
.page-support__payment-support-section a:hover {
  color: #E6B800; /* Darker gold on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-support__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
}

@media (max-width: 768px) {
  .page-support__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  .page-support__hero-description {
    font-size: 1rem;
  }
  .page-support__section-title {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }
  .page-support__section-description {
    font-size: 0.95rem;
  }
  .page-support__method-cards {
    grid-template-columns: 1fr;
  }
  .page-support__security-features {
    grid-template-columns: 1fr;
  }
  .page-support__hero-section,
  .page-support__contact-methods-section,
  .page-support__faq-section,
  .page-support__responsible-gaming-section,
  .page-support__security-privacy-section,
  .page-support__getting-started-section,
  .page-support__technical-support-section,
  .page-support__payment-support-section,
  .page-support__final-cta-section {
    padding: 40px 0;
  }

  /* Mobile specific image, video, and button adaptations */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure content images are not too small */
    min-height: 200px !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__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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-support__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .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 !important; /* Add padding to prevent text touching edges */
    padding-right: 15px !important; /* Add padding to prevent text touching edges */
  }
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
  .page-support__method-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: clamp(1.5rem, 7vw, 1.8rem);
  }
  .page-support__section-title {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
  .page-support__hero-description {
    font-size: 0.9rem;
  }
  .page-support__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-support__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-support__faq-answer {
    padding: 10px 20px;
  }
}

/* Contrast Fixes */
.page-support__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-support__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure content area images are not too small */
.page-support__container img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow natural scaling */
  height: auto;
}