/* style/about.css */

/* General Page Styles */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for the main content area */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-about__section-title {
    font-size: 36px;
    color: #003366; /* Auxiliary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__section-description {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-about__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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #FF6600, #003366); /* Gradient background for visual appeal */
    color: #ffffff; /* White text for dark gradient background */
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-about__hero-image img:hover {
    transform: scale(1.03);
}

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

.page-about__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FF6600; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-about__cta-button:hover {
    background: #e65c00; /* Slightly darker primary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Wrappers */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.page-about__content-wrapper:last-child {
    margin-bottom: 0;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #444444;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-about__image-block img:hover {
    transform: scale(1.03);
}

.page-about__sub-title {
    font-size: 28px;
    color: #FF6600; /* Primary brand color */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background: #003366; /* Secondary brand color as background */
    color: #ffffff;
    padding-bottom: 80px;
}

.page-about__why-choose-us-section .page-about__section-title {
    color: #ffffff;
}

.page-about__why-choose-us-section .page-about__section-description {
    color: #f0f0f0;
}

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

.page-about__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.page-about__feature-card .page-about__card-title {
    font-size: 24px;
    color: #FF6600; /* Primary brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-card p {
    font-size: 16px;
    color: #e0e0e0;
}

.page-about__cta-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: #FF6600; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #FF6600;
}

.page-about__btn-primary:hover {
    background: #e65c00;
    border-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #003366; /* Secondary brand color for text */
    border: 2px solid #003366;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Game Diversity Section */
.page-about__game-diversity-section {
    background-color: #ffffff;
    padding-bottom: 80px;
}

/* Values Section */
.page-about__values-section {
    background-color: #f0f5f8; /* Light blueish background */
    padding-bottom: 80px;
}

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

.page-about__value-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

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

.page-about__value-card .page-about__card-title {
    font-size: 22px;
    color: #003366; /* Secondary brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-card p {
    font-size: 16px;
    color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: #f8f9fa;
    padding-bottom: 80px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #ffffff;
    padding-bottom: 80px;
}

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

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

/* 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;
}

/* FAQ展开状态 - 🚨 使用!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: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question Style */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

/* Question Title Style */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #003366; /* Secondary color for question titles */
}

/* Toggle Icon */
.page-about__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: #FF6600; /* Primary color for toggle icon */
  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: 32px; /* Larger hit area */
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #003366; /* Secondary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer p {
    font-size: 16px;
    color: #444444;
    line-height: 1.7;
}

/* Final CTA Section */
.page-about__final-cta-section {
    background: linear-gradient(135deg, #003366, #FF6600); /* Reverse gradient */
    color: #ffffff;
    padding: 80px 0;
}

.page-about__final-cta-section .page-about__section-title {
    color: #ffffff;
}

.page-about__final-cta-section .page-about__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-about__final-cta-section .page-about__cta-button {
    background: #ffffff;
    color: #FF6600;
    border: 2px solid #ffffff;
}

.page-about__final-cta-section .page-about__cta-button:hover {
    background: #f0f0f0;
    color: #e65c00;
    border-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 40px;
    }

    .page-about__hero-description {
        font-size: 18px;
    }

    .page-about__section-title {
        font-size: 30px;
    }

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

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on tablet */
    }

    .page-about__text-block,
    .page-about__image-block {
        min-width: unset;
        width: 100%;
    }
    
    .page-about__cta-container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Fixed Header Spacing for Mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .page-about__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .page-about__text-block p {
        font-size: 15px;
    }

    .page-about__features-grid,
    .page-about__values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-card,
    .page-about__value-card {
        padding: 25px;
    }

    .page-about__feature-card .page-about__card-title,
    .page-about__value-card .page-about__card-title {
        font-size: 20px;
    }

    /* Mobile Image Adaption */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__image-block,
    .page-about__text-block,
    .page-about__cta-container,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons on mobile */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-about__cta-container {
        flex-direction: column !important; /* Force column layout for multiple buttons */
        gap: 10px;
    }

    /* FAQ Mobile Adaption */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Ensure content area images are not too small */
    .page-about__image-block img {
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
    }
    .page-about__image-block {
        display: flex; /* Use flex to center image if it's smaller than container */
        justify-content: center;
        align-items: center;
    }
}