/* 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: #121212; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: calc(100px + var(--header-offset, 120px)); /* Fixed header spacing */
  background: url('[GALLERY:about_hero:1920x1080:hay88,about_us,hero_background,betting_platform]') no-repeat center center/cover;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* General Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808; /* Border matches primary button */
}

.page-about__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

/* Intro Section */
.page-about__intro-section,
.page-about__mission-vision-section,
.page-about__products-overview-section,
.page-about__security-section,
.page-about__responsible-gaming-section,
.page-about__customer-support-section,
.page-about__faq-section,
.page-about__cta-bottom-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  margin-bottom: 20px; /* Space between sections */
  border-radius: 10px;
}

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

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

.page-about__text-block strong {
  color: #FFFF00; /* Highlight important keywords */
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-about__value-item {
  background-color: rgba(1, 116, 57, 0.2); /* Brand color with transparency */
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1em;
  border-left: 5px solid #017439;
}

.page-about__value-item strong {
  color: #FFFF00;
}

/* Products Overview Section */
.page-about__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__product-card {
  background-color: #2a2a2a; /* Darker card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-about__product-card:hover {
  transform: translateY(-10px);
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__product-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #FFFF00; /* Product title color */
  font-weight: bold;
}

.page-about__product-title a {
  color: inherit;
  text-decoration: none;
}

.page-about__product-title a:hover {
  text-decoration: underline;
}

.page-about__product-description {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 20px 20px;
  flex-grow: 1; /* Ensure description takes available space */
}

/* List styles */
.page-about__list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-about__list-item {
  margin-bottom: 10px;
}

.page-about__list-item strong {
  color: #FFFF00;
}

.page-about a {
  color: #017439; /* Brand color for internal links */
  text-decoration: underline;
}

.page-about a:hover {
  color: #019a4a;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background-color: #017439; /* Use brand color as background */
  color: #ffffff;
}

.page-about__cta-bottom-section .page-about__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__cta-bottom-section .page-about__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00;
  background-color: #3a3a3a;
  border-bottom: 1px solid #444;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-about__faq-question:hover {
  background-color: #4a4a4a;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #e0e0e0;
  background-color: #2a2a2a;
}

.page-about__faq-answer p {
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

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

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

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

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 450px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

  .page-about__hero-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;
  }

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

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

  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__products-overview-section,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__customer-support-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 40px 0;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive (if any) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive */
  .page-about__container,
  .page-about__content-area,
  .page-about__product-grid,
  .page-about__grid-two-columns,
  .page-about__faq-list,
  .page-about__hero-cta-buttons,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

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

  .page-about__faq-question {
    font-size: 1.1em;
  }

  .page-about__faq-answer {
    font-size: 1em;
  }
}

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

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: 1.5em;
  }
}