:root {
        --bg: #fffaf2;
        --border: #d8b57a;
        --accent: #b85b00;
        --text: #3a2f23;
      }
      * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        padding: 30px;
        font-family: "Montserrat", sans-serif;
        background: linear-gradient(180deg, #fff 0%, #fffaf2 100%);
        color: var(--text);
        -webkit-print-color-adjust: exact;
      }

      .certificate {
        max-width: 1100px;
        margin: 20px auto;
        background: var(--bg);
        padding: 46px;
        border: 12px solid #fff;
        position: relative;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
      }

      /* decorative inner border */
      .certificate::before {
        content: "";
        position: absolute;
        inset: 18px;
        border: 6px solid var(--border);
        pointer-events: none;
        border-radius: 6px;
      }

      header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 28px;
        position: relative;
        z-index: 2;
      }
      .left-photo,
      .center-emblem,
      .right-logo {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .left-photo img,
      .center-emblem img,
      .right-logo img {
        display: block;
        max-width: 120px;
        height: auto;
        border-radius: 100%;
      }
      .center-emblem {
        flex: 1;
        justify-content: center;
      }

      .content {
        text-align: left;
        padding: 10px 30px;
        line-height: 1.45;
        font-size: 18px;
        color: var(--text);
        position: relative;
        z-index: 2;
      }

      .intro {
        font-family: "Merriweather", serif;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 18px;
        text-align: justify;
        word-spacing: 14px;
      }

      .main-text {
        font-size: 18px;
        color: var(--text);
      }

      .name-line {
        display: block;
        margin: 14px 0;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 1px;
      }

      .highlight {
        color: var(--accent);
        font-weight: 700;
        font-family: "Merriweather", serif;
      }

      .appreciation {
        margin-top: 26px;
        text-align: center;
        font-weight: 700;
        color: var(--accent);
        font-size: 20px;
      }

      .signature-block {
        margin-top: 46px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
      }

      .signature {
        text-align: center;
        font-size: 15px;
        color: var(--text);
      }

      .signature img {
        max-width: 220px;
        height: auto;
        display: block;
      }

      /* footer floral decorations (simple) */
      .floral-left,
      .floral-right {
        position: absolute;
        bottom: 6%;
        width: 140px;
        height: 20%;
        /* opacity: 0.95; */
      }
      .floral-left {
        left: 42%;
        /* transform: rotate(5deg); */
      }
      .floral-right {
        right: 8px;
        transform: scaleX(-1) rotate(-5deg);
      }

      /* responsive */
      @media (max-width: 700px) {
        .certificate {
          padding: 20px;
        }
        header {
          flex-direction: row;
          gap: 8px;
        }
        .left-photo img,
        .center-emblem img,
        .right-logo img {
          max-width: 80px;
        }
        .content {
          padding: 6px;
        }
        .intro {
          font-size: 18px;
        }
        .main-text {
          font-size: 16px;
        }
      }