/* style/about.css */

/* Base styles for page-about, considering dark body background from shared.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Ensure dark background */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  margin-top: -150px; /* Pull content up over image for visual effect, but not overlapping */
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for text readability */
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 1.15em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
}

.page-about__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

.page-about__vision-mission-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green, ensuring contrast */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-about__card-list li {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__card-list li strong {
  color: #F2FFF6; /* Text Main */
}

.page-about__history-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #2E7A4E; /* Border */
  transform: translateX(-50%);
}

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

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

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

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #57E38D; /* Glow */
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid #2E7A4E; /* Border */
  z-index: 1;
}

.page-about__timeline-title-wrapper,
.page-about__timeline-content {
  width: 45%;
  padding: 15px;
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__timeline-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-bottom: 10px;
}

.page-about__timeline-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__feature-icon {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-about__team-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__member-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #57E38D; /* Glow */
}

.page-about__member-name {
  font-size: 1.4em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__career-opportunity {
  text-align: center;
  padding: 30px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__career-opportunity p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-about__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #57E38D; /* Glow */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #1E3A2A; /* Divider */
}

.page-about__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  text-align: center;
}

.page-about__cta-content {
  max-width: 800px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -100px;
  }
  .page-about__timeline::before {
    left: 20px;
  }
  .page-about__timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-about__timeline-item:nth-child(odd) {
    flex-direction: column;
  }
  .page-about__timeline-item::after {
    left: 20px;
  }
  .page-about__timeline-title-wrapper,
  .page-about__timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    margin-bottom: 20px;
  }
  .page-about__timeline-item:nth-child(odd) .page-about__timeline-title-wrapper {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-about__intro-description,
  .page-about__section-description,
  .page-about__feature-text,
  .page-about__card-text,
  .page-about__timeline-text,
  .page-about__member-role,
  .page-about__faq-answer p {
    font-size: 1em;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-about__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__grid,
  .page-about__features-grid,
  .page-about__team-members {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__image-block {
    order: -1; /* Image appears before text block on mobile */
  }

  /* Image and Video Responsive Adaptations */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__vision-mission-section,
  .page-about__history-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item::after {
    left: 15px;
  }
  .page-about__timeline-title-wrapper,
  .page-about__timeline-content {
    width: calc(100% - 45px);
    margin-left: 45px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__hero-content {
    margin-top: -60px;
  }
}