/* style/about.css */

/* Custom Colors */
:root {
  --page-about-bg: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border: #2E7A4E;
  --page-about-glow: #57E38D;
  --page-about-gold: #F2C14E;
  --page-about-divider: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
  --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --primary-color: #11A84E; /* Main color */
  --secondary-color: #22C768; /* Auxiliary color */
}

.page-about {
  background-color: var(--page-about-bg);
  color: var(--page-about-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

/* --- General Layout & Container --- */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__two-columns {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-about__image-column {
  flex: 1;
  text-align: center;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px); /* H1/H2 font size */
  color: var(--page-about-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--page-about-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__text-block {
  margin-bottom: 20px;
  color: var(--page-about-text-main);
  font-size: 16px;
}

.page-about__dark-section {
  background-color: var(--page-about-card-bg); /* Darker background for contrast */
  padding: 60px 0;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: var(--page-about-bg);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-about__hero-title {
  font-size: clamp(32px, 5vw, 56px); /* Use clamp for H1 */
  color: var(--page-about-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 18px;
  color: var(--page-about-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: var(--page-about-text-main); /* White text on dark green gradient */
  border: 2px solid var(--page-about-glow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--page-about-glow);
  border: 2px solid var(--page-about-glow);
}

.page-about__btn-secondary:hover {
  background-color: var(--page-about-glow);
  color: var(--page-about-bg); /* Dark text on glow green */
  transform: translateY(-2px);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Intro Section --- */
.page-about__intro-section {
  padding: 60px 0;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
  padding: 60px 0;
}

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

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

.page-about__value-card .page-about__card-title {
  font-size: 24px;
  color: var(--page-about-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-card .page-about__card-text {
  font-size: 16px;
  color: var(--page-about-text-secondary);
}

/* --- History Section --- */
.page-about__history-section {
  padding: 60px 0;
}

.page-about__history-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__history-list .page-about__list-item {
  background-color: var(--page-about-card-bg);
  border-left: 4px solid var(--page-about-glow);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--page-about-text-main);
  font-size: 16px;
}

.page-about__history-list .page-about__list-item strong {
  color: var(--page-about-gold);
}

/* --- Game Offerings Section --- */
.page-about__game-offerings-section {
  padding: 60px 0;
}

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

.page-about__game-card {
  background-color: var(--page-about-card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-about-border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--page-about-text-main);
}

.page-about__game-card .page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-card .page-about__card-title {
  font-size: 22px;
  color: var(--page-about-gold);
  padding: 15px 20px 10px;
  font-weight: bold;
}

.page-about__game-card .page-about__card-text {
  font-size: 15px;
  color: var(--page-about-text-secondary);
  padding: 0 20px 15px;
  flex-grow: 1; /* Push button to bottom */
}

.page-about__game-card .page-about__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* --- Support Section --- */
.page-about__support-section {
  padding: 60px 0;
}

.page-about__support-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__support-list .page-about__list-item {
  color: var(--page-about-text-main);
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__support-list .page-about__list-item::before {
  content: '✓';
  color: var(--page-about-glow);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-about__support-section .page-about__btn-primary {
  margin-top: 30px;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
  padding: 60px 0;
}

.page-about__responsible-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__responsible-list .page-about__list-item {
  color: var(--page-about-text-main);
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__responsible-list .page-about__list-item::before {
  content: '•';
  color: var(--page-about-gold);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-about__responsible-gaming-section .page-about__btn-secondary {
  margin-top: 30px;
}

/* --- Video Section --- */
.page-about__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-about-border);
}

.page-about__video-link-wrapper {
  display: block; /* Make the whole area clickable */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-about__video-description {
  font-size: 16px;
  color: var(--page-about-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__video-section .page-about__btn-primary {
  margin-top: 20px;
}

/* --- CTA Section --- */
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-about__faq-item {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-about-text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-about-gold);
  background-color: rgba(17, 39, 27, 0.8); /* Slightly lighter card background */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question:hover {
  background-color: var(--page-about-deep-green);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}
.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--page-about-text-secondary);
}

/* --- Images Responsiveness --- */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .page-about__two-columns {
    flex-direction: column;
  }

  .page-about__image-column {
    margin-bottom: 30px;
  }

  .page-about__reverse-columns-mobile {
    flex-direction: column-reverse; /* For history section */
  }

  .page-about__hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }

  .page-about__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px; /* Add padding for mobile content areas */
  }

  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__game-offerings-section,
  .page-about__support-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-section,
  .page-about__faq-section,
  .page-about__video-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-column,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .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;
  }
  
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsiveness */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section .page-about__container {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  .page-about__values-grid,
  .page-about__game-grid {
    grid-template-columns: 1fr;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }
  
  .page-about__hero-title {
    font-size: clamp(24px, 6vw, 36px);
  }
}

/* Ensure desktop video container width */
.page-about__video-wrapper {
  width: 100%; /* Important for desktop flex container */
  max-width: 900px;
}