@charset "UTF-8";
/* ==========================================================================
   Pakdis — certificates & honours
   --------------------------------------------------------------------------
   Standalone sheet for certs.html. Tokens, header, footer, .plate, .ptitle,
   .breadcrumb and .section-head come from css/style.css. Purple is structure,
   gold is incident; card corners are the news card's (9 9 32 9); the certificate
   "sheet" is drawn in CSS so a real scan can simply replace it.
   ========================================================================== */

/* -- 1. Opening band (the company page's band, shorter at the foot) ------- */
.certhead {
  position: relative;
  overflow: hidden;
  padding-block: var(--hero-top) 96px;
  background: linear-gradient(158deg,
    color-mix(in srgb, var(--purple-flood) 88%, #fff) 0%,
    var(--purple-flood) 42%, #3b256b 78%, #34205f 100%);
  isolation: isolate;
}
.certhead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/pattern-gallery.png) left -419px top -101px / 2477px auto repeat;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 76%, transparent 99%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 76%, transparent 99%);
}
.certhead__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 560px at calc(100% + 220px) -180px, rgb(187 167 96 / .26) 0%, rgb(187 167 96 / 0) 70%),
    radial-gradient(760px 520px at -12% 108%, rgb(255 255 255 / .07) 0%, rgb(255 255 255 / 0) 72%);
}
.certhead::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to left, rgb(187 167 96 / 0), rgb(187 167 96 / .45) 30%, rgb(187 167 96 / .45) 70%, rgb(187 167 96 / 0));
  pointer-events: none;
}
.certhead__inner { position: relative; z-index: 1; }

.certhead .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .7);
}
.certhead .breadcrumb a { color: rgba(255, 255, 255, .7); transition: color .2s var(--ease); }
.certhead .breadcrumb a:hover { color: var(--gold); }
.certhead .breadcrumb span { color: #fff; }
.certhead .breadcrumb__sep {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .6;
  rotate: 180deg;
}
.certhead ::selection { background: var(--gold); color: var(--purple-deep); }
.certhead a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 3px; }


