/* style/about.css */

/* Base Styles for .page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  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: 3.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Auxiliary color for titles */
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__sub-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-about__sub-title--light {
  color: #ffffff;
}

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-about__paragraph--light {
  color: #f0f0f0;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-about__btn-secondary--light {
  color: #ffffff;
  border-color: #ffffff;
}

.page-about__btn-secondary--light:hover {
  background-color: #ffffff;
  color: #1A202C;
}

.page-about__btn-link {
  color: #FFD700;
  border: none;
  background: none;
  padding: 0;
  font-size: 1em;
}

.page-about__btn-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 700px;
  background-color: #1A202C; /* Main brand color for hero */
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
}

.page-about__hero-title {
  font-size: 4em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #f0f0f0;
}

.page-about__mission-vision .page-about__container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-about__text-content {
  flex: 1;
}

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

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

/* Core Values Section */
.page-about__core-values {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-about__value-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-about__value-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Products Overview Section */
.page-about__products-overview {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

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

.page-about__product-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;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-about__product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-about__product-card h3 a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-about__product-card .page-about__btn-link {
  display: block;
  margin-top: 15px;
  font-size: 1em;
  text-align: left;
  padding-left: 20px;
  padding-bottom: 20px;
}

.page-about__product-title {
  font-size: 1.6em;
  margin: 20px 20px 10px;
  color: #FFD700;
}

.page-about__product-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  padding: 0 20px;
}

.page-about__cta-section {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__cta-text {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 30px;
}

/* Security & Responsible Gaming Section */
.page-about__security-responsible {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 50px;
}

.page-about__text-block {
  flex: 1;
}

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

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

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Video Section */
.page-about__video-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
  text-align: center;
}

.page-about__video-wrapper {
  margin-top: 40px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-about__final-cta {
  padding: 80px 0;
  background-color: #1A202C;
  text-align: center;
  color: #ffffff;
}

.page-about__final-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3.5em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2.8em;
  }
  .page-about__mission-vision .page-about__container,
  .page-about__security-responsible .page-about__content-flex {
    flex-direction: column;
    gap: 40px;
  }
  .page-about__image-content,
  .page-about__image-block {
    order: -1; /* Image first on smaller screens */
  }
  .page-about__values-grid,
  .page-about__products-grid,
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensures header offset is respected on mobile */
    padding-bottom: 40px;
    min-height: auto;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons,
  .page-about__final-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-about__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  .page-about__value-card,
  .page-about__product-card,
  .page-about__feature-item {
    padding: 25px;
  }
  .page-about__image-content .page-about__image,
  .page-about__image-block .page-about__image,
  .page-about__video,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .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: hidden !important;
  }
  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }
  .page-about__video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__cta-text {
    font-size: 1.5em;
  }
  .page-about__value-title,
  .page-about__feature-title,
  .page-about__product-title {
    font-size: 1.4em;
  }
}

/* Ensure no image filter */
.page-about img {
  filter: none;
}

/* Contrast Fixes */
.page-about__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.page-about__value-card,
.page-about__product-card,
.page-about__feature-item,
.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question {
  color: #FFD700;
}

.page-about__faq-answer p {
  color: #cccccc;
}