/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
}

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

.page-about__bg-dark {
  background-color: #0A192F; /* Main brand dark color */
  color: #ffffff;
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.8em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-about__section-title--light {
  color: #FFD700;
}

.page-about__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-about__intro-text--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #0A192F;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

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

.page-about__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color */
  color: #0A192F; /* Main color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

/* Story Section */
.page-about__story-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-about__story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__story-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
}

.page-about__story-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__card--light {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__card--light .page-about__card-title {
  color: #0A192F;
}

.page-about__card p {
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-about__card--light p {
  color: #555555;
}

/* Core Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

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

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

.page-about__value-icon {
  width: 250px; /* Min size 200px */
  height: 188px; /* Maintain aspect ratio for 400x300 */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-item p {
  font-size: 1em;
  color: #666666;
}

/* Offer Section */
.page-about__offer-section {
  padding: 80px 0;
}

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

.page-about__card-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-about__card-button:hover {
  background-color: #e6c200;
}

/* Commitment Section (Responsible Gaming) */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-about__commitment-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__commitment-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
}

.page-about__commitment-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

/* Call to Action Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-button--gold {
  background-color: #FFD700;
  color: #0A192F;
  font-size: 1.5em;
  padding: 18px 40px;
  border-radius: 10px;
}

.page-about__cta-button--gold:hover {
  background-color: #e6c200;
  transform: translateY(-5px);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__story-grid,
  .page-about__commitment-content {
    grid-template-columns: 1fr 1fr; /* Two columns for larger screens */
  }
  .page-about__story-grid:nth-child(odd) {
    grid-template-areas: "text image";
  }
  .page-about__story-grid:nth-child(even) {
    grid-template-areas: "image text";
  }
  .page-about__story-text { grid-area: text; }
  .page-about__story-image-wrapper { grid-area: image; }

  .page-about__commitment-content:nth-child(odd) {
    grid-template-areas: "text image";
  }
  .page-about__commitment-content:nth-child(even) {
    grid-template-areas: "image text";
  }
  .page-about__commitment-text { grid-area: text; }
  .page-about__commitment-image-wrapper { grid-area: image; }

  .page-about__hero-section {
    flex-direction: row;
    padding: 100px 20px;
  }
  .page-about__hero-content {
    text-align: left;
    margin-right: 50px;
    margin-bottom: 0;
  }
  .page-about__hero-image-wrapper {
    margin-top: 0;
  }

  .page-about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__value-title {
    font-size: 1.3em;
  }

  /* Ensure images are responsive and do not cause horizontal scroll */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__hero-image,
  .page-about__story-image,
  .page-about__value-icon,
  .page-about__commitment-image {
    max-width: 100%;
    height: auto;
  }

  /* Content area overflow prevention */
  .page-about {
    overflow-x: hidden;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section,
  .page-about__story-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__offer-section,
  .page-about__commitment-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__hero-content {
    margin-bottom: 30px;
  }
  .page-about__hero-image-wrapper {
    margin-top: 30px;
  }
  .page-about__cta-button--gold {
    font-size: 1.2em;
    padding: 15px 30px;
  }
}