/* Shared body padding-top is assumed from shared.css */

/* Base styles for page-about */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main for dark body background */
  background-color: var(--deep-navy); /* From shared.css, #08162B */
}

.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: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-about__hero-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: 52px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 20px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E;
}

.page-about__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

/* Mission Values Section */
.page-about__mission-values-section {
  padding: 80px 0;
  background-color: #10233F; /* Card BG */
}

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

.page-about__value-card {
  background-color: rgba(17, 59, 122, 0.3); /* Slightly transparent main color */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #F3F8FF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px #4FA8FF); /* Glow */
}

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

.page-about__value-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
}

.page-about__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.page-about__feature-title {
  font-size: 28px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

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

.page-about__cta-buttons--center {
  margin-top: 60px;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #10233F; /* Card BG */
}

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

.page-about__team-text {
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: rgba(29, 95, 209, 0.1); /* Slightly lighter auxiliary color */
}

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: rgba(17, 59, 122, 0.2); /* Slightly transparent main color */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
}

.page-about__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* Homepage specific styles - required to be included */
  .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;
  }

  /* About page specific adjustments */
  .page-about__main-title {
    font-size: clamp(36px, 8vw, 48px);
  }
  .page-about__hero-description {
    font-size: clamp(18px, 4vw, 20px);
  }
  .page-about__grid-3-col, .page-about__grid-2-col {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  /* Homepage specific styles - required to be included */
  .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;
  }

  /* About page specific adjustments */
  .page-about__section-title {
    font-size: 42px;
  }
  .page-about__main-title {
    font-size: 60px;
  }
  .page-about__hero-description {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  /* Homepage specific styles - required to be included */
  .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);
  }

  /* Promo Strip */
  .page-about__promo-strip {
    padding: 30px 0;
  }
  .page-about__promo-strip-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .page-about__promo-card {
    width: calc(50% - 15px);
    max-width: 100%;
    flex-basis: auto;
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }
  .page-about__promo-card-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
  }
  .page-about__promo-card-title {
    font-size: 18px;
  }
  .page-about__promo-card-desc {
    font-size: 14px;
  }
  .page-about__promo-card-button {
    width: 100%;
    margin-top: 10px;
  }

  /* Hot Games */
  .page-about__hot-games {
    padding: 40px 0;
  }
  .page-about__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-about__hot-games-card {
    padding: 15px;
  }
  .page-about__hot-games-image {
    height: 120px;
  }
  .page-about__hot-games-name,
  .page-about__hot-games-rtp,
  .page-about__hot-games-desc {
    display: none;
  }
  .page-about__hot-games-button {
    width: 100%;
    font-size: 14px;
    padding: 10px 15px;
  }

  /* Brand Intro (if visible on mobile) */
  .page-about__brand-intro {
    padding: 40px 15px;
  }
  .page-about__brand-intro-content {
    text-align: center;
  }
  .page-about__brand-intro-image {
    margin: 20px auto;
  }

  /* Winner Ticker */
  .page-about__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 10px 15px;
    font-size: 14px;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed footer */
  }
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  /* All images base responsive style */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers base responsive style */
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__value-card,
  .page-about__feature-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons base responsive style */
  .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;
  }
  
  /* Button containers mobile adaptation */
  .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; /* For vertical stacking of buttons */
  }

  /* About Page Specific */
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__section-description {
    font-size: 16px;
  }
  .page-about__value-title, .page-about__feature-title {
    font-size: 22px;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}

/* General styles for game trial overlay/start */
.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.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F3F8FF;
  font-family: Arial, sans-serif;
  transition: opacity 0.3s ease;
}
.page-about__reward-modal[hidden] {
  display: none;
  opacity: 0;
}
.page-about__reward-modal-content {
  background: #10233F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
.page-about__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #F2C14E; /* Gold */
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.page-about__reward-modal-close:hover {
  color: #ffffff;
}
.page-about__reward-modal h3 {
  font-size: 28px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}
.page-about__reward-modal p {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}
.page-about__reward-modal-button {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  transition: opacity 0.3s ease;
}
.page-about__reward-modal-button:hover {
  opacity: 0.9;
}

/* Dark section specific color for text */
.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__value-title {
  color: #F2C14E; /* Gold */
}
.page-about__dark-section .page-about__section-description,
.page-about__dark-section .page-about__value-text {
  color: #AFC4E8; /* Text Secondary */
}