/* style/support.css */
/* 
 * Màu sắc chính: #017439 (Xanh lá đậm)
 * Màu sắc phụ: #FFFFFF (Trắng)
 * Màu nút Đăng ký/Đăng nhập: #C30808 (Đỏ)
 * Màu chữ nút Đăng ký/Đăng nhập: #FFFF00 (Vàng)
 */

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure light background for main content */
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: var(--primary-color, #017439); /* Dark background for hero */
  color: #ffffff; /* White text for dark background */
}

.page-support__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-support__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-support__hero-image {
  width: 100%;
  max-width: 800px; /* Constrain image width */
  margin-top: 20px;
}

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

/* --- General Section Styling --- */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color, #017439);
}

.page-support__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Dark section specific styles */
.page-support__dark-section {
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

.page-support__dark-section .page-support__section-title {
  color: #ffffff;
}

.page-support__dark-section .page-support__section-intro {
  color: #f0f0f0;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* --- Card Styling --- */
.page-support__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-support__card img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-support__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color, #017439);
  flex-grow: 1; /* Allow title to take available space */
}

.page-support__card-title a {
  text-decoration: none;
  color: var(--primary-color, #017439);
}

.page-support__card-title a:hover {
  text-decoration: underline;
}

.page-support__card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

/* --- Button Styling --- */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: auto; /* Push button to bottom of card */
}

.page-support__btn-primary {
  background-color: var(--primary-color, #017439);
  color: #ffffff;
  border: 2px solid var(--primary-color, #017439);
}

.page-support__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color, #017439);
  border: 2px solid var(--primary-color, #017439);
}

.page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Specific button colors for Register/Login */
.page-support__btn-register {
  background-color: #C30808; /* Red */
  color: #FFFF00; /* Yellow */
  border-color: #C30808;
}
.page-support__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-support__btn-login {
  background-color: #C30808; /* Red */
  color: #FFFF00; /* Yellow */
  border-color: #C30808;
}
.page-support__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* --- Contact Methods Section --- */
.page-support__contact-methods {
  padding: 60px 0;
}

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

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

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff; /* White card background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: none; /* Remove default card border */
}

/* FAQ default state - answer 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 25px;
  opacity: 0;
  background-color: #f9f9f9;
  color: #555555;
}

/* FAQ expanded state - use !important to ensure it overrides */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 10px 10px;
}

/* Question styling */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--primary-color, #017439);
}

.page-support__faq-item.active .page-support__faq-question {
  background-color: #f5f5f5;
  border-bottom-color: transparent;
}

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

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color, #017439);
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 28px;
  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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color, #017439);
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

.page-support__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-support__cta-bottom p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ffffff;
}

/* --- Guides & Resources Section --- */
.page-support__guides-resources {
  padding: 60px 0;
}

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

.page-support__resource-card img {
   /* Adjust height for resource cards */
}

/* --- Responsible Gaming Section --- */
.page-support__responsible-gaming {
  padding: 60px 0;
}

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

.page-support__content-block {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__content-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-support__content-block p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* --- Feedback Section --- */
.page-support__feedback-section {
  padding: 60px 0;
}

.page-support__feedback-form-container {
  max-width: 700px;
  margin: 40px auto 20px auto;
  background-color: #ffffff;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__feedback-form {
  display: flex;
  flex-direction: column;
}

.page-support__form-group {
  margin-bottom: 20px;
  text-align: left;
}

.page-support__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-support__form-group input[type="text"],
.page-support__form-group input[type="email"],
.page-support__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-support__form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.page-support__form-group input::placeholder,
.page-support__form-group textarea::placeholder {
  color: #999999;
}

.page-support__form-group input:focus,
.page-support__form-group textarea:focus {
  border-color: var(--primary-color, #017439);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-support__feedback-form .page-support__btn-primary {
  align-self: center; /* Align button to the center */
  margin-top: 10px;
  padding: 12px 25px;
  font-size: 16px;
}

.page-support__form-note {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: #666666;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-support__hero-description {
    font-size: 16px;
  }

  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-support__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-support__methods-grid,
  .page-support__resources-grid,
  .page-support__responsible-content {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .page-support__card {
    padding: 20px;
  }

  .page-support__card img {
    
    margin-bottom: 15px;
  }

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

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

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

  .page-support__faq-item {
    margin-bottom: 10px;
  }

  .page-support__faq-question {
    padding: 15px 20px;
  }

  .page-support__faq-question h3 {
    font-size: 16px;
  }

  .page-support__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px !important;
  }

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

  .page-support__cta-bottom p {
    font-size: 16px;
  }
  
  .page-support__feedback-form-container {
    padding: 25px;
  }

  .page-support__form-group label {
    font-size: 15px;
  }

  .page-support__form-group input,
  .page-support__form-group textarea {
    font-size: 15px;
    padding: 10px;
  }
  
  .page-support__feedback-form .page-support__btn-primary {
    width: 100% !important;
    align-self: center;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
  
  .page-support__card img {
    min-width: unset; /* Allow card images to be smaller than 200px if card is small, but still > 200px wide based on grid */
    min-height: unset;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__feedback-form-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific override for hero section padding for mobile */
  .page-support__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure no filter is used on images */
.page-support img {
  filter: none !important;
}

/* Content area images CSS size lower bound - any img under .page-support */
.page-support img {
  /* Default display width for larger screens, adjusted for specific contexts */
  /* For mobile, max-width: 100% !important; height: auto !important; will take precedence */
  min-width: 200px;
  min-height: 200px;
}

.page-support__card img {
  min-width: unset;
  min-height: unset;
}