/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

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

.page-about__section:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.page-about__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
}

.page-about__main-title {
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

.page-about__list {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-about__list li {
  margin-bottom: 8px;
}

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

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #ffffff;
}

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

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

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 15px;
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
}

/* History and Mission */
.page-about__milestone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

@media (min-width: 769px) {
  .page-about__milestone-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-about__milestone-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-about__milestone-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: center;
}

.page-about__list-year {
  font-weight: bold;
  color: #000000;
}

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

/* Why Choose Section */
.page-about__why-choose .page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-title {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-about__card-text {
  font-size: 15px;
  color: #555;
  text-align: justify;
}

/* Commitment Section */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

@media (min-width: 769px) {
  .page-about__commitment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-about__commitment-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__commitment-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Technology Section */
.page-about__tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

@media (min-width: 769px) {
  .page-about__tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-about__tech-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__tech-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

/* 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: #555;
}

/* Contact CTA Section */
.page-about__contact-cta {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  padding: 60px 0;
}

.page-about__contact-cta .page-about__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__contact-cta .page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 18px;
}

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

.page-about__contact-cta .page-about__btn-primary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-about__contact-cta .page-about__btn-primary:hover {
  background-color: #e0f2f7;
  color: #1e87c0;
  border-color: #e0f2f7;
}

.page-about__contact-cta .page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-about__contact-cta .page-about__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Global image and button responsiveness for mobile */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 28px;
  }

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

  .page-about__hero-description,
  .page-about__text-block,
  .page-about__card-text,
  .page-about__contact-cta .page-about__text-block {
    font-size: 15px;
  }

  .page-about__milestone-title,
  .page-about__feature-title,
  .page-about__commitment-title,
  .page-about__tech-title {
    font-size: 20px;
  }

  .page-about__container {
    padding: 15px;
  }

  .page-about__section {
    padding: 30px 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; }

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

  .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 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-content {
    padding: 0 15px;
  }

  .page-about__hero-description {
    text-align: left;
  }

  .page-about__milestone-item {
    padding: 20px;
  }

  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__tech-item {
    padding: 20px;
  }

  .page-about__contact-cta {
    padding: 40px 0;
  }
}

/* Homepage specific CSS snippets - REQUIRED to be included verbatim as per instructions */
@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;
  }
}

/* The following are general homepage-like elements that are explicitly requested to be included in the CSS */
.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;}

/* Additional mobile rules for homepage elements (if they were present on this page) - as per prompt for 768px */
@media (max-width:768px){
  .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);
  }
  /* The brand intro and winner ticker are not part of about.html, so no specific rules are needed here based on the content */
}