/* CSS file (style/about.css) */

/* Common styles for page-about */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background: var(--bg-color, #F5F7FA);
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
}

.page-about__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #E53935;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #E53935;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
  background: #E53935;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-content {
  margin-bottom: 30px;
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

/* Story Section */
.page-about__story-section {
  padding: 80px 0;
  background: #F5F7FA;
  color: #333333;
}

.page-about__story-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__story-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-about__story-text p {
  margin-bottom: 15px;
}

.page-about__story-image-wrapper {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
  border-radius: 10px;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background: #FF5A4F;
  color: #ffffff;
}

.page-about__mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__mv-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.page-about__mv-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__mv-card p {
  font-size: 16px;
  line-height: 1.7;
}

.page-about__mv-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Core Values Section */
.page-about__values-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

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

.page-about__value-item {
  background: #F5F7FA;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #E0E0E0;
}

.page-about__value-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-about__value-item p {
  font-size: 16px;
  line-height: 1.7;
}

.page-about__values-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background: #E53935;
  color: #ffffff;
}

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

.page-about__choice-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__choice-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__choice-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__why-choose-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background: #F5F7FA;
  color: #333333;
  text-align: center;
}

.page-about__rg-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__rg-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 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: #333333;
}
.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;
  color: #333333;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background: #E53935;
  color: #ffffff;
  text-align: center;
}

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

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

/* Global Image and Button Responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Homepage-specific game trial CSS (as per strict instruction, even if this is not homepage) */
@media (max-width: 1023px) {
  .page-about__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot {
    display: none !important;
  }
  .page-about__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-about__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-topbar,
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-about__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-about__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot,
  .page-about__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__hero-description {
    font-size: 16px;
  }

  .page-about__story-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__story-image-wrapper {
    max-width: 100%;
  }

  .page-about__story-text,
  .page-about__mv-card p,
  .page-about__value-item p,
  .page-about__choice-item p,
  .page-about__rg-content p,
  .page-about__cta-description {
    font-size: 15px;
  }

  .page-about__mv-grid,
  .page-about__values-grid,
  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__mv-title,
  .page-about__value-title,
  .page-about__choice-title {
    font-size: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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__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;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__container,
  .page-about__card,
  .page-about__section,
  .page-about__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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: 15px; }
  details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }

  /* Homepage specific media queries for other modules (as per instruction) */
  .page-about__promo-strip-track { grid-template-columns: repeat(4,1fr); overflow-x:hidden; }
  .page-about__hot-games-grid { grid-template-columns: repeat(2,1fr); }
  .page-about__brand-intro { display: block; } /* Assuming it was hidden on larger screens for homepage */
  .page-about__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; } /* Example for fixed ticker */
  body { padding-bottom: 50px; } /* Adjust body padding if ticker is fixed */
}

/* Additional homepage specific elements for game trial (as per instruction) */
.page-about__game-trial-overlay{z-index:5;pointer-events:auto;}.page-about__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-about__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-about__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-about__reward-modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;}.page-about__reward-modal[hidden]{display:none;}
.page-about__reward-modal-content { background: #fff; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; width: 90%; position: relative; color: #333; }
.page-about__reward-modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: #666; }
.page-about__reward-modal h3 { color: #E53935; margin-bottom: 15px; font-size: 24px; }
.page-about__reward-modal p { margin-bottom: 20px; }
.page-about--reward-open { overflow: hidden; }