/* style/about.css */
/* Custom Colors */
:root {
  --b9casino-primary: #11A84E;
  --b9casino-secondary: #22C768;
  --b9casino-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --b9casino-card-bg: #11271B;
  --b9casino-background: #08160F;
  --b9casino-text-main: #F2FFF6;
  --b9casino-text-secondary: #A7D9B8;
  --b9casino-border: #2E7A4E;
  --b9casino-glow: #57E38D;
  --b9casino-gold: #F2C14E;
  --b9casino-divider: #1E3A2A;
  --b9casino-deep-green: #0A4B2C;
}

/* Base Styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--b9casino-text-main); /* Default text color for dark body background */
  background-color: var(--b9casino-background); /* Ensure consistency with body background */
}

.page-about__section {
  padding: 60px 20px;
  background-color: var(--b9casino-background);
}

.page-about__dark-section {
  background-color: var(--b9casino-deep-green);
  color: var(--b9casino-text-main);
}

.page-about__card-bg {
  background-color: var(--b9casino-card-bg);
  color: var(--b9casino-text-main);
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Consistent padding for content */
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--b9casino-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--b9casino-text-secondary);
  text-align: justify;
}

.page-about__text-block strong {
  color: var(--b9casino-text-main);
}

/* 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: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
  min-height: 500px;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--b9casino-text-main);
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--b9casino-gold);
  line-height: 1.1;
}

.page-about__description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--b9casino-text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--b9casino-btn-gradient);
  color: var(--b9casino-text-main);
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--b9casino-glow);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--b9casino-text-main);
  border: 2px solid var(--b9casino-primary);
}

.page-about__btn-secondary:hover {
  background-color: var(--b9casino-primary);
  color: var(--b9casino-text-main);
  box-shadow: 0 0 15px rgba(34, 199, 104, 0.5);
}

/* Image Container */
.page-about__image-container {
  margin: 40px auto;
  max-width: 100%;
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Why Choose Section */
.page-about__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: var(--b9casino-card-bg);
  border: 1px solid var(--b9casino-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--b9casino-text-main);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--b9casino-glow);
}

.page-about__card-title {
  font-size: 24px;
  color: var(--b9casino-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--b9casino-text-secondary);
}

.page-about__cta-buttons--center {
  margin-top: 40px;
}

/* Development Journey Section */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--b9casino-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--b9casino-primary);
  border: 4px solid var(--b9casino-gold);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -10px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--b9casino-text-main);
  margin-bottom: 10px;
}

.page-about__timeline-text {
  font-size: 16px;
  color: var(--b9casino-text-secondary);
  line-height: 1.6;
}

/* Team Culture Section */
.page-about__card--team, .page-about__card--culture {
  background-color: var(--b9casino-deep-green);
  padding: 0;
  text-align: left;
}

.page-about__card--team img, .page-about__card--culture img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.page-about__card--team .page-about__card-title,
.page-about__card--culture .page-about__card-title {
  padding: 20px 20px 0;
  text-align: left;
  color: var(--b9casino-gold);
}

.page-about__card--team .page-about__card-text,
.page-about__card--culture .page-about__card-text {
  padding: 0 20px 20px;
  text-align: left;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--b9casino-background);
}

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

.page-about__faq-item {
  background-color: var(--b9casino-card-bg);
  border: 1px solid var(--b9casino-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--b9casino-text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--b9casino-text-main);
  cursor: pointer;
  background-color: var(--b9casino-deep-green);
  border-bottom: 1px solid var(--b9casino-border);
}

.page-about__faq-question:hover {
  background-color: var(--b9casino-primary);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--b9casino-gold);
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--b9casino-text-secondary);
  background-color: var(--b9casino-card-bg);
  border-top: none;
}

.page-about__faq-answer a {
  color: var(--b9casino-gold);
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }

  .page-about__hero-content {
    padding: 15px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 42px);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: clamp(16px, 3.5vw, 18px);
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

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

  .page-about__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 15px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 5px;
  }

  .page-about__timeline-item:nth-child(odd)::after {
    left: 5px;
    right: auto;
  }

  .page-about__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__cta-buttons,
  .page-about__image-container,
  .page-about__grid-cards,
  .page-about__timeline,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }
}

/* Ensure min-size for images in content areas */
.page-about__content-image, .page-about__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-about img {
  filter: none;
}