/* ==========================================================
   ABOUT PAGE (À PROPOS) — SCOPED PAGE STYLES (CLEAN)
   What this does:
   - Same layout as your current file
   - Removes selector repetition (nesting) + removes duplicate HERO blocks
   - Keeps backgrounds cream, keeps hero readability fixes, keeps CTA sizing
   Layer: pages
   Notes:
   - Uses modern CSS nesting (supported in modern browsers). If you need “no nesting” version, ask.
   ========================================================== */


  :where(body.page-about, body.page-template-about, body.page-template-about-php, body.page-template-page-about, body.page-template-page-about-php) {
    /* 0) PAGE BACKGROUND (CREAM) */
    background: var(--color-bg);

    & main {
      background: var(--color-bg);
    }

    /* 1) HERO (final values; merged) */
    --hero-overlay: rgba(0,0,0,.10);
    --hero-title-bg: rgba(0,0,0,.62);
    --hero-text-bg: rgba(0,0,0,.55);
    --hero-pill-radius: 12px;

    & .about-hero-wrapper {
      width: calc(100% - 80px);
      max-width: 1400px;
      margin: 80px auto 120px;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 26px 48px rgba(0,0,0,.22);
      position: relative;
      background: var(--color-dark);
    }

    & .about-hero {
      position: relative;
      width: 100%;
      min-height: 580px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
    }

    & .about-hero-bg,
    & .about-hero-bg img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      z-index: 1;
    }

    & .about-hero-overlay {
      position: absolute;
      inset: 0;
      background: var(--hero-overlay);
      z-index: 2;
    }

    & .about-hero .hero-content {
      position: relative;
      z-index: 3;
      max-width: 900px;
      margin: 0 16px;
      padding: 0 20px;
      background: transparent;
      box-shadow: none;
      border-radius: 0;
      color: #fff;
    }

    & .about-hero .hero-content h1 {
      font-family: var(--font-title);
      font-size: 56px;
      font-weight: 700;
      line-height: 1.10;
      margin: 0 0 18px;
      color: #fff;

      display: inline-block;
      padding: .14em .36em;
      background: var(--hero-title-bg);
      border-radius: var(--hero-pill-radius);
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }

    & .about-hero .hero-content p {
      font-family: var(--font-body);
      font-size: 18px;
      line-height: 1.65;
      margin: 0 auto 28px;
      max-width: 760px;
      color: #fff;

      display: inline-block;
      padding: .22em .50em;
      background: var(--hero-text-bg);
      border-radius: 10px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }

    & .about-hero .hero-actions {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    /* 2) TWO-COLUMN SECTION */
    & .about-section {
      padding-top: var(--space-xl);
      padding-bottom: var(--space-xl);
      background: var(--color-bg);
    }

    & .about-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    & .about-text h2 {
      font-family: var(--font-title);
      font-size: 34px;
      margin: 0 0 20px;
      color: var(--color-dark);
    }

    & .about-text p {
      font-family: var(--font-body);
      font-size: 17px;
      line-height: 1.7;
      margin: 0 0 20px;
      color: var(--color-dark);
      opacity: .95;
    }

    & .about-image img {
      width: 100%;
      height: auto;
      border-radius: 14px;
      object-fit: cover;
    }

    /* 3) TIMELINE */
    & .about-timeline {
      background: var(--color-bg);
      color: var(--color-dark);
      padding: 120px 0;
    }

    & .about-timeline .timeline-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    & .about-timeline .timeline-header {
      max-width: 780px;
      margin: 0 auto 48px;
      text-align: center;
    }

    & .about-timeline .timeline-subtitle {
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: .12em;
      margin: 0 0 8px;
      color: var(--color-dark);
      opacity: .9;
    }

    & .about-timeline .timeline-title {
      font-family: var(--font-title);
      font-size: 40px;
      line-height: 1.15;
      margin: 0 0 12px;
      color: var(--color-dark);
    }

    & .about-timeline .timeline-desc {
      font-size: 16px;
      line-height: 1.7;
      color: var(--color-dark);
      opacity: .92;
      margin: 0 auto;
    }

    & .about-timeline .timeline-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 24px;
      align-items: stretch;
    }

    & .about-timeline .timeline-card {
      background: var(--color-white);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,.08);
      display: flex;
      flex-direction: column;
      transition: transform .25s ease, box-shadow .25s ease;
      border: 1px solid rgba(53,83,82,.10);
    }

    & .about-timeline .timeline-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 32px rgba(0,0,0,.18);
    }

    & .about-timeline .timeline-card-img img {
      display: block;
      width: 100%;
      height: 220px;
      object-fit: cover;
    }

    & .about-timeline .timeline-card-body {
      padding: 22px 24px 26px;
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    & .about-timeline .timeline-year {
      display: block;
      font-size: 14px;
      font-weight: 700;
      color: rgba(53,83,82,.82);
      margin: 0;
    }

    & .about-timeline .timeline-card-title {
      font-family: var(--font-title);
      font-size: 20px;
      line-height: 1.25;
      margin: 0;
      color: var(--color-dark);
      min-height: 2.6em; /* reserve ~2 lines */
    }

    & .about-timeline .timeline-card-text {
      font-size: 15.5px;
      line-height: 1.75;
      margin: 0;
      color: var(--color-dark);
      opacity: .95;
    }

    & .about-timeline .timeline-footer {
      text-align: center;
      margin-top: 36px;
      font-size: 14px;
      font-style: italic;
      color: rgba(53,83,82,.90);
    }

    /* 4) TEAM */
    & .about-team {
      background: var(--color-bg);
      padding: 120px 0;
      margin: 0 auto;
      text-align: center;
      max-width: 1400px;
    }

    & .about-team .team-header { margin-bottom: 60px; }

    & .about-team .team-subtitle {
      font-size: 14px;
      color: var(--color-dark);
      opacity: .9;
    }

    & .about-team .team-title {
      font-family: var(--font-title);
      font-size: 42px;
      font-weight: 700;
      margin: 10px 0;
      color: var(--color-dark);
    }

    & .about-team .team-desc {
      font-size: 16px;
      color: var(--color-dark);
      opacity: .9;
    }

    & .about-team .team-grid {
      margin-top: 60px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 60px;
    }

    & .about-team .team-card {
      position: relative;
      background: var(--color-white);
      border-radius: 22px;
      box-shadow: 0 10px 30px rgba(0,0,0,.08);
      border: 1px solid rgba(53,83,82,.06);
      overflow: hidden;
      text-align: left;
      display: flex;
      flex-direction: column;
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

    & .about-team .team-card picture {
      display: block;
      margin: 0;
      width: 100%;
    }

    & .about-team .team-card img {
      width: 100%;
      aspect-ratio: 4 / 5;
      height: auto;
      object-fit: cover;
      display: block;
    }

    & .about-team .team-card h3 {
      margin: 18px 22px 4px;
      font-size: 20px;
      font-weight: 700;
      color: var(--color-dark);
    }

    & .about-team .team-card .role {
      margin: 0 22px 12px;
      font-size: 15px;
      font-weight: 600;
      color: var(--color-dark);
      opacity: .9;
    }

    & .about-team .team-card .bio {
      margin: 0 22px 22px;
      font-size: 15px;
      line-height: 1.6;
      color: var(--color-dark);
      opacity: .95;
    }

    & .about-team .team-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 22px 60px rgba(0,0,0,.18);
      border-color: rgba(15,163,177,.45);
    }

    & .about-team .team-cta { margin-top: 80px; }

    & .about-team .team-cta h2 {
      font-family: var(--font-title);
      font-size: 34px;
      margin: 0 0 14px;
      color: var(--color-dark);
    }

    & .about-team .team-cta p {
      font-size: 16px;
      margin: 0 0 20px;
      color: var(--color-dark);
      opacity: .9;
    }

    /* 5) TESTIMONIAL */
    & .about-testimonial {
      background: var(--color-bg);
      padding: 100px 20px 120px;
      text-align: center;
    }

    & .about-testimonial .testimonial-wrap {
      max-width: 820px;
      margin: 0 auto;
    }

    & .about-testimonial .testimonial-heading {
      font-family: var(--font-title);
      font-size: 32px;
      font-weight: 700;
      color: var(--color-dark);
      margin: 0 0 10px;
    }

    & .about-testimonial .testimonial-subtitle {
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.7;
      color: var(--color-dark);
      margin: 0 0 40px;
      opacity: .9;
    }

    & .about-testimonial .testimonial-text {
      font-family: var(--font-title);
      font-size: 26px;
      font-weight: 600;
      line-height: 1.6;
      color: var(--color-dark);
      margin: 0 0 32px;
    }

    & .about-testimonial .testimonial-author {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    & .about-testimonial .testimonial-author img {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      display: block;
      margin: 0 auto 10px;
    }

    & .about-testimonial .testimonial-author h4 {
      font-size: 17px;
      font-weight: 700;
      color: var(--color-dark);
      margin: 0 0 4px;
    }

    & .about-testimonial .testimonial-author p {
      font-size: 15px;
      margin: 0;
      color: var(--color-dark);
      opacity: .9;
    }

    /* 6) CONTENT / GOVERNANCE */
    & .about-content {
      background: var(--color-bg);
      padding: 120px 20px;
    }

    & .about-content .content-wrap {
      max-width: 1100px;
      margin: 0 auto;
      text-align: center;
    }

    & .about-content-title {
      font-family: var(--font-title);
      font-size: 38px;
      font-weight: 700;
      color: var(--color-dark);
      margin: 0 0 10px;
    }

    & .about-content-subtitle {
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.7;
      color: var(--color-dark);
      margin: 0 0 40px;
      opacity: .9;
    }

    & .about-governance-card {
      background: var(--color-white);
      border-radius: 24px;
      padding: 40px 40px 30px;
      box-shadow: 0 18px 45px rgba(0,0,0,.06);
      text-align: left;
      border: 1px solid rgba(53,83,82,.10);
    }

    & .governance-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 40px;
      margin-bottom: 28px;
    }

    & .governance-col-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    & .gov-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: var(--color-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    & .gov-icon img {
      width: 22px;
      height: 22px;
      display: block;
    }

    & .governance-col h3 {
      font-family: var(--font-title);
      font-size: 20px;
      font-weight: 700;
      color: var(--color-dark);
      margin: 0;
    }

    & .governance-col p {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.8;
      color: var(--color-dark);
      margin: 0 0 18px;
      opacity: .95;
    }

    & .governance-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    & .governance-list li {
      position: relative;
      padding-left: 18px;
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.8;
      color: var(--color-dark);
      margin-bottom: 8px;
      opacity: .95;
    }

    & .governance-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .9em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--color-primary);
      transform: translateY(-50%);
    }

    & .governance-commitment {
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--color-white, #fff);
  border: 1px solid rgba(53,83,82,12);
}

    & .governance-commitment p {
      margin: 0;
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.7;
      color: var(--color-dark);
    }

    & .governance-steps {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    & .gov-step {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      margin: 0 0 14px;
    }

    & .gov-step-icon {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: var(--color-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 34px;
    }

    & .gov-step-icon img {
      display: block;
      width: 22px;
      height: 22px;
    }

    & .gov-step-content {
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.8;
      color: var(--color-dark);
    }

    & .gov-step-content strong { font-weight: 700; }

    /* 8) CTA FINAL */
    & .about-cta {
      background: var(--color-dark);
      padding: 0;
    }

    & .about-cta .cta-wrapper {
      width: 100%;
      max-width: none;
      border-radius: 0;
      overflow: hidden;
      position: relative;
      background-size: cover;
      background-position: center;

      padding: 25px;
      min-height: 520px;

      display: flex;
      justify-content: center;
    }

    & .about-cta .cta-wrapper::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,72,88,.78);
    }

    & .about-cta .cta-content {
      position: relative;
      text-align: center;
      max-width: 840px;
      padding: 0;
      background: transparent;
      color: var(--color-white);
    }

    & .about-cta .cta-icon {
      display: flex;
      justify-content: center;
      margin-bottom: 28px;
    }

    & .about-cta .cta-icon-circle {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: var(--color-primary);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    & .about-cta .cta-icon-circle img {
      width: 28px;
      height: 28px;
      display: block;
    }

    & .about-cta .cta-content h2 {
      font-family: var(--font-title);
      font-size: 48px;
      font-weight: 700;
      line-height: 1.15;
      margin: 0 0 18px;
      color: var(--color-white);
    }

    & .about-cta .cta-content p {
      font-family: var(--font-body);
      font-size: 18px;
      line-height: 1.7;
      margin: 0 0 32px;
      color: rgba(255,255,255,.92);
    }

    & .about-cta .cta-buttons {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    & .about-cta .cta-partner-cards {
      margin-top: 56px;
      display: flex;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    & .about-cta .partner-card {
      flex: 1 1 260px;
      max-width: 320px;
      padding: 22px 26px 20px;
      border-radius: 24px;
      background: rgba(0,0,0,.45);
      box-shadow: 0 18px 40px rgba(0,0,0,.35);
      text-align: left;
      color: var(--color-white);
      font-family: var(--font-body);
      border: 1px solid rgba(255,255,255,.10);
    }

    & .about-cta .partner-card h3 {
      font-family: var(--font-title);
      font-size: 18px;
      font-weight: 700;
      margin: 0 0 8px;
      color: var(--color-white);
    }

    & .about-cta .partner-card p {
      font-size: 14px;
      line-height: 1.6;
      margin: 0;
      color: rgba(255,255,255,.92);
    }

    /* RESPONSIVE */
    @media (max-width: 1100px) {
      & .about-timeline { padding: 100px 0; }
      & .about-timeline .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      & .about-team .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    }

    @media (max-width: 900px) {
      & .about-hero-wrapper { width: calc(100% - 32px); margin: 60px auto 90px; }
      & .about-hero { min-height: 480px; padding: 40px 16px; }
      & .about-hero .hero-content h1 { font-size: 40px; }
      & .about-hero .hero-content p { font-size: 16px; }

      & .about-wrap { grid-template-columns: 1fr; text-align: center; }
      & .about-text { order: 2; }
      & .about-image { order: 1; }

      & .governance-grid { grid-template-columns: 1fr; gap: 30px; }
      & .about-governance-card { padding: 30px 22px 24px; }
      & .about-content-title { font-size: 30px; }

      & .about-cta .cta-wrapper { padding: 22px 16px; min-height: 420px; }
      & .about-cta .cta-content h2 { font-size: 38px; }
      & .about-cta .cta-content p { font-size: 17px; }
      & .about-cta .cta-buttons { flex-direction: column; gap: 12px; }
      & .about-cta .cta-partner-cards { margin-top: 40px; }
      & .about-cta .partner-card { max-width: none; }
    }

    @media (max-width: 700px) {
      & .about-timeline { padding: 80px 0; }
      & .about-timeline .timeline-title { font-size: 30px; }
      & .about-timeline .timeline-grid { grid-template-columns: 1fr; }
      & .about-timeline .timeline-card-title { min-height: 0; }

      & .about-team { padding: 80px 0; }
      & .about-team .team-grid { grid-template-columns: 1fr; gap: 40px; }
      & .about-team .team-card img { aspect-ratio: 3 / 4; }

      & .about-testimonial .testimonial-heading { font-size: 26px; }
      & .about-testimonial .testimonial-text { font-size: 22px; }

      & .about-content { padding: 90px 16px; }
      & .about-content-subtitle { margin-bottom: 30px; }
    }

    @media (max-width: 600px) {
      & .about-hero-wrapper { width: calc(100% - 28px); margin: 40px auto 70px; }
      & .about-hero { min-height: 520px; padding: 24px 14px; }

      /* One clean dark card (mobile) */
      & .about-hero .hero-content {
        width: min(92vw, 560px);
        margin: 0 auto;
        padding: 18px 16px;
        border-radius: 18px;
        background: rgba(0,0,0,0.56);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
      }

      /* Remove pills on mobile */
      & .about-hero .hero-content h1 {
        font-size: clamp(30px, 8.2vw, 40px);
        line-height: 1.12;
        margin: 0 0 12px;
        background: transparent;
        padding: 0;
        border-radius: 0;
        -webkit-box-decoration-break: initial;
        box-decoration-break: initial;
      }

      & .about-hero .hero-content p {
        font-size: 14px;
        line-height: 1.55;
        margin: 0 auto 18px;
        background: transparent;
        padding: 0;
        border-radius: 0;
        -webkit-box-decoration-break: initial;
        box-decoration-break: initial;
      }

      & .about-cta .cta-icon-circle { width: 56px; height: 56px; }
      & .about-cta .cta-icon-circle img { width: 24px; height: 24px; }
      & .about-cta .cta-partner-cards { gap: 16px; }
      & .about-cta .partner-card { padding: 18px 20px 16px; }
    }
  }
 /* end @layer pages */

/* ======================================================
   FIX: Timeline cards image should be full-width (match prototype)
   Paste at END of about.css
====================================================== */

:where(body.page-about,
       body.page-template-about,
       body.page-template-about-php,
       body.page-template-page-about,
       body.page-template-page-about-php)
.about-timeline .timeline-card{
  padding: 0 !important;          /* kills any global “card padding” that ruins the image */
  overflow: hidden;               /* ensures image corners are clean */
}

:where(body.page-about,
       body.page-template-about,
       body.page-template-about-php,
       body.page-template-page-about,
       body.page-template-page-about-php)
.about-timeline .timeline-card-img{
  padding: 0 !important;
  margin: 0 !important;
}

:where(body.page-about,
       body.page-template-about,
       body.page-template-about-php,
       body.page-template-page-about,
       body.page-template-page-about-php)
.about-timeline .timeline-card-img img{
  display: block;
  width: 100% !important;
  height: 220px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;  /* rounded only at top like your prototype */
}
