/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('[GALLERY:hero_main:1920x1080:casinomcw87,online_gambling,vibrant,secure,welcome]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px 80px; /* Adjusted for header offset */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
}

.page-about__hero-content {
  z-index: 1;
  max-width: 800px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__hero-button {
  display: inline-block;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
}

.page-about__hero-button:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-about__hero-image {
  display: none; /* Background image is used for hero */
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color for titles on light backgrounds */
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff; /* White for titles on dark backgrounds */
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__mission-section,
.page-about__values-section,
.page-about__team-section,
.page-about__cta-section {
  background-color: #1a1a2e; /* Body background color */
  padding: 60px 0;
  color: #ffffff;
}

.page-about__why-choose-section,
.page-about__history-section,
.page-about__faq-section {
  background-color: #ffffff; /* Auxiliary color for sections */
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
}

.page-about__why-choose-section .page-about__section-title,
.page-about__history-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
  color: #017439;
}

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

.page-about__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-about__image-fullwidth {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-about__image-centered {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.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;
  background-color: #fefefe;
}

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

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555555;
}

.page-about__faq-answer a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Image and Video Responsive Styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-about__hero-section {
    padding: 80px 15px 60px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 450px;
  }

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

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

  .page-about__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__features-grid,
  .page-about__values-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card,
  .page-about__value-item {
    padding: 25px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit width for better appearance on very small screens */
    padding: 12px 20px;
    font-size: 1em;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile video section padding */
  }

  .page-about__video,
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}