/* style/about.css */

/* Common styles for the page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__dark-bg {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 0;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Initial padding, will be adjusted by var(--header-offset) */
  text-align: center;
  background-image: url('[GALLERY:hero_main:1920x1080:vin88,online_betting,mobile_casino,hero,banner]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Intro Section */
.page-about__intro-section .page-about__section-title {
  color: #017439;
}

.page-about__intro-section p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

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

.page-about__text-content {
  text-align: left;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* History Section */
.page-about__history-section .page-about__section-title {
  color: #ffffff;
}

.page-about__history-section p {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 0;
}

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

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

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #017439;
  border: 2px solid #ffffff;
  border-radius: 50%;
  top: 28px;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -8px; /* Adjusted to align with the line */
}

.page-about__timeline-item:nth-child(even)::before {
  left: -8px; /* Adjusted to align with the line */
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__timeline-item p {
  font-size: 1em;
  color: #f0f0f0;
  text-align: inherit;
}

/* Products & Services Section */
.page-about__products-services .page-about__section-title {
  color: #017439;
}

.page-about__products-services > p {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

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

.page-about__card-title {
  font-size: 1.5em;
  color: #017439;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-about__card p {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-about__card-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-about__card-link:hover {
  background-color: #005a2e;
}

/* Commitment Section */
.page-about__commitment-section .page-about__section-title {
  color: #ffffff;
}

.page-about__commitment-section > p {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__commitment-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__commitment-item p {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__text-link {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

.page-about__text-link:hover {
  text-decoration: underline;
}

/* Team Section */
.page-about__team-section .page-about__section-title {
  color: #017439;
}

.page-about__team-section > p {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-about__team-member {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #017439;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 5px;
  font-weight: bold;
}

.page-about__member-position {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__member-description {
  font-size: 0.95em;
  color: #777777;
}

/* Future Vision Section */
.page-about__future-vision .page-about__section-title {
  color: #ffffff;
}

.page-about__future-vision p {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-about__cta-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #555555;
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #005a2e;
}

.page-about__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

/* Video Section */
.page-about__video-section .page-about__section-title {
  color: #ffffff;
}

.page-about__video-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__video-wrapper {
  text-align: center;
}

.page-about__video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #000;
}

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

.page-about__video-cta {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }

  .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::before {
    left: 12px;
  }

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

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

  .page-about__commitment-list {
    grid-template-columns: 1fr;
  }
}

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

  .page-about__hero-section {
    padding: 80px 0 50px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description,
  .page-about__cta-description {
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .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,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__intro-section,
  .page-about__history-section,
  .page-about__products-services,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__future-vision,
  .page-about__cta-section,
  .page-about__faq-section,
  .page-about__video-section {
    padding: 50px 0;
  }

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

  .page-about__image-responsive,
  .page-about__card-image,
  .page-about__team-avatar,
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__card,
  .page-about__team-member,
  .page-about__faq-item,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__content-area,
  .page-about__text-block,
  .page-about__section,
  .page-about__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-about__timeline-item::before {
    left: 8px;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__video-container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__cta-title {
    font-size: 2em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}