/* style/about.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-dark: #0a0a0a; /* Body background from shared.css */
    --card-background-dark-theme: rgba(255, 255, 255, 0.08);
    --border-color-dark-theme: rgba(255, 255, 255, 0.15);
}

.page-about {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-dark);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

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

/* Fixed Nav Bar Spacing */
.page-about__hero-section {
    padding-top: 120px; /* Adjust based on shared header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-about__main-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-about__cta-button--secondary:hover {
    background-color: #e6a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-about__section-intro {
    font-size: 1.1em;
    color: #cccccc;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: #1a1a1a;
    padding: 80px 0;
}

.page-about__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-about__item {
    background-color: var(--card-background-dark-theme);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-theme);
}

.page-about__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.page-about__item-image {
    width: 150px; /* Larger image size */
    height: 150px; /* Larger image size */
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
}

.page-about__item-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__item-text {
    font-size: 1em;
    color: #b0b0b0;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

.page-about__feature-card {
    background-color: var(--card-background-dark-theme);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color-dark-theme);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__feature-icon {
    width: 100px; /* Larger icon size */
    height: 100px; /* Larger icon size */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); /* Subtle shadow for icons */
    border-radius: 50%; /* Make icons round for distinction */
}

.page-about__feature-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__feature-description {
    font-size: 0.95em;
    color: #c0c0c0;
}

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

/* Commitment Section */
.page-about__commitment-section {
    background-color: #1a1a1a;
    padding: 80px 0;
}

.page-about__commitment-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #cccccc;
}

.page-about__commitment-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark-theme);
}

/* 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 25px;
  opacity: 0;
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95em;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height đảm bảo có thể 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: 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color-dark-theme);
}

/* Vấn đề kiểu dáng */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-background-dark-theme);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Vấn đề tiêu đề kiểu dáng */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--text-color-dark-bg);
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu trừ */
}

/* Final CTA Section */
.page-about__call-to-action-final {
    background-color: #1a1a1a;
    padding: 80px 0 100px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__item-image {
        width: 120px;
        height: 120px;
    }
    .page-about__feature-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 100px !important; /* Mobile adjust */
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__cta-button {
        font-size: 1em;
        padding: 12px 25px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 2em;
        padding-top: 40px;
        margin-bottom: 30px;
    }
    .page-about__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-about__mission-vision-section, 
    .page-about__why-choose-us-section, 
    .page-about__commitment-section, 
    .page-about__faq-section,
    .page-about__call-to-action-final {
        padding: 50px 0;
    }
    .page-about__grid-layout, .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    .page-about__item, .page-about__feature-card {
        padding: 25px;
    }
    .page-about__item-image {
        width: 100px;
        height: 100px;
    }
    .page-about__feature-icon {
        width: 70px;
        height: 70px;
    }
    .page-about__faq-list {
        padding: 0 15px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 1em;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 10px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 20px !important;
    }
    .page-about__commitment-content {
        padding: 0 15px;
        font-size: 1em;
    }
    .page-about__item-title {
        font-size: 1.5em;
    }
    .page-about__feature-title {
        font-size: 1.4em;
    }
    /* Global image and video responsive styles */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important; /* Mobile: adjust for fixed header */
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__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;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-about__item-title {
        font-size: 1.3em;
    }
    .page-about__feature-title {
        font-size: 1.2em;
    }
}