/* style/about.css */
:root {
  --page-about-primary-color: #11A84E;
  --page-about-secondary-color: #22C768;
  --page-about-background-color: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border-color: #2E7A4E;
  --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-about__dark-bg {
  background-color: var(--page-about-background-color);
  color: var(--page-about-text-main);
}

.page-about__background-color {
  background-color: var(--page-about-background-color);
  color: var(--page-about-text-main);
}

.page-about__card-bg {
  background-color: var(--page-about-card-bg);
  color: var(--page-about-text-main);
  border: 1px solid var(--page-about-border-color);
  border-radius: 8px;
}

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

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

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  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: 800px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

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

/* General Section Styling */
.page-about__mission-vision-section,
.page-about__history-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__technology-innovation-section,
.page-about__team-section,
.page-about__achievements-section,
.page-about__contact-section,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-about__sub-title {
  font-size: 1.7rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-about__list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 15px;
}

.page-about__list li {
  margin-bottom: 8px;
}

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

.page-about__grid-three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-about__text-block {
  padding: 30px;
  border-radius: 8px;
}

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

.page-about__image-full-width {
  margin-top: 40px;
}

/* History Section */
.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px 0;
  margin-top: 30px;
}

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

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

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-text-main);
  transform: translateY(-50%);
  z-index: 1;
}

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

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

.page-about__timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.page-about__feature-card {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 200px; /* Min size 200x200 */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-about__feature-description {
  font-size: 1rem;
}

.page-about__button-group {
  margin-top: 40px;
  text-align: center;
}

/* Technology Section */
.page-about__tech-card {
  padding: 30px;
  text-align: center;
}

.page-about__tech-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Team Section */
.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: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__team-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--page-about-primary-color);
}

.page-about__member-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1rem;
}

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

.page-about__achievement-item {
  padding: 30px;
  text-align: center;
}

.page-about__achievement-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-about-primary-color);
}

/* Contact Section */
.page-about__contact-info {
  margin-top: 40px;
  text-align: center;
  font-size: 1.1rem;
}

.page-about__contact-info p {
  margin-bottom: 10px;
}

.page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: var(--page-about-primary-color);
  color: #ffffff;
}

.page-about__faq-item[open] > .page-about__faq-question .page-about__faq-qtext,
.page-about__faq-item[open] > .page-about__faq-question .page-about__faq-toggle {
  color: #ffffff;
}

.page-about__faq-question:hover {
  filter: brightness(1.2);
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.page-about__faq-item details > summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__grid-two-columns .page-about__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-about__timeline::before {
    left: 20px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
  }
  .page-about__timeline-item:nth-child(odd) {
    padding-right: 20px;
    text-align: left;
  }
  .page-about__timeline-item:nth-child(odd)::before {
    left: 14px;
    right: auto;
  }
  .page-about__timeline-item:nth-child(even)::before {
    left: 14px;
  }
  .page-about__grid-three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: 2.2rem;
  }

  .page-about__hero-description {
    font-size: 1rem;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-about__container,
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__technology-innovation-section,
  .page-about__team-section,
  .page-about__achievements-section,
  .page-about__contact-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.5rem;
  }

  .page-about__paragraph,
  .page-about__list li,
  .page-about__feature-description,
  .page-about__tech-description,
  .page-about__member-role,
  .page-about__achievement-description,
  .page-about__contact-info p,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }

  .page-about__grid-two-columns {
    gap: 30px;
  }

  .page-about__grid-three-columns,
  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__achievements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__feature-card,
  .page-about__tech-card,
  .page-about__team-member,
  .page-about__achievement-item,
  .page-about__faq-item,
  .page-about__cta-buttons,
  .page-about__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow from images/buttons */
  }

  .page-about__feature-icon,
  .page-about__team-photo {
    width: 200px !important; /* Maintain minimum size */
    height: 200px !important;
  }

  .page-about__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

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

  .page-about__timeline-item {
    padding-left: 50px;
    padding-right: 15px;
  }

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