.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f8f8;
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__main-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Custom color for Login/Register */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #d46a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__dark-text {
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__section-intro {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: #555555;
}

.page-about__dark-section .page-about__section-intro {
  color: #e0e0e0;
}

/* Mission Vision */
.page-about__mission-vision .page-about__section-title {
  color: #26A9E0;
}

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

.page-about__value-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__value-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__value-title {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  text-align: left;
  flex-grow: 1;
}

/* History Timeline */
.page-about__history {
  background-color: #26A9E0;
}

.page-about__history-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 800px;
  margin: 50px auto;
}

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

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 0;
  text-align: left;
}

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

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

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

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

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

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

.page-about__timeline-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* Why Choose Us */
.page-about__why-choose-us .page-about__section-title {
  color: #26A9E0;
}

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

.page-about__feature-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  flex-grow: 1;
}

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

.page-about__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid transparent;
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: #1e87b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Team Section */
.page-about__team {
  background-color: #26A9E0;
}

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-about__team-member:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__member-name {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 16px;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Responsible Gaming */
.page-about__responsible-gaming .page-about__section-title {
  color: #26A9E0;
}

.page-about__responsible-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-about__responsible-content p {
  font-size: 17px;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #26A9E0;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #26A9E0;
  transform: rotate(180deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  text-align: left;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-about__faq-answer p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Global image reset for content area - ensures images are responsive and not tiny */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 36px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__timeline-item:nth-child(odd) {
    padding-right: 30px;
  }
  .page-about__timeline-item:nth-child(even) {
    padding-left: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-about__main-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__value-item,
  .page-about__feature-card,
  .page-about__team-member {
    padding: 25px;
  }

  .page-about__value-title,
  .page-about__feature-title,
  .page-about__member-name {
    font-size: 20px;
  }

  .page-about__value-description,
  .page-about__feature-description,
  .page-about__member-role {
    font-size: 15px;
  }

  .page-about__history-timeline::before {
    left: 18px;
  }

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

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    padding-left: 50px;
    padding-right: 15px;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 12px;
    top: 28px;
  }

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

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

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

  .page-about__responsible-content p {
    font-size: 16px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  
  .page-about__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
    margin-left: 15px;
  }
  
  .page-about__faq-answer {
    padding: 0 20px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* Mobile specific image adaptation for content area */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__container,
  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__faq-list,
  .page-about__responsible-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-center {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 24px;
  }
  .page-about__section-title {
    font-size: 22px;
  }
  .page-about__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-about__value-item img,
  .page-about__feature-card img,
  .page-about__team-member img {
    
  }
  .page-about__value-title,
  .page-about__feature-title,
  .page-about__member-name {
    font-size: 18px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 15px;
    padding: 10px 25px;
  }
}