/* style/about-us.css */

/* Custom CSS Variables for this page */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #FFFFFF;
    --button-register-color: #C30808;
    --button-login-color: #C30808;
    --button-text-yellow: #FFFF00;
    --border-color: #e0e0e0;
    --hover-bg-color: #f5f5f5;
    --active-bg-color: #eeeeee;
}

.page-about-us {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Body background is light, so use dark text */
}

/* Header offset for main content */
.page-about-us__hero-intro {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* --- Hero Intro Section --- */
.page-about-us__hero-intro {
    background: var(--primary-color); /* Dark section */
    color: var(--light-text-color);
    text-align: center;
    padding-bottom: 60px;
}

.page-about-us__main-title {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--light-text-color);
    line-height: 1.2;
    padding-top: 40px;
}

.page-about-us__description-intro {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
}

.page-about-us__hero-image-wrapper {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about-us__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about-us__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-color); /* Using #C30808 for CTA */
    color: var(--button-text-yellow); /* Using #FFFF00 for text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about-us__cta-button:hover {
    background: #a80707; /* Slightly darker red for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about-us__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.page-about-us__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about-us__cta-button--small {
    padding: 12px 30px;
    font-size: 18px;
}

/* --- General Section Styles --- */
.page-about-us__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.page-about-us__section-title--white {
    color: var(--light-text-color);
}

.page-about-us__sub-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about-us p {
    margin-bottom: 15px;
    color: var(--dark-text-color);
}

.page-about-us__dark-section p {
    color: var(--light-text-color);
}

.page-about-us__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about-us__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about-us__text-block {
    flex: 1;
}

.page-about-us__text-block--white p {
    color: var(--light-text-color);
}

.page-about-us__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about-us__image-block img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- Mission & Values Section --- */
.page-about-us__mission-values {
    padding: 80px 0;
}

/* --- Our Values Section --- */
.page-about-us__our-values {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--light-text-color);
}

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

.page-about-us__value-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for cards on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about-us__value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-about-us__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.page-about-us__value-card p {
    color: var(--light-text-color);
}

/* --- Why Choose Section --- */
.page-about-us__why-choose {
    padding: 80px 0;
}

/* --- Responsible Gambling Section --- */
.page-about-us__responsible-gambling {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--light-text-color);
}

/* --- FAQ Section --- */
.page-about-us__faq-section {
    padding: 80px 0;
    background-color: var(--hover-bg-color); /* Light background for FAQ */
}

.page-about-us__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ容器样式 */
.page-about-us__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about-us__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;
  color: var(--dark-text-color);
}

/* FAQ展开状态 - 🔥 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-about-us__faq-item.active .page-about-us__faq-answer {
  max-height: 2000px !important; /* 🔥 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--secondary-color); /* White background for answer */
  border-radius: 0 0 5px 5px;
  border-top: 1px solid var(--border-color);
}

/* Vấn đề phong cách */
.page-about-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color); /* White background for question */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--dark-text-color);
}

.page-about-us__faq-question:hover {
  background: var(--hover-bg-color);
  border-color: #d0d0d0;
}

.page-about-us__faq-question:active {
  background: var(--active-bg-color);
}

/* Phong cách tiêu đề câu hỏi */
.page-about-us__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: var(--primary-color); /* Primary color for FAQ question title */
}

/* Chuyển đổi biểu tượng */
.page-about-us__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 28px;
  height: 28px;
}

.page-about-us__faq-item.active .page-about-us__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Xoay để tạo thành 'x' hoặc 'dấu trừ' */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about-us__main-title {
        font-size: 38px;
    }
    .page-about-us__section-title {
        font-size: 32px;
    }
    .page-about-us__sub-title {
        font-size: 22px;
    }
    .page-about-us__content-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-about-us__content-grid--reverse {
        flex-direction: column; /* Reset reverse for smaller screens */
    }
    .page-about-us__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about-us {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about-us__hero-intro {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about-us__container {
        padding: 0 15px;
    }
    .page-about-us__main-title {
        font-size: 30px;
        padding-top: 20px;
    }
    .page-about-us__description-intro {
        font-size: 16px;
    }
    .page-about-us__cta-button {
        padding: 12px 25px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about-us__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about-us__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-about-us__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about-us__value-card {
        padding: 25px;
    }

    /* Mobile specific image handling */
    .page-about-us img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-about-us__section,
    .page-about-us__card,
    .page-about-us__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* FAQ Mobile */
    .page-about-us__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    .page-about-us__faq-question h3 {
      font-size: 16px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    .page-about-us__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    .page-about-us__faq-answer {
      padding: 0 15px;
    }
    .page-about-us__faq-item.active .page-about-us__faq-answer {
      padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-about-us__main-title {
        font-size: 26px;
    }
    .page-about-us__section-title {
        font-size: 24px;
    }
    .page-about-us__cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}