/* style/about.css */
/* Colors: #0A2239 (primary), #FFD700 (secondary) */
/* Body background from shared.css: #121212 (dark) -> use light text */

.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
}

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

.page-about__dark-section {
  background-color: #0A2239; /* Primary brand color for dark sections */
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Secondary brand color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #FFD700; /* Gold button */
  color: #0A2239; /* Dark text for gold button */
  border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for transparent button */
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2239;
}

/* Video Section */
.page-about__intro-video-section {
  padding-top: 0; /* Hero section already handles offset */
}

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

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

.page-about__video-caption {
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Content Grid for History, Vision, Security, Responsible Gambling */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

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

.page-about__content-grid .page-about__text-block h3 {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__content-grid .page-about__text-block p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__content-grid .page-about__image-block {
  flex: 1;
  min-width: 200px; /* Ensure minimum image size */
}

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

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

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-about__product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-about__product-card h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-about__product-card h3 a {
  color: #FFD700; /* Gold for product titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-card h3 a:hover {
  color: #ffffff;
}

.page-about__product-card p {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-about__team-member-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__team-member-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #FFD700;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-about__team-member-card h3 {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 5px;
}

.page-about__team-member-card p {
  font-size: 1em;
  color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__why-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-about__why-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-about__why-list li strong {
  color: #FFD700;
}

.page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  font-size: 1.4em;
  color: #FFD700;
  margin: 0;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change to 'x' or rotate for '−' */
}

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

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

.page-about__faq-answer p {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding-bottom: 80px;
}

.page-about__cta-box {
  background-color: #0A2239;
  padding: 50px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.page-about__cta-box h2 {
  color: #FFD700;
  margin-bottom: 20px;
}

.page-about__cta-box p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
  }
  .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: 2em;
  }
  .page-about__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__container {
    padding: 0 15px;
  }

  /* Image Responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__content-grid .page-about__image-block img,
  .page-about__product-card img {
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Reset min-width for mobile */
    min-height: unset !important; /* Reset min-height for mobile */
  }
  /* Specific override for circular team images to maintain aspect ratio */
  .page-about__team-member-card img {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Video Responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__intro-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;
  }
  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio */
  }
  .page-about__intro-video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  /* Button Responsive */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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;
    margin: 10px 0 !important; /* Adjust margin for vertical stack */
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Content Area Mobile Adjustments */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__faq-question h3 {
    font-size: 1.2em;
  }
  .page-about__faq-toggle {
    font-size: 1.5em;
  }
  .page-about__faq-answer p {
    font-size: 1em;
  }
}