/* Shared rules for the programme pages (SMP, SAP, BMA). Class prefix: pg- */

.pg-page {
  --pg-blue: #0b4f8a;
  --pg-navy: #040739;
  --pg-ink: #17314c;
  --pg-grey: #6a6b6c;
  --pg-bright: #2867cd;
  --pg-pale: #ebf4f9;
  --pg-soft: rgba(29, 82, 135, .5);
  --pg-mute: rgba(13, 39, 64, .5);
  --pg-line: #b8cce0;
  --pg-bg: #f7fafc;
  font-family: "Archivo", var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--pg-grey);
  background: var(--pg-bg);
  overflow-x: clip;
}
.pg-page strong { font-weight: 700; }

.pg-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pg-center { text-align: center; }
.pg-justify { text-align: justify; }

/* Headings */
.pg-display { font-size: 56px; font-weight: 900; font-style: italic; line-height: 1.2; color: var(--pg-blue); text-transform: capitalize; }
.pg-heavy { font-size: 42px; font-weight: 900; line-height: 1.2; color: var(--pg-blue); }
.pg-title { font-size: 42px; font-weight: 400; line-height: 1.2; color: var(--pg-navy); }
.pg-sub { font-size: 29px; font-weight: 400; line-height: 1.2; letter-spacing: 3px; color: var(--pg-soft); }

