/* style/support.css */

/* Base styles for the page content */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: var(--auxiliary-color); /* Matches body background from shared.css */
}

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

/* Sections */
.page-support__section {
    padding: 60px 0;
}

.page-support__dark-section {
    background-color: #017439; /* Primary color as dark background */
    color: #ffffff;
    padding: 60px 0;
}

.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-support__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

/* Titles */
.page-support h1,
.page-support h2,
.page-support h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support h1 {
    font-size: 42px;
    color: #ffffff;
}

.page-support h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

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

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

.page-support p {
    margin-bottom: 15px;
}

/* Buttons */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-support__cta-button,
.page-support__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

/* Images */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    /* No filter properties to change color */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #00502a); /* Darker gradient for hero background */
}

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

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 900px; /* Constrain hero image width */
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(1, 116, 57, 0.85); /* Slightly transparent primary color */
}

.page-support__hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-support__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Intro Section */
.page-support__intro-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

.page-support__intro-title {
    color: #017439;
    font-size: 38px;
    margin-bottom: 30px;
}

.page-support__intro-text {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 17px;
    line-height: 1.7;
}

/* Categories Section */
.page-support__categories-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-support__categories-title {
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 50px;
}

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

.page-support__category-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__category-card .page-support__card-title {
    color: #017439;
    font-size: 22px;
    margin-bottom: 10px;
}

.page-support__category-card .page-support__card-description {
    font-size: 15px;
    color: #555555;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    color: #333333;
    text-align: center;
}

.page-support__faq-main-title {
    color: #017439;
    font-size: 38px;
    margin-bottom: 40px;
}

.page-support__faq-image {
    max-width: 600px;
    margin: 0 auto 50px auto;
    border-radius: 10px;
}

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo mức độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* Nền sáng hơn cho câu trả lời */
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* Kiểu câu hỏi */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

/* Kiểu tiêu đề câu hỏi */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Hơi lớn hơn để dễ đọc hơn */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #017439; /* Sử dụng màu chính cho câu hỏi */
}

/* Biểu tượng chuyển đổi */
.page-support__faq-toggle {
  font-size: 28px; /* Biểu tượng lớn hơn một chút */
  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; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Khu vực chuyển đổi lớn hơn */
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #C30808; /* Đánh dấu biểu tượng hoạt động */
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
}


/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-support__contact-title {
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 30px;
}

.page-support__contact-text {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 17px;
    line-height: 1.7;
    color: #f0f0f0;
}

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

.page-support__contact-method-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-support__contact-method-card .page-support__card-title {
    color: #017439;
    font-size: 22px;
    margin-bottom: 10px;
}

.page-support__contact-method-card .page-support__card-description {
    font-size: 15px;
    color: #555555;
    margin-bottom: 25px;
}

.page-support__contact-image {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

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

.page-support__responsible-gaming-text {
    max-width: 800px;
}

.page-support__responsible-gaming-title {
    color: #017439;
    font-size: 38px;
    margin-bottom: 30px;
}

.page-support__responsible-gaming-description {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.page-support__responsible-gaming-image img {
    max-width: 600px;
    border-radius: 10px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 40px;
    }
    .page-support h2 {
        font-size: 32px;
    }
    .page-support h3 {
        font-size: 22px;
    }
    .page-support__intro-title,
    .page-support__categories-title,
    .page-support__faq-main-title,
    .page-support__contact-title,
    .page-support__responsible-gaming-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__container {
        padding: 15px;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
    }
    .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,
    .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;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    .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;
    }
    .page-support__cta-buttons {
        flex-direction: column;
    }

    .page-support h2 {
        font-size: 28px;
    }
    .page-support h3 {
        font-size: 20px;
    }
    .page-support__intro-title,
    .page-support__categories-title,
    .page-support__faq-main-title,
    .page-support__contact-title,
    .page-support__responsible-gaming-title {
        font-size: 30px;
    }
    .page-support__category-grid,
    .page-support__contact-methods {
        grid-template-columns: 1fr;
    }
    .page-support__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    .page-support__faq-question h3 {
      font-size: 16px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    .page-support__faq-toggle {
      margin-left: 10px;
      width: 28px;
      height: 28px;
      font-size: 24px;
    }
    .page-support__faq-answer {
      padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
      padding: 15px !important;
    }
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__responsible-gaming-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 28px;
    }
    .page-support__hero-description {
        font-size: 15px;
    }
    .page-support h2 {
        font-size: 24px;
    }
    .page-support h3 {
        font-size: 18px;
    }
    .page-support__intro-title,
    .page-support__categories-title,
    .page-support__faq-main-title,
    .page-support__contact-title,
    .page-support__responsible-gaming-title {
        font-size: 28px;
    }
    .page-support__cta-button,
    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
    }
}