@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root{
  --green:#075f4c;
  --green-dark:#034b3d;
  --green-soft:#eaf5f1;
  --orange:#f39a16;
  --gold:#d6b24c;
  --border:#d9d9d9;
  --text:#24302e;
  --paper:#fff;
  --shadow:0 2px 10px rgba(0,0,0,.08);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:#e9eceb;
  color:var(--text);
  font-family:'Cairo',Tahoma,Arial,sans-serif;
  line-height:1.65;
}

.page{
  position:relative;
  width:min(100%, 1055px);
  min-height:1491px;
  margin:24px auto;
  padding:28px 62px 36px;
  background:
    radial-gradient(circle at 88% 8%, rgba(7,95,76,.035) 0 2px, transparent 3px) 0 0/18px 18px,
    #fff;
  overflow:hidden;
  box-shadow:0 5px 25px rgba(0,0,0,.16);
}

/* الزخارف */
.corner{
  position:absolute;
  pointer-events:none;
  z-index:0;
}

.corner-top-left{
  width:220px;height:150px;left:-55px;top:-50px;
  background:var(--green);
  border-radius:0 0 75% 0;
  transform:rotate(-8deg);
}
.corner-top-left:after{
  content:"";
  position:absolute;
  width:185px;height:100px;
  background:var(--orange);
  left:18px;top:43px;
  border-radius:0 0 80% 0;
}

.corner-top-right{
  width:90px;height:90px;right:-45px;top:-45px;
  border:2px solid rgba(7,95,76,.22);
  border-radius:50%;
}

.corner-bottom-right{
  width:250px;height:130px;right:-65px;bottom:-45px;
  background:var(--green);
  border-radius:75% 0 0 0;
}
.corner-bottom-right:after{
  content:"";
  position:absolute;
  width:170px;height:90px;
  background:var(--orange);
  right:55px;bottom:10px;
  border-radius:75% 0 0 0;
}

.corner-bottom-left{
  width:100px;height:100px;left:-55px;bottom:-55px;
  border:2px solid rgba(7,95,76,.18);
  border-radius:50%;
}

.header,.intro-grid,.section,.columns,.signatures,footer{
  position:relative;
  z-index:1;
}

.header{
  padding-top:6px;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  min-height:105px;
}

.crest{
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  font-size:52px;
  border-right:1px solid #ccc;
  padding-right:18px;
}

.ministry{
  text-align:right;
  color:#202b29;
  line-height:1.45;
  font-size:19px;
}
.ministry strong{display:block}

.hero{
  margin-top:10px;
  padding:15px 22px 13px;
  border-radius:18px;
  background:var(--green);
  color:white;
  text-align:center;
  box-shadow:var(--shadow);
}

.hero h1{
  margin:0;
  font-size:27px;
  font-weight:800;
  letter-spacing:-.4px;
}

.hero p{
  margin:2px 0 0;
  font-size:15px;
  font-weight:500;
}

.date-badge{
  display:inline-block;
  background:#fff;
  color:#34413e;
  padding:5px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  margin-bottom:3px;
}

.intro-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin:12px 0;
}

.info-card{
  min-height:76px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 17px;
  background:#fff;
  border:1px solid #d9d9d9;
  border-right:4px solid var(--orange);
  border-radius:13px;
  box-shadow:0 1px 4px rgba(0,0,0,.035);
}

.info-card .icon{font-size:24px}
.info-card h2{
  margin:0;
  color:var(--green);
  font-size:17px;
}
.info-card p{
  margin:1px 0 0;
  font-size:13px;
  line-height:1.45;
}

.section{
  border:1px solid #dedede;
  border-radius:13px;
  padding:10px 18px 14px;
  margin:9px 0;
  background:rgba(255,255,255,.94);
}

.section-title{
  color:var(--green);
  margin:0 0 5px;
  padding-bottom:4px;
  border-bottom:2px solid var(--gold);
  font-size:19px;
  line-height:1.35;
  font-weight:800;
}

