/* style/about.css */

/* Base styles for the page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background is white */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero */
  overflow: hidden;
  color: #ffffff; /* Text color for hero background */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
}

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

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

.page-about__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Buttons */
.page-about__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #1e87b8;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

.page-about__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__intro-text-block {
  flex: 1;
}

.page-about__intro-heading {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 25px;
}

.page-about__intro-text {
  margin-bottom: 15px;
  color: #333333;
}

.page-about__intro-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-about__mission-vision-heading {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

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

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-about__mission-title,
.page-about__vision-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__mission-text,
.page-about__vision-text {
  color: #555555;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

.page-about__advantages-heading {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-about__advantage-card {
  text-align: center;
}

.page-about__advantage-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__advantage-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__advantage-text {
  color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-about__responsible-gaming-heading {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 25px;
}

.page-about__responsible-gaming-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__responsible-gaming-cta {
  margin-bottom: 40px;
}

.page-about__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__video-heading {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 25px;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video container */
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Make sure it's clickable over the video */
  cursor: pointer;
}

.page-about__video-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-about__faq-heading {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 50px;
}

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

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

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

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

.page-about__faq-title {
  margin: 0;
  color: #26A9E0;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

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

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

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

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-about__cta-heading {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 25px;
}

.page-about__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__cta-buttons .page-about__btn-primary,
.page-about__cta-buttons .page-about__btn-secondary {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__intro-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__intro-image {
    max-width: 80%;
    margin-top: 30px;
  }

  .page-about__cards-grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-about__hero-section .page-about__container {
    padding: 30px 20px;
  }

  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__advantages-section,
  .page-about__responsible-gaming-section,
  .page-about__video-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 50px 0;
  }

  .page-about__intro-heading,
  .page-about__mission-vision-heading,
  .page-about__advantages-heading,
  .page-about__responsible-gaming-heading,
  .page-about__video-heading,
  .page-about__faq-heading,
  .page-about__cta-heading {
    font-size: 1.8em;
  }

  .page-about__intro-image,
  .page-about__responsible-gaming-image {
    max-width: 95%;
  }

  .page-about__advantage-icon {
    height: 150px; /* Adjust height for mobile */
  }

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

  .page-about__cta-buttons .page-about__btn-primary,
  .page-about__cta-buttons .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__intro-section .page-about__container,
  .page-about__mission-vision-section .page-about__container,
  .page-about__advantages-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container,
  .page-about__video-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-section .page-about__container,
  .page-about__card,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile video responsiveness */
  .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;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}