.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #017439, #005a2d);
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

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

.page-about__hero-description {
  font-size: 1.25em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__hero-cta {
  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: 600;
  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; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
  font-weight: 700;
  line-height: 1.3;
}

.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-about__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-about__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-about__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

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

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  text-align: left;
  flex-grow: 1;
}

.page-about__history-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__sub-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__image-right {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Enforce min image size */
}

.page-about__values-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__value-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
  color: #333333;
  min-height: 400px; /* Ensure similar height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-item:hover {
  background-color: #e6ffe6; /* Lighter green on hover */
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-about__value-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: 600;
}

.page-about__value-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  text-align: left;
  flex-grow: 1;
}

.page-about__team-section {
  padding: 80px 0;
  background-color: #005a2d;
  color: #ffffff;
}

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

.page-about__team-intro {
  text-align: center;
  font-size: 1.15em;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 60px;
  color: #f0f0f0;
}

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

.page-about__team-member {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
  min-height: 400px; /* Ensure similar height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__member-photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 4px solid #017439;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-about__member-name {
  font-size: 1.7em;
  margin-bottom: 10px;
  color: #017439;
  font-weight: 600;
}

.page-about__member-role {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  flex-grow: 1;
}

.page-about__responsible-gambling-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  color: #333333;
  text-align: center;
}

.page-about__responsible-gambling-section .page-about__paragraph {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-about__cta-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

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

.page-about__cta-section .page-about__paragraph {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

/* Common styles for sections */
.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

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

  .page-about__sub-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__card {
    padding: 25px;
    min-height: auto;
  }

  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px;
  }

  .page-about__card-title {
    font-size: 1.5em;
  }

  .page-about__history-section .page-about__content-wrapper {
    flex-direction: column;
  }

  .page-about__image-right {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-top: 30px;
    min-height: 200px;
  }

  .page-about__sub-title {
    font-size: 1.6em;
  }

  .page-about__paragraph {
    font-size: 0.95em;
  }

  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__value-item,
  .page-about__team-member {
    padding: 25px;
    min-height: auto;
  }

  .page-about__value-icon,
  .page-about__member-photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure min size is kept */
    min-height: 200px; /* Ensure min size is kept */
  }

  .page-about__value-title {
    font-size: 1.4em;
  }

  .page-about__team-intro {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* General container adaptation for mobile to prevent overflow */
  .page-about__container,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__team-section,
  .page-about__responsible-gambling-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Global image responsiveness for content area */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}

/* Video responsiveness (if any, though none explicitly in this content) */
.page-about video,
.page-about__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}