/* --- HOMEPAGE SPECIFIC CSS (MANDATORY INCLUSION) --- */
@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;
  }
  .page-about__promo-strip { /* Placeholder for homepage promo strip */
    margin-top: 16px;
  }
  .page-about__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-about__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-about__hot-games-item-name,
  .page-about__hot-games-item-rtp,
  .page-about__hot-games-item-description { /* Placeholder for homepage hot games */
    display: block;
    text-align: center;
  }
}

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

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #017439; /* Brand color background for hero */
  color: #FFFFFF;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  padding: 0 15px 40px;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H1 */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #FFFF00;
}

.page-about__btn-secondary:hover {
  background: #FFFF00;
  color: #C30808;
}

/* Section Titles and Intros */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-about__dark-section .page-about__section-title {
  color: #FFFFFF;
}

.page-about__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-about__dark-section .page-about__section-intro {
  color: #f0f0f0;
}

/* Mission Values Section */
.page-about__mission-values-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__value-icon {
  width: 100px;
  height: 75px; /* Adjusted to maintain aspect ratio and min size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__value-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-about__value-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #017439;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.page-about__timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-description {
  text-align: right;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-description {
  text-align: left;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #017439;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: 700;
  color: #017439;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  white-space: nowrap;
}

.page-about__timeline-description {
  width: 45%;
  padding: 15px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 1em;
  color: #555555;
}

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

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

.page-about__feature-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #FFFFFF;
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-about__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
  display: block;
}

.page-about__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #017439;
  padding: 20px 20px 10px;
}

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
}

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
  background: #017439; /* Brand primary color for dark background */
  color: #FFFFFF;
}

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

.page-about__security-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: background 0.3s ease;
}

.page-about__security-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-about__security-icon {
  width: 150px;
  height: 112px; /* Adjusted to maintain aspect ratio and min size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__security-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-about__security-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__security-description a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-about__security-description a:hover {
  color: #FFD700;
}

/* Responsibility Section */
.page-about__responsibility-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.page-about__responsibility-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-about__responsibility-text {
  flex: 1;
}

.page-about__responsibility-image {
  flex: 1;
  text-align: center;
}

.page-about__responsibility-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
}

.page-about__responsibility-text p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #555555;
}

.page-about__responsibility-text a {
  color: #017439;
  text-decoration: underline;
}