/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #ffc107; /* Highlight with auxiliary color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-about__section-subtitle {
  font-size: 1.2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #ffc107;
  color: #1a1a2e;
  border: 2px solid #ffc107;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #ffc107;
  color: #1a1a2e;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  gap: 40px;
}

.page-about__hero-content {
  flex: 1;
  padding-left: 20px;
  max-width: 600px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-about__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__card-title {
  font-size: 2em;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-about__value-item {
  text-align: center;
  background-color: rgba(0, 123, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 123, 255, 0.2);
}

.page-about__value-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-about__value-title {
  font-size: 1.8em;
  color: #ffc107;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.page-about__feature-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Milestones Section */
.page-about__milestones-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #007bff;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  right: -17px;
  background-color: #ffc107;
  border: 4px solid #007bff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

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

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

.page-about__timeline-item:nth-child(odd) {
  left: 0;
}

.page-about__timeline-item:nth-child(odd)::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #007bff;
}

.page-about__timeline-item:nth-child(even)::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent #007bff transparent transparent;
}

.page-about__timeline-content {
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.08);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__timeline-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__timeline-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Responsible Gaming & Future Outlook Sections */
.page-about__responsible-gaming-section,
.page-about__future-outlook-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 123, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(0, 123, 255, 0.3);
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  font-size: 1.1em;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
  }
  .page-about__timeline::before {
    left: 20px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }
  .page-about__timeline-item::after,
  .page-about__timeline-item:nth-child(even)::after {
    left: 14px;
  }
  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 50px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #007bff transparent transparent;
  }
  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }
  .page-about__content-wrapper {
    flex-direction: column;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-content {
    padding-left: 0;
    order: 2;
  }
  .page-about__hero-image-wrapper {
    padding-right: 0;
    margin-bottom: 30px;
    order: 1;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 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__section-title {
    font-size: 2em;
  }
  .page-about__section-subtitle {
    font-size: 1em;
  }
  .page-about__value-icon {
    width: 120px;
    height: auto;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Image and Video responsive adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image,
  .page-about__value-icon,
  .page-about__responsive-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-us,
  .page-about__milestones-section,
  .page-about__responsible-gaming-section,
  .page-about__future-outlook-section,
  .page-about__faq-section,
  .page-about__content-wrapper,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}