/* About page — hero photo, blue wash, and the intro block. */

.mg-about-page .rs-header-area.header-transparent:not(.rs-sticky-header) {
  position: relative;
  inset: auto;
}

.mg-about-page .mg-about-hero {
  isolation: isolate;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  padding-bottom: 96px;
}

.mg-about-page .mg-about-hero .rs-breadcrumb-bg {
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: mg-about-cover 9s ease-out both;
}

.mg-about-page .mg-about-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(8, 24, 58, 0.62) 0%,
    rgba(12, 40, 92, 0.46) 46%,
    rgba(10, 36, 84, 0.34) 100%
  );
}

html[dir="rtl"] .mg-about-page .mg-about-hero-shade {
  background: linear-gradient(
    255deg,
    rgba(8, 24, 58, 0.62) 0%,
    rgba(12, 40, 92, 0.46) 46%,
    rgba(10, 36, 84, 0.34) 100%
  );
}

.mg-about-page .mg-about-hero .container {
  position: relative;
  z-index: 2;
}

.mg-about-page .mg-about-hero .rs-breadcrumb-content-wrapper {
  animation: mg-about-rise 0.8s ease both;
}

.mg-about-page .mg-about-hero .rs-breadcrumb-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mg-about-page .mg-about-hero .rs-breadcrumb-menu ul li span a:hover {
  color: var(--primary-color, #f5a623);
}

.mg-about-page .mg-about-story {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgba(234, 85, 1, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 42%);
  overflow: hidden;
}

.mg-about-page .mg-about-story .rs-about-thumb.has-large,
.mg-about-page .mg-about-story .rs-about-thumb.has-small {
  visibility: visible;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(11, 27, 58, 0.16);
}

.mg-about-page .mg-about-story .rs-about-thumb.has-large {
  height: 520px;
  animation: mg-about-rise 0.9s ease both;
}

.mg-about-page .mg-about-story .rs-about-thumb.has-small {
  height: 280px;
  border: 6px solid #fff;
  animation: mg-about-rise 0.9s 0.16s ease both;
}

.mg-about-page .mg-about-story .rs-about-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.mg-about-page .mg-about-story .rs-about-thumb:hover img {
  transform: scale(1.06);
}

.mg-about-page .mg-about-story .rs-about-content-wrapper {
  animation: mg-about-rise 0.9s 0.08s ease both;
}

.mg-about-page .mg-about-story .rs-section-title {
  letter-spacing: -0.03em;
}

.mg-about-page .mg-about-story .rs-about-content-wrapper,
.mg-about-page .mg-about-story .descrip,
.mg-about-page .mg-about-story .rs-about-tab-content,
.mg-about-page .mg-about-story .rs-about-tab-content p {
  text-align: start;
}

.mg-about-page .mg-about-story .descrip {
  max-width: 62ch;
  color: #3d4a5c;
}

.mg-about-page .mg-about-story .rs-about-tab .nav {
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11, 27, 58, 0.06);
  width: fit-content;
  max-width: 100%;
}

.mg-about-page .mg-about-story .rs-about-tab .nav-link {
  border-radius: 12px;
  height: 46px;
  padding: 0 28px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mg-about-page .mg-about-story .rs-about-tab .nav-link:hover:not(.active) {
  background: rgba(234, 85, 1, 0.1);
  color: #ea5501;
  transform: translateY(-2px);
}

.mg-about-page .mg-about-story .rs-about-tab .nav-link::after,
.mg-about-page .mg-about-story .rs-about-tab .nav-item:not(:last-child) .nav-link::before {
  display: none;
}

.mg-about-page .mg-about-story .rs-about-tab .nav-link.active {
  background: var(--primary-color, #ea5501);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(234, 85, 1, 0.28);
}

.mg-about-page .mg-about-story .rs-about-tab-content {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 14px 36px rgba(11, 27, 58, 0.06);
}

.mg-about-page .mg-about-story .rs-about-tab-anim .tab-pane.active .rs-about-tab-content {
  animation: mg-about-rise 0.45s ease both;
}

.mg-about-page .mg-about-story .rs-about-btn .rs-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mg-about-page .mg-about-story .rs-about-btn .rs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(234, 85, 1, 0.28);
}

.mg-about-page .mg-about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.mg-about-page .mg-about-point {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  padding: 26px 24px 22px;
  border: 1px solid transparent;
  box-shadow: 0 16px 40px rgba(11, 27, 58, 0.07);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mg-about-page .mg-about-point::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.75) 50%, transparent 72%);
  transform: translateX(-130%);
  pointer-events: none;
}

