/* style/support.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --border-light: #e0e0e0;
}

.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light); /* Default background for the main content area */
}

/* Fixed navigation bar spacing */
.page-support__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for mobile header height */
  }
}

.page-support__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-support__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General card styles */
.page-support__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: var(--text-dark);
}

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

/* Background color intelligent selection */
.page-support__dark-bg {
  color: var(--text-light);
  background: var(--primary-color);
}

.page-support__light-bg {
  color: var(--text-dark);
  background: var(--bg-light);
}

.page-support__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-description,
.page-support__dark-section h3 {
  color: var(--text-light);
}

.page-support__dark-section .page-support__link {
  color: var(--secondary-color);
}

.page-support__dark-section .page-support__link:hover {
  color: #fff;
}

/* CTA Buttons */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px;
  border: none;
  cursor: pointer;
}

.page-support__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-support__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.page-support__btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.4);
}

.page-support__btn-secondary:hover {
  background: #002244;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 51, 102, 0.6);
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-support__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-support__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Why Us Section */
.page-support__why-us-section .page-support__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__feature-card {
  text-align: center;
  padding: 40px 20px;
}

.page-support__feature-icon {
  width: 150px; /* Min size 200x200px, so 150px is incorrect. Must be at least 200px */
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Corrected to meet minimum size requirement */
  min-height: 200px; /* Corrected to meet minimum size requirement */
  object-fit: cover;
}

.page-support__feature-card h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-support__feature-card p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Common Issues Section */
.page-support__common-issues-section {
  text-align: left;
}

.page-support__issue-category {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-support__issue-category h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-support__issue-category p {
  font-size: 17px;
  margin-bottom: 15px;
}

.page-support__issue-category ul {
  list-style: disc inside;
  padding-left: 20px;
  font-size: 16px;
}

.page-support__issue-category li {
  margin-bottom: 10px;
}

.page-support__issue-category .page-support__link {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-support__issue-category .page-support__link:hover {
  color: #fff;
}

/* Contact Methods Section */
.page-support__contact-methods-section .page-support__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__contact-card {
  text-align: center;
  padding: 40px 20px;
}

.page-support__contact-icon {
  width: 200px; /* Enforcing minimum size */
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__contact-card h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-support__contact-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-support__contact-info {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section .page-support__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__info-card {
  text-align: left;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-support__info-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-support__info-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
  text-align: left;
}

.page-support__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-support__faq-answer p {
  margin: 0;
  padding: 0;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color);
}

/* Glossary Section */
.page-support__glossary-section {
  text-align: left;
}

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

.page-support__glossary-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-support__glossary-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-support__glossary-item p {
  font-size: 16px;
}

/* Feedback Section */
.page-support__feedback-section .page-support__cta-button {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-content h1 {
    font-size: 40px;
  }

  .page-support__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-support__section {
    padding: 40px 15px;
  }

  .page-support__container {
    padding: 0 15px;
  }

  .page-support__hero-content {
    padding: 30px;
  }

  .page-support__hero-content h1 {
    font-size: 32px;
  }

  .page-support__hero-content p {
    font-size: 18px;
  }

  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin: 8px;
  }

  .page-support__section-title {
    font-size: 28px;
  }

  .page-support__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-support__features-grid,
  .page-support__contact-grid,
  .page-support__info-grid,
  .page-support__glossary-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__feature-card,
  .page-support__contact-card,
  .page-support__info-card,
  .page-support__glossary-item {
    padding: 25px;
  }

  .page-support__feature-card h3,
  .page-support__contact-card h3,
  .page-support__info-card h3,
  .page-support__glossary-item h3 {
    font-size: 20px;
  }

  .page-support__issue-category h3 {
    font-size: 24px;
  }

  .page-support__issue-category p,
  .page-support__issue-category ul,
  .page-support__issue-category li {
    font-size: 15px;
  }

  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure all images are responsive and don't overflow */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__hero-image,
  .page-support__feature-icon,
  .page-support__contact-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-support__section,
  .page-support__container,
  .page-support__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}