/* Shared body background color variable from shared.css */
/* The body background color is var(--main-bg-color), which is #140C0C (dark). */
/* Therefore, text color for general page content should be light (#FFF1E8 or #ffffff). */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg-color: #2A1212;
  --page-bg-color: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
}

.page-about {
  color: var(--text-main-color); /* Light text for dark body background */
  background-color: var(--page-bg-color);
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 20px;
}

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

.page-about__hero-content {
  padding: 30px 15px;
  text-align: center;
  background-color: var(--page-bg-color);
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-main-color);
}

.page-about__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-about__subtitle {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--gold-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-about__content-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

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

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-about strong {
  color: var(--gold-color);
}

.page-about__values-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-about__values-list li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-main-color);
}

.page-about__values-list li::before {
  content: '✔';
  color: var(--gold-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-about__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--btn-gradient);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-about__cta-button--small {
  padding: 8px 18px;
  font-size: 14px;
  margin-top: 15px;
}

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

.page-about__feature-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  max-width: 400px;
}

.page-about__product-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  width: 100%;
}

.page-about__product-list li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text-main-color);
}

.page-about__product-list li a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-list li a:hover {
  color: var(--primary-color);
}

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

.page-about__team-member {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  color: var(--text-main-color);
}

.page-about__team-photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--gold-color);
}

.page-about__member-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 15px;
  color: var(--text-main-color);
}

.page-about__section-description {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-main-color);
}

.page-about__team-closing {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  max-width: 900px;
  margin: 30px auto 0;
  color: var(--text-main-color);
}

/* FAQ Styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
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: var(--gold-color);
}
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(var(--gold-color-rgb), 0.1); /* Using rgba for hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main-color);
  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: #200E0E;
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* --- General Responsive Styles (Mobile First) --- */

/* Mobile image adaptation */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile button adaptation */
.page-about__cta-button,
.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;
}

/* --- Media Queries --- */

/* Homepage Trial Layout CSS (as required by prompt, even for About Us 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;
  }
}

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

  .page-about__hero-content {
    padding: 20px 10px;
  }

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

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-about__subtitle {
    font-size: 20px;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-about__content-image {
    max-width: 100%;
  }

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__product-list li {
    font-size: 14px;
  }

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

  .page-about__team-photo {
    max-width: 150px;
  }

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

  /* General image and container rules for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-content,
  .page-about__image-block,
  .page-about__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__section {
    padding: 20px 0;
  }
  .page-about__container {
    padding: 0;
  }

  /* Button responsive adaptation for mobile */
  .page-about__cta-button,
  .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;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Homepage-specific elements (as required by prompt for 768px, minimal inclusion for structure) */
  /* These elements are not part of the About Us page's content, but included for CSS structure compliance */
  .page-about__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(2, 1fr) !important; /* Adjust to 2 columns for mobile */
    overflow-x: hidden !important;
    padding: 0 15px;
  }
  .page-about__promo-card { /* Placeholder for homepage promo card */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-about__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 15px;
  }
  .page-about__hot-games-item-name, .page-about__hot-games-item-rtp, .page-about__hot-games-item-desc { /* Hide some text for hot games */
    display: none !important;
  }
  .page-about__brand-intro { /* Placeholder for homepage brand intro */
    padding: 20px 15px;
  }
  .page-about__winner-ticker { /* Placeholder for homepage winner ticker */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999;
    padding: 10px 15px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
}

/* Homepage Trial Layout CSS (as required by prompt, even for About Us page) */
.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 var(--border-color);border-radius:10px;overflow:hidden;}
.page-about__reward-modal{position:fixed;inset:0;z-index:10000;}