/* Base styles for About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy */
}

.page-about__container {
  max-width: 1200px;
  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: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #AFC4E8; /* Text Secondary */
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #08162B; /* Deep Navy */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  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: 900px;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.1;
}

/* About Us Intro Section */
.page-about__about-us-intro {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
  color: #F3F8FF;
}

.page-about__about-us-intro p {
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.7;
  color: #AFC4E8;
  text-align: justify;
}

/* Vision and Mission Section */
.page-about__vision-mission-section {
  background-color: #08162B; /* Deep Navy */
  padding: 60px 0;
}

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

.page-about__card {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #F3F8FF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-about__card p {
  font-size: 16px;
  line-height: 1.6;
  color: #AFC4E8;
}

/* Core Values Section */
.page-about__values-section {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
}

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #244D84;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

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

.page-about__value-item p {
  font-size: 16px;
  color: #AFC4E8;
  line-height: 1.6;
}

/* Game Categories Section */
.page-about__games-section {
  background-color: #08162B; /* Deep Navy */
  padding: 60px 0;
}

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

.page-about__game-card {
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #244D84;
  border-radius: 10px;
  text-align: center;
}

.page-about__game-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__game-title {
  font-size: 20px;
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-about__game-card p {
  font-size: 15px;
  color: #AFC4E8;
  margin-bottom: 20px;
}

.page-about__btn-tertiary {
  display: inline-block;
  padding: 10px 25px;
  background-color: #1D5FD1; /* Auxiliary color */
  color: #F3F8FF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__btn-tertiary:hover {
  background-color: #2B73F6;
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
  color: #F3F8FF;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-about__commitment-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #AFC4E8;
}

.page-about__list-icon {
  color: #4FA8FF; /* Glow */
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #08162B; /* Deep Navy */
  padding: 60px 0;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}

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;
  color: #F3F8FF;
}

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: rgba(29, 95, 209, 0.2); /* Slightly lighter secondary color */
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  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: rgba(29, 95, 209, 0.1); /* Lighter secondary color background */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8;
}

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

/* Contact CTA Section */
.page-about__contact-cta {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
  text-align: center;
}

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

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

.page-about__cta-buttons--centered {
  justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 150px;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 59, 122, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(17, 59, 122, 0.6);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #F3F8FF;
  border: 2px solid #1D5FD1; /* Auxiliary color */
}

.page-about__btn-secondary:hover {
  background-color: #1D5FD1;
  color: #F3F8FF;
}

/* Global image and button responsive rules for mobile */
.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;
}

/* Responsive Styles */
@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;
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 36px;
  }

  .page-about__description {
    font-size: 16px;
  }

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

  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }

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

  .page-about__game-categories {
    grid-template-columns: 1fr;
  }

  .page-about__commitment-list li {
    font-size: 16px;
  }

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

  .page-about__faq-qtext {
    font-size: 16px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Homepage specific media query for 768px - as per strict instructions */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    display: flex; /* Ensure flex for scroll or wrap */
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .page-about__promo-strip-card {
    width: calc(50% - 10px); /* Two columns */
    flex-shrink: 0;
  }

  .page-about__promo-strip-card img {
    
    object-fit: cover;
  }

  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-about__hot-games-card {
    text-align: center;
  }

  .page-about__hot-games-card img {
    width: 100%;
    height: auto;
  }

  .page-about__hot-games-name,
  .page-about__hot-games-rtp,
  .page-about__hot-games-desc {
    display: none; /* Hide details on mobile as per requirement for hot games */
  }

  .page-about__hero-brand {
    display: none !important; /* Hidden on mobile/tablet */
  }

  .page-about__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
  }

  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__game-card,
  .page-about__value-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

}