/* ====================== */
/* ABOUT HERO SECTION      */
/* ====================== */

.about-hero-section {
  position: relative;
  height: 50vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
}

.about-hero-section .hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.about-hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* default (mobile / small screens): solid dark overlay for good contrast */
  background-color: rgba(0, 0, 0, 0.7);
}

/* Desktop: directional gradient like the homepage so LTR (English) shows the gradient as well */
@media (min-width: 992px) {
  .about-hero-section .hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
  }
}

.about-hero-section .container {
  z-index: 3;
}

.about-hero-section .hero-eyebrow {
  font-weight: 700;
  /* Slightly larger eyebrow to better match homepage scale */
  font-size: 1.6rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.9rem;
  animation: fadeInUp 0.4s ease-out forwards;
  animation-delay: 0.2s;
}

.about-hero-section .hero-title {
  /* Slightly smaller than homepage .page-title for About page */
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.4px;
  margin-bottom: 1.6rem;
  color: var(--text-light);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

.about-hero-section .hero-subtitle {
  /* Slightly smaller subtitle than homepage for a tighter composition */
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.8rem;
  max-width: 600px;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

/* ====================== */
/* ABOUT STORY SECTION     */
/* ====================== */

.about-story-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  background: rgba(236, 179, 96, 0.1);
  border-radius: 0.5rem;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image-wrapper:hover::before {
  transform: translate(10px, 10px);
}

.about-eyebrow {
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* increased eyebrow for section headings */
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 2rem;
  /* tighten gap between title and content */
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 70px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

[dir='rtl'] .section-title::after {
  left: auto;
  right: 0;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  /* sit a little closer to section titles */
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.about-image-wrapper .img-fluid {
  transition: transform 0.4s ease-out;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.about-image-wrapper:hover .img-fluid {
  transform: scale(1.05);
}

/* ====================== */
/* MISSION & VISION       */
/* ====================== */

.mission-vision-section {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.mission-vision-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.mission-vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mv-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.mv-eyebrow {
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.mv-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.mv-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ====================== */
/* VALUES SECTION         */
/* ====================== */

.values-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

#vals .section-title {
  margin-bottom: -2rem;
}

.value-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.value-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6c757d;
}

/* ====================== */
/* TEAM SECTION           */
/* ====================== */

.team-section {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.team-image-wrapper {
  position: relative;
}

.team-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80%;
  height: 80%;
  background: rgba(236, 179, 96, 0.1);
  border-radius: 0.5rem;
  z-index: -1;
  transition: all 0.3s ease;
}

.team-image-wrapper:hover::before {
  transform: translate(-10px, -10px);
}

.team-image-wrapper .img-fluid {
  transition: transform 0.4s ease-out;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.team-image-wrapper:hover .img-fluid {
  transform: scale(1.05);
}

.team-features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.team-features-list li {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.team-features-list li i {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

[dir='rtl'] .team-features-list li i {
  margin-right: 0;
  margin-left: 1rem;
}

/* ====================== */
/* WHY CHOOSE US SECTION  */
/* ====================== */

.why-choose-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

#why .section-title {
  margin-bottom: -2rem;
}

.why-choose-card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.why-choose-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.why-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
}

.why-content {
  text-align: left;
}

[dir='rtl'] .why-content {
  text-align: right;
}

.why-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
}

/* ====================== */
/* CTA SECTION            */
/* ====================== */

.cta-final-section {
  background-color: #f8f9fa;
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

/* ====================== */
/* RESPONSIVE DESIGN      */
/* ====================== */

@media (min-width: 992px) {
  /* Desktop: make About hero slightly smaller than homepage */
  .about-hero-section {
    height: 35vh;
    min-height: 400px;
    padding-top: 3rem;
  }

  .about-hero-section .hero-title {
    font-size: 2.2rem;
  }

  .about-hero-section .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 991.98px) {
  .about-hero-section {
    height: 60vh;
    min-height: 400px;
    margin-top: 60px;
  }

  .about-hero-section .hero-title {
    /* Medium screens: slightly reduced size */
    font-size: 1.6rem;
  }

  .about-hero-section .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
    text-align: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  [dir='rtl'] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }

  .about-story-section,
  .mission-vision-section,
  .values-section,
  .team-section,
  .why-choose-section {
    padding: 3rem 0;
  }

  /* Center content in mission/vision cards on tablet */
  .mission-vision-card {
    text-align: center;
  }

  .mv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .why-choose-card {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  .why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .why-content {
    text-align: center;
  }

  [dir='rtl'] .why-content {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .about-hero-section {
    height: 32vh;
    min-height: unset;
    /* min-height: 350px; */
    /* padding-top: 80px; */
  }

  .about-hero-section .hero-title {
    font-size: 1.6rem;
  }

  .about-hero-section .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .about-image-wrapper::before,
  .team-image-wrapper::before {
    display: none;
  }

  .mission-vision-card,
  .value-card,
  .why-choose-card {
    /* Reduced mobile padding for tighter card spacing */
    padding: 0.75rem;
  }

  .mv-title {
    font-size: 1.5rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .value-icon {
    font-size: 2rem;
  }

  .why-icon {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  /* Mobile: reduce horizontal gutter for story and team sections */
  .about-story-section,
  .team-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .about-hero-section{
    margin-top: 3.25rem;
  }
}
