/* style/about.css */

/* Base styles for the About Us page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css defines body */
}

/* Fixed header spacing */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
  position: relative;
  overflow: hidden;
}

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

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some padding for smaller screens */
}

/* Section specific backgrounds */
.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #017439; /* Brand color for titles */
  font-weight: bold;
  text-align: center;
}

.page-about__dark-bg .page-about__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439;
  font-weight: bold;
  text-align: left; /* Sub-titles aligned left within containers */
}

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

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

.page-about__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  position: relative;
  background-color: #f0f0f0; /* Light grey background for hero */
}

.page-about__hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
  padding: 20px;
}

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

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 40px;
  position: relative;
  z-index: 0;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom font color for register/login type buttons */
  border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
}

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

.page-about__btn-link:hover {
  color: #00562e;
}

/* Commitment Section */
.page-about__commitment-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__commitment-text,
.page-about__commitment-image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure minimum width before wrapping */
}

.page-about__commitment-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__product-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block; /* Ensure it behaves as a block element */
}

.page-about__product-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__product-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-about__product-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

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

/* Responsible Gambling Section */
.page-about__responsible-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  flex-wrap: wrap-reverse; /* Image below text on mobile */
}

.page-about__responsible-text,
.page-about__responsible-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__responsible-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  padding-bottom: 80px;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-about__faq-item[open] {
  background-color: #ffffff;
  border-color: #017439;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

/* Hide default marker for details/summary */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-about__faq-item summary::marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #555555;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  color: #017439;
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

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

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

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__commitment-content,
  .page-about__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__commitment-image-wrapper,
  .page-about__responsible-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }

  .page-about__commitment-image,
  .page-about__responsible-image,
  .page-about__product-image,
  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__product-grid {
    grid-template-columns: 1fr; /* Single column for product cards */
    padding: 0 15px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }

  /* Ensure all containers for images/videos/buttons are constrained */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__product-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* No CSS filter allowed for images */
.page-about img {
  filter: none !important;
}