.about-values {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 100px;
  text-align: center;
}

/* =========================
   IMAGE SECTIONS
========================= */

.about-section {
  max-width: 1200px;
  margin: 0 auto;

  padding: 10px 24px 100px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;

  align-items: center;
}

/* Alternate layout WITHOUT rtl hacks */

.about-section.about-instructor .about-image {
  order: 1;
}

.about-section.about-instructor .page-content {
  order: 2;
}
/* =========================
   IMAGES
========================= */

.about-image {
  overflow: hidden;
  border-radius: 24px;
  
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
}

.about-image img {
  object-position: 50% 20%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* =========================
   ANIMATIONS
========================= */

/* prevent horizontal overflow from animations */
.about-section {
  overflow: hidden;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: revealLeft 0.9s ease forwards;
  animation-delay: 0.15s;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  animation: revealRight 0.9s ease forwards;
  animation-delay: 0.15s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0px 24px;
  }

  .about-values {
    padding: 0px 24px;
  }

  .about-section{
    padding-bottom: 0;
  }

  /* Disable heavy slide-in motion on mobile (prevents jank) */
  .reveal-left,
  .reveal-right {
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
  }

  .about-section.about-instructor .about-image {
    order: 2;
  }

  .about-section.about-instructor .page-content {
    order: 1;
  }
}