.about-template {
  --about-primary: var(--color-main, var(--color-primary, #b07a2c));
  --about-text: #24272c;
  --about-muted: #687182;
  --about-border: rgba(17, 24, 39, 0.12);
  --about-soft: #f7f4ef;
  color: var(--about-text);
}

.about-template * {
  box-sizing: border-box;
}

.about-template img {
  display: block;
  max-width: 100%;
  height: auto;
}

.about-template-heading > h1,
.about-layout-main > h1,
.about-company-copy > h1,
.about-stats-hero h1,
.about-alternating-body > h2,
.about-section-title > h2,
.about-team-card h3,
.about-newsletter h2 {
  color: var(--about-text);
  letter-spacing: 0;
}

.about-template-heading > h1,
.about-layout-main > h1,
.about-company-copy > h1,
.about-stats-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.about-alternating-body > h2,
.about-section-title > h2,
.about-newsletter h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.28;
  font-weight: 800;
}

.about-team-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.about-template-heading {
  max-width: 940px;
  margin: 0 auto 32px;
  text-align: center;
}

.about-template-lead,
.about-template-content {
  color: var(--about-muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-template-heading .about-template-lead {
  text-align: revert;
}

.about-template-content p,
.about-template-content li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.75;
}

.about-template-content table,
.about-template-content iframe,
.about-template-content video {
  max-width: 100%;
}

.about-template-content img {
  max-width: 100%;
  height: auto;
}

.about-share {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--about-border);
}

.about-main-photo,
.about-company-photo,
.about-alternating-photo,
.about-team-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f5f7;
}

.about-main-photo img,
.about-company-photo img,
.about-alternating-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-section-title {
  margin-bottom: 24px;
  text-align: center;
}

.about-section-title h2 {
  margin-bottom: 0;
  text-transform: uppercase;
}

.about-template-1 .about-template-intro {
  max-width: 980px;
  margin: 0 auto 34px;
}

.about-alternating {
  display: grid;
  gap: 28px;
}

.about-alternating-item {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  align-items: center;
  gap: 32px;
  padding: 24px;
  border: 1px solid var(--about-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.about-alternating-item:nth-child(even) .about-alternating-photo {
  order: 2;
}

.about-template-2 .about-layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.about-template-2 .about-layout-main {
  min-width: 0;
}

.about-template-2 .about-main-photo {
  margin-bottom: 22px;
}

.about-sidebar-card {
  padding: 20px;
  border: 1px solid var(--about-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.about-sidebar-title {
  margin-bottom: 14px;
  color: var(--about-text);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-page-menu {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-page-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--about-border);
  color: var(--about-muted);
  font-weight: 600;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.about-page-menu a:hover,
.about-page-menu a.active {
  padding-left: 8px;
  color: var(--about-primary);
}

.about-template-3 {
  max-width: 980px;
  margin: 0 auto;
}

.about-template-3-title {
  margin-bottom: 24px;
  text-align: center;
}

.about-template-3-title h1 {
  margin: 0;
  color: var(--about-text);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-template-3 .about-template-content {
  width: 100%;
  max-width: none;
}

.about-template-3 .about-template-content p,
.about-template-3 .about-template-content li {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.about-template-3 .about-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.about-template-3 .about-share b {
  margin: 0;
}

.about-template-4 .about-company-panel {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  gap: 38px;
  padding: 32px;
  border-radius: 18px;
  background: var(--about-soft);
}

.about-template-4 .about-company-photo img {
  aspect-ratio: 5 / 4;
}

.about-team-section {
  margin-top: 44px;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.about-team-card {
  overflow: hidden;
  border: 1px solid var(--about-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.about-team-card figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-team-card > div {
  padding: 16px;
  text-align: center;
}

.about-team-card p {
  margin: 0;
  color: var(--about-muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-template-5 .about-stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, var(--about-soft) 100%);
}

.about-eyebrow {
  margin: 0 0 10px;
  color: var(--about-primary);
  font-weight: 800;
  text-transform: uppercase;
}

.about-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-counter-card {
  padding: 20px;
  border: 1px solid var(--about-border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.about-counter-card strong {
  display: block;
  color: var(--about-primary);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.about-counter-card span {
  display: block;
  margin-top: 8px;
  color: var(--about-muted);
  font-weight: 700;
}

.about-testimonial-section,
.about-newsletter {
  margin-top: 42px;
}

.about-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-testimonial-card {
  padding: 22px;
  border: 1px solid var(--about-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.about-testimonial-card img {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 50%;
  object-fit: cover;
}

.about-testimonial-card p {
  margin-bottom: 14px;
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-testimonial-card strong {
  color: var(--about-text);
}

.about-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: 16px;
  background: var(--about-text);
  color: #fff;
}

.about-newsletter h2,
.about-newsletter p {
  color: #fff;
}

.about-newsletter h2 {
  margin: 0;
}

.about-newsletter p {
  margin: 8px 0 0;
  opacity: 0.78;
}

.about-newsletter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
}

.about-newsletter-form .form-control,
.about-newsletter-form .btn {
  min-height: 44px;
}

@media (max-width: 991px) {
  .about-template-2 .about-layout-sidebar,
  .about-template-4 .about-company-panel,
  .about-template-5 .about-stats-hero,
  .about-newsletter {
    grid-template-columns: 1fr;
  }

  .about-team-grid,
  .about-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .about-template-heading {
    margin-bottom: 24px;
  }

  .about-alternating-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .about-alternating-item:nth-child(even) .about-alternating-photo {
    order: initial;
  }

  .about-template-4 .about-company-panel,
  .about-template-5 .about-stats-hero {
    padding: 20px;
  }

  .about-team-grid,
  .about-testimonial-grid,
  .about-counter-grid,
  .about-newsletter-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TYPOGRAPHY - ABOUT
   ========================================================= */

.about-template {
  font-family: var(--font-body);
}

.about-template-heading > h1,
.about-layout-main > h1,
.about-company-copy > h1,
.about-stats-hero h1,
.about-template-3-title h1,
.about-company-copy h2,
.about-newsletter h2 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.about-team-card h3,
.about-sidebar-title {
  font-family: var(--font-heading);
  font-weight: 700;
}

.about-template-lead,
.about-template-content,
.about-template-content p,
.about-template-content li {
  font-family: var(--font-body);
  font-weight: 400;
}
