/* CSS Reset & Base Styles from shared.css are assumed */

/* --- Homepage Specific CSS (Mandatory Inclusion per prompt, even for inner page) --- */
@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;
  }
  .page-about__promo-strip {
    margin-top: 16px;
  }
  /* PC layout for other homepage modules (mandatory inclusion) */
  .page-about__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
  }
  .page-about__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .page-about__promo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .page-about__promo-content {
    padding: 15px;
    text-align: left;
  }
  .page-about__promo-title {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
  }
  .page-about__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
  }
  .page-about__hot-game-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
  }
  .page-about__hot-game-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
  }
  .page-about__hot-game-name {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
  }
  .page-about__hot-game-rtp,
  .page-about__hot-game-desc {
    font-size: 0.85em;
    color: #666;
  }
  .page-about__winner-ticker {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 20px auto;
    padding: 10px 16px;
    background: #017439;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
  }
  .page-about__winner-ticker-item {
    display: inline-block;
    margin-right: 30px;
    white-space: nowrap;
  }
}

/* --- General Page-About Styles --- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Assuming shared.css sets a light background for body */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__section-title--light {
  color: #FFFFFF;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

/* Buttons */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.page-about__card {
  background: #FFFFFF;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.6em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about__values-section {
  margin-top: 50px;
  text-align: center;
}

.page-about__sub-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-about__values-list li {
  background: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 5px;
  font-size: 1.05em;
}

.page-about__value-item-title {
  color: #017439;
  display: block;
  margin-bottom: 5px;
  font-size: 1.1em;
}

/* History Section */
.page-about__history-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__history-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F0F0F0;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
}

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

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

.page-about__feature-card {
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

/* Social Responsibility Section */
.page-about__social-responsibility-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__content-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-about__content-block p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #F0F0F0;
}

/* Partners Section */
.page-about__partners-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

/* FAQ Section */
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;
}

.page-about__faq-link {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__faq-link:hover {
  color: #015c2e;
}

/* CTA Section */
.page-about__cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-about__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-about__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

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

  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .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__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.4em;
  }

  .page-about__values-list {
    grid-template-columns: 1fr;
  }

  .page-about__grid-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-title {
    font-size: 1.3em;
  }

  .page-about__content-block {
    padding: 0 15px;
  }

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

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__why-choose-section,
  .page-about__social-responsibility-section,
  .page-about__partners-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  
  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 mobile rules (mandatory inclusion) */
  .page-about__promo-strip-track {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
    overflow-x: hidden;
  }
  .page-about__promo-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  .page-about__promo-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__hot-game-card {
    padding: 10px;
  }
  .page-about__hot-game-name,
  .page-about__hot-game-rtp,
  .page-about__hot-game-desc {
    font-size: 0.9em;
  }
  .page-about__brand-intro {
    display: block;
    padding: 0 15px;
  }
  .page-about__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    z-index: 100;
    padding: 10px 15px;
  }
  body.page-about {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}