/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --button-login-color: #EA7C07;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Body background is white, so text should be dark */
}

.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: 10px; /* Small top padding for hero, body handles header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #4FB2E8 100%);
  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;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.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%;
  max-width: 800px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-about__intro-text {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--button-login-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #E06C00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--dark {
  background: var(--primary-color);
}

.page-about__cta-button--dark:hover {
  background: #1e87b7;
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--button-login-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-about__section-title--white::after {
  background: var(--text-light);
}

.page-about__paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

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

.page-about__mission-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-about__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-item p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-about__why-choose-us {
  padding: 80px 0;
  background: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e87b7 100%);
}

.page-about__reason-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-about__list-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__list-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-about__list-item--white {
  background: rgba(255, 255, 255, 0.15);
}

.page-about__list-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-about__list-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  text-align: left;
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-about__our-values-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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

.page-about__value-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  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-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-about__value-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  max-width: 100%;
  display: block;
}

.page-about__value-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__value-card p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-about__responsible-gaming-section {
  padding: 80px 0;
  background: var(--primary-color);
  background: linear-gradient(135deg, #1e87b7 0%, var(--primary-color) 100%);
}

.page-about__responsible-list {
  list-style: disc;
  padding-left: 25px;
  max-width: 900px;
  margin: 40px auto;
  color: var(--text-light);
}

.page-about__responsible-list .page-about__list-item {
  background: none;
  padding: 8px 0;
  box-shadow: none;
  text-align: left;
  font-size: 1.1rem;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

details.page-about__faq-item .page-about__faq-answer p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-about__intro-text {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-about__paragraph {
    font-size: 1rem;
  }

  .page-about__features-grid, .page-about__values-grid, .page-about__reason-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-about__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-about__intro-text {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 14px 30px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-about__paragraph {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

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

  .page-about__feature-item, .page-about__value-card, .page-about__list-item {
    padding: 25px;
  }

  .page-about__feature-title, .page-about__value-title {
    font-size: 1.3rem;
  }

  .page-about__feature-item p, .page-about__value-card p, .page-about__list-item p {
    font-size: 0.9rem;
  }

  .page-about__responsible-list {
    padding-left: 20px;
  }

  .page-about__responsible-list .page-about__list-item {
    font-size: 0.95rem;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-qtext {
    font-size: 1rem;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  .page-about__faq-answer p {
    font-size: 0.9rem;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section, .page-about__card, .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}