/* -- 2. Intro ---------------------------------------------------------------- */
.cintro {
  padding-block: 84px 36px;
  background: radial-gradient(640px 420px at 100% 0%, rgb(187 167 96 / .10) 0%, rgb(187 167 96 / 0) 70%), #fff;
}
.cintro__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.cintro__kicker { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.cintro__kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.cintro__title { margin: 0 0 18px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; line-height: 1.4; color: var(--purple); }
.cintro__text { margin: 0 0 14px; font-size: 18px; font-weight: 300; line-height: 2; color: var(--grey-600, #666); text-align: justify; }
.cintro__text strong { font-weight: 700; color: var(--purple); }

/* The brand mark, set free of any frame: large, on a soft gold light, with a
   gold rule on the text side — it reads as the page's signature beside the copy. */
.cintro__logo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px 12px;
  isolation: isolate;
}
.cintro__logo::before {                    /* the light behind the mark */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -6%;
  background: radial-gradient(closest-side, rgb(187 167 96 / .22), rgb(187 167 96 / .06) 62%, rgb(187 167 96 / 0) 100%);
}
.cintro__logo::after {                     /* gold rule on the reading side of the copy */
  content: "";
  position: absolute;
  inset-block: 14% 14%;
  inset-inline-start: -36px;
  width: 1.5px;
  background: linear-gradient(to bottom, rgb(187 167 96 / 0), var(--gold) 30%, var(--gold) 70%, rgb(187 167 96 / 0));
}
.cintro__logo img {
  display: block;
  width: min(420px, 100%);
  height: auto;
  filter: drop-shadow(0 22px 22px rgb(68 47 114 / .22));
  animation: logo-float 7s ease-in-out infinite;
}
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .cintro__logo img { animation: none; } }

/* -- 3. Certificates --------------------------------------------------------- */
.certs { padding-block: 56px 100px; background: #fff; }
.certs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.cert-item { display: flex; }

.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 22px 22px 20px;
  text-align: start;
  font: inherit;
  color: var(--purple);
  background: #fff;
  border: 1.5px solid rgb(68 47 114 / .16);
  border-radius: 9px 9px 36px 9px;
  box-shadow: 0 22px 38px -30px rgb(17 7 53 / .65);
  cursor: pointer;
  transition: transform .4s var(--ease), border-color .35s var(--ease), box-shadow .4s var(--ease);
}
.cert-item:nth-child(even) .cert-card { border-color: rgb(187 167 96 / .5); }
.cert-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 30px 44px -28px rgb(17 7 53 / .7); }
.cert-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.cert-card__body { display: grid; gap: 4px; margin-top: 20px; }
.cert-card__code { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--gold); direction: ltr; text-align: start; }
.cert-card__name { font-size: 20px; font-weight: 900; line-height: 1.5; }
.cert-card__note { font-size: 14px; font-weight: 300; color: var(--grey-600, #666); }
.cert-card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 15px; font-weight: 500; color: var(--gold);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.cert-card__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cert-card:hover .cert-card__more { gap: 10px; color: var(--purple); }

/* The sheet: a portrait certificate drawn in CSS. Drop an <img> inside it and
   it fills the sheet; the drawing sits underneath and is covered. */
.cert-sheet {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px 6px 22px 6px;
  background:
    radial-gradient(120% 90% at 50% 0%, #fff 0%, #f6f1e2 100%);
  box-shadow: inset 0 0 0 1px rgb(187 167 96 / .45), 0 12px 22px -16px rgb(17 7 53 / .5);
}
.cert-sheet::before {                      /* double gold frame */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid var(--gold);
  border-radius: 3px 3px 14px 3px;
  box-shadow: inset 0 0 0 5px #f9f5e8, inset 0 0 0 6.5px rgb(187 167 96 / .55);
}
.cert-sheet img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.cert-sheet__title {
  position: absolute; inset: 15% 26% auto; height: 9px; border-radius: 5px;
  background: var(--purple); opacity: .85;
}
.cert-sheet__lines {
  position: absolute; inset: 27% 18% 38%;
  background: repeating-linear-gradient(to bottom, rgb(68 47 114 / .22) 0 3px, transparent 3px 14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.cert-sheet__seal {
  position: absolute; inset-inline-start: 50%; bottom: 14%; translate: 50% 0;
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8c986, var(--gold) 55%, #9c8942);
  box-shadow: 0 0 0 4px rgb(187 167 96 / .3), 0 8px 14px -6px rgb(17 7 53 / .5);
}
.cert-sheet__seal::after { content: ""; position: absolute; inset: 22%; border: 1.5px solid rgb(255 255 255 / .7); border-radius: 50%; }
[dir="rtl"] .cert-sheet__seal { translate: 50% 0; }
.cert-sheet__code {
  position: absolute; inset: 20% 0 auto; text-align: center; font-size: 15px; font-weight: 900;
  letter-spacing: .06em; color: var(--purple); direction: ltr; opacity: 0;   /* the code is in the card body */
}
.cert-sheet--lg { max-width: 360px; margin-inline: auto; }

/* -- 4. Honours -------------------------------------------------------------- */
/* Lives inside the shared `.plate`, so the purple ground and the pattern run
   on into the gallery and footer without a seam. */
.honors {
  position: relative;
  z-index: 1;
  padding-block: 90px 40px;
  color: #fff;
}
.honors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.honor {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgb(187 167 96 / .45);
  border-radius: 9px 9px 40px 9px;
  background: linear-gradient(160deg, rgb(255 255 255 / .09), rgb(255 255 255 / .02));
  backdrop-filter: blur(2px);
  transition: transform .4s var(--ease), border-color .35s var(--ease);
}
.honor:hover { transform: translateY(-4px); border-color: var(--gold); }
.honor__media { margin: 0; display: flex; align-items: center; justify-content: center; height: 200px; min-height: 0; }
.honor__media--tall { height: 230px; }
.honor__media img { display: block; max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .4)); }
.honor__kicker { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--gold); }
.honor__title { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.5; }
.honor__text { margin: 12px 0 0; font-size: 16px; font-weight: 300; line-height: 2; color: rgb(255 255 255 / .86); }

/* -- 5. Dialog --------------------------------------------------------------- */
.cert-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 9px 9px 44px 9px;
  background: #fff;
  color: var(--purple);
  box-shadow: 0 40px 80px -30px rgb(17 7 53 / .8);
  overflow: auto;
}
.cert-dialog::backdrop { background: rgb(17 7 53 / .78); backdrop-filter: blur(5px); }
.cert-dialog[open] { animation: cert-in .35s var(--ease); }
@keyframes cert-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cert-dialog__grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px; }
.cert-dialog__close {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--purple); background: #fff; border: 1.5px solid rgb(68 47 114 / .25); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease);
}
.cert-dialog__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cert-dialog__close:hover { background: var(--gold); border-color: var(--gold); color: var(--purple-deep); transform: rotate(90deg); }
.cert-dialog__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cert-dialog__code { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--gold); }
.cert-dialog__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.5; }
.cert-dialog__note { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--grey-600, #666); }
.cert-dialog__text { margin: 18px 0 0; font-size: 17px; font-weight: 300; line-height: 2; }

.certhead ::selection { background: var(--gold); color: var(--purple-deep); }
.certhead a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 3px; }

