:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0; /* Using primary color as dark background for contrast sections */
  --border-light: #e0e0e0;
}

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default body background is white */
}

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

.page-about__text-center {
  text-align: center;
}

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--login-button-color); /* Use a strong accent color */
  border-radius: 2px;
}

.page-about__description-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #555555;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #a7e1f7 100%); /* Light gradient background */
  color: var(--text-light); /* Light text for dark hero background */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  max-width: 800px; /* Constrain image width for better composition */
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light); /* White text for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text-light); /* White text for contrast */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: var(--login-button-color); /* Orange for primary action */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-about__btn-primary:hover {
  background: #D46F00; /* Darken of #EA7C07 */
  border-color: #D46F00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-block {
  display: block;
  width: 100%;
  max-width: 300px; /* Limit width for block buttons */
  margin: 20px auto 0;
}

.page-about__btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Mission &amp; Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--bg-light); /* Light background */
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark); /* Dark text for light card background */
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--bg-dark); /* Dark background */
  color: var(--text-light); /* Light text for dark background */
}

.page-about__values-section .page-about__section-title {
  color: var(--text-light); /* White title for dark section */
}

.page-about__values-section .page-about__section-title::after {
  background-color: var(--secondary-color); /* White line for dark section */
}

.page-about__grid-three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-about__value-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__value-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-title {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* Offerings Section */
.page-about__offerings-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

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

.page-about__content-text {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  text-align: center;
}

.page-about__responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%2326A9E0" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
}

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-about__security-section .page-about__section-title {
  color: var(--text-light);
}

.page-about__security-section .page-about__section-title::after {
  background-color: var(--secondary-color);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

/* Call to Action Bottom */
.page-about__cta-bottom {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-about__cta-bottom .page-about__section-title {
    color: var(--text-light);
}

.page-about__cta-bottom .page-about__section-title::after {
    background-color: var(--secondary-color);
}

.page-about__cta-bottom .page-about__description-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__intro-text {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__grid-two-columns,
  .page-about__grid-three-columns {
    grid-template-columns: 1fr;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column-reverse;
  }
  .page-about__content-text,
  .page-about__content-image {
    flex: none;
    width: 100%;
  }
  .page-about__responsive-image {
    margin-top: 30px;
  }
}

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

  .page-about__hero-image {
    border-radius: 8px;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__btn-block, .page-about__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__description-text {
    font-size: 16px;
  }

  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__offerings-section,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-bottom {
    padding: 50px 0;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__value-item {
    padding: 15px;
  }

  .page-about__value-title {
    font-size: 18px;
  }

  .page-about__feature-list li {
    font-size: 15px;
    padding-left: 25px;
  }

  /* Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-about__container,
  .page-about__card,
  .page-about__value-item,
  .page-about__content-flex,
  .page-about__content-text,
  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove specific padding on container if sections already have it */
  .page-about__container {
    padding: 0; /* sections should handle padding */
  }
  .page-about__mission-vision-section .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__offerings-section .page-about__container,
  .page-about__security-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container,
  .page-about__cta-bottom .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 14px;
    padding: 10px 15px;
  }
}