/* About Us page (page-about-us.php). */

.an-about {
  --an-about-red: #d71921;
  --an-about-red-hover: #b9141b;
  --an-about-blue: #394d80;
  --an-about-text: #4a4f5c;
  --an-about-ph: #f1e5d8;
  --an-about-ph-text: #8a8174;
  font-family: 'Baloo Paaji 2', sans-serif;
  color: var(--an-about-text);
  overflow-x: hidden;
}

.an-about-title,
.an-about-hero__title,
.an-about-cta__title {
  font-family: PantonRustExtraBoldBase, 'Baloo Paaji 2', sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

/* Placeholder for images not uploaded yet */
.an-about-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 8px;
  background: var(--an-about-ph);
  color: var(--an-about-ph-text);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

/* Banner */
.an-about-hero,
.an-about-cta {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2b2b2b;
  color: #fff;
}
.an-about-hero {
  min-height: clamp(280px, 33vw, 520px);
  padding: 48px 0;
}
.an-about-hero__bg,
.an-about-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.an-about-hero::after,
.an-about-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.an-about-hero > .container,
.an-about-cta > .container {
  position: relative;
  z-index: 1;
}
.an-about-hero__inner {
  max-width: 560px;
  padding-top: clamp(40px, 8vw, 110px);
}
.an-about-hero__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.an-about-hero__subtitle {
  margin: 0;
  max-width: 420px;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.an-about-hero__ph {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  color: var(--an-about-ph-text);
  font-size: 13px;
}
.an-about-hero.is-empty,
.an-about-cta.is-empty {
  background: var(--an-about-ph);
}
.an-about-hero.is-empty::after,
.an-about-cta.is-empty::after {
  display: none;
}
.an-about-hero.is-empty .an-about-hero__title,
.an-about-hero.is-empty .an-about-hero__subtitle,
.an-about-cta.is-empty .an-about-cta__title,
.an-about-cta.is-empty .an-about-cta__text {
  color: var(--an-about-blue);
  text-shadow: none;
}

/* Sections */
.an-about-section {
  padding: 40px 0 0;
}
.an-about-partners {
  padding-bottom: 56px;
}
.an-about-title {
  margin: 0 0 12px;
  color: var(--an-about-blue);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}
.an-about-copy {
  max-width: 560px;
}
.an-about-rich {
  font-size: 17px;
  line-height: 1.6;
}
.an-about-rich p {
  margin: 0 0 12px;
}
.an-about-rich a {
  color: var(--an-about-red);
  text-decoration: underline;
}
.an-about-rich ul,
.an-about-rich ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}
.an-about-intro {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
}

/* Section images */
.an-about-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--an-about-ph);
}
.an-about-media--wide {
  aspect-ratio: 16 / 9;
}
.an-about-media img,
.an-about-media .an-about-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.an-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.an-about-btn__arrow {
  flex: none;
  transition: transform 0.2s;
}
.an-about-btn:hover .an-about-btn__arrow,
.an-about-btn:focus-visible .an-about-btn__arrow {
  transform: translateX(3px);
}
.an-about-btn--red {
  background: var(--an-about-red);
  border-color: var(--an-about-red);
  color: #fff;
}
.an-about-btn--red:hover,
.an-about-btn--red:focus-visible {
  background: var(--an-about-red-hover);
  border-color: var(--an-about-red-hover);
  color: #fff;
}
.an-about-btn--outline {
  background: #fff;
  border-color: var(--an-about-blue);
  color: var(--an-about-blue);
}
.an-about-btn--outline:hover,
.an-about-btn--outline:focus-visible {
  background: var(--an-about-blue);
  color: #fff;
}

/* Card rows: grid up to six, carousel above */
.an-about-row {
  position: relative;
  margin: 0 -8px;
}
.an-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.an-about-item {
  min-width: 0;
  padding: 0 8px 16px;
}
/* Before tiny-slider starts (or without JS): a scrollable strip */
.an-about-track:not(.tns-slider) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.an-about-track:not(.tns-slider) > .an-about-item {
  flex: 0 0 50%;
  scroll-snap-align: start;
}
.an-about-nav {
  display: none;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 8px;
}
.an-about-row.is-ready .an-about-nav {
  display: flex;
}
.an-about-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--an-about-blue);
  border-radius: 50%;
  background: #fff;
  color: var(--an-about-blue);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.an-about-nav__btn:hover,
.an-about-nav__btn:focus-visible {
  background: var(--an-about-blue);
  color: #fff;
}
.an-about-nav__btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 576px) {
  .an-about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .an-about-track:not(.tns-slider) > .an-about-item {
    flex-basis: 33.333%;
  }
}
@media (min-width: 768px) {
  .an-about-track:not(.tns-slider) > .an-about-item {
    flex-basis: 25%;
  }
}
@media (min-width: 992px) {
  .an-about-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .an-about-track:not(.tns-slider) > .an-about-item {
    flex-basis: 16.666%;
  }
}

/* Destination cards */
.an-about-dest {
  display: block;
  height: 100%;
  background: #ececec;
  color: var(--an-about-blue);
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.an-about-dest:hover,
.an-about-dest:focus-visible {
  color: var(--an-about-red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.an-about-dest__img {
  position: relative;
  display: block;
  aspect-ratio: 10 / 9;
  overflow: hidden;
  background: var(--an-about-ph);
}
.an-about-dest__img img,
.an-about-dest__img .an-about-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.an-about-dest:hover .an-about-dest__img img {
  transform: scale(1.04);
}
.an-about-dest__name {
  display: block;
  padding: 10px 6px 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* Team */
.an-about-member {
  text-align: center;
}
.an-about-member__photo {
  position: relative;
  width: min(100%, 150px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--an-about-ph);
}
.an-about-member__photo img,
.an-about-member__photo .an-about-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.an-about-member__name {
  margin: 0;
  color: var(--an-about-blue);
  font-family: 'Baloo Paaji 2', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.an-about-member__role {
  margin: 2px 0 10px;
  color: var(--an-about-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.an-about-member__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Bottom banner */
.an-about-cta {
  min-height: clamp(220px, 22vw, 340px);
  padding: 48px 0;
}
.an-about-cta__inner {
  max-width: 720px;
}
.an-about-cta__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.an-about-cta__text {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
  .an-about-section {
    padding-top: 56px;
  }
  .an-about-partners {
    padding-bottom: 72px;
  }
}
@media (max-width: 575.98px) {
  .an-about-btn {
    gap: 12px;
    padding: 11px 18px;
    font-size: 14px;
  }
  .an-about-rich,
  .an-about-intro {
    font-size: 16px;
  }
  .an-about-hero__inner {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .an-about-btn__arrow,
  .an-about-dest__img img {
    transition: none;
  }
}
