/* Body background color from shared.css is var(--color-background).
   Assuming a dark background based on provided custom colors: #08160F.
   Therefore, text colors for general content will be light. */

/* Base styles for page-about */
.page-about {
  color: var(--text-main, #F2FFF6); /* Default light text color */
  background-color: var(--bg-main, #08160F); /* Default dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-about__dark-section {
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__light-bg {
  background-color: var(--card-bg, #11271B); /* Using Card BG for lighter sections */
  color: var(--text-main, #F2FFF6);
}

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
}

.page-about__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary, #A7D9B8);
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as per H1 rule */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
}

.page-about__description {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-main, #F2FFF6);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to width */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-about__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--bg-main, #08160F);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-link {
  background: none;
  color: var(--glow, #57E38D);
  border: 1px solid var(--glow, #57E38D);
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  background: var(--glow, #57E38D);
  color: var(--bg-main, #08160F);
}

/* Core Values Section */
.page-about__core-values {
  padding-bottom: 80px;
}

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

.page-about__value-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: var(--card-bg, #11271B);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
}

.page-about__value-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Constrain icon size */
  margin: 0 auto 20px;
  display: block;
  border-radius: 5px;
}

.page-about__value-title {
  font-size: 24px;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-about__value-description {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
  flex-grow: 1; /* Allow description to take available height */
}

/* History Section */
.page-about__history-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--divider, #1E3A2A);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
}

.page-about__timeline-item:nth-child(odd) {
  align-self: flex-start;
  padding-right: 40px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-left: 40px;
  text-align: left;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 10px;
  height: 10px;
  background-color: var(--glow, #57E38D);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -5px;
}

.page-about__timeline-item:nth-child(even)::before {
  left: -5px;
}

.page-about__timeline-year {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-about__timeline-description {
  color: var(--text-secondary, #A7D9B8);
}


/* Security Section */
.page-about__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-about__feature-item {
  padding: 25px;
  border-radius: 10px;
  background-color: var(--card-bg, #11271B);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__feature-title {
  font-size: 20px;
  color: var(--glow, #57E38D);
  margin-bottom: 10px;
}

.page-about__feature-item p {
  color: var(--text-secondary, #A7D9B8);
}

/* Diversity Section (Game Types) */
.page-about__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__game-type-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--card-bg, #11271B);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__game-type-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
  display: block;
}

.page-about__game-type-title {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-about__game-type-item p {
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 15px;
}

/* Social Responsibility */
.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
}

.page-about__responsibility-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-about__responsibility-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
}

/* Future Section */
.page-about__future-vision {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-about__future-image {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__future-content {
  flex: 1;
  min-width: 300px;
}

.page-about__future-title {
  font-size: 24px;
  color: var(--glow, #57E38D);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__future-content p {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}