.mg-about-page .mg-about-reveal.is-in .mg-about-point {
  opacity: 1;
  animation: mg-about-pop 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--mg-i, 0) * 120ms);
}

.mg-about-page .mg-about-reveal.is-in .mg-about-point-index {
  animation: mg-about-num 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
  animation-delay: calc(0.18s + var(--mg-i, 0) * 120ms);
}

.mg-about-page .mg-about-reveal.is-in .mg-about-point:hover {
  transform: translateY(-8px);
  border-color: rgba(234, 85, 1, 0.45);
  box-shadow: 0 22px 36px rgba(11, 27, 58, 0.14);
}

.mg-about-page .mg-about-reveal.is-in .mg-about-point:hover::after {
  animation: mg-about-shine 0.7s ease;
}

.mg-about-page .mg-about-reveal.is-in .mg-about-point:hover .mg-about-point-index {
  transform: scale(1.14);
  animation: none;
}

.mg-about-page .mg-about-point-index {
  display: inline-block;
  color: var(--primary-color, #ea5501);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.mg-about-page .mg-about-point-label {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #14233c;
}

.mg-about-page .mg-about-point p,
.mg-about-page .mg-about-close {
  margin: 0;
  color: #3d4a5c;
  text-align: start;
}

.mg-about-page .mg-about-close {
  margin-top: 22px;
  padding: 18px 22px;
  border-inline-start: 4px solid var(--primary-color, #ea5501);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 16px 16px 0;
  opacity: 0;
  transform: translateY(18px);
}

.mg-about-page .mg-about-close.is-in {
  opacity: 1;
  animation: mg-about-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html[dir="rtl"] .mg-about-page .mg-about-close {
  border-radius: 16px 0 0 16px;
}

.mg-about-page .mg-about-tabs {
  margin-top: 36px;
  opacity: 0;
  transform: translateY(22px);
}

.mg-about-page .mg-about-tabs.is-in {
  opacity: 1;
  animation: mg-about-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.mg-about-page .mg-about-tabs.is-in .rs-about-tab-content {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mg-about-page .mg-about-tabs.is-in .tab-pane.active .rs-about-tab-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(11, 27, 58, 0.1);
}

.mg-about-page .mg-about-actions {
  margin-top: 28px;
}

@keyframes mg-about-cover {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

@keyframes mg-about-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mg-about-pop {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mg-about-num {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mg-about-shine {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-about-page .mg-about-hero .rs-breadcrumb-bg,
  .mg-about-page .mg-about-hero .rs-breadcrumb-content-wrapper,
  .mg-about-page .mg-about-story .rs-about-thumb.has-large,
  .mg-about-page .mg-about-story .rs-about-thumb.has-small,
  .mg-about-page .mg-about-story .rs-about-content-wrapper,
  .mg-about-page .mg-about-story .rs-about-tab-anim .tab-pane.active .rs-about-tab-content,
  .mg-about-page .mg-about-point,
  .mg-about-page .mg-about-close,
  .mg-about-page .mg-about-tabs,
  .mg-about-page .mg-about-reveal.is-in .mg-about-point,
  .mg-about-page .mg-about-reveal.is-in .mg-about-point-index,
  .mg-about-page .mg-about-close.is-in,
  .mg-about-page .mg-about-tabs.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media only screen and (max-width: 991px) {
  .mg-about-page .mg-about-hero {
    min-height: 400px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .mg-about-page .mg-about-story .rs-about-thumb.has-large {
    height: 380px;
  }

  .mg-about-page .mg-about-story .rs-about-thumb.has-small {
    height: 180px;
    width: 210px;
  }

  .mg-about-page .mg-about-story .rs-about-tab .nav {
    width: 100%;
  }

  .mg-about-page .mg-about-points {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 575px) {
  .mg-about-page .mg-about-story .rs-about-tab .nav-link {
    padding: 0 16px;
    font-size: 14px;
  }
}
