
:host {
  display: block;
  direction: rtl;
}

.page-007-achievements {
  --p007-blue: #1e3a5f;
  --p007-gold: #d4af37;
  --p007-light: #f8fafc;
  --p007-gray: #f1f5f9;
  --p007-dot: #e2e8f0;
  position: relative;
  width: 297mm;
  min-height: 210mm;
  height: 210mm;
  overflow: hidden;
  background-color: #ffffff;
  background-image: radial-gradient(var(--p007-dot) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--p007-blue);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

.page-007-achievements *,
.page-007-achievements *::before,
.page-007-achievements *::after {
  box-sizing: border-box;
}

.page-007-achievements::before,
.page-007-achievements::after {
  content: "";
  position: absolute;
  background: rgba(241, 245, 249, .62);
  z-index: -1;
  pointer-events: none;
}

.page-007-achievements::before {
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  border-bottom-left-radius: 100px;
}

.page-007-achievements::after {
  left: 0;
  bottom: 0;
  width: 384px;
  height: 384px;
  border-top-right-radius: 150px;
  opacity: .52;
}

.p007-header {
  width: 100%;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 231, 235, .92);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.p007-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p007-logo {
  width: 48px;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.p007-brand-title {
  margin: 0;
  color: var(--p007-blue);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.p007-brand-code,
.p007-doc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.p007-brand-code {
  margin: 3px 0 0;
  color: #9ca3af;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.p007-ref {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p007-ref-label {
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.p007-ref-divider {
  width: 1px;
  height: 16px;
  background: #d1d5db;
}

.p007-page-no {
  color: var(--p007-blue);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.p007-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 48px;
  padding: 48px;
}

.p007-intro {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 16px;
}

.p007-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--p007-gray);
  border: 1px solid #e5e7eb;
}

.p007-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p007-gold);
}

.p007-chip-text {
  color: var(--p007-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}

.p007-title {
  margin: 0 0 16px;
  color: var(--p007-blue);
  font-size: clamp(46px, 4.55vw, 62px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

.p007-title span {
  color: var(--p007-gold);
}

.p007-subtitle {
  margin: 0 0 32px;
  padding-right: 16px;
  border-right: 2px solid var(--p007-gold);
  color: #6b7280;
  font-size: 25px;
  line-height: 1.6;
  font-weight: 600;
}

.p007-note {
  padding: 24px;
  border-radius: 24px;
  background: rgba(241, 245, 249, .54);
  border-right: 4px solid var(--p007-gold);
}

.p007-note p {
  margin: 0;
  color: rgba(30, 58, 95, .82);
  font-size: 18px;
  line-height: 1.95;
  font-weight: 400;
}

.p007-cards {
  width: 60%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-content: center;
}

.p007-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(30, 58, 95, .10);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .05);
}

.p007-card--hero {
  grid-column: 1 / -1;
  padding: 32px;
}

.p007-card--small {
  padding: 24px;
}

.p007-card--hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: rgba(212, 175, 55, .05);
  border-bottom-left-radius: 999px;
}

.p007-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.p007-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--p007-blue);
  color: #ffffff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -14px rgba(30, 58, 95, .55);
}

.p007-small-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--p007-gray);
  border: 1px solid #e5e7eb;
  color: var(--p007-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p007-icon-svg {
  width: 100%;
  height: 100%;
}

.p007-small-icon .p007-icon-svg {
  width: 24px;
  height: 24px;
}

.p007-card-title {
  margin: 0 0 8px;
  color: var(--p007-blue);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 800;
}

.p007-card-title--small {
  font-size: 18px;
  margin-bottom: 8px;
}

.p007-card-text {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
}

.p007-card-text strong {
  color: var(--p007-blue);
  font-weight: 800;
}

.p007-card-text--small {
  font-size: 14px;
  line-height: 1.85;
}

@media print {
  :host {
    break-inside: avoid;
  }

  .page-007-achievements {
    width: 297mm;
    height: 210mm;
    min-height: 210mm;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

@media screen and (max-width: 900px) {
  .page-007-achievements {
    width: 100%;
    height: auto;
    min-height: 720px;
  }

  .p007-header,
  .p007-main {
    padding: 28px;
  }

  .p007-main {
    flex-direction: column;
  }

  .p007-intro,
  .p007-cards {
    width: 100%;
  }
}


/* SCREEN_CENTERING_FIX: توحيد تموضع الصفحات المخصصة داخل عارض المشروع */
@media screen {
  .page-007-achievements {
    margin: 18px auto;
    box-shadow: 0 15px 50px rgba(15, 23, 42, .18);
  }
}

@media print {
  .page-007-achievements {
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* PRODUCTION_A4_FIT_20260807: keep all semantic content inside the fixed A4 canvas. */
.page-007-achievements .p007-header { padding: 20px 38px; }
.page-007-achievements .p007-main { gap: 34px; padding: 30px 38px; }
.page-007-achievements .p007-intro { padding-right: 10px; }
.page-007-achievements .p007-chip { margin-bottom: 14px; padding: 6px 13px; }
.page-007-achievements .p007-title { margin-bottom: 10px; font-size: clamp(40px, 3.7vw, 52px); }
.page-007-achievements .p007-subtitle { margin-bottom: 18px; font-size: 20px; line-height: 1.45; }
.page-007-achievements .p007-note { padding: 17px 18px; border-radius: 18px; }
.page-007-achievements .p007-note p { font-size: 15px; line-height: 1.58; }
.page-007-achievements .p007-cards { gap: 18px; }
.page-007-achievements .p007-card--hero { padding: 24px; }
.page-007-achievements .p007-card--small { padding: 19px; }
.page-007-achievements .p007-hero-icon { width: 54px; height: 54px; border-radius: 16px; }
.page-007-achievements .p007-card-title { font-size: 21px; }
.page-007-achievements .p007-card-text { font-size: 14.5px; line-height: 1.62; }
.page-007-achievements .p007-small-icon { margin-bottom: 10px; }
.page-007-achievements .p007-card-title--small { font-size: 16.5px; }
.page-007-achievements .p007-card-text--small { font-size: 13px; line-height: 1.55; }
