/* General Styling for About Us Page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Main text color for dark background */
  background: var(--bg-color, #140C0C); /* General background color */
  padding-top: 10px; /* Small top padding for first section */
}

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

.page-about__section {
  padding: 40px 0;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #F3C54D; /* Gold for titles */
  line-height: 1.2;
}

.page-about__main-title {
  font-weight: 700;
  text-align: center;
  color: #F3C54D; /* Gold for main title */
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 25px;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-about__intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #FFF1E8;
}

.page-about__hero-section {
  padding: 10px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #140C0C 0%, #2A1212 100%);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  box-shadow: 0 0 15px rgba(255, 176, 74, 0.6);
}

.page-about__btn-secondary {
  background: #2A1212;
  color: #FFF1E8;
  border: 2px solid #F3C54D;
}

.page-about__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
  border-color: #F3C54D;
  box-shadow: 0 0 15px rgba(243, 197, 77, 0.6);
}

.page-about__history-mission .page-about__container,
.page-about__mission-vision .page-about__container,
.page-about__our-team .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #2A1212;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__container--reverse {
  flex-direction: row-reverse;
}

.page-about__content-block {
  flex: 1;
}

.page-about__content-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #FFF1E8;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: 8px;
}

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

.page-about__core-values .page-about__container {
  background: #140C0C;
  padding: 40px 16px;
}

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

.page-about__value-card {
  background: #2A1212;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F3C54D;
}

.page-about__value-title {
  font-size: 24px;
  font-weight: 600;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 16px;
  color: #FFF1E8;
}

.page-about__why-choose .page-about__container {
  background: #2A1212;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.page-about__reason-card {
  background: #140C0C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #6A1E1E;
}

.page-about__reason-title {
  font-size: 22px;
  font-weight: 600;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-about__reason-card p {
  font-size: 16px;
  color: #FFF1E8;
}

.page-about__image-block--full-width {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__social-responsibility .page-about__container {
  background: #140C0C;
  padding: 40px 16px;
}

.page-about__social-responsibility p {
  font-size: 17px;
  margin-bottom: 15px;
  color: #FFF1E8;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__csr-image-wrapper {
  margin-top: 30px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__commitment .page-about__container {
  background: #2A1212;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__commitment p {
  font-size: 17px;
  margin-bottom: 25px;
  color: #FFF1E8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 25px auto 30px;
  max-width: 700px;
  text-align: left;
}

.page-about__commitment-list li {
  background: #140C0C;
  border: 1px solid #6A1E1E;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
  color: #FFF1E8;
}

.page-about__commitment-list li strong {
  color: #F3C54D;
}

.page-about__faq-section .page-about__container {
  background: #140C0C;
  padding: 40px 16px;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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: #3a1a1a;
}

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D;
  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: #140C0C;
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
  font-size: 16px;
}

/* Responsive Styling */
@media (max-width: 1023px) {
  .page-about__history-mission .page-about__container,
  .page-about__mission-vision .page-about__container,
  .page-about__our-team .page-about__container {
    flex-direction: column;
    text-align: center;
  }
  .page-about__image-block {
    order: -1;
    margin-bottom: 20px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section {
    padding: 30px 0;
  }
  .page-about__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding-bottom: 30px;
  }
  .page-about__history-mission .page-about__container,
  .page-about__mission-vision .page-about__container,
  .page-about__our-team .page-about__container,
  .page-about__why-choose .page-about__container,
  .page-about__commitment .page-about__container,
  .page-about__faq-section .page-about__container {
    padding: 25px 15px;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-about__content-block p,
  .page-about__reason-card p,
  .page-about__value-card p,
  .page-about__social-responsibility p,
  .page-about__commitment p,
  .page-about__commitment-list li,
  details.page-about__faq-item .page-about__faq-answer {
    font-size: 15px;
  }
  .page-about__value-title {
    font-size: 20px;
  }
  .page-about__reason-title {
    font-size: 18px;
  }
  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__values-grid,
  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__image-block--full-width,
  .page-about__csr-image-wrapper,
  .page-about__values-grid,
  .page-about__why-choose-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__why-choose-grid .page-about__reason-card {
    padding: 20px;
  }
}

/* Ensure images within content areas are responsive and not too small */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Body background color is from shared.css, assuming it's dark based on custom colors */
.page-about {
  color: #FFF1E8; /* Light text for dark body background */
}

.page-about__card,
.page-about__reason-card,
.page-about__value-card,
.page-about__history-mission .page-about__container,
.page-about__mission-vision .page-about__container,
.page-about__our-team .page-about__container,
.page-about__commitment .page-about__container {
  background: #2A1212; /* Darker background for sections/cards */
  color: #FFF1E8; /* Light text */
}

.page-about__dark-section {
  background: #140C0C;
  color: #FFF1E8;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C; /* Dark text on bright button */
}

.page-about__btn-secondary {
  background: #2A1212;
  color: #FFF1E8; /* Light text on dark button */
  border: 2px solid #F3C54D;
}

/* FAQ Specific CSS */
details.page-about__faq-item .page-about__faq-answer p {
  color: #FFF1E8;
}

/* Placeholder CSS from prompt (not used for About Us, but required in structure) */
/* This section is intentionally left minimal for About Us page as it's not a 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;
  }
}

@media (max-width: 768px) {
  /* Homepage specific styles, not directly for About Us, but kept as required structure */
  .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__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;
}
.page-about__reward-modal-close {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .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;
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
  .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;
  }
}