/* style/about.css */

/* --- Base Styles --- */
.page-about {
  color: var(--text-main-color, #FFF3E6); /* Use light text on dark background */
  background-color: var(--bg-color, #0D0E12); /* Main background color */
  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.5em;
  font-weight: 700;
  color: var(--primary-color, #FF8C1A);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 20px;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main-color, #FFF3E6);
}

.e28bet-highlight {
  color: var(--primary-color, #FF8C1A);
  font-weight: bold;
}

/* --- 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: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-color, #0D0E12);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

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

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

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Use clamp for H1 */
  font-weight: 800;
  color: var(--primary-color, #FF8C1A);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--auxiliary-color, #FFA53A) 0%, var(--deep-orange-color, #D96800) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange-color, #D96800) 0%, var(--auxiliary-color, #FFA53A) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color, #FF8C1A);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

.page-about__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__image-text-block .page-about__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__values-list {
  list-style: none;
  padding-left: 0;
}

.page-about__values-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-main-color, #FFF3E6);
}

.page-about__values-list li::before {
  content: '✓';
  color: var(--primary-color, #FF8C1A);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* --- Our Story Section --- */
.page-about__our-story-section {
  padding: 80px 0;
  background-color: var(--card-bg-color, #17191F); /* Darker background for contrast */
}

.page-about__our-story-section .page-about__section-title {
  color: var(--primary-color, #FF8C1A);
}

.page-about__our-story-section .page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--bg-color, #0D0E12);
}

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

.page-about__feature-card {
  background-color: var(--card-bg-color, #17191F);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color, #FFF3E6);
}

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

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px; /* Enforce minimum size for content images */
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color, #FF8C1A);
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1em;
  color: var(--text-main-color, #FFF3E6);
}

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

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

.page-about__responsible-gaming-section .page-about__section-title {
  color: var(--primary-color, #FF8C1A);
}

.page-about__responsible-gaming-section .page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Contact CTA Section --- */
.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: var(--bg-color, #0D0E12);
}

.page-about__contact-cta-section .page-about__container {
    text-align: center;
    background-color: var(--card-bg-color, #17191F); /* Dark section background */
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-about__contact-cta-section .page-about__section-title {
    color: var(--primary-color, #FF8C1A);
    margin-bottom: 25px;
}

.page-about__contact-cta-section .page-about__text-block {
    font-size: 1.15em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--text-main-color, #FFF3E6);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__image-text-block {
    flex-direction: column;
  }
  .page-about__image-text-block .page-about__content-image {
    width: 100%;
    min-width: unset; /* Allow shrinking on smaller screens */
  }
  .page-about__image-text-block .page-about__text-content {
    width: 100%;
    min-width: unset;
  }
}

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

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

  .page-about__description {
    font-size: 1em;
  }

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

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

  .page-about__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__mission-vision-section,
  .page-about__our-story-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__contact-cta-section {
    padding: 40px 0;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness (if any, though none explicitly in this page) */
  .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;
  }
  /* Content images and feature icons should scale down */
  .page-about__content-image,
  .page-about__feature-icon {
      min-width: unset !important; /* Allow it to shrink to 100% width on mobile */
      min-height: unset !important;
      width: 100% !important; /* Ensure it takes full width of its container */
      height: auto !important;
  }
}

/* Custom color variables (ensure these are defined in shared.css or here if not global) */
:root {
  --primary-color: #FF8C1A;
  --auxiliary-color: #FFA53A;
  --bg-color: #0D0E12;
  --card-bg-color: #17191F;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

/* Ensure content area images are at least 200px on larger screens */
.page-about__content-image {
    min-width: 200px;
    min-height: 200px;
}