/* style/about.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #007bff;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light); /* Assuming shared.css sets body to light or white */
}

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

.page-about__heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-about__heading--white {
  color: var(--text-light);
}

.page-about__sub-heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__sub-heading--white {
  color: var(--text-light);
}

.page-about__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__paragraph--white {
  color: rgba(255, 255, 255, 0.9);
}

.page-about a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 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: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker blue gradient */
  color: var(--text-light);
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Limit image width in hero for better composition */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: none;
}

.page-about__cta-button:hover {
  background: #ffdb58; /* Slightly lighter yellow */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Mission and Vision */
.page-about__mission-vision {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

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

.page-about__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-about__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

/* History Section */
.page-about__history {
  padding: 60px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light);
  text-align: center;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 50px;
  padding-bottom: 50px;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  top: 0;
}

.page-about__timeline-item {
  width: 80%;
  padding: 20px;
  margin-bottom: 40px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  position: relative;
  text-align: left;
}

.page-about__timeline-item:nth-child(odd) {
  align-self: flex-start;
  margin-right: 50%;
}

.page-about__timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -30px;
}

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

.page-about__history-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}

/* Values Section */
.page-about__values {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

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

.page-about__value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-about__values-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Offerings Section */
.page-about__offerings {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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