.section-title small{
  font-size:15px;
}

.section p{
  margin:4px 0;
  font-size:13px;
  text-align:right;
}

.table-wrap{overflow-x:auto}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:8px;
  font-size:11.5px;
  border:1px solid #cbd7d2;
}

th{
  background:var(--green);
  color:white;
  padding:6px 8px;
  font-weight:800;
}

td{
  padding:5px 8px;
  border:1px solid #d1ddd8;
  vertical-align:middle;
  line-height:1.45;
}

tbody tr:nth-child(even){background:#f4f8f6}

.columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  align-items:start;
}

.columns .section{
  margin:0;
  height:100%;
}

.mini-table{
  font-size:10.5px;
  margin-top:7px;
}
.mini-table th,.mini-table td{padding:4px 6px}

.notes,.check-list{
  margin:7px 0 0;
  padding-right:19px;
  font-size:11.5px;
}
.notes li,.check-list li{margin:2px 0}

.highlight{
  background:#eef8f1;
  border:1px solid #c8dfd0;
  border-radius:10px;
  margin-top:8px;
  padding:7px 11px;
}
.highlight strong{
  display:block;
  color:var(--green);
  font-size:13px;
}
.highlight p{font-size:10.5px}

.check-list{
  list-style:"◆  ";
}

.conclusion{
  margin-top:10px;
}

.recommendations{
  border:1px dashed #9eaaa6;
  border-radius:9px;
  padding:7px 12px;
  margin-top:7px;
  font-size:11.5px;
  background:#fff;
}
.recommendations div{margin:2px 0}

.signatures{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:13px 2px 5px;
}

.signature{
  min-height:58px;
  border:1px solid #ddd;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#fff;
  font-size:12px;
}

.signature span{font-size:22px}

footer{
  text-align:center;
  color:var(--orange);
  font-weight:800;
  font-size:17px;
  margin-top:6px;
}

/* الطباعة */
@page{
  size:A4 portrait;
  margin:0;
}

@media print{
  body{background:white}
  .page{
    width:210mm;
    min-height:297mm;
    margin:0;
    padding:8mm 12mm 7mm;
    box-shadow:none;
  }
}

/* الأجهزة اللوحية */
@media (max-width:800px){
  .page{
    margin:0;
    padding:20px 24px 30px;
    min-height:100vh;
  }
  .hero h1{font-size:22px}
  .ministry{font-size:16px}
  .crest{font-size:42px;width:70px;height:70px}
}

/* الهاتف */
@media (max-width:620px){
  body{background:#fff}
  .page{padding:14px 12px 28px}
  .brand{
    justify-content:flex-start;
    gap:8px;
    min-height:75px;
  }
  .crest{
    font-size:31px;
    width:48px;height:55px;
    padding-right:7px;
  }
  .ministry{font-size:11px}
  .hero{
    border-radius:12px;
    padding:11px 10px;
  }
  .hero h1{font-size:17px}
  .hero p{font-size:10px}
  .date-badge{font-size:10px}
  .intro-grid,.columns{grid-template-columns:1fr}
  .info-card{min-height:66px;padding:8px 12px}
  .info-card h2{font-size:14px}
  .info-card p{font-size:10.5px}
  .section{padding:8px 10px 11px}
  .section-title{font-size:15px}
  .section-title small{font-size:12px}
  .section p{font-size:10.5px}
  table{font-size:9px}
  th,td{padding:4px}
  .mini-table{font-size:8.8px}
  .notes,.check-list,.recommendations{font-size:9.5px}
  .signatures{grid-template-columns:1fr;gap:6px}
  .signature{min-height:45px}
}

/* وضع القراءة الطويلة */
@media screen and (max-width:420px){
  .corner-top-left{width:150px;height:105px}
  .corner-top-left:after{width:120px;height:70px}
  .corner-bottom-right{width:170px;height:95px}
}
