/*==============================================================================
  theme/08-about.css
  ABOUT + CERTIFICATIONS — About copy layout and certifications masonry page
  Linked from templates/base.html in numbered order with the other theme modules.
==============================================================================*/

/* --------------------------------------------------------------------------
   ABOUT PAGE — Clean justified copy + inline photo + faint blurred backdrop
   -------------------------------------------------------------------------- */
.about-page {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  overflow: hidden;
}

.about-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.about-page__bg-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(28px) saturate(0.85);
  transform: scale(1.12);
  opacity: 0.14;
}

.about-page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 243, 238, 0.72) 0%,
    rgba(245, 243, 238, 0.88) 45%,
    rgba(245, 243, 238, 0.94) 100%
  );
}

.about-page__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.about-page__header {
  margin-bottom: 28px;
}

.about-page__header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0a2540;
  margin: 0;
}

.about-page__body {
  width: 100%;
  overflow: hidden;
}

.about-page__inline-photo {
  float: right;
  width: min(38%, 300px);
  margin: 4px 0 22px 32px;
  padding: 0;
  shape-outside: margin-box;
}

.about-page__inline-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
}

.about-page__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.about-page__stat {
  margin: 0;
  padding: 0;
  border-left: none;
  text-align: center;
}

.about-page__stat dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0a2540;
}

.about-page__stat dd {
  margin: 4px 0 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--muted);
}

.about-page__body p {
  margin: 0 0 18px !important;
  font-family: var(--font);
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: var(--body) !important;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-page__body p:last-child {
  margin-bottom: 0 !important;
}

.about-page__actions {
  clear: both;
  margin-top: 32px;
  padding-top: 8px;
}

.about-page__actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: auto;
  min-width: 0;
  padding: 12px 22px;
}

@media (max-width: 767px) {
  .about-page__header {
    margin-bottom: 20px;
  }

  .about-page__inline-photo {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 22px;
  }

  .about-page__stats {
    gap: 8px;
    margin-top: 16px;
  }

  .about-page__stat dt {
    font-size: 17px;
  }

  .about-page__stat dd {
    font-size: 10px;
  }

  .about-page__body p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .about-page__actions {
    margin-top: 26px;
  }
}

/* --------------------------------------------------------------------------
   CERTIFICATIONS — Text list left, masonry certificate gallery right
   -------------------------------------------------------------------------- */
.certs-page {
  background: var(--bg);
}

.certs-page__inner {
  max-width: var(--page-max);
}

.certs-page__header {
  margin-bottom: 8px;
  max-width: none;
}

.certs-page__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.certs-page__eyebrow a {
  color: var(--muted);
  text-decoration: none;
}

.certs-page__eyebrow a:hover {
  color: var(--primary-hover);
}

.certs-page__header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0a2540;
  margin: 0 0 14px;
}

.certs-page__lead {
  margin: 0 !important;
  max-width: 54ch;
  font-family: var(--font) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--body) !important;
}

.certs-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px 48px;
  align-items: start;
}

.certs-page__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.certs-page__masonry {
  align-self: start;
  columns: 2;
  column-gap: 14px;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}

.certs-page__block h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a2540;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.12);
}

.certs-page__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certs-page__block li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

.certs-page__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.certs-page__titles li {
  font-weight: 600;
  color: #0a2540;
}

.certs-page__masonry-item {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.certs-page__masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.certs-page__masonry-empty {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
}

.certs-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 8px;
  padding-top: 8px;
}

.certs-page__actions .btn-primary {
  display: inline-flex;
  text-decoration: none;
  width: auto;
  min-width: 0;
  padding: 12px 22px;
}

.certs-page__back {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.certs-page__back:hover {
  color: var(--primary-hover);
}

@media (max-width: 991px) {
  .certs-page__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .certs-page__masonry {
    columns: 2;
  }
}

@media (max-width: 767px) {
  .certs-page__masonry {
    columns: 1;
  }

  .certs-page__masonry-item {
    margin-bottom: 12px;
  }

  .certs-page__actions {
    margin-top: 8px;
  }
}

