/* style/about.css */

/* Variables */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000; /* From shared.css body background */
  --bg-light: #f8f9fa; /* General light background for cards/sections */
  --border-color: #e0e0e0;
}

/* Base styles for the about page content */
.page-about {
  color: var(--text-light); /* Body background is dark (#000000), so default text is light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* General padding at the bottom */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary-color); /* Dark background for hero */
  color: var(--text-light);
  /* Fixed Header Offset for desktop and mobile */
  padding-top: var(--header-offset, 120px); 
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color); /* Use auxiliary for title highlight */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

.page-about__cta-button--primary {
  background-color: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark text on gold */
}

.page-about__cta-button--primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtly blend with background */
  z-index: 0;
  filter: none; /* Ensure no filter changes color */
}

/* General Container */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Titles and Descriptions */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Highlight titles */
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-light);
  opacity: 0.8;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: var(--bg-dark); /* Dark background */
  padding: 60px 0;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent light background for card */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light); /* Light text on dark card */
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-about__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  filter: none; /* Ensure no filter changes color */
}

/* Values Section */
.page-about__values-section {
  background-color: var(--primary-color); /* Primary color background */
  padding: 80px 0;
  color: var(--text-light);
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-3px);
}

.page-about__value-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Journey Section */
.page-about__journey-section {
  background-color: var(--bg-dark); /* Dark background */
  padding: 80px 0;
  color: var(--text-light);
}

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

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

.page-about__timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
}

.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-year {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  position: absolute;
  top: 20px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  text-align: center;
  z-index: 1;
  box-shadow: 0 0 0 5px var(--bg-dark);
}

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

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

.page-about__timeline-content {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__timeline-content h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-about__journey-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: none; /* Ensure no filter changes color */
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: var(--bg-dark); /* Dark background */
  padding: 80px 0;
  color: var(--text-light);
}

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

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

.page-about__feature-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-icon {
  width: 100px; /* Display size, but placeholder is 200x200 to meet min size requirement */
  height: 100px; /* Display size */
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no filter changes color */
}

.page-about__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: var(--primary-color); /* Primary color background */
  padding: 80px 0;
  color: var(--text-light);
}

.page-about__responsible-content {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: center;
}

.page-about__responsible-content p {
  margin-bottom: 25px;
  font-size: 1.1em;
  opacity: 0.9;
}

.page-about__cta-button--secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  margin-top: 20px;
}

.page-about__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__responsible-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: none; /* Ensure no filter changes color */
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  background-color: var(--bg-dark); /* Dark background */
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
}

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

  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%; /* Ensure full width on mobile */
    max-width: 300px; /* Limit max width for better appearance */
    margin: 10px auto;
    display: block;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important; /* Ensure long words break */
  }
  
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.5em;
  }
  
  .page-about__card-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
  }

  .page-about__values-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-title {
    font-size: 1.3em;
  }

  .page-about__timeline::before {
    left: 18px; /* Adjust for mobile */
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px; /* Adjust for mobile */
    padding-right: 15px;
    left: 0;
    text-align: left;
  }

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

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

  .page-about__timeline-year {
    left: 0;
    top: 10px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.2em;
    box-shadow: 0 0 0 3px var(--bg-dark);
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
    left: 0;
  }

  .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: 0;
  }

  .page-about__journey-image,
  .page-about__responsible-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent overflow */
    padding-right: 15px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-about__feature-icon {
    max-width: 100px !important; /* Ensure icon doesn't stretch too much */
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Global Image and Container Responsive Rules (Must include for all images) */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images are block level for max-width to work */
  filter: none; /* Crucial: No CSS filter changing image color */
}

/* Ensure content containers don't overflow on mobile */
.page-about__section,
.page-about__container,
.page-about__content-grid,
.page-about__values-list,
.page-about__features-grid,
.page-about__timeline {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important; /* Prevent horizontal scroll */
  padding-left: 15px;
  padding-right: 15px;
}

/* Ensure elements within the timeline don't overflow */
.page-about__timeline-item,
.page-about__timeline-content,
.page-about__timeline-year {
  box-sizing: border-box !important;
}

/* Specific overrides for mobile images */
@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__journey-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__contact-cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about__section-title,
  .page-about__section-description {
    padding-left: 15px;
    padding-right: 15px;
  }
}