/* About Us page only CSS
   Recommended wrapper on about-us.php:
   <main class="maars-about-page"> ... </main>
*/

/* Banner */
.maars-about-banner {
  position: relative;
  z-index: 1;
  min-height: 65vh;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.maars-about-banner-title {
  font-size: 3rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

/* Tabs */
.maars-about-tabs {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.maars-about-tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 1.5rem 10px;
  padding: 0;
  border: 0;
  list-style: none;
}

.maars-about-tab-nav .nav-link,
.maars-about-tab-link {
  border: none;
  color: #333;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  background: transparent;
}

.maars-about-tab-nav .nav-link:hover,
.maars-about-tab-link:hover {
  color: #9D2763;
}

.maars-about-tab-nav .nav-link.active,
.maars-about-tab-link.active {
  color: #000;
  background: transparent;
}

.maars-about-tab-nav .nav-link.active::after,
.maars-about-tab-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9D2763;
}

.maars-about-tab-pane h2,
.maars-about-tab-title {
  color: #9D2763;
  font-weight: 600;
}

.maars-about-tab-content-text {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.maars-about-tab-image {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 40px;
  object-fit: cover;
}

/* Two column section */
.maars-about-two-col {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.maars-about-object-fit-cover {
  object-fit: cover;
}

.maars-about-two-col-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

.maars-about-text-wrapper {
  background-color: #f8f9fa;
  border-radius: 40px;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.maars-about-text-kicker {
  text-transform: uppercase;
  color: #6c757d;
}

.maars-about-text-title {
  margin-bottom: 1rem;
}

/* Stats section */
.maars-about-stats-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.maars-about-stats-small-title {
  color: #000;
  font-weight: 600;
  margin-bottom: 10px;
}

.maars-about-stats-main-title {
  font-weight: 700;
  margin-bottom: 0;
}

.maars-about-stat-box {
  background-color: #9D2763;
  border-radius: 20px;
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  color: #fff;
}

.maars-about-stat-icon {
  margin-bottom: 0.5rem;
}

.maars-about-stat-icon img {
  max-height: 50px;
  width: auto;
}

.maars-about-stat-number {
  color: #fff;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.maars-about-stat-label {
  color: #fff;
  margin-bottom: 0;
}

/* Certification section - currently hidden in template */
.maars-about-certification-section {
  display: none;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.maars-about-section-title {
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 1.5rem;
}

.maars-about-underline-maroon {
  display: inline-block;
  border-bottom: 3px solid maroon;
  padding-bottom: 4px;
}

.maars-about-cert-box {
  text-align: center;
  padding: 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maars-about-cert-image {
  max-height: 250px;
  object-fit: contain;
  width: 100%;
  height: 250px;
  border-radius: 0.25rem;
}

/* Responsive */
@media (max-width: 767px) {
  .maars-about-banner {
    min-height: 35vh;
  }

  .maars-about-banner-title {
    font-size: 2rem;
  }

  .maars-about-tab-nav {
    flex-direction: column;
    overflow-x: hidden;
    white-space: normal;
    padding: 0;
    margin: 0 0 1.5rem;
  }

  .maars-about-tab-nav .nav-item {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }

  .maars-about-tab-nav .nav-link,
  .maars-about-tab-link {
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    margin: 0;
  }

  .maars-about-tab-nav .nav-link.active::after,
  .maars-about-tab-link.active::after {
    width: 100%;
    left: 0;
    transform: none;
  }

  .maars-about-text-wrapper {
    margin-top: 1rem;
  }
}