/* style/about.css */
/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--bg-color); /* Deep Green */
}

/* Variables for colors */
:root {
  --primary-color: #11A84E; /* Main Green */
  --secondary-color: #22C768; /* Auxiliary Green */
  --bg-color: #08160F; /* Deep Green Background */
  --card-bg: #11271B; /* Card Background */
  --text-main: #F2FFF6; /* Main Text Color */
  --text-secondary: #A7D9B8; /* Secondary Text Color */
  --border-color: #2E7A4E; /* Border Color */
  --glow-color: #57E38D; /* Glow Color */
  --gold-color: #F2C14E; /* Gold Accent */
  --divider-color: #1E3A2A; /* Divider Color */
  --deep-green: #0A4B2C; /* Deep Green */

  /* Button gradient */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-about__section-title {
  font-size: 2.5rem;
  color: var(--gold-color); /* Gold for main 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: var(--primary-color);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__paragraph {
  margin-bottom: 15px;
  color: var(--text-main);
}

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

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

.page-about__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Stack image and content */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  background-color: var(--bg-color); /* Ensure dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive title size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure buttons fit in container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-about__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main); /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Section Backgrounds */
.page-about__dark-bg {
  background-color: var(--card-bg); /* Use card background for dark sections */
  padding: 60px 0;
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 60px 0;
}

/* Values Section */
.page-about__values-section {
  padding: 60px 0;
}

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

.page-about__grid-layout--reversed {
  grid-template-areas: "image text"; /* Default order */
}

.page-about__grid-layout--reversed .page-about__text-block {
  grid-area: text;
}

.page-about__grid-layout--reversed .page-about__image-block {
  grid-area: image;
}

.page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum size for content images */
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: var(--bg-color); /* Darker background for feature cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-about__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__feature-description {
  color: var(--text-secondary);
}

/* Games Overview Section */
.page-about__games-overview-section {
  padding: 60px 0;
}

/* Security Section */
.page-about__security-section {
  padding: 60px 0;
}

.page-about__link-in-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-about__link-in-text:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Support Section */
.page-about__support-section {
  padding: 60px 0;
}

/* Promotions Commitment Section */
.page-about__promotions-commitment-section {
  padding: 60px 0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

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

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For smooth transition */
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--gold-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  border-top: 1px solid var(--divider-color);
}

/* Call to Action Section (Final) */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__grid-layout--reversed {
    grid-template-areas: unset; /* Reset order for single column */
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }
}

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

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-about__section-title {
    font-size: 2rem;
  }

  .page-about__sub-title {
    font-size: 1.5rem;
  }

  .page-about__paragraph {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding for buttons */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 20px;
  }

  /* Universal image, video, and container responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific override for video section top padding if needed, but body handles global */
  .page-about__video-section {
    padding-top: 10px !important; /* Small top padding for visual separation */
  }

  .page-about__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

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

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__feature-title {
    font-size: 1.3rem;
  }
}