/* Programme popup styled as an open book: navy cover, gold trim, cream pages, page-flip on open */
body.pm-lock { overflow: hidden; }
.pm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.pm[hidden] { display: none; }
.pm-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 26, .8); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.pm.is-open .pm-backdrop { opacity: 1; }

.pm-dialog {
  position: relative; width: min(1020px, 100%); outline: none; perspective: 2600px;
  opacity: 0; transform: scale(.94); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .75, .25, 1);
}
.pm.is-open .pm-dialog { opacity: 1; transform: none; }

/* cover + pages */
.pm-book {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; transform-style: preserve-3d;
  padding: 14px; border-radius: 14px;
  background: linear-gradient(160deg, #132e86, #0a1b52 60%, #07133a);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 5px #d9b26a14, 0 30px 80px #02061aee, inset 0 0 0 1px #ffffff14;
}
.pm-page {
  position: relative; height: min(640px, calc(100vh - 80px)); overflow-y: auto; padding: 38px 40px 46px;
  color: #1c2a52; scrollbar-width: thin; scrollbar-color: #d9b26a99 transparent;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, #a9803a12 31px 32px),
    linear-gradient(180deg, #fdf8ea, #f6edd3);
}
.pm-left { border-radius: 8px 0 0 8px; box-shadow: inset -26px 0 30px -18px #6b4f1a55, inset 2px 0 0 #fffdf4; }
.pm-right { border-radius: 0 8px 8px 0; box-shadow: inset 26px 0 30px -18px #6b4f1a55, inset -2px 0 0 #fffdf4; }
/* stacked page edges */
.pm-left::before, .pm-right::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; width: 4px; pointer-events: none;
  background: repeating-linear-gradient(180deg, #d9c796 0 1px, transparent 1px 3px);
}
.pm-left::before { left: 3px; }
.pm-right::before { right: 3px; }
/* spine */
.pm-book::after {
  content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 36px; margin-left: -18px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #4a36124d 46%, #2b1d0a66 50%, #4a36124d 54%, transparent);
}

.pm-x {
  position: absolute; top: -14px; right: -14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: #0a1b52; color: var(--gold-soft); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px #02061a99; transition: background .2s, transform .25s;
}
.pm-x:hover { background: #17338f; transform: rotate(90deg); }

/* left page */
.pm-no {
  display: inline-block; padding: 3px 12px; border-radius: 6px; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #17338f, #0a1b52); border: 1px solid var(--gold); margin-bottom: 12px;
}
.pm-eyebrow { margin: 0 0 6px !important; font-size: 11px !important; letter-spacing: 3px; text-transform: uppercase; color: #8a6420; }
.pm-left h2 { margin: 0 0 10px !important; font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.15 !important; color: #0a1f4d; }
.pm-left h2::after { display: none !important; }
.pm-tag { margin: 0 0 18px !important; font-size: 14.5px !important; line-height: 1.6 !important; color: #3b4a73; font-style: italic; }
.pm-page h3 {
  margin: 18px 0 6px !important; font-size: 12px !important; letter-spacing: 2px; text-transform: uppercase;
  color: #8a6420; font-family: "Quicksand", "DM Sans", sans-serif !important; font-weight: 700 !important;
}
.pm-page p { font-size: 14.5px !important; line-height: 1.6 !important; margin: 0 0 6px !important; }
.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-stats div { padding: 12px 8px; text-align: center; border: 1px solid #d9b26a; border-radius: 10px; background: #fffdf6; }
.pm-stats b { display: block; font: 700 24px/1.1 var(--head); color: #0a1f4d; }
.pm-stats em { display: block; font-style: normal; font-size: 12.5px; color: #8a6420; font-weight: 700; margin-top: 2px; }
.pm-stats small { display: block; margin-top: 5px; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: #5b6a93; }
.pm-total { margin-top: 12px !important; text-align: center; font-size: 12.5px !important; letter-spacing: 1px; color: #8a6420; }
.pm-folio { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: italic 13px var(--head); color: #a9803a; }

/* right page form */
.pm-page h3.pm-ftitle { margin: 4px 0 8px !important; font: 700 clamp(20px, 2vw, 26px)/1.2 var(--head) !important; letter-spacing: 0; text-transform: none; color: #0a1f4d; }
.pm-page p.pm-fsub { color: #3b4a73; margin-bottom: 16px !important; }
.pm-form { display: grid; gap: 14px; }
.pm-form label span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8a6420; }
.pm-form input {
  width: 100%; padding: 8px 2px; border: 0; border-bottom: 1.5px solid #c9a860; border-radius: 0;
  background: transparent; color: #0a1f4d; font: 500 15px "Quicksand", "DM Sans", sans-serif; outline: none; transition: border-color .2s, box-shadow .2s;
}
.pm-form input:focus { border-bottom-color: #17338f; box-shadow: 0 2px 0 #17338f; }
.pm-form input[readonly] { color: #3b4a73; font-weight: 700; }
.pm-submit {
  margin-top: 6px; padding: 13px 24px; border-radius: 30px; cursor: pointer; color: #fff;
  border: 1px solid var(--gold); background: linear-gradient(100deg, #17338f, #2447b8 55%, #3b3fb0);
  font: 700 14px "Quicksand", "DM Sans", sans-serif; letter-spacing: .4px; box-shadow: 0 6px 18px #0a1f6a55;
  transition: transform .25s, box-shadow .25s;
}
.pm-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #0a1f6a88; }
.pm-note { display: block; min-height: 18px; font-size: 12.5px; color: #1d6b3a; font-weight: 600; }

/* page-flip leaf: navy cover leaf swings from the right page over to the left, then fades to reveal the pages */
.pm-leaf {
  position: absolute; top: 14px; bottom: 14px; left: 50%; width: calc(50% - 14px);
  transform-origin: left center; transform-style: preserve-3d; pointer-events: none; z-index: 4; opacity: 0;
}
.pm-leaf-front, .pm-leaf-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 0 8px 8px 0; }
.pm-leaf-front {
  display: grid; place-items: center; border: 1.5px solid var(--gold);
  background: linear-gradient(160deg, #17338f, #0a1b52 70%);
}
.pm-leaf-front i {
  width: 74px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b26a' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z' fill='%23d9b26a' fill-opacity='.3'/%3E%3Cpath d='M6 11.5V16c0 1.4 2.7 3 6 3s6-1.6 6-3v-4.5'/%3E%3Cpath d='M22 9v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pm-leaf-back {
  transform: rotateY(180deg); border-radius: 8px 0 0 8px;
  background: linear-gradient(270deg, #fdf8ea, #efe3c0);
}
.pm.is-open .pm-leaf { animation: pmFlip 1.1s cubic-bezier(.55, .1, .25, 1) .18s both; }
.pm.is-open .pm-left { animation: pmPageIn .5s ease .9s both; }
@keyframes pmFlip {
  0%   { opacity: 1; transform: rotateY(0); }
  88%  { opacity: 1; transform: rotateY(-178deg); }
  100% { opacity: 0; transform: rotateY(-180deg); }
}
@keyframes pmPageIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 800px) {
  .pm { padding: 12px; align-items: start; overflow-y: auto; }
  .pm-book { grid-template-columns: 1fr; padding: 10px; }
  .pm-page { height: auto; min-height: 0; overflow: visible; padding: 28px 22px 40px; }
  .pm-left { border-radius: 8px 8px 0 0; box-shadow: inset 0 -22px 26px -18px #6b4f1a55; }
  .pm-right { border-radius: 0 0 8px 8px; box-shadow: inset 0 22px 26px -18px #6b4f1a55; }
  .pm-left::before, .pm-right::before, .pm-book::after, .pm-folio { display: none; }
  .pm-x { top: -8px; right: -4px; }
  .pm-leaf { top: 10px; left: 10px; right: 10px; bottom: 10px; width: auto; transform-origin: top center; }
  .pm.is-open .pm-leaf { animation-name: pmFlipM; }
  .pm.is-open .pm-left { animation: none; }
  .pm-leaf-front, .pm-leaf-back { border-radius: 8px; }
  .pm-leaf-back { transform: rotateX(180deg); }
}
@keyframes pmFlipM {
  0%   { opacity: 1; transform: rotateX(0); }
  100% { opacity: 0; transform: rotateX(100deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-leaf { display: none; }
  .pm-dialog, .pm-backdrop, .pm-x { transition: none; }
  .pm.is-open .pm-left { animation: none; }
}

/* ---- Elegant refinement: ivory paper, gold-foil framing, serif typography, ribbon bookmark ---- */
.pm-book {
  padding: 16px;
  background: radial-gradient(120% 100% at 50% 0%, #14308a 0%, #0a1b52 55%, #060f33 100%);
  border: 1px solid #e8cf94;
  box-shadow: 0 0 0 1px #6b4f1a, 0 0 0 7px #0a1b5266, 0 40px 90px #02061af0, inset 0 0 0 5px #0a1b52, inset 0 0 0 6px #d9b26a77;
}
.pm-page {
  padding: 46px 48px 54px;
  background:
    radial-gradient(90% 60% at 50% 0%, #fffdf6 0%, transparent 70%),
    linear-gradient(180deg, #fbf6e8, #f3ead0);
}
.pm-page::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid #d9b26a88; border-radius: 4px; pointer-events: none;
  outline: 1px solid #d9b26a33; outline-offset: 4px;
}
.pm-left::before, .pm-right::before { opacity: .55; }
.pm-book::after { width: 44px; margin-left: -22px; background: linear-gradient(90deg, transparent, #4a361233 40%, #2b1d0a55 50%, #4a361233 60%, transparent); }

.pm-x { top: -12px; right: -12px; width: 34px; height: 34px; font-size: 20px; background: #060f33; border: 1px solid #e8cf94; }

/* typography */
.pm-eyebrow { font: 600 10.5px "Quicksand", "DM Sans", sans-serif !important; letter-spacing: 4px; color: #a9803a; }
.pm-left h2 { font-family: "Poppins", "DM Sans", sans-serif !important; font-size: clamp(28px, 2.8vw, 38px) !important; font-weight: 700 !important; letter-spacing: .2px; color: #0a1f4d; }
.pm-tag { font-family: "Poppins", "DM Sans", sans-serif !important; font-size: 18px !important; line-height: 1.45 !important; color: #4a5680; }
.pm-page h3 { font-size: 10.5px !important; letter-spacing: 3px; color: #a9803a; margin-top: 20px !important; }
.pm-page p { color: #2c3a64; }
.pm-page h3.pm-ftitle { font-family: "Poppins", "DM Sans", sans-serif !important; font-size: clamp(24px, 2.4vw, 32px) !important; font-weight: 700 !important; }
.pm-page p.pm-fsub { font-family: "Poppins", "DM Sans", sans-serif !important; font-size: 17px !important; color: #4a5680; }

/* number badge becomes a small gold seal; ornament divider */
.pm-no { background: none; border: 0; padding: 0; margin: 0 0 6px; font: italic 600 15px "Poppins", "DM Sans", sans-serif; letter-spacing: 3px; color: #a9803a; }
.pm-no::before { content: "No. "; }
.pm-orn { display: block; width: 130px; height: 12px; margin: 4px 0 14px; position: relative; }
.pm-orn::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: linear-gradient(90deg, #d9b26a, #d9b26a00); }
.pm-orn::after { content: "◆"; position: absolute; left: 0; top: -3px; font-size: 9px; line-height: 12px; color: #c9992f; background: #f8f1dc; padding-right: 8px; }

/* stat cards: hairline gold, no fill */
.pm-stats { gap: 0; border-top: 1px solid #d9b26a99; border-bottom: 1px solid #d9b26a99; margin-top: 4px; }
.pm-stats div { background: none; border: 0; border-radius: 0; padding: 14px 6px; }
.pm-stats div + div { border-left: 1px solid #d9b26a66; }
.pm-stats b { font-family: "Poppins", "DM Sans", sans-serif; font-size: 30px; font-weight: 700; }
.pm-stats em { color: #a9803a; }
.pm-total { font-family: "Poppins", "DM Sans", sans-serif; font-style: italic; font-size: 16px !important; letter-spacing: .5px; color: #7a5a1c; }
.pm-folio { bottom: 22px; color: #b8914a; }

/* form: serif labels, gold underline, refined button */
.pm-form label span { font-size: 10px; letter-spacing: 3px; color: #a9803a; }
.pm-form input { border-bottom: 1px solid #c9a860; font-size: 15.5px; padding: 9px 2px; }
.pm-form input:focus { border-bottom-color: #a9803a; box-shadow: 0 1px 0 #a9803a; }
.pm-submit {
  border-radius: 2px; border: 1px solid #a9803a; letter-spacing: 3px; text-transform: uppercase; font-size: 11.5px;
  background: linear-gradient(180deg, #17338f, #0a1b52); box-shadow: inset 0 0 0 3px #0a1b52, inset 0 0 0 4px #d9b26a88, 0 8px 20px #0a1f6a55;
  padding: 16px 24px;
}
.pm-submit:hover { box-shadow: inset 0 0 0 3px #0a1b52, inset 0 0 0 4px #f3dfae, 0 12px 26px #0a1f6a88; }

/* ribbon bookmark hanging from the top of the spine */
.pm-ribbon {
  position: absolute; top: 12px; left: 50%; margin-left: 40px; width: 20px; height: 74px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, #7a1c2e, #a52a40 50%, #7a1c2e);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  filter: drop-shadow(0 3px 3px #00000055);
}
@media (max-width: 800px) {
  .pm-page { padding: 34px 26px 42px; }
  .pm-page::after { inset: 10px; }
  .pm-ribbon { display: none; }
}

/* ---- Storybook look (reference): pale cloth hardcover, curved cream pages, corner flourishes, framed picture, RIVAN logo ---- */
.pm-book {
  padding: 12px;
  background: linear-gradient(160deg, #e6eff2 0%, #cddde3 55%, #b9cdd6 100%);
  border: 1px solid #a9803a;
  box-shadow: 0 0 0 1px #ffffffaa inset, 0 2px 0 #9db5c0, 0 34px 60px -10px #02061acc, 0 12px 20px #02061a66;
}
.pm-x { background: #0a1b52; border-color: #d9b26a; color: #f3dfae; }

/* pages: cream, curving down toward the spine like real paper */
.pm-page {
  padding: 36px 44px 44px;
  background:
    radial-gradient(90% 55% at 50% 0%, #fffdf6 0%, transparent 70%),
    linear-gradient(180deg, #fbf6e8, #f1e7cb);
}
.pm-left {
  box-shadow: inset -60px 0 50px -30px #5c421655, inset -14px 0 14px -8px #5c421644, inset 2px 0 0 #fffdf4;
  border-radius: 6px 0 0 6px;
}
.pm-right {
  box-shadow: inset 60px 0 50px -30px #5c421655, inset 14px 0 14px -8px #5c421644, inset -2px 0 0 #fffdf4;
  border-radius: 0 6px 6px 0;
}
.pm-book::after { background: linear-gradient(90deg, transparent, #3a29104d 42%, #1e140666 50%, #3a29104d 58%, transparent); }
/* page-block lines under the book */
.pm-dialog::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -5px; height: 7px; z-index: 0; border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(180deg, #efe4c4 0 1px, #cdbb8a 1px 2px);
  box-shadow: 0 10px 18px #02061a99;
}

/* page frame with corner flourishes */
.pm-page::after {
  inset: 12px; border: 1px solid #d9b26a99; border-radius: 3px; outline: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%230a1f4d' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 37V12c0-5 4-9 9-9h25'/%3E%3Cpath d='M9 37V16c0-4 3-7 7-7h21' stroke='%23c9992f'/%3E%3Ccircle cx='9' cy='9' r='2.2' fill='%23c9992f' stroke='none'/%3E%3C/svg%3E") left top / 44px 44px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%230a1f4d' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M37 3v25c0 5-4 9-9 9H3'/%3E%3Cpath d='M31 3v21c0 4-3 7-7 7H3' stroke='%23c9992f'/%3E%3Ccircle cx='31' cy='31' r='2.2' fill='%23c9992f' stroke='none'/%3E%3C/svg%3E") right bottom / 44px 44px no-repeat;
}
.pm-right::after { transform: scaleX(-1); }

/* RIVAN logo on the left page and on the cover leaf */
.pm-logo { display: block; width: 168px; height: auto; margin: 0 0 14px; }
.pm-left .pm-eyebrow { margin-top: 2px !important; }
.pm-leaf-front {
  background: linear-gradient(160deg, #e6eff2, #b9cdd6); border: 1px solid #a9803a;
  box-shadow: inset 0 0 0 8px #e6eff2, inset 0 0 0 9px #c9992f;
}
.pm-leaf-front i {
  width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: #fffdf6;
  border: 2px solid #c9992f; box-shadow: 0 0 0 6px #fffdf655, 0 10px 24px #0a1f4d44;
}
.pm-leaf-front i img { width: 100px; height: 100px; object-fit: contain; }

/* framed picture on the right page, like the illustration plate in the reference */
.pm-right .pm-eyebrow { display: none; }
.pm-art { position: relative; margin: 0 0 16px; border: 3px solid #0a1f4d; border-radius: 3px; box-shadow: 0 0 0 1px #c9992f, 0 8px 18px #0a1f4d44; overflow: hidden; }
.pm-art img { display: block; width: 100%; height: 150px; object-fit: cover; filter: saturate(1.05); }
.pm-art::after { content: ""; position: absolute; inset: 4px; border: 1px solid #f3dfae; pointer-events: none; }
.pm-art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; text-align: center; color: #fff;
  font: italic 600 15px "Poppins", "DM Sans", sans-serif; letter-spacing: .5px;
  background: linear-gradient(180deg, transparent, #07133acc);
}
.pm-page h3.pm-ftitle { margin: 0 0 6px !important; font-size: clamp(22px, 2.1vw, 28px) !important; }
.pm-page p.pm-fsub { font-size: 16px !important; line-height: 1.35 !important; margin-bottom: 12px !important; }
.pm-form { gap: 10px; }
.pm-form input { padding: 6px 2px; }
.pm-submit { padding: 14px 24px; margin-top: 4px; }

@media (max-width: 800px) {
  .pm-dialog::after { display: none; }
  .pm-logo { width: 150px; }
  .pm-page::after { background-size: 34px 34px, 34px 34px; }
}
.pm-book { z-index: 1; }

/* ---- Closed book first: cover (with medallion across the spine) hides the pages, then the front cover swings open ---- */
.pm-cover-left, .pm-leaf-front {
  background: linear-gradient(160deg, #e6eff2, #b9cdd6); border: 1px solid #a9803a;
  box-shadow: inset 0 0 0 8px #e6eff2, inset 0 0 0 9px #c9992f;
  overflow: hidden;
}
.pm-cover-left {
  position: absolute; top: 12px; bottom: 12px; left: 12px; width: calc(50% - 12px); z-index: 4; pointer-events: none;
  border-radius: 6px 0 0 6px;
}
.pm-leaf { top: 12px; bottom: 12px; width: calc(50% - 12px); z-index: 5; opacity: 1; }
.pm-leaf-front { border-radius: 0 6px 6px 0; display: block; }
.pm-leaf-front i { display: none; }
.pm-cover-left::before, .pm-leaf-front::before {
  content: ""; position: absolute; top: 50%; width: 150px; height: 150px; margin-top: -75px; border-radius: 50%;
  background: url("../assets/logo-mark.png") center / 68% no-repeat, #fffdf6;
  border: 2px solid #c9992f; box-shadow: 0 0 0 6px #fffdf655, 0 10px 24px #0a1f4d44;
}
.pm-cover-left::before { left: 100%; margin-left: -75px; }
.pm-leaf-front::before { left: 0; margin-left: -75px; }
/* spine crease on the closed cover */
.pm-cover-left::after, .pm-leaf-front::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none;
}
.pm-cover-left::after { right: 0; background: linear-gradient(90deg, transparent, #3a29102e); }
.pm-leaf-front::after { left: 0; background: linear-gradient(270deg, transparent, #3a29102e); }

.pm.is-open .pm-leaf { animation: pmFlip 1.1s cubic-bezier(.55, .1, .25, 1) .6s both; }
.pm.is-open .pm-cover-left { animation: pmCoverOut .35s ease 1.05s both; }
.pm.is-open .pm-left { animation: none; }
@keyframes pmCoverOut { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 800px) {
  .pm-cover-left { display: none; }
  .pm-leaf { top: 10px; left: 10px; right: 10px; bottom: 10px; width: auto; }
  .pm-leaf-front { border-radius: 6px; }
  .pm-leaf-front::before { left: 50%; }
  .pm-leaf-front::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-cover-left { display: none; }
}

/* ---- Redesigned closed-book cover: navy leather, gold-foil frame, corner flourishes, ringed medallion, shimmer ---- */
.pm-cover-left, .pm-leaf-front {
  border: 0;
  box-shadow: inset 0 0 0 9px #0a1b52, inset 0 0 0 10px #d9b26a, inset 0 0 0 15px #0a1b52, inset 0 0 0 16px #d9b26a77;
}
.pm-cover-left, .pm-leaf-front {
  background:
    linear-gradient(115deg, transparent 40%, #f3dfae40 50%, transparent 60%) -150% 0 / 250% 100% no-repeat,
    var(--pm-corners),
    repeating-linear-gradient(45deg, #ffffff06 0 2px, transparent 2px 4px),
    linear-gradient(160deg, #1a3a9e 0%, #0e2266 50%, #060f33 100%);
}
.pm-cover-left {
  --pm-corners:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d9b26a' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 36V14c0-6 4-10 10-10h22'/%3E%3Ccircle cx='4' cy='4' r='2' fill='%23d9b26a' stroke='none'/%3E%3C/svg%3E") 22px 22px / 46px 46px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d9b26a' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 4v22c0 6 4 10 10 10h22'/%3E%3Ccircle cx='4' cy='36' r='2' fill='%23d9b26a' stroke='none'/%3E%3C/svg%3E") 22px calc(100% - 22px) / 46px 46px no-repeat;
  top: 0; bottom: 0; left: 0; width: 50%; border-radius: 14px 0 0 14px;
}
.pm-leaf-front {
  --pm-corners:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d9b26a' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M36 36V14c0-6-4-10-10-10H4'/%3E%3Ccircle cx='36' cy='4' r='2' fill='%23d9b26a' stroke='none'/%3E%3C/svg%3E") calc(100% - 22px) 22px / 46px 46px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d9b26a' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M36 4v22c0 6-4 10-10 10H4'/%3E%3Ccircle cx='36' cy='36' r='2' fill='%23d9b26a' stroke='none'/%3E%3C/svg%3E") calc(100% - 22px) calc(100% - 22px) / 46px 46px no-repeat;
  border-radius: 0 14px 14px 0;
}
.pm-leaf { top: 0; bottom: 0; width: 50%; }
.pm-leaf-back { border-radius: 8px 0 0 8px; }

/* medallion: cream disc, gold double ring */
.pm-cover-left::before, .pm-leaf-front::before {
  width: 170px; height: 170px; margin-top: -85px;
  background: url("../assets/logo-mark.png") center / 66% no-repeat, radial-gradient(circle, #fffdf6 60%, #f1e4bd 100%);
  border: 3px solid #d9b26a;
  box-shadow: 0 0 0 6px #0e2266, 0 0 0 7px #d9b26a, 0 0 0 14px #0a1b52, 0 0 0 15px #d9b26a77, 0 14px 30px #02061aaa;
}
.pm-cover-left::before { margin-left: -85px; }
.pm-leaf-front::before { margin-left: -85px; }
.pm-cover-left::after { background: linear-gradient(90deg, transparent, #00000055); width: 34px; }
.pm-leaf-front::after { background: linear-gradient(270deg, transparent, #00000055); width: 34px; }

.pm.is-open .pm-cover-left { animation: pmCoverOut .35s ease 1.05s both, pmShine 1s ease .15s 1 both; }
.pm.is-open .pm-leaf-front { animation: pmShine 1s ease .15s 1 both; }
@keyframes pmShine { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.3); } }

@media (max-width: 800px) {
  .pm-leaf { top: 0; left: 0; right: 0; bottom: 0; width: auto; }
  .pm-leaf-front { border-radius: 14px; }
  .pm-leaf-front::before { width: 140px; height: 140px; margin-top: -70px; margin-left: -70px; }
}

/* ---- Real-book opening: a single closed book (front cover only, centred), then the cover swings left and the book widens into the open spread ---- */
.pm-cover-left { display: none; }

/* rim/background of the open book moves to a pseudo so it can fade in after the cover opens */
.pm-book {
  background: none; border-color: transparent; box-shadow: none;
}
.pm-book::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: linear-gradient(160deg, #e6eff2 0%, #cddde3 55%, #b9cdd6 100%);
  border: 1px solid #a9803a;
  box-shadow: 0 0 0 1px #ffffffaa inset, 0 2px 0 #9db5c0, 0 34px 60px -10px #02061acc, 0 12px 20px #02061a66;
  opacity: 0;
}
.pm-dialog::after { opacity: 0; }

/* closed cover: centred on the leaf, rounded like a book, hinge on the left */
.pm-leaf-front::before { left: 50%; margin-left: -85px; }
.pm-leaf-front { box-shadow: inset 0 0 0 9px #0a1b52, inset 0 0 0 10px #d9b26a, inset 0 0 0 15px #0a1b52, inset 0 0 0 16px #d9b26a77, 0 24px 50px #02061acc; }
.pm-leaf-front::after { left: 0; width: 28px; background: linear-gradient(90deg, #00000066, transparent); }
.pm-ribbon { opacity: 0; }

/* hidden pages until the cover lifts */
.pm-left, .pm-right { opacity: 0; }

.pm.is-open .pm-book { animation: pmSlide 1.1s cubic-bezier(.55, .1, .25, 1) .6s both; }
.pm.is-open .pm-book::before { animation: pmFadeIn .45s ease .7s both; }
.pm.is-open .pm-dialog::after,
.pm.is-open .pm-ribbon { animation: pmFadeIn .45s ease 1.3s both; }
.pm.is-open .pm-right { animation: pmFadeIn .3s ease .75s both; }
.pm.is-open .pm-left { animation: pmFadeIn .35s ease 1.1s both; }
.pm.is-open .pm-leaf-front { animation: none; }
@keyframes pmSlide { from { transform: translateX(-25%); } to { transform: translateX(0); } }
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 800px) {
  .pm.is-open .pm-book { animation: none; }
  .pm-book::before { opacity: 1; }
  .pm-left, .pm-right { opacity: 1; }
  .pm.is-open .pm-right, .pm.is-open .pm-left, .pm.is-open .pm-book::before { animation: none; }
  .pm-leaf-front::before { left: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .pm.is-open .pm-book, .pm.is-open .pm-book::before, .pm.is-open .pm-left, .pm.is-open .pm-right,
  .pm.is-open .pm-dialog::after, .pm.is-open .pm-ribbon { animation: none; }
  .pm-book::before, .pm-left, .pm-right, .pm-ribbon, .pm-dialog::after { opacity: 1; }
}

/* ---- Softcover look (reference): vivid blue-to-violet cover, dark spine band, white page-block edge, title on cover, slight 3D tilt ---- */
.pm-leaf-front {
  border: 0; border-radius: 4px 12px 12px 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='%23ffffff' fill-opacity='.55'%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3Ccircle cx='18' cy='4' r='2'/%3E%3Ccircle cx='32' cy='4' r='2'/%3E%3Ccircle cx='46' cy='4' r='2'/%3E%3Ccircle cx='4' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3Ccircle cx='32' cy='18' r='2'/%3E%3Ccircle cx='46' cy='18' r='2'/%3E%3Ccircle cx='4' cy='32' r='2'/%3E%3Ccircle cx='18' cy='32' r='2'/%3E%3C/g%3E%3C/svg%3E") 34px calc(100% - 40px) / 56px 56px no-repeat,
    radial-gradient(circle at 78% 66%, transparent 0 150px, #ffffff2e 151px 154px, transparent 155px),
    radial-gradient(circle at 78% 66%, #ffffff10 0 150px, transparent 151px),
    linear-gradient(100deg, #2b66ff 0%, #5a5cf2 38%, #a24bec 70%, #d23fd2 100%);
  box-shadow:
    inset 1px 0 0 #ffffff55,
    5px 4px 0 -1px #f6f6fc, 8px 7px 0 -2px #d9d9e8, 11px 10px 0 -3px #bfbfd2,
    0 30px 50px #02061acc, 14px 22px 40px #02061a88;
}
/* spine band */
.pm-leaf-front::after {
  left: 0; width: 26px; display: block;
  background: linear-gradient(90deg, #0b1a8f66 0%, #0b1a8f33 70%, transparent 100%);
  box-shadow: inset -1px 0 0 #ffffff44, 2px 0 0 #00000018;
}
/* small logo badge on top of cover */
.pm-leaf-front::before {
  left: 50%; top: 56px; margin: 0 0 0 -34px; width: 68px; height: 68px;
  background: url("../assets/logo-mark.png") center / 72% no-repeat, #fff;
  border: 0; box-shadow: 0 8px 18px #0a1b5266;
}
.pm-ct { position: absolute; left: 12%; right: 8%; top: 52%; transform: translateY(-50%); text-align: center; color: #fff; }
.pm-ct small { display: block; margin-bottom: 12px; font: 700 10.5px "Quicksand", "DM Sans", sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #ffffffcc; }
.pm-ct b { display: block; font: 700 clamp(28px, 3vw, 40px)/1.12 "Poppins", "DM Sans", sans-serif; letter-spacing: -.3px; text-shadow: 0 4px 16px #1a1a6a66; }
.pm-ct em { display: block; margin-top: 16px; font: 500 12.5px "Quicksand", "DM Sans", sans-serif; font-style: normal; letter-spacing: .6px; color: #ffffffcc; }

/* closed book sits slightly turned in 3D, then squares up as it opens */
@keyframes pmFlip {
  0%   { opacity: 1; transform: rotateY(16deg); }
  12%  { opacity: 1; transform: rotateY(0); }
  88%  { opacity: 1; transform: rotateY(-178deg); }
  100% { opacity: 0; transform: rotateY(-180deg); }
}
@media (max-width: 800px) {
  .pm-leaf-front { border-radius: 6px 14px 14px 6px; }
  .pm-ct { left: 10%; right: 10%; }
  .pm-ct b { font-size: 28px; }
}

/* ---- Warm elegant palette: navy cover glowing into champagne gold, gold circle + dots, ivory page edges ---- */
.pm-leaf-front {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='%23f3dfae' fill-opacity='.6'%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3Ccircle cx='18' cy='4' r='2'/%3E%3Ccircle cx='32' cy='4' r='2'/%3E%3Ccircle cx='46' cy='4' r='2'/%3E%3Ccircle cx='4' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3Ccircle cx='32' cy='18' r='2'/%3E%3Ccircle cx='46' cy='18' r='2'/%3E%3Ccircle cx='4' cy='32' r='2'/%3E%3Ccircle cx='18' cy='32' r='2'/%3E%3C/g%3E%3C/svg%3E") 34px calc(100% - 40px) / 56px 56px no-repeat,
    radial-gradient(circle at 78% 66%, transparent 0 150px, #f3dfaebb 151px 153px, transparent 154px),
    radial-gradient(circle at 78% 66%, #f3dfae12 0 150px, transparent 151px),
    radial-gradient(120% 70% at 100% 100%, #d9b26ad9 0%, #b8864066 38%, transparent 70%),
    radial-gradient(90% 50% at 0% 0%, #2a4bc055, transparent 70%),
    linear-gradient(150deg, #1a3a9e 0%, #11297a 42%, #0a1b52 75%, #070f36 100%);
  box-shadow:
    inset 1px 0 0 #f3dfae66, inset 0 0 0 1px #d9b26a33,
    5px 4px 0 -1px #fbf6e8, 8px 7px 0 -2px #e6d9b4, 11px 10px 0 -3px #cbb985,
    0 30px 50px #02061acc, 14px 22px 40px #02061a88;
}
.pm-leaf-front::after { background: linear-gradient(90deg, #02061a88 0%, #02061a44 70%, transparent 100%); box-shadow: inset -1px 0 0 #f3dfae66, 2px 0 0 #00000022; }
.pm-leaf-front::before {
  background: url("../assets/logo-mark.png") center / 72% no-repeat, radial-gradient(circle, #fffdf6 60%, #f1e4bd 100%);
  box-shadow: 0 0 0 3px #0a1b52, 0 0 0 4px #d9b26a, 0 10px 22px #02061a88;
}
.pm-ct small { color: #f3dfae; }
.pm-ct b { text-shadow: 0 4px 18px #02061a99; }
.pm-ct b::after { content: ""; display: block; width: 54px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, #f3dfae, transparent); }
.pm-ct em { color: #f3dfaecc; }

/* ---- Cover: no circle/dots; gold flourishes on the four corners only ---- */
.pm-leaf-front {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23f3dfae' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M4 36V14c0-6 4-10 10-10h22'/%3E%3Cpath d='M10 36V17c0-4 3-7 7-7h19' stroke-opacity='.6'/%3E%3Ccircle cx='4' cy='4' r='2' fill='%23f3dfae' stroke='none'/%3E%3C/svg%3E") 38px 14px / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23f3dfae' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M4 4v22c0 6 4 10 10 10h22'/%3E%3Cpath d='M10 4v19c0 4 3 7 7 7h19' stroke-opacity='.6'/%3E%3Ccircle cx='4' cy='36' r='2' fill='%23f3dfae' stroke='none'/%3E%3C/svg%3E") 38px calc(100% - 14px) / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23f3dfae' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M36 36V14c0-6-4-10-10-10H4'/%3E%3Cpath d='M30 36V17c0-4-3-7-7-7H4' stroke-opacity='.6'/%3E%3Ccircle cx='36' cy='4' r='2' fill='%23f3dfae' stroke='none'/%3E%3C/svg%3E") calc(100% - 14px) 14px / 48px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23f3dfae' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M36 4v22c0 6-4 10-10 10H4'/%3E%3Cpath d='M30 4v19c0 4-3 7-7 7H4' stroke-opacity='.6'/%3E%3Ccircle cx='36' cy='36' r='2' fill='%23f3dfae' stroke='none'/%3E%3C/svg%3E") calc(100% - 14px) calc(100% - 14px) / 48px 48px no-repeat,
    radial-gradient(120% 70% at 100% 100%, #d9b26ad9 0%, #b8864066 38%, transparent 70%),
    radial-gradient(90% 50% at 0% 0%, #2a4bc055, transparent 70%),
    linear-gradient(150deg, #1a3a9e 0%, #11297a 42%, #0a1b52 75%, #070f36 100%);
}

/* ---- Programme cards: stacked layout on tablet / mobile so the title, text and "Explore Programme" link always show ---- */
@media (max-width: 1100px) {
  .programme-card { height: auto; display: flex; flex-direction: column; }
  .programme-card:after { display: none; }
  .programme-card img {
    position: static; order: -1; width: 100%; height: 170px; top: auto; right: auto;
    object-fit: cover; clip-path: none;
  }
  .programme-content { width: 100%; padding: 20px 22px 24px; }
  .programme-content p { max-width: none; }
  .programme-content a { padding: 6px 0; }
}
@media (max-width: 650px) {
  .programme-grid { gap: 20px; }
  .programme-card img { height: 190px; }
  .programme-content h3 br { display: none; }
}

/* ---- Popup on mobile: short closed book first, then it grows as the cover flips up to reveal the pages ---- */
@media (max-width: 800px) {
  .pm-x { top: 10px; right: 10px; z-index: 6; }
  .pm-leaf { top: 0; left: 0; right: 0; bottom: auto; height: 440px; width: auto; transform-origin: top center; }
  .pm-leaf-front, .pm-leaf-back { border-radius: 12px; }
  .pm-leaf-front::before { top: 44px; }
  .pm-ct { top: 54%; }
  .pm.is-open .pm-book { animation: pmGrow .9s cubic-bezier(.55, .1, .25, 1) .7s backwards; }
  .pm.is-open .pm-leaf { animation: pmFlipM .9s cubic-bezier(.55, .1, .25, 1) .6s both; }
  .pm-left, .pm-right { opacity: 1; }
  .pm-page::after { inset: 10px; }
}
@keyframes pmGrow {
  from { max-height: 440px; overflow: hidden; }
  to   { max-height: 2600px; overflow: hidden; }
}
@keyframes pmFlipM {
  0%   { opacity: 1; transform: rotateX(0); }
  80%  { opacity: 1; transform: rotateX(-70deg); }
  100% { opacity: 0; transform: rotateX(-95deg); }
}

/* ---- One type system for both pages (site fonts: Poppins headings, Quicksand text) ---- */
.pm-book { font-family: "Quicksand", "DM Sans", sans-serif; font-weight: 500; }
.pm-left h2,
.pm-page h3.pm-ftitle {
  font: 600 clamp(22px, 2.2vw, 28px)/1.2 "Poppins", "DM Sans", sans-serif !important; letter-spacing: -.2px !important;
  text-transform: none; color: #0a1f4d;
}
.pm-tag,
.pm-page p.pm-fsub,
.pm-page p {
  font: 500 14.5px/1.6 "Quicksand", "DM Sans", sans-serif !important; font-style: normal !important; color: #2c3a64;
}
.pm-tag, .pm-page p.pm-fsub { margin: 0 0 16px !important; }
.pm-page h3:not(.pm-ftitle), .pm-form label span, .pm-eyebrow {
  font: 700 10.5px "Quicksand", "DM Sans", sans-serif !important; letter-spacing: 3px; text-transform: uppercase; color: #a9803a;
}
.pm-no { font: 700 12px "Quicksand", "DM Sans", sans-serif; font-style: normal; letter-spacing: 3px; }
.pm-total, .pm-folio { font-family: "Quicksand", "DM Sans", sans-serif; font-style: normal; }
.pm-stats b { font: 600 24px/1.1 "Poppins", "DM Sans", sans-serif; }
.pm-form input { font: 500 14.5px "Quicksand", "DM Sans", sans-serif; }
.pm-submit { font: 700 12px "Quicksand", "DM Sans", sans-serif; }

/* mobile: wider tap-out margin, always-visible close button; caption hidden (image already carries the title) */
.pm-art figcaption { display: none; }
@media (max-width: 800px) {
  .pm { padding: 22px 18px 40px; }
  .pm-x { position: fixed; top: 10px; right: 10px; z-index: 1010; width: 38px; height: 38px; }
}
@media (max-width: 800px) {
  /* perspective / preserve-3d on ancestors would trap the fixed close button; use per-element perspective instead */
  .pm-dialog { perspective: none; }
  .pm-book { transform-style: flat; }
}
@keyframes pmFlipM {
  0%   { opacity: 1; transform: perspective(1400px) rotateX(0); }
  80%  { opacity: 1; transform: perspective(1400px) rotateX(-70deg); }
  100% { opacity: 0; transform: perspective(1400px) rotateX(-95deg); }
}

/* ---- New full-size programme art: show the whole picture on top of every card, text underneath (all screen sizes) ---- */
.programme-card { height: auto; display: flex; flex-direction: column; }
.programme-card:after { display: none; }
.programme-card img {
  position: static; order: -1; display: block; width: 100%; height: 210px; top: auto; right: auto;
  max-width: none; object-fit: cover; clip-path: none;
}
.programme-card img[src*="cosmetology"] { object-position: 78% 38%; }
.programme-card img[src*="aesthetics"] { object-position: 42% 62%; }
.programme-card img[src*="trichology"] { object-position: 55% 55%; }
.programme-content { width: 100%; padding: 20px 24px 24px; }
.programme-content p { max-width: none; }
.programme-content h3 br { display: none; }

/* popup picture uses the same crops */
.pm-art img[src*="cosmetology"] { object-position: 78% 38%; }
.pm-art img[src*="aesthetics"] { object-position: 42% 62%; }
.pm-art img[src*="trichology"] { object-position: 55% 55%; }
@media (max-width: 650px) { .programme-card img { height: 200px; } }

/* ---- Cards: text on the left, overlaid on the picture; picture fills the card and its subject sits on the right ---- */
.programme-card { display: block; position: relative; min-height: 280px; height: auto; background: #07133a; }
.programme-card img {
  position: absolute; order: 0; top: 0; right: auto; left: 0; height: 100%; width: 100%; max-width: none;
  object-fit: cover; object-position: 60% 50%; clip-path: none;
}
/* aesthetics + cosmetology: nudge the subject to the right half so the text sits on empty dark space */
.programme-card img[src*="aesthetics"] { left: 34%; width: auto; min-width: 66%; }
.programme-card img[src*="cosmetology"] { left: 18%; width: auto; min-width: 82%; }
.programme-card img[src*="trichology"] { object-position: 70% 50%; }
.programme-card:after {
  display: block; content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #07133af2 0%, #07133ad9 36%, #07133a66 62%, #07133a00 85%);
}
.programme-content { position: relative; z-index: 2; width: 62%; padding: 26px 28px 28px; }
.programme-content p { max-width: 280px; }
.programme-content h3 { text-shadow: 0 2px 12px #02061a99; }

@media (max-width: 650px) {
  .programme-card { min-height: 300px; }
  .programme-content { width: 72%; padding: 22px 20px 24px; }
  .programme-card:after { background: linear-gradient(90deg, #07133af5 0%, #07133ae6 46%, #07133a80 74%, #07133a14 100%); }
  .programme-card img[src*="aesthetics"] { left: 30%; }
  .programme-card img[src*="cosmetology"] { left: 14%; }
}

/* ---- Cards 1 + 2: full-bleed like card 3 (no offset edges), subject kept on the right ---- */
.programme-card img[src*="cosmetology"],
.programme-card img[src*="aesthetics"] { left: 0; width: 100%; min-width: 0; }
.programme-card img[src*="cosmetology"] { object-position: 100% 30%; }
/* bottle sits left in the source: mirror + zoom so the bottle lands on the right and the dropper stays clear of the text */
.programme-card img[src*="aesthetics"] { object-position: 50% 60%; transform: scaleX(-1) scale(1.3); transform-origin: 10% 55%; }
.programme-card:hover img[src*="aesthetics"] { transform: scaleX(-1) scale(1.4); }
/* blend the grey studio backdrop of card 1 into the navy theme */
.programme-card:has(img[src*="cosmetology"])::after {
  background:
    linear-gradient(90deg, #07133af2 0%, #07133ad9 36%, #07133a66 62%, #07133a00 85%),
    linear-gradient(#0a237055, #0a237055);
}

/* ---- Illustrated programme art (SVG): full-bleed, subject already on the right, so reset earlier crops/mirroring ---- */
.programme-card img[src$=".svg"] { left: 0; width: 100%; min-width: 0; transform: none; transform-origin: center; object-fit: cover; object-position: 100% 50%; }
.programme-card:hover img[src$=".svg"] { transform: scale(1.06); }
.pm-art img[src$=".svg"] { object-position: 80% 50%; }

/* ---- New wide card art (cosmetology 1588x432, aesthetics 784x421): no mirroring, subject on the right, slight zoom hides the baked-in frame ---- */
.programme-card img[src*="aesthetics"] { transform: scale(1.06); transform-origin: 85% 50%; object-position: 88% 50%; left: 0; width: 100%; }
.programme-card img[src*="cosmetology"] { transform: scale(1.05); transform-origin: 80% 50%; object-position: 80% 50%; left: 0; width: 100%; }
.programme-card:hover img[src*="aesthetics"] { transform: scale(1.12); }
.programme-card:hover img[src*="cosmetology"] { transform: scale(1.11); }
.programme-card:has(img[src*="cosmetology"])::after {
  background: linear-gradient(90deg, #07133af2 0%, #07133ad9 36%, #07133a66 62%, #07133a00 85%);
}

/* ---- Magnifier-style card art: every ring the same size and the same place (right side), whatever the image's aspect ratio ---- */
.programme-card { overflow: hidden; }
.programme-card img[src*="cosmetology"],
.programme-card img[src*="aesthetics"] {
  left: auto; min-width: 0; max-width: none; width: auto; object-fit: fill; object-position: 50% 50%;
  transform: none; transform-origin: 80% 50%;
}
.programme-card img[src*="cosmetology"] { height: 95%; top: 7%; right: -18px; }
.programme-card img[src*="aesthetics"]  { height: 81%; top: 9%; right: -95px; }
.programme-card:hover img[src*="cosmetology"],
.programme-card:hover img[src*="aesthetics"] { transform: scale(1.05); }
.programme-card:has(img[src*="cosmetology"])::after,
.programme-card:has(img[src*="aesthetics"])::after {
  background: linear-gradient(90deg, #07133af2 0%, #07133ae6 34%, #07133a80 56%, #07133a00 76%);
}
.programme-content { width: 58%; }
@media (max-width: 650px) { .programme-content { width: 66%; } }
/* card base colour matches the artwork background so the area around a scaled picture blends in */
.programme-card:has(img[src*="cosmetology"]),
.programme-card:has(img[src*="aesthetics"]) { background: linear-gradient(135deg, #0a2b88 0%, #08236f 55%, #061a55 100%); }
