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

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

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-about__main-title {
  font-size: 44px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__text-block {
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 20px;
  color: var(--text-dark);
  text-align: left;
}

.page-about__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-about__dark-section .page-about__text-block {
  color: var(--text-light);
}

/* 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: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(11, 87, 138, 0.8)); /* Overlay for text readability */
  overflow: hidden;
}

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

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

.page-about__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

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

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

.page-about__btn-primary:hover {
  background: #1e87bb;
  border-color: #1e87bb;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background: #c26100;
  border-color: #c26100;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Vision & Mission Section */
.page-about__vision-mission-section {
  padding: 80px 0;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.page-about__grid-two-columns .page-about__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__grid-two-columns .page-about__section-title {
  text-align: left;
  font-size: 30px;
  margin-bottom: 15px;
}

.page-about__grid-two-columns .page-about__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section .page-about__text-block {
  margin-bottom: 40px;
}

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

.page-about__feature-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
}

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

.page-about__feature-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-about__feature-description {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

/* Games & Services Section */
.page-about__games-services-section {
  padding: 80px 0;
}

.page-about__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-about__game-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__game-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: var(--button-login);
}

.page-about__game-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Promotions Section */
.page-about__promotions-section .page-about__text-block {
  margin-bottom: 40px;
}

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

.page-about__promo-item {
  background: var(--bg-light-gray);
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 17px;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-about__promo-item strong {
  color: var(--primary-color);
}

/* Security & Support Section */
.page-about__security-support-section {
  padding: 80px 0;
}

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

.page-about__info-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-about__info-title {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__info-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__text-block {
  margin-bottom: 0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  color: var(--text-dark);
}

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: var(--bg-light-gray);
}

.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: 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: var(--bg-light-gray);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-about__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

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

.page-about__cta-bottom-section .page-about__text-block {
  color: var(--text-light);
  margin-bottom: 40px;
}

/* General Image Styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__description {
    font-size: 17px;
  }
  .page-about__text-block {
    font-size: 16px;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__grid-two-columns .page-about__column {
    align-items: center;
  }
  .page-about__grid-two-columns .page-about__section-title {
    text-align: center;
  }
  .page-about__grid-two-columns .page-about__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__main-title {
    font-size: 28px;
    max-width: 100%;
  }
  .page-about__description {
    font-size: 15px;
    max-width: 100%;
  }
  .page-about__section-title {
    font-size: 26px;
  }
  .page-about__text-block,
  .page-about__feature-description,
  .page-about__game-description,
  .page-about__info-description,
  .page-about__promo-item p {
    font-size: 15px;
    max-width: 100%;
    text-align: left;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }
  .page-about__game-grid,
  .page-about__feature-grid,
  .page-about__info-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-card,
  .page-about__game-card,
  .page-about__info-card {
    padding: 25px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-answer p {
    font-size: 15px;
  }
  .page-about__hero-image img,
  .page-about__image-content,
  .page-about__feature-icon,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__container,
  .page-about__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}