/* style/about.css */

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

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

.page-about__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__intro-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

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

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

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

/* Dark Section style - for sections with primary brand color background */
.page-about__dark-section {
  background: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
}

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

/* Mission Section */
.page-about__mission-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Values Section */
.page-about__values-section {
  background: #0a0a0a; /* Ensure contrast with body background */
  padding: 60px 20px;
}

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

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

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

.page-about__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* History Section */
.page-about__history-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Offerings Section */
.page-about__offerings-section {
  background: #0a0a0a; /* Ensure contrast with body background */
  padding: 60px 20px;
}

.page-about__offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__offering-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__offering-card .page-about__card-title {
  color: #26A9E0;
}

.page-about__offering-card .page-about__btn-secondary {
  margin-top: 20px;
  align-self: center;
  width: auto; /* Allow button to size based on content */
  max-width: 100%;
}

/* Security Section */
.page-about__security-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background: #0a0a0a; /* Ensure contrast with body background */
  padding: 60px 20px;
  text-align: center;
}

.page-about__responsible-gaming-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__responsible-gaming-section .page-about__btn-primary {
  margin-top: 30px;
  margin-right: 0;
}

/* Team Section */
.page-about__team-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__team-member {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #26A9E0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__member-role {
  font-size: 0.9rem;
  color: #f0f0f0;
}

/* Contact CTA Section */
.page-about__contact-cta {
  background: #0a0a0a; /* Ensure contrast with body background */
  padding: 60px 20px;
  text-align: center;
}

.page-about__contact-cta .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2rem;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
}

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

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

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__intro-description {
    font-size: 1rem;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    margin-right: 0;
    margin-bottom: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__mission-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__offerings-section,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__image,
  .page-about__hero-image,
  .page-about__team-photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__values-grid,
  .page-about__offerings-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card,
  .page-about__offering-card,
  .page-about__team-member {
    padding: 25px;
  }

  .page-about__team-photo {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.5rem;
  }

  .page-about__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-about__value-card,
  .page-about__offering-card,
  .page-about__team-member {
    padding: 20px;
  }
}