/* style/about.css */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #F0F2F5;
  --text-dark: #1A202C;
  --background-dark: #1A202C;
  --background-light: #FFFFFF;
  --accent-color: #E53E3E; /* A vibrant red for calls to action, contrasting with gold */
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--background-dark);
  line-height: 1.6;
}

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

.page-about-section {
  padding: 60px 0;
  text-align: center;
}

.page-about-section:nth-of-type(even) {
  background-color: #2D3748; /* Slightly lighter dark background for contrast */
}

.page-about h1, .page-about h2, .page-about h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about h1 {
  font-size: 3em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about h2 {
  font-size: 2.5em;
  margin-top: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about h2::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 h3 {
  font-size: 1.8em;
  color: var(--text-light);
  margin-top: 30px;
}

.page-about p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-about a:hover {
  color: #FFEA00; /* Slightly brighter gold on hover */
  text-decoration: underline;
}

.page-about-cta-button, .page-about-secondary-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about-cta-button:hover, .page-about-secondary-cta-button:hover {
  background: #FFEA00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about-secondary-cta-button {
  background: var(--accent-color);
  color: var(--text-light);
}

.page-about-secondary-cta-button:hover {
  background: #FF5555;
}

/* Hero Section */
.page-about-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3A4750 100%);
  padding: 80px 0 40px;
  text-align: center;
}

.page-about-hero .page-about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-about-hero-content {
  max-width: 800px;
}

.page-about-hero-content h1 {
  margin-bottom: 25px;
}

.page-about-hero-content p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 30px;
}

.page-about-hero-image {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

/* Mission & Vision */
.page-about-mission-vision .page-about-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about-mission-vision .page-about-card {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-mission-vision .page-about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about-mission-vision .page-about-card img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about-mission-vision .page-about-card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
}

.page-about-mission-vision .page-about-card p {
  font-size: 1em;
  color: var(--text-light);
}

/* Why Choose Us */
.page-about-why-choose-us .page-about-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about-why-choose-us .page-about-feature-item {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-why-choose-us .page-about-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about-why-choose-us .page-about-feature-item img {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about-why-choose-us .page-about-feature-item h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-about-why-choose-us .page-about-feature-item p {
  font-size: 1em;
  color: var(--text-light);
}

.page-about-why-choose-us .page-about-feature-item ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about-why-choose-us .page-about-feature-item ul li {
  background: #3A4750;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  color: var(--text-light);
  font-size: 0.95em;
  border-left: 3px solid var(--secondary-color);
}

/* History Section */
.page-about-history {
  background-color: var(--primary-color);
}

.page-about-timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.page-about-timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.page-about-timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

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

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

.page-about-timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  right: -9px;
  background-color: var(--secondary-color);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about-timeline-item:nth-child(even)::after {
  left: -9px;
}

.page-about-timeline-year {
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about-timeline-content {
  background-color: #2D3748;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about-timeline-content h4 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-about-timeline-content p {
  font-size: 0.95em;
  color: var(--text-light);
}

/* Responsible Gaming */
.page-about-responsible-gaming img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Contact Section */
.page-about-contact {
  background-color: #2D3748;
  padding-bottom: 80px;
}

.page-about-contact .page-about-contact-info {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-about-contact .page-about-contact-info p {
  margin-bottom: 10px;
}

.page-about-contact .page-about-contact-info a {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about h1 {
    font-size: 2.5em;
  }
  .page-about h2 {
    font-size: 2em;
  }
  .page-about h3 {
    font-size: 1.5em;
  }

  .page-about-hero .page-about-container {
    flex-direction: column;
    text-align: center;
  }

  .page-about-hero-content, .page-about-hero-image {
    max-width: 100%;
  }

  .page-about-timeline::before {
    left: 18px;
  }

  .page-about-timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 15px;
    text-align: left !important;
  }

  .page-about-timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about-timeline-item::after, .page-about-timeline-item:nth-child(even)::after {
    left: 10px;
  }
}

@media (max-width: 768px) {
  .page-about-section {
    padding: 40px 0;
  }
  .page-about h1 {
    font-size: 2em;
  }
  .page-about h2 {
    font-size: 1.8em;
  }
  .page-about p {
    font-size: 1em;
  }
  .page-about-cta-button, .page-about-secondary-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-about-mission-vision .page-about-content-grid,
  .page-about-why-choose-us .page-about-feature-grid {
    grid-template-columns: 1fr;
  }
}