/* style/about.css */

/* Variables */
:root {
  --manbet-primary-color: #26A9E0;
  --manbet-secondary-color: #FFFFFF;
  --manbet-text-dark: #333333;
  --manbet-text-light: #ffffff;
  --manbet-login-button-color: #EA7C07;
  --manbet-bg-color: #FFFFFF;
  --manbet-black-color: #000000;
}

/* Base styles for .page-about section */
.page-about {
  color: var(--manbet-text-light); /* Assuming shared.css body has a dark background like var(--black-color) */
  background-color: var(--manbet-black-color); /* Ensure content area matches body background or has sufficient contrast */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--manbet-black-color);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--manbet-text-light);
}

/* Override the previous hero-content to adhere to no text over image rule */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--manbet-black-color);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-about__hero-content {
  position: relative; /* Not absolute anymore */
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
  color: var(--manbet-text-light);
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--manbet-secondary-color);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
}

.page-about__intro-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--manbet-secondary-color);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--manbet-primary-color);
  color: var(--manbet-text-light);
  border: 2px solid var(--manbet-primary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--manbet-primary-color), 10%); /* Placeholder for darken */
  border-color: darken(var(--manbet-primary-color), 10%); /* Placeholder for darken */
}

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

.page-about__btn-secondary:hover {
  background-color: var(--manbet-primary-color);
  color: var(--manbet-text-light);
}

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--manbet-primary-color);
}

.page-about__section-description {
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--manbet-text-light);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--manbet-black-color);
}

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

.page-about__grid-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--manbet-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__grid-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  display: block;
}

.page-about__item-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--manbet-primary-color);
}

.page-about__item-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--manbet-secondary-color);
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--manbet-primary-color);
  color: var(--manbet-text-light);
}

.page-about__values-section .page-about__section-title {
  color: var(--manbet-text-light);
}

.page-about__values-section .page-about__section-description {
  color: var(--manbet-secondary-color);
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--manbet-secondary-color);
}

.page-about__value-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--manbet-secondary-color);
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: var(--manbet-black-color);
}

.page-about__history-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--manbet-secondary-color);
  max-width: 900px;
  margin: 0 auto;
}

.page-about__history-content p {
  margin-bottom: 20px;
}

.page-about__history-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  object-fit: cover;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--manbet-bg-color); /* Light background for this section */
  color: var(--manbet-text-dark); /* Dark text on light background */
}

.page-about__team-section .page-about__section-title {
  color: var(--manbet-primary-color);
}

.page-about__team-section .page-about__section-description {
  color: var(--manbet-text-dark);
}

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

.page-about__team-member {
  background-color: var(--manbet-secondary-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__member-photo {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 5px solid var(--manbet-primary-color);
  display: block;
}

.page-about__member-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--manbet-primary-color);
}

.page-about__member-role {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--manbet-text-dark);
}

.page-about__member-role a {
  color: var(--manbet-primary-color);
  text-decoration: none;
}

.page-about__member-role a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--manbet-black-color);
}

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

.page-about__faq-item {
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  color: var(--manbet-text-light);
}

.page-about__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--manbet-primary-color);
  position: relative;
}

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

.page-about__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--manbet-secondary-color);
}

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

.page-about__faq-answer a {
  color: var(--manbet-primary-color);
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Global Image, Video, Button Responsive Styles */
/* All images */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* All video elements */
.page-about video,
.page-about__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* All image/video/button containers */
.page-about__section,
.page-about__card,
.page-about__container,
.page-about__grid-item,
.page-about__value-card,
.page-about__team-member,
.page-about__faq-item,
.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper,
.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .page-about__intro-text,
  .page-about__section-description,
  .page-about__item-text,
  .page-about__value-text,
  .page-about__history-content,
  .page-about__member-role,
  .page-about__faq-answer {
    font-size: 0.95rem !important;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__team-section,
  .page-about__faq-section {
    padding: 40px 0 !important;
  }

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .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;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    text-align: center;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__card,
  .page-about__grid-item,
  .page-about__value-card,
  .page-about__team-member,
  .page-about__faq-item {
    padding: 20px !important;
  }

  .page-about__member-photo {
    max-width: 180px !important;
  }

  .page-about__faq-item summary {
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
  }

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

/* Placeholder for darken function */
/* In a real project, you'd use SASS/LESS or CSS custom properties with calc() */
.page-about__btn-primary:hover {
  background-color: #1a8cc4; /* A slightly darker shade of #26A9E0 */
  border-color: #1a8cc4;
}