/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color on light background */
  background-color: #F5F7FA; /* Custom background color */
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.15rem;
  color: #333333;
  margin-bottom: 30px;
}

/* General Section Styles */
.page-about__section {
  padding: 60px 20px;
  background-color: #F5F7FA; /* Default section background */
}

.page-about__section--mission {
  background-color: #FFFFFF;
}

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

.page-about__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

/* Card Section (Why Choose vh88) */
.page-about__section--why-choose {
  background-color: #F5F7FA; /* Custom background color */
}

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

.page-about__card {
  background-color: #FFFFFF; /* Custom Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid #E0E0E0; /* Custom Border color */
  color: #333333;
}

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

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

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

/* Journey Section */
.page-about__section--journey {
  background-color: #FFFFFF;
}

.page-about__image--large {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Responsible Gaming Section */
.page-about__dark-bg {
  background: #E53935; /* Primary color as background */
  color: #ffffff; /* White text for contrast */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__text-block {
  color: #ffffff;
}

.page-about__dark-bg a {
  color: #FF5A4F; /* Accent color for links */
  text-decoration: underline;
}

/* CTA Section */
.page-about__section--cta {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #F5F7FA;
}

.page-about__flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  .page-about__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__grid-3-cols {
    grid-template-columns: 1fr;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  .page-about__section-title {
    font-size: 1.8rem;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* --- Mobile Image Responsive Adaptation (Mandatory) --- */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-section,
  .page-about__section,
  .page-about__container,
  .page-about__card,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* --- Mobile Button Responsive Adaptation (Mandatory) --- */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.6rem;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
}