/* ============================================================
   about.css  —  About page styles
   ============================================================ */

/* ---------------------------------------------------------------
   About Hero Slider
   --------------------------------------------------------------- */
.about-hero {
  position: relative;
  overflow: hidden;
  height: calc(520px + var(--nav-h));
  margin-top: calc(-1 * var(--nav-h));
  background: #111;
}

.about-hero-track {
  display: flex;
  height: 100%;
  width: 100%;
}

.about-hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.04);
  transition: transform 0.8s ease;
}

.about-hero-slide.is-active .about-hero-img {
  transform: scale(1);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}

.about-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(24px, 6vw, 80px);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.about-hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}

.about-hero-title {
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 12px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease 0.18s, transform 0.6s ease 0.18s;
}

.about-hero-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  opacity: 0;
  transform: translateY(10px);
  max-width: 560px;
  width: 100%;
  line-height: 1.6;
  margin: 0;
  transition: opacity 0.6s ease 0.28s, transform 0.6s ease 0.28s;
}

/* Activate text when slide is active */
.about-hero-slide.is-active .about-hero-kicker,
.about-hero-slide.is-active .about-hero-title,
.about-hero-slide.is-active .about-hero-subtitle {
  opacity: 1;
  transform: none;
}

/* Prev / Next buttons */
.about-hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.about-hero-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

.about-hero-btn--prev { left: 20px; }
.about-hero-btn--next { right: 20px; }

/* Dot indicators — centered at bottom */
.about-hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.about-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.about-hero-dot.is-active {
  background: var(--accent);
  width: 26px;
  border-radius: 4px;
}

/* Fallback hero (no slides) */
.about-hero-fallback {
  background: linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);
  display: flex;
  align-items: center;
  height: 240px;
  padding-top: var(--nav-h);
}
.about-hero-fallback-inner {
  padding: 0 40px;
  color: #fff;
}
.about-hero-fallback-inner h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 8px;
}
.about-hero-fallback-inner nav {
  font-size: 14px;
  color: #b8bcc5;
}
.about-hero-fallback-inner nav a {
  color: #b8bcc5;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Main rich-text section
   --------------------------------------------------------------- */
.about-main-section {
  padding: 44px 0 36px;
  background: #f8f8f8;
}

.about-main-inner {
  max-width: 860px;
}

/* Shared heading style for all about sections */
.about-section-heading {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #1e2330;
  line-height: 1.18;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 12px;
}

.about-section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 4px;
  border-radius: 99px;
  background: var(--accent);
}

/* Rich body — renders CKEditor HTML */
.about-rich-body {
  color: #4a5060;
  font-size: 16px;
  line-height: 1.8;
}

.about-rich-body p { margin: 0 0 14px; }
.about-rich-body h2 { font-size: 22px; font-weight: 700; margin: 24px 0 10px; color: #1e2330; }
.about-rich-body h3 { font-size: 19px; font-weight: 600; margin: 20px 0 8px; color: #1e2330; }
.about-rich-body ul, .about-rich-body ol { padding-left: 22px; margin: 0 0 14px; }
.about-rich-body li { margin-bottom: 6px; }
.about-rich-body strong { color: #1e2330; }
.about-rich-body a { color: var(--accent); }
.about-rich-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 10px 18px;
  margin: 18px 0;
  background: rgba(243,156,18,0.07);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #3a3f50;
}

/* ---------------------------------------------------------------
   Three content sections
   --------------------------------------------------------------- */
.about-content-section {
  padding: 40px 0;
  border-bottom: 1px solid #ebebeb;
}

.about-content-section:last-child {
  border-bottom: none;
}

.about-content-section:nth-child(odd) {
  background: #fff;
}

.about-content-section:nth-child(even) {
  background: #f5f6f8;
}

.about-cs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.about-cs--reverse .about-cs-inner {
  direction: rtl;
}

.about-cs--reverse .about-cs-inner > * {
  direction: ltr;
}

.about-cs-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}

.about-cs-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

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

/* If section has no image — full width text */
.about-cs-inner:has(.about-cs-text:only-child) {
  grid-template-columns: 1fr;
}

/* ---------------------------------------------------------------
   Per-page breadcrumb banner (below hero)
   --------------------------------------------------------------- */
.about-page-banner {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 12px 0;
}

.about-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}

.about-page-breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.about-page-breadcrumb a:hover {
  color: var(--accent);
}

.about-page-breadcrumb .sep {
  color: #ccc;
  font-size: 15px;
}

.about-page-breadcrumb .current {
  color: var(--accent);
  font-weight: 600;
}

/* Single page — no-image: full-width text */
.about-cs-inner.no-image {
  grid-template-columns: 1fr;
}

/* Single page — more breathing room */
.about-single-page {
  padding: 48px 0 52px;
}

.about-team-name {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: #1e2330;
  line-height: 1.35;
}

.about-team-role {
  margin: 0 0 18px;
  color: #5a6270;
  font-size: 15px;
  line-height: 1.55;
}

.about-team-member + .about-team-member {
  border-top: 1px solid #ebebeb;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 992px) {
  .about-hero { height: 420px; }

  .about-cs-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-cs--reverse .about-cs-inner {
    direction: ltr;
  }

  /* All About pages: photo first on mobile, then text */
  .about-content-section .about-cs-image {
    order: -1;
  }

  .about-cs-image img { height: 260px; }

  .about-content-section { padding: 32px 0; }
  .about-main-section { padding: 36px 0 28px; }
}

@media (max-width: 576px) {
  .about-hero { height: 360px; }
  .about-hero-btn { width: 38px; height: 38px; }
  .about-hero-btn--prev { left: 10px; }
  .about-hero-btn--next { right: 10px; }
  .about-hero-content { padding-bottom: 40px; }
  .about-cs-image img { height: 220px; }
}
