/* style/about.css */

:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --background-dark: #000000;
    --background-light: #f5f5f5;
    --border-color: #e0e0e0;
}

/* Base styles for page-about */
.page-about {
    color: var(--text-on-dark); /* Body background is dark (#000000), so default text is light */
    background-color: var(--background-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: var(--background-light);
    color: var(--text-on-light);
    padding: 60px 0;
}

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-about__sub-title {
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

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

.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
}

/* Hero Section */
.page-about__hero-section {
    background-image: url('[GALLERY:hero:1920x1080:89bet,about_us,hero_banner,corporate]');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 0;
    position: relative;
    z-index: 1;
    color: var(--text-on-dark);
}

.page-about__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.page-about__main-title {
    font-size: 52px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-about__cta-button--primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about__cta-button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Brand Introduction Section */
.page-about__brand-introduction .page-about__content-area {
    padding-top: 0; /* Adjust padding as hero already has it */
    padding-bottom: 0;
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__values-list li {
    background-color: #ffffff;
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: var(--text-on-light);
}

.page-about__values-list li strong {
    color: var(--primary-color);
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding: 80px 0;
}

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

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__commitment-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__commitment-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about__commitment-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__commitment-item p {
    font-size: 16px;
    color: var(--text-on-dark);
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--background-light);
    color: var(--text-on-light);
    padding: 80px 0;
}

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

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

/* FAQ默认状态 - 答案隐藏 */
.page-about__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;
  background: #f9f9f9;
  color: var(--text-on-light);
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height để đảm bảo mở rộng */
.page-about__faq-item.active .page-about__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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề (Câu hỏi) style */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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(--text-on-light);
}

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

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

/* Vấn đề (Câu hỏi) tiêu đề style */
.page-about__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 click */
  color: inherit;
}

/* Biểu tượng chuyển đổi */
.page-about__faq-toggle {
  font-size: 28px;
  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 click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Để chuyển từ '+' sang 'x' hoặc '-' */
}

/* Blog Section */
.page-about__blog-section {
    background-color: var(--background-dark);
    color: var(--text-on-dark);
    padding: 80px 0;
}

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

.page-about__blog-item {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__blog-link {
    display: block;
    text-decoration: none;
    color: var(--text-on-dark);
}

.page-about__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__blog-item-title {
    font-size: 22px;
    font-weight: bold;
    padding: 15px 20px 10px;
    color: var(--secondary-color);
}

.page-about__blog-item-excerpt {
    font-size: 15px;
    padding: 0 20px 15px;
    color: rgba(255, 255, 255, 0.8);
}

.page-about__blog-item-date {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 20px 20px;
}

.page-about__view-all-news {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 44px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__sub-title {
        font-size: 24px;
    }
    .page-about p {
        font-size: 16px;
    }
    .page-about__commitment-icon {
        width: 80px;
        height: 80px;
    }
    .page-about__commitment-title {
        font-size: 20px;
    }
    .page-about__blog-item-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__dark-section, .page-about__light-bg, .page-about__hero-section, .page-about__commitment-section, .page-about__faq-section, .page-about__blog-section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding: 80px 0;
    }
    .page-about__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__cta-button {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-about p {
        font-size: 15px;
    }
    .page-about__values-list li {
        padding: 12px 15px;
        font-size: 15px;
    }
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__commitment-item {
        padding: 25px;
    }
    .page-about__commitment-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .page-about__commitment-title {
        font-size: 18px;
    }
    .page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
    .page-about__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__blog-item-title {
        font-size: 18px;
    }
    .page-about__blog-item-excerpt {
        font-size: 14px;
    }
    .page-about__blog-image {
        height: 180px;
    }
    /* Mobile image and video responsive adaptation */
    .page-about img, .page-about video, .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section, .page-about__card, .page-about__container, .page-about__video-section, .page-about__video-container, .page-about__video-wrapper, .page-about__cta-buttons, .page-about__button-group, .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}