/* Icons (inline sprite at the top of each page) */
.pg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pg-ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Thin vertical line ending in an asterisk */
.pg-vline { display: block; position: relative; width: 1px; height: 84px; margin: 0 auto 26px; background: rgba(40, 103, 205, .65); }
.pg-vline::after { content: ""; position: absolute; left: 50%; bottom: -17px; width: 14px; height: 14px; transform: translateX(-50%); background: var(--pg-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='4.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.700 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='4.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.700 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.pg-vline.pg-left { margin-left: 0; }
.pg-vline.pg-white { background: rgba(255, 255, 255, .8); }
.pg-vline.pg-white::after { background: #fff; }

/* Buttons */
.pg-btn { display: inline-flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; font-family: "Inter Tight", "Archivo", var(--font); font-size: 15px; font-weight: 200; letter-spacing: 2px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.pg-btn .pg-ico { font-size: 16px; }
.pg-btn:hover { transform: translateY(-1px); }
.pg-btn-blue { background: var(--pg-bright); color: #fff; }
.pg-btn-blue:hover { background: #1f55b0; }
.pg-btn-blue.pg-ring { border-color: rgba(255, 255, 255, .85); }
.pg-btn-line { background: rgba(255, 255, 255, .55); color: var(--pg-blue); border-color: var(--pg-bright); }
.pg-btn-line:hover { background: var(--pg-bright); color: #fff; }
.pg-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .8); }
.pg-btn-ghost:hover { background: #fff; color: var(--pg-ink); }

.pg-cta { display: inline-block; padding: 16px 20px; border: 1px solid #fff; border-radius: 4px; font-family: "Inter Tight", "Archivo", var(--font); font-size: 15px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; text-transform: uppercase; transition: background .2s, color .2s; }
.pg-cta-outline { color: #fff; background: transparent; }
.pg-cta-outline:hover { background: #fff; color: var(--pg-blue); }
.pg-cta-white { color: var(--pg-blue); background: #fff; }
.pg-cta-white:hover { background: var(--pg-pale); }

/* White swoosh that opens a section */
.pg-swoosh { position: relative; }
.pg-swoosh::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 190' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h1440v24c-6-18-22-26-48-24C1050 22 780 62 560 112 380 150 200 160 46 166 18 168 4 178 0 190z'/%3E%3C/svg%3E") top center / 100% 100% no-repeat; }
.pg-swoosh > * { position: relative; }

/* Stadium-shaped photo with an offset outline ring */
.pg-pill { position: relative; display: block; width: 200px; height: 260px; margin: 0 auto; }
.pg-pill::before { content: ""; position: absolute; left: -26px; top: 40px; width: 164px; height: 212px; border: 1px solid var(--pg-line); border-radius: 110px 110px 0 110px; }
.pg-pill img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 130px; }

/* White arch cards with an icon */
.pg-arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 60px; }
.pg-arch { background: #fff; border-radius: 1000px; padding: 130px 30px 132px; text-align: center; }
.pg-arch:nth-child(3n+1) { border-bottom-right-radius: 0; }
.pg-arch:nth-child(3n) { border-bottom-left-radius: 0; }
.pg-arch .pg-ico { display: block; margin: 0 auto 26px; font-size: 84px; color: var(--pg-navy); }
.pg-arch h3 { font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--pg-blue); }
.pg-arch p { margin-top: 27px; font-size: 18px; line-height: 1.4; text-align: justify; }

/* Outlined cards with a number badge on the top edge */
.pg-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 14px; }
.pg-step { grid-column: span 2; position: relative; border: 1px solid var(--pg-line); border-radius: 22px; padding: 78px 14px 60px; text-align: center; }
.pg-steps.pg-five .pg-step:nth-child(n+4) { grid-column: span 3; }
.pg-step-num { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); min-width: 50px; padding: 12px 10px; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px rgba(11, 79, 138, .12); font-size: 20px; font-weight: 900; line-height: 1.2; color: var(--pg-mute); }
.pg-step h3 { font-size: 24px; font-weight: 900; line-height: 1.2; color: var(--pg-mute); }

/* Panel with a heading on the left and an icon list in a white card */
.pg-split { display: grid; grid-template-columns: 1fr 1.437fr; gap: 28px; align-items: start; }
.pg-split-head { position: relative; }
.pg-split-head::after { content: ""; position: absolute; right: -10px; top: -22px; width: 180px; height: 200px; background: rgba(29, 82, 135, .07); z-index: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='4.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.700 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='4.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17 20.700 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.pg-split-head > * { position: relative; z-index: 1; }
.pg-panel { position: relative; z-index: 1; background: #fff; border-radius: 30px; padding: 48px 20px 30px 40px; }
.pg-icon-list li { display: flex; align-items: flex-start; gap: 28px; }
.pg-chip { flex: none; width: 44px; height: 44px; border-radius: 8px 0 0 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--pg-pale), #fff 70%); box-shadow: -8px -8px 14px rgba(11, 79, 138, .06); color: rgba(40, 103, 205, .55); font-size: 13px; }

/* Accordions (native details/summary, no script) */
.pg-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.pg-acc summary::-webkit-details-marker { display: none; }
.pg-acc summary .pg-ico { font-size: 16px; transition: transform .2s; }
.pg-acc[open] summary .pg-ico { transform: rotate(90deg); }
.pg-acc summary:focus-visible { outline: 2px solid var(--pg-bright); outline-offset: 2px; }

@media (max-width: 1100px) {
  .pg-display { font-size: 44px; }
  .pg-arch-grid { gap: 30px; }
  .pg-arch { padding: 100px 24px 90px; }
}

@media (max-width: 820px) {
  .pg-display { font-size: 32px; }
  .pg-heavy, .pg-title { font-size: 28px; }
  .pg-sub { font-size: 16px; letter-spacing: 2px; }
  .pg-vline { height: 56px; }
  .pg-arch-grid { grid-template-columns: 1fr; gap: 24px; }
  .pg-arch, .pg-arch:nth-child(n) { border-radius: 40px; padding: 44px 24px 40px; }
  .pg-arch .pg-ico { font-size: 64px; margin-bottom: 18px; }
  .pg-arch h3 { font-size: 20px; }
  .pg-arch p { margin-top: 16px; font-size: 16px; }
  .pg-steps { grid-template-columns: 1fr; gap: 30px; }
  .pg-step, .pg-steps.pg-five .pg-step:nth-child(n+4) { grid-column: auto; padding: 56px 16px 36px; }
  .pg-step h3 { font-size: 20px; }
  .pg-split { grid-template-columns: 1fr; }
  .pg-split-head::after { width: 120px; height: 130px; right: 0; }
  .pg-panel { padding: 30px 18px 24px; border-radius: 22px; }
  .pg-icon-list li { gap: 16px; }
  .pg-swoosh::before { height: 80px; }
  .pg-btn { letter-spacing: 1px; }
}
