/* style/about.css */

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

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

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

/* Hero Section */
.page-about__hero-section {
  background-color: var(--gam88-background);
  padding-top: 10px; /* Small top padding for first section */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__hero-content {
  padding: 0 20px 60px;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  color: var(--gam88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__lead-text {
  font-size: 1.15em;
  color: var(--gam88-text-secondary);
  margin-bottom: 30px;
}

/* General Section Styles */
.page-about__section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.page-about__section-title {
  font-size: 2.5em;
  color: var(--gam88-gold);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-about__dark-bg {
  background-color: var(--gam88-background);
}

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__card {
  background-color: var(--gam88-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--gam88-text-main);
  border: 1px solid var(--gam88-border);
}

.page-about__card-title {
  font-size: 1.6em;
  color: var(--gam88-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 1em;
  color: var(--gam88-text-secondary);
  margin-bottom: 15px;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__list li {
  margin-bottom: 10px;
  color: var(--gam88-text-secondary);
  position: relative;
  padding-left: 25px;
}

.page-about__list li::before {
  content: '✔';
  color: var(--gam88-primary);
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__why-choose-us {
  background-color: var(--gam88-deep-green);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid var(--gam88-border);
}

.page-about__why-choose-us .page-about__card-title {
  color: var(--gam88-gold);
}

/* Team & Expertise Section */
.page-about__team-expertise-section {
  background-color: var(--gam88-background);
}

.page-about__text-block {
  color: var(--gam88-text-secondary);
}

.page-about__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-about__tech-innovation {
  background-color: var(--gam88-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid var(--gam88-border);
}

.page-about__tech-innovation .page-about__card-title {
  color: var(--gam88-primary);
}

/* Security & Fairness Section */
.page-about__security-fairness-section {
  background-color: var(--gam88-background);
}

.page-about__fairness-licensing {
  background-color: var(--gam88-deep-green);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid var(--gam88-border);
}

.page-about__fairness-licensing .page-about__card-title {
  color: var(--gam88-gold);
}

/* Social Responsibility Section */
.page-about__social-responsibility-section {
  background-color: var(--gam88-background);
}

.page-about__community-contribution {
  background-color: var(--gam88-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid var(--gam88-border);
}

.page-about__community-contribution .page-about__card-title {
  color: var(--gam88-primary);
}

/* Contact & FAQ Section */
.page-about__contact-faq-section {
  background-color: var(--gam88-background);
  padding-bottom: 80px;
}

.page-about__contact-grid {
  grid-template-columns: 1fr 1fr;
}

.page-about__contact-info {
  background-color: var(--gam88-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--gam88-border);
}

.page-about__contact-info .page-about__card-title {
  color: var(--gam88-primary);
}

.page-about__contact-info .page-about__list li {
  color: var(--gam88-text-main);
  margin-bottom: 8px;
}

.page-about__contact-info .page-about__list li::before {
  content: '';
}

.page-about__faq-area {
  background-color: var(--gam88-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--gam88-border);
}

.page-about__faq-area .page-about__card-title {
  color: var(--gam88-primary);
  margin-bottom: 25px;
}

.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-about__faq-item {
  background-color: var(--gam88-deep-green);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gam88-border);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gam88-text-main);
  user-select: none;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gam88-gold);
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 20px 15px;
  color: var(--gam88-text-secondary);
  font-size: 0.95em;
}

.page-about__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Buttons */
.page-about__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--gam88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-about__btn-secondary:hover {
  background-color: var(--gam88-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--gam88-glow);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__contact-grid {
    grid-template-columns: 1fr;
  }
  .page-about__hero-content {
    padding-bottom: 40px;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-about__lead-text {
    font-size: 1em;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__btn,
  .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-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
  }

  .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;
    display: flex;
    flex-direction: column;
  }

  .page-about__card,
  .page-about__why-choose-us,
  .page-about__tech-innovation,
  .page-about__fairness-licensing,
  .page-about__community-contribution,
  .page-about__contact-info,
  .page-about__faq-area {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__faq-question {
    padding: 12px 15px;
  }

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

  .page-about p,
  .page-about li {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__card-title {
    font-size: 1.4em;
  }
}