/* style/about.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #005f2f;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --background-color-dark: #017439;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
}

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

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

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

.page-about__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

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

/* 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, header offset handled by body */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 400px;
  color: var(--text-color-light);
}

.page-about__hero-container {
  position: relative;
  max-width: 1000px;
  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%;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--button-text-yellow); /* Yellow for high contrast */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-text {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-about__btn-register {
  background: var(--button-register);
  color: var(--button-text-yellow);
}

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

.page-about__btn-login {
  background: var(--button-login);
  color: var(--button-text-yellow);
}

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

/* Content Wrappers */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-wrapper--reversed {
  flex-direction: row-reverse;
}

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

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

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-color-dark);
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum size */
}

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

/* Core Values Section */
.page-about__core-values {
  background: var(--background-color-dark);
  color: var(--text-color-light);
}

.page-about__core-values .page-about__section-title {
  color: var(--button-text-yellow);
}

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-about__value-title {
  font-size: 22px;
  color: var(--button-text-yellow);
  margin-bottom: 15px;
}

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

/* Game Offerings Section */
.page-about__game-offerings {
  background: var(--background-color-light);
}

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

.page-about__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-about__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__card-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-about__card-link {
  text-decoration: none;
  color: inherit;
}

.page-about__game-card p {
  font-size: 15px;
  color: #666;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-about__btn-secondary {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-color-light);
  padding: 10px 20px;
  margin: 0 20px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

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

/* Security Commitment Section */
.page-about__security-commitment {
  background: var(--background-color-dark);
  color: var(--text-color-light);
}

.page-about__security-commitment .page-about__section-title {
  color: var(--button-text-yellow);
}

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

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

.page-about__security-title {
  font-size: 22px;
  color: var(--button-text-yellow);
  margin-bottom: 15px;
}

.page-about__security-item p {
  font-size: 15px;
  color: #e0e0e0;
}

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

.page-about__btn-primary {
  display: inline-block;
  background: var(--button-register);
  color: var(--button-text-yellow);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  margin: 0 10px;
}

.page-about__btn-primary:hover {
  background: #a00707;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__section-title {
  color: var(--button-text-yellow);
}

.page-about__responsible-gaming .page-about__section-description {
  color: #e0e0e0;
}

.page-about__responsible-gaming .page-about__text-block h3 {
  color: var(--button-text-yellow);
}

.page-about__responsible-gaming .page-about__text-block p {
  color: #e0e0e0;
}

/* Customer Support Section */
.page-about__customer-support {
  background: var(--background-color-light);
}

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

.page-about__support-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

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

.page-about__support-item p {
  font-size: 15px;
  color: #666;
}

/* Future Vision Section */
.page-about__future-vision .page-about__text-block h3 {
  color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq {
  background: var(--background-color-light);
  padding-bottom: 80px;
}

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

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: 16px;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-about__faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

.page-about__faq-answer .page-about__btn-primary {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-wrapper--reversed {
    flex-direction: column;
  }

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

  .page-about__image-block {
    margin-top: 30px;
  }
}

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

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

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

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

  .page-about__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-about__game-card img {
    
  }

  .page-about__game-card p {
    font-size: 14px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
    margin: 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

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

  /* Ensure all image containers have correct mobile styling */
  .page-about__section,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__values-grid,
  .page-about__value-item,
  .page-about__game-grid,
  .page-about__game-card,
  .page-about__security-grid,
  .page-about__security-item,
  .page-about__support-grid,
  .page-about__support-item,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}