/* style/about.css */

/* Base styles for page-about */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #ffffff); /* Inherit from shared or default white */
}

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

.page-about__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-about__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background: darken(#EA7C07, 10%);
  border-color: darken(#EA7C07, 10%);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-about__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-about__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333;
  padding: 60px 0;
}

.page-about__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
}

.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__mission-vision .page-about__text-block p {
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.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;
}

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-card p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__feature-card .page-about__btn-secondary {
  align-self: flex-start;
}

.page-about__feature-image-wrapper {
  grid-column: span 2; /* Make image span 2 columns on larger screens */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Games Overview Section */
.page-about__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__game-card h3 {
  color: #26A9E0;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-about__game-card p {
  margin-bottom: 20px;
  color: #555555;
}

.page-about__game-card .page-about__btn-primary,
.page-about__game-card .page-about__btn-secondary {
  margin-top: 10px;
  width: auto; /* Allow buttons to size to content */
  min-width: 150px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__responsible-gaming .page-about__text-block p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__responsible-gaming .page-about__btn-primary {
  margin-top: 20px;
}

/* Customer Support Section */
.page-about__customer-support .page-about__support-info {
  text-align: center;
  margin-bottom: 40px;
}

.page-about__customer-support .page-about__support-info p,
.page-about__customer-support .page-about__support-info ul {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.page-about__customer-support .page-about__support-info ul {
  list-style: none;
  padding: 0;
}

.page-about__customer-support .page-about__support-info li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  position: relative;
  cursor: pointer;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on summary to toggle */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
}

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
  margin-top: 10px;
  width: auto;
  min-width: 150px;
}

/* Image styles */
.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__mission-vision .page-about__content-grid,
  .page-about__responsible-gaming .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-image-wrapper {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-about__hero-section {
    min-height: 400px;
    padding: 10px 0 40px 0;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
  }

  .page-about__hero-content .page-about__btn-primary {
    margin-top: 20px;
  }

  .page-about__feature-grid,
  .page-about__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card,
  .page-about__game-card,
  .page-about__faq-item {
    padding: 20px;
  }

  .page-about__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__games-overview,
  .page-about__responsible-gaming,
  .page-about__customer-support,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .page-about__game-card .page-about__btn-primary,
  .page-about__game-card .page-about__btn-secondary,
  .page-about__faq-answer .page-about__btn-primary,
  .page-about__faq-answer .page-about__btn-secondary {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }
  
  .page-about__game-card {
    flex-direction: column; /* Stack buttons if multiple */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8rem;
  }

  .page-about__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-about__hero-description {
    font-size: 0.95rem;
  }
}