/* -- 6. Responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .certhead { padding-block: var(--hero-top) 80px; }
  .cintro { padding-block: 70px 24px; }
  .cintro__grid { gap: 44px; }
  .certs__grid { gap: 22px; }
  .honor { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 26px; }
}
@media (max-width: 1024px) {
  .cintro__grid { grid-template-columns: 1fr; }
  .cintro__logo { min-height: 200px; }
  .cintro__logo::after { display: none; }
  .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honors__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .certhead { padding-block: var(--hero-top) 64px; }
  .cintro { padding-block: 52px 16px; }
  .cintro__text { font-size: 16px; }
  .cintro__logo { min-height: 150px; }
  .cintro__logo img { width: min(300px, 86%); }
  .certs { padding-block: 40px 72px; }
  .certs__grid { grid-template-columns: 1fr; margin-top: 36px; }
  .cert-card .cert-sheet { aspect-ratio: 4 / 3; }
  .honors { padding-block: 64px 24px; }
  .honor { grid-template-columns: 1fr; text-align: center; }
  .honor__media,
  .honor__media--tall { height: 160px; }
  .cert-dialog__grid { grid-template-columns: 1fr; padding: 60px 22px 28px; gap: 24px; }
  .cert-sheet--lg { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-card, .honor, .cert-dialog__close { transition: none; }
  .cert-card:hover, .honor:hover { transform: none; }
  .cert-dialog[open] { animation: none; }
}
@media print { .cert-dialog { display: none; } .honors { color: #000; background: #fff; } }

/* -- 7. Plate ground -------------------------------------------------------- */
/* The plate's own pattern is one image pinned to the top; it has empty bands
   between its drawn rows, which showed up as a bare stripe once the honours
   section made the plate taller. The sheet tiles seamlessly, so it repeats
   here instead (same file, same 2477px scale and offset as the plate). */
.plate > .plate__pattern { display: none; }
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/pattern-gallery.png) left -419px top -101px / 2477px auto repeat;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 80%);
}
.plate > .honors,
.plate > .gallery,
.plate > .site-footer { position: relative; z-index: 1; }
@media (max-width: 620px) {
  .plate::before { background-position: left -168px top -40px; background-size: 991px auto; }
}
