/**
 * Aimstyle – Certifications widget.
 *
 * Original HTML-widget design. Elementor Style controls override these
 * values from the widget wrapper; var() fallbacks keep the originals.
 */

  /* Originally on :root; scoped so other sections are unaffected. */
  .swm-certifications {
    --swm-navy: #04293D;
    --swm-blue: #034872;
    --swm-green: #00833E;
    --swm-cyan: #0D9AB8;
    --swm-text: #24323d;
    --swm-muted: #7d878e;
    --swm-border: rgba(4, 41, 61, .12);
    --swm-shadow: 0 18px 45px rgba(4, 41, 61, .10);
  }

  .swm-certifications,
  .swm-certifications *,
  .swm-certifications *::before,
  .swm-certifications *::after {
    box-sizing: border-box;
  }

  .swm-certifications {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
  }

  .swm-certifications__inner {
    position: relative;
    z-index: 2;
    margin: 0 auto;
  }

  .swm-certifications__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .swm-cert-card {
    --card-accent: var(--swm-blue);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--swm-card-min-height, 650px);
    padding: 34px 34px 28px;
    border: 1px solid var(--swm-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--swm-shadow);
    overflow: hidden;
    transition:
      transform .35s ease,
      box-shadow .35s ease,
      border-color .35s ease;
  }

  .swm-cert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--card-accent);
  }

  .swm-cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 65px rgba(4, 41, 61, .16);
  }

  .swm-cert-card__logo-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 145px;
    margin: 0 auto 36px;
    border: 1px solid rgba(4, 41, 61, .08);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(4, 41, 61, .07);
  }

  .swm-cert-card__logo {
    display: block;
    max-width: 58%;
    max-height: 58%;
    object-fit: contain;
  }

  .swm-cert-card__title {
    position: relative;
    z-index: 2;
    margin: 0 0 24px;
    padding-bottom: 17px;
    color: var(--swm-navy);
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
  }

  .swm-cert-card__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 20px;
    background: var(--card-accent);
    transform: translateX(-50%);
  }

  .swm-cert-card__standards {
    position: relative;
    z-index: 2;
    margin: -4px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(4, 41, 61, .1);
    color: #41515d;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
  }

  .swm-cert-card__standards span {
    color: var(--card-accent);
    padding: 0 6px;
  }

  .swm-cert-card__list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .swm-cert-card__list li {
    position: relative;
    padding-left: 34px;
    color: #495761;
    font-size: 17px;
    line-height: 1.5;
  }

  .swm-cert-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .08em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--card-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .swm-cert-card__list--arrows li::before {
    content: "»";
    background: transparent;
    color: var(--card-accent);
    font-size: 25px;
    font-weight: 700;
  }

  .swm-cert-card__note {
    position: relative;
    z-index: 2;
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(4, 41, 61, .1);
    color: #6f7a82;
    font-size: 15px;
    line-height: 1.6;
  }

  .swm-cert-card__spacer {
    flex: 1;
  }

  .swm-cert-card__bottom-line {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 4px;
    margin: 30px auto 0;
    border-radius: 20px;
    background: var(--card-accent);
  }

  @media (max-width: 1024px) {
    .swm-certifications {
      padding: 0;
    }

    .swm-certifications__grid {
      gap: 20px;
    }

    .swm-cert-card {
      min-height: var(--swm-card-min-height, 610px);
      padding: 28px 24px 24px;
    }

    .swm-cert-card__logo-wrap {
      width: 125px;
      height: 125px;
    }

    .swm-cert-card__title {
      font-size: 25px;
    }

    .swm-cert-card__list li,
    .swm-cert-card__standards {
      font-size: 15px;
    }
  }

  @media (max-width: 767px) {
    .swm-certifications {
      padding: 0;
    }

    .swm-certifications__grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .swm-cert-card {
      min-height: auto;
      padding: 26px 22px 22px;
      border-radius: 20px;
    }

    .swm-cert-card__logo-wrap {
      width: 170px;
      height: 170px;
      margin-bottom: 28px;
    }

    .swm-cert-card__title {
      font-size: 22px;
      line-height: 1.3;
      margin-bottom: 20px;
      padding-bottom: 14px;
    }

    .swm-cert-card__standards {
      margin-bottom: 20px;
      padding-bottom: 20px;
      font-size: 14px;
      line-height: 1.55;
    }

    .swm-cert-card__list {
      gap: 11px;
    }

    .swm-cert-card__list li {
      padding-left: 31px;
      font-size: 14px;
      line-height: 1.55;
    }

    .swm-cert-card__list li::before {
      width: 19px;
      height: 19px;
      font-size: 11px;
    }

    .swm-cert-card__list--arrows li::before {
      font-size: 22px;
    }

    .swm-cert-card__note {
      margin-top: 22px;
      padding-top: 18px;
      font-size: 13.5px;
      line-height: 1.55;
    }

    .swm-cert-card__bottom-line {
      margin-top: 24px;
    }
  }

  @media (max-width: 480px) {
    .swm-cert-card {
      padding: 24px 18px 20px;
    }

    .swm-cert-card__title {
      font-size: 20px;
      line-height: 1.3;
    }

    .swm-cert-card__standards {
      font-size: 13.5px;
    }

    .swm-cert-card__list li {
      font-size: 13.5px;
      line-height: 1.5;
    }

    .swm-cert-card__note {
      font-size: 13px;
      line-height: 1.5;
    }
  }
