/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjusted padding to accommodate header offset */
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:mobile,gaming,platform,39go99,vietnam]') no-repeat center center/cover;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-about__content-section {
  padding: 80px 0;
}

.page-about__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
}

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

.page-about__light-bg .page-about__section-title {
  color: #017439;
}

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

.page-about__grid-item {
  text-align: center;
}

.page-about__grid-item .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__dark-bg .page-about__sub-title {
  color: #ffffff;
}

.page-about__text {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: left;
}

.page-about__dark-bg .page-about__text {
  color: #f0f0f0;
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #017439;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 30px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 30px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: #017439;
  border: 2px solid #ffffff;
  top: 28px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -8px;
}

.page-about__timeline-year {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__timeline-text {
  font-size: 1em;
  color: #f0f0f0;
}

.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-color: #f5f5f5;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__value-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__value-text {
  font-size: 0.95em;
  line-height: 1.6;
}

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

.page-about__product-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-about__product-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
}

.page-about__product-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-title a:hover {
  color: #017439;
}

.page-about__product-text {
  font-size: 0.9em;
  color: #f0f0f0;
  padding: 0 20px 20px;
  line-height: 1.6;
}

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

.page-about__feature-card {
  background-color: #f5f5f5;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__feature-card .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-about__feature-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-about__support-flex {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__support-item {
  flex: 1 1 300px;
  text-align: center;
  padding: 20px;
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-about__support-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__support-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-about__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-about__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}