{
  "template": {
    "ir": "0.1.0",
    "meta": {
      "name": "course-certificate",
      "version": "1.0.0"
    },
    "page": {
      "size": "A4",
      "margins": "18mm",
      "direction": "rtl"
    },
    "styles": {
      "body": {
        "font": "Cairo",
        "size": "11pt",
        "lineHeight": 1.9,
        "align": "center"
      },
      "org": {
        "font": "Cairo",
        "weight": 700,
        "size": "14pt",
        "align": "center",
        "color": "#1A3C6E"
      },
      "big": {
        "font": "Cairo",
        "weight": 700,
        "size": "26pt",
        "align": "center",
        "color": "#8A1538"
      },
      "name": {
        "font": "Cairo",
        "weight": 700,
        "size": "20pt",
        "align": "center",
        "color": "#1A3C6E"
      },
      "line": {
        "font": "Cairo",
        "size": "11.5pt",
        "align": "center"
      },
      "mut": {
        "font": "Cairo",
        "size": "9pt",
        "align": "center",
        "color": "#66788c"
      }
    },
    "body": [
      {
        "type": "text",
        "bind": "$.org.name",
        "style": "org"
      },
      {
        "type": "spacer",
        "height": "10mm"
      },
      {
        "type": "heading",
        "text": "شهادة إتمام",
        "level": 1,
        "style": "big"
      },
      {
        "type": "text",
        "text": "Certificate of Completion",
        "style": "mut"
      },
      {
        "type": "spacer",
        "height": "8mm"
      },
      {
        "type": "text",
        "text": "تشهد الجهة المذكورة أعلاه بأنّ",
        "style": "line"
      },
      {
        "type": "text",
        "bind": "$.student.name",
        "style": "name"
      },
      {
        "type": "spacer",
        "height": "3mm"
      },
      {
        "type": "text",
        "runs": [
          {
            "text": "قد أتمّ بنجاح دورة "
          },
          {
            "bind": "$.course.name",
            "style": "b"
          },
          {
            "text": " بواقع "
          },
          {
            "bind": "$.course.hours"
          },
          {
            "text": " ساعة تدريبية، خلال الفترة من "
          },
          {
            "bind": "$.course.from",
            "format": {
              "dateStyle": "long"
            }
          },
          {
            "text": " إلى "
          },
          {
            "bind": "$.course.to",
            "format": {
              "dateStyle": "long"
            }
          },
          {
            "text": "."
          }
        ],
        "style": "line"
      },
      {
        "type": "spacer",
        "height": "14mm"
      },
      {
        "type": "row",
        "align": "space-between",
        "children": [
          {
            "type": "signature",
            "field": "director",
            "label": "مدير المركز",
            "bind": "$.org.director"
          },
          {
            "type": "seal",
            "reason": "شهادة صادرة إلكترونياً وقابلة للتحقق"
          }
        ]
      },
      {
        "type": "spacer",
        "height": "6mm"
      },
      {
        "type": "text",
        "text": "امسح رمز الختم للتحقق من صحة هذه الشهادة",
        "style": "mut"
      }
    ]
  },
  "data": {
    "org": {
      "name": "أكاديمية المستقبل للتدريب",
      "director": "م. خالد العتيبي"
    },
    "student": {
      "name": "سارة عبدالله المطيري"
    },
    "course": {
      "name": "تحليل البيانات باستخدام بايثون",
      "hours": 40,
      "from": "2026-06-01",
      "to": "2026-06-26"
    }
  }
}