/* style/about.css */

/* --- General Page Styles (scoped to .page-about) --- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default background for the main content area */
}

/* Ensure main content has padding-top to clear fixed header */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary color for titles */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* --- Hero Section --- */
.page-about__hero-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}

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

.page-about__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- Buttons --- */
.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; /* Ensure padding/border included in width */
  max-width: 100%; /* Ensure responsiveness */
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color for secondary action */
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7eb3;
  border-color: #1a7eb3;
}

/* --- Video Section --- */
.page-about__video-section {
  position: relative;
  background-color: #f8f8f8;
  padding: 60px 0;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer; /* Indicate clickable */
}

.page-about__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-about__video-caption {
  font-style: italic;
  color: #666666;
  margin-top: 10px;
  font-size: 0.9em;
}

/* --- Card Layouts / Grid Layouts --- */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height in a row */
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow text to grow and push image/title up */
}

/* --- Core Values Section (Dark Background) --- */
.page-about__core-values-section,
.page-about__team-section,
.page-about__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}

.page-about__core-values-section .page-about__section-title {
  color: #ffffff;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.page-about__value-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-about__value-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: auto; /* Push image to bottom */
}


/* --- Security Section --- */
.page-about__security-section .page-about__paragraph {
  margin-bottom: 25px;
}

.page-about__image-full-width {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block; /* Ensure it behaves like a block element */
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section .page-about__paragraph {
  color: #f0f0f0;
}

/* --- Why Choose Section --- */
.page-about__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__feature-card {
  padding: 25px;
  text-align: left;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

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

/* --- Team Section --- */
.page-about__team-section .page-about__paragraph {
  color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  text-align: left;
}

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

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or rotate to minus) */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding for collapsed state */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
  font-size: 1em;
  text-align: justify;
}

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

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

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- CTA Section --- */
.page-about__cta-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__cta-content {
  max-width: 900px;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

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

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__hero-cta,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* Mobile container/section responsiveness */
  .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: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
  .page-about__faq-answer {
    padding: 0 15px; /* Adjust padding for mobile */
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important; /* Adjust padding for mobile */
  }
  .page-about__faq-question {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
}