/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

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

.page-about__section-padding {
  padding: 60px 20px;
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-about__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555;
}

.page-about__section-description--light {
  color: #f0f0f0;
}

.page-about__text-center {
    text-align: center;
}

/* HERO Section */
.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, body handles header offset */
  background-color: #f0f8ff; /* Light background for hero section */
}

.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;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-text {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(38, 169, 224, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(234, 124, 7, 0.4);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: var(--background-light);
}

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

.page-about__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-color-dark);
}

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

.page-about__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__card p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: auto; /* Push image to bottom if content varies */
}

/* Why Choose Us Section */
.page-about__dark-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1c8ac2 100%);
  color: var(--text-color-light);
}

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

.page-about__dark-section .page-about__section-description {
  color: #e0f2f7;
}

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

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

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

.page-about__feature-item img {
  width: 100%;
  
  height: auto;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); /* Allowed for visual effect, not color change */
}

.page-about__feature-title {
  font-size: 22px;
  color: var(--text-color-light);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__feature-item p {
  font-size: 15px;
  color: #e0f2f7;
}

.page-about__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px;
}

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

.page-about__btn-primary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(234, 124, 7, 0.3);
}

.page-about__btn-primary:hover {
  background: #ff8c00;
  border-color: #ff8c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--text-color-light);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Core Values Section */
.page-about__core-values-section {
  background-color: #f9f9f9;
}

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

.page-about__value-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-color-dark);
}

.page-about__value-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-about__value-item p {
  font-size: 15px;
  color: #555;
}

/* Responsible Gaming Section */
.page-about__light-bg {
  background-color: var(--background-light);
}

.page-about__responsible-gaming-section h2 {
  color: var(--primary-color);
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-about__text-block {
  flex: 2;
}

.page-about__text-block h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__text-block p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* FAQ Section */
.page-about__faq-section {
  background-color: #f0f8ff;
}

.page-about__faq-list {
  margin-top: 40px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

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

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555;
  font-size: 16px;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  padding: 80px 20px;
}

.page-about__cta-bottom-section .page-about__cta-button {
    margin-top: 40px;
    padding: 18px 50px;
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__image-block {
    margin-top: 30px;
  }
}

@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 img {
    border-radius: 4px;
  }
  
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-padding {
    padding: 40px 15px;
  }

  .page-about__section-title {
    font-size: 24px;
  }

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

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

  .page-about__card,
  .page-about__feature-item,
  .page-about__value-item {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__value-title {
    font-size: 20px;
  }

  .page-about__card p,
  .page-about__feature-item p,
  .page-about__value-item p {
    font-size: 14px;
  }

  .page-about__text-block h3 {
    font-size: 20px;
  }

  .page-about__text-block p {
    font-size: 14px;
  }

  .page-about__button-group {
      flex-direction: column;
      gap: 15px;
      padding: 0 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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;
  }

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

  .page-about__faq-qtext {
    font-size: 16px;
  }

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

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

  .page-about__cta-bottom-section {
    padding: 60px 15px;
  }

  .page-about__cta-bottom-section .page-about__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }

  /* Mobile image adaptation */
  .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__hero-section .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__button-group {
    padding-left: 0;
    padding-right: 0;
  }
}