/* style/about.css */

:root {
  --primary-color: #1A2B4C;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for page-about, considering body is dark */
  background-color: var(--bg-dark); /* Ensures consistency with body if not already set by shared */
}

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

.page-about__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherits color from parent section */
  line-height: 1.2;
}

.page-about h2 {
  margin-top: 60px;
  margin-bottom: 30px;
}

.page-about h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: inherit;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-about ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
  font-size: 17px;
}

.page-about li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-about__main-title {
  font-size: 52px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 20px;
  color: var(--text-on-dark);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-about__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__grid-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-on-light);
}

.page-about__grid-item h3 {
  color: var(--primary-color);
  font-size: 28px;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 18px;
}

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

.page-about__milestone-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  border-left: 5px solid var(--secondary-color);
}

.page-about__milestone-year {
  color: var(--secondary-color);
  font-size: 22px;
  margin-bottom: 10px;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
}

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

.page-about__advantage-card {
  background: #ffffff;
  color: var(--text-on-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-about__card-title {
  color: var(--primary-color);
  font-size: 26px;
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-about__responsible-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 18px;
}

/* Technology Section */
.page-about__technology-section {
  padding: 80px 0;
}

.page-about__technology-section .page-about__container ul {
  list-style: inside square;
  padding-left: 0;
  margin-top: 20px;
  font-size: 17px;
}

.page-about__technology-section .page-about__container li {
  margin-bottom: 10px;
}

/* Community Section */
.page-about__community-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__community-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum size */
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum size */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 44px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
}

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

  .page-about__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-about__content-grid,
  .page-about__advantages-grid,
  .page-about__milestones {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__grid-item,
  .page-about__advantage-card,
  .page-about__milestone-item {
    padding: 25px;
    text-align: center;
  }

  .page-about__grid-item h3 {
    font-size: 24px;
  }

  .page-about__card-title {
    font-size: 22px;
  }

  .page-about__responsible-list li {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* Image responsiveness for all images within .page-about */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    min-height: 200px; /* Maintain minimum height */
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-image,
  .page-about__card-image,
  .page-about__community-image,
  .page-about__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    object-fit: cover;
  }

  .page-about__mission-section,
  .page-about__history-section,
  .page-about__advantages-section,
  .page-about__responsible-gaming-section,
  .page-about__technology-section,
  .page-about__community-section,
  .page-about__contact-cta-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 30px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about p, .page-about li {
    font-size: 15px;
  }
  .page-about__grid-item h3 {
    font-size: 22px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__milestone-year {
    font-size: 20px;
  }
}