/* style/about.css */

/* General page styling for About Us */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--primary-color, #0A2239); /* Ensure body background is dark */
}

/* Container for consistent content width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section titles */
.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color, #FFD700);
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color, #FFD700);
  border-radius: 2px;
}

/* Hero Section (Module 1: H1 Title + CTA Buttons) */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Desktop padding-top for fixed header */
  text-align: center;
  background: url('[GALLERY:about_hero:1920x1080:88neo,online_betting,vietnam,platform,about_us,header]') no-repeat center center/cover;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2239);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 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;
}

.page-about__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
  box-shadow: none;
}

.page-about__cta-button--secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.15);
}

/* Brand Introduction Section (Module 3) */
.page-about__brand-introduction {
  padding: 80px 0;
  background-color: var(--primary-color, #0A2239);
  color: #ffffff;
}

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

.page-about__brand-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-about__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 15px;
}

.page-about__brand-item-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-about__brand-item-text ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-top: 15px;
}

.page-about__brand-item-text li {
  margin-bottom: 8px;
}

/* FAQ Section (Module 2) */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__faq-section .page-about__section-title {
  color: var(--primary-color, #0A2239);
}

.page-about__faq-section .page-about__section-title::after {
  background-color: var(--primary-color, #0A2239);
}

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

/* FAQ container styling */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

/* FAQ default state - answer hidden */
.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;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important, value sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

/* Question styling */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #f0f0f0;
}

/* Question title styling */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color, #0A2239);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFD700);
  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;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color, #0A2239);
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to 'X' or '-' */
  background: var(--secondary-color, #FFD700);
}

/* Blog Section (Module 4) */
.page-about__blog-section {
  padding: 80px 0;
  background-color: var(--primary-color, #0A2239);
  color: #ffffff;
}

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

.page-about__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-about__blog-content {
  padding: 20px;
}

.page-about__blog-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color, #FFD700);
}

.page-about__blog-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-about__blog-date {
  font-size: 14px;
  color: #cccccc;
  display: block;
}

/* Call to Action Banner */
.page-about__cta-banner {
  padding: 80px 0;
  text-align: center;
  background: url('[GALLERY:cta_banner:1920x600:88neo,register,download,promotions,cta_background]') no-repeat center center/cover;
  background-color: var(--secondary-color, #FFD700); /* Fallback */
  color: var(--primary-color, #0A2239); /* Dark text for light background */
}

.page-about__cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.8); /* Semi-transparent gold overlay */
  z-index: 0;
}

.page-about__cta-banner .page-about__container {
  position: relative;
  z-index: 1;
}

.page-about__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color, #0A2239);
}

.page-about__cta-text {
  font-size: 20px;
  margin-bottom: 40px;
  color: #333333;
}

.page-about__cta-banner .page-about__cta-button {
  background: var(--primary-color, #0A2239);
  color: #ffffff;
  margin: 0 10px;
}

.page-about__cta-banner .page-about__cta-button:hover {
  background: #061524; /* Darker primary color */
}

.page-about__cta-banner .page-about__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color, #0A2239);
  border: 2px solid var(--primary-color, #0A2239);
  box-shadow: none;
}

.page-about__cta-banner .page-about__cta-button--secondary:hover {
  background: #f0f0f0;
  color: var(--primary-color, #0A2239);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__cta-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

  /* Fixed header padding for mobile */
  .page-about__hero-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
    padding-bottom: 60px;
    min-height: 400px;
  }

  .page-about__main-title {
    font-size: 36px;
  }

  .page-about__description {
    font-size: 16px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 30px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

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

  .page-about__brand-introduction,
  .page-about__faq-section,
  .page-about__blog-section,
  .page-about__cta-banner {
    padding: 60px 0;
  }

  .page-about__brand-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__brand-item {
    padding: 25px;
  }

  .page-about__brand-item-title {
    font-size: 20px;
  }

  .page-about__brand-item-text {
    font-size: 15px;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-about__faq-answer {
    padding: 0 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__blog-title {
    font-size: 18px;
  }

  .page-about__blog-excerpt {
    font-size: 14px;
  }

  .page-about__cta-title {
    font-size: 28px;
  }

  .page-about__cta-text {
    font-size: 16px;
  }

  .page-about__cta-banner .page-about__cta-button {
    margin: 10px 0;
  }

  /* Image responsive adaptations */
  .page-about img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .page-about__hero-section,
  .page-about__brand-introduction,
  .page-about__faq-section,
  .page-about__blog-section,
  .page-about__cta-banner,
  .page-about__container,
  .page-about__brand-item,
  .page-about__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific image containers */
  .page-about__brand-image,
  .page-about__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Use contain for images to ensure they fit */
  }
}

/* Ensure no filter is used on images */
.page-about img {
  filter: none !important;
}

/* Color contrast adjustments for specific sections if needed */
.page-about__dark-bg {
  color: #ffffff;
  background-color: var(--primary-color, #0A2239);
}

.page-about__light-bg {
  color: #333333;
  background-color: #f8f8f8;
}

/* Ensure buttons have good contrast */
.page-about__cta-button {
  color: var(--primary-color, #0A2239); /* Gold button, dark text */
}

.page-about__cta-button--secondary {
  color: var(--secondary-color, #FFD700); /* Transparent button, gold text */
}

.page-about__cta-banner .page-about__cta-button {
  color: #ffffff; /* Dark button, white text */
}

.page-about__cta-banner .page-about__cta-button--secondary {
  color: var(--primary-color, #0A2239); /* White button, dark text */
}