/* style/about.css */

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

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color-page); /* Page specific background */
}

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

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

.page-about__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__dark-section {
  background-color: var(--background-color-page);
  color: var(--text-main);
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #f0f0f0;
  color: #333333;
  padding: 60px 0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-about__hero-content {
  text-align: center;
  position: relative; /* Ensure content is above image filter if needed */
  z-index: 1; /* Ensure text is on top */
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

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

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

.page-about__btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  color: var(--secondary-color);
}

/* Card Styling */
.page-about__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

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

.page-about__box-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__box-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-about__box-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
}

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

.page-about__feature-item {
  text-align: center;
}

.page-about__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-about__feature-text {
  font-size: 16px;
  color: var(--text-secondary);
}

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

.page-about__timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--divider-color);
  z-index: 0;
}

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

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

.page-about__timeline-item:nth-child(odd) .page-about__timeline-content {
  margin-right: 50px;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-content {
  margin-left: 50px;
}

.page-about__timeline-year {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  color: var(--text-main);
  padding: 10px 15px;
  border-radius: 50%;
  font-weight: bold;
  z-index: 1;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 0 0 5px var(--background-color-page);
}

.page-about__timeline-content {
  width: 45%;
  padding: 25px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
  border: 1px solid var(--border-color);
}

.page-about__timeline-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-about__timeline-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Services Overview Section */
.page-about__services-overview {
  padding: 80px 0;
}

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

.page-about__service-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.page-about__service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
}

.page-about__service-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 20px;
}

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

.page-about__service-title a:hover {
  color: var(--secondary-color);
}

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

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

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

.page-about__responsibility-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
}

.page-about__item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-about__item-text {
  font-size: 16px;
  color: #555555;
}

.page-about__cta-buttons--center {
  margin-top: 40px;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
}

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

.page-about__team-member {
  padding: 30px;
}

.page-about__member-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
}

.page-about__member-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-main);
}

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

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

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
  text-align: left;
  padding: 0;
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
  background-color: #f9f9f9;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #555555;
}

.page-about__faq-answer p {
  margin-bottom: 0;
}

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

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

/* Text Colors for sections with dark background */
.page-about__text-main {
  color: var(--text-main);
}

.page-about__text-secondary {
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__timeline::before {
    left: 20px;
    transform: translateX(0);
  }

  .page-about__timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .page-about__timeline-year {
    left: 20px;
    top: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px var(--background-color-page);
  }

  .page-about__timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px !important;
    margin-right: 0 !important;
    padding: 20px;
  }
}

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us,
  .page-about__history-section,
  .page-about__services-overview,
  .page-about__responsible-gaming,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__card {
    padding: 25px;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__services-grid,
  .page-about__responsibility-points,
  .page-about__team-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-content,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-content {
    margin-left: 50px !important;
  }

  .page-about__timeline-year {
    left: 0;
    transform: translate(0, -50%);
    box-shadow: 0 0 0 5px var(--background-color-page);
  }

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
}