/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  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: #8B0000; /* Secondary brand color for accent */
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__sub-heading {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about li {
  margin-bottom: 10px;
  color: #f0f0f0;
  display: flex;
  align-items: flex-start;
}

.page-about__icon {
  margin-right: 10px;
  color: #FFD700; /* Icon color */
  font-size: 18px;
  line-height: 1.6;
}

.page-about__icon--check::before {
  content: '✔'; /* Unicode checkmark */
  font-weight: bold;
}

.page-about__icon--live-chat::before {
  content: '💬';
}

.page-about__icon--email::before {
  content: '📧';
}

.page-about__icon--phone::before {
  content: '📞';
}

.page-about__icon--faq::before {
  content: '❓';
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #0a0a0a;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #0a0a0a;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
}

.page-about__btn-link {
  background-color: transparent;
  color: #FFD700;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.page-about__btn-link:hover {
  color: #e6c200;
}

.page-about__cta-buttons {
  text-align: center;
  margin-top: 50px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared handles body padding-top */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Intro Section */
.page-about__intro-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  text-align: center;
}

.page-about__main-heading {
  font-size: 42px;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-about__content-grid--reverse .page-about__image-block {
  order: 2;
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 1;
}

.page-about__image-block {
  text-align: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-about__value-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 215, 0, 0.15);
}

.page-about__value-heading {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-about__security-list li {
  color: #f0f0f0;
}

/* Games Overview Section */
.page-about__games-overview-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-about__game-category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

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

.page-about__game-category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__game-category-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  padding: 15px;
  margin: 0;
}

.page-about__game-category-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 15px 15px;
  margin: 0;
}

.page-about__game-category-card .page-about__btn-link {
  display: block;
  padding: 10px 15px 15px;
  text-align: right;
  color: #FFD700;
  text-decoration: none;
}

.page-about__game-category-card .page-about__btn-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

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

.page-about__support-list li {
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

.page-about__responsible-gaming-section .page-about__text-block {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__responsible-gaming-list {
  list-style-type: disc;
  text-align: left;
  margin: 20px auto;
  padding-left: 40px;
  max-width: 700px;
}

.page-about__responsible-gaming-list li {
  color: #f0f0f0;
}

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

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  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.1);
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.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;
  background: rgba(255, 255, 255, 0.03);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change to 'x' or rotate for '−' */
  color: #8B0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 36px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse .page-about__image-block {
    order: 1;
  }
  .page-about__content-grid--reverse .page-about__text-block {
    order: 2;
  }
  .page-about__image-block img {
    margin-bottom: 30px;
  }
  .page-about__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding-top: 0 !important;
  }
  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__security-section,
  .page-about__games-overview-section,
  .page-about__support-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section {
    padding: 40px 0;
  }
  .page-about__main-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-about__intro-text {
    font-size: 17px;
    margin-bottom: 30px;
  }
  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__sub-heading {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-about p,
  .page-about li {
    font-size: 15px;
  }
  .page-about__icon {
    font-size: 16px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__game-category-card img {
    
  }
  .page-about__game-category-title {
    font-size: 18px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  /* Ensure all images within page-about are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}