/* ==========================================================================
   IIPT inner pages — shared design system
   Brings the home-page palette and components to every inner page.
   Loaded on all pages except index.html, after responsive.css and before
   any page-specific stylesheet. Colour variables come from custom.css.
   ========================================================================== */

:root {
  --ip-sky: #0099ce;
  --ip-sky-light: #e8f3fc;
  --ip-navy: #0d2d6e;
  --ip-navy-dark: #081c47;
  --ip-deep: #010066;
  --ip-amber: #ffab14;
  --ip-orange: #f5a623;
  --ip-coral: #ee6c4d;
  --ip-teal: #2bbcd4;
  --ip-green: #4caf50;
  --ip-grey: #f4f5f7;
  --ip-line: #e2e8f0;
  --ip-text: #1e293b;
  --ip-muted: #475569;
  --ip-radius: 16px;
  --ip-shadow: 0 4px 24px rgba(13, 45, 110, .10);
  --ip-shadow-lg: 0 14px 44px rgba(13, 45, 110, .16);
}

/* --------------------------------------------------------------------------
   1. Page title banner (all inner pages)
   -------------------------------------------------------------------------- */
.prt-titlebar-wrapper {
  position: relative;
  background-position: center;
  overflow: hidden;
}
.prt-titlebar-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 28, 71, .94) 0%, rgba(13, 45, 110, .84) 45%, rgba(0, 153, 206, .55) 100%);
  z-index: 0;
}
.prt-titlebar-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ip-sky) 0 25%, var(--ip-amber) 25% 50%, var(--ip-teal) 50% 75%, var(--ip-coral) 75% 100%);
  z-index: 1;
}
.prt-titlebar-wrapper .prt-titlebar-wrapper-inner {
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 190px;
  padding: 44px 0 40px;
}
.prt-titlebar-wrapper .page-title-heading h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  text-transform: none;
}
.prt-titlebar-wrapper .breadcrumb-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 4px 14px;
}
.prt-titlebar-wrapper .breadcrumb-wrapper i { color: var(--ip-amber); padding-top: 0; }
.prt-titlebar-wrapper .breadcrumb-wrapper span { border-bottom: 0; text-transform: none; }
.prt-titlebar-wrapper .breadcrumb-wrapper span a:hover { color: var(--ip-amber); }

/* --------------------------------------------------------------------------
   2. Theme headings and buttons in the home-page colours
   -------------------------------------------------------------------------- */
.site-main .section-title .title-header h2.title { color: var(--ip-sky); }
.site-main .section-title .title-header h3 { color: var(--ip-coral); }
.site-main .prt-btn.prt-btn-color-skincolor.prt-btn-style-fill { background-color: var(--ip-coral); border-color: var(--ip-coral); }
.site-main .prt-btn.prt-btn-color-skincolor.prt-btn-style-fill:hover { background-color: var(--ip-navy); border-color: var(--ip-navy); }

/* --------------------------------------------------------------------------
   3. Sections and typography
   -------------------------------------------------------------------------- */
.ip-section { padding: 72px 0; }
.ip-section--tight { padding: 48px 0; }
.ip-section--grey { background: var(--ip-grey); }
.ip-section--sky-light { background: var(--ip-sky-light); }
.ip-section--navy { background: var(--ip-navy); color: #fff; }
.ip-section--navy .ip-h2, .ip-section--navy h2, .ip-section--navy h3 { color: #fff; }
.ip-section--navy p { color: rgba(255, 255, 255, .86); }

.ip-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ip-coral);
  margin-bottom: 10px;
}
.ip-h2 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ip-sky);
  margin: 0 0 18px;
}
.ip-h3 { font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--ip-navy); margin: 0 0 10px; }
.ip-lead { font-size: 19px; line-height: 1.7; color: var(--ip-text); }
.ip-prose p { line-height: 1.8; color: var(--ip-text); margin-bottom: 18px; }
.ip-prose p:last-child { margin-bottom: 0; }
.ip-center { text-align: center; }
.ip-center .ip-lead { max-width: 820px; margin-left: auto; margin-right: auto; }
.ip-mb-0 { margin-bottom: 0; }
.ip-mt-16 { margin-top: 16px; }
.ip-mt-32 { margin-top: 32px; }
.ip-mt-48 { margin-top: 48px; }

/* --------------------------------------------------------------------------
   4. Grids and cards
   -------------------------------------------------------------------------- */
.ip-grid { display: grid; gap: 24px; }
.ip-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ip-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ip-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ip-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ip-split--reverse { grid-template-columns: .9fr 1.1fr; }

.ip-card {
  background: #fff;
  border: 1px solid var(--ip-line);
  border-top: 4px solid var(--ip-sky);
  border-radius: var(--ip-radius);
  box-shadow: var(--ip-shadow);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.ip-card:hover { transform: translateY(-3px); box-shadow: var(--ip-shadow-lg); }
.ip-card p { line-height: 1.7; color: var(--ip-muted); margin-bottom: 0; }
.ip-card p + p { margin-top: 12px; }
.ip-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ip-muted); }
.ip-card ul li { margin-bottom: 6px; line-height: 1.6; }
.ip-card .ip-check { padding-left: 0; }
.ip-split--top > .ip-card { height: auto; }
.ip-card--orange { border-top-color: var(--ip-amber); }
.ip-card--navy { border-top-color: var(--ip-deep); }
.ip-card--coral { border-top-color: var(--ip-coral); }
.ip-card--teal { border-top-color: var(--ip-teal); }
.ip-card--green { border-top-color: var(--ip-green); }
.ip-grid > .ip-card:nth-child(6n+2):not([class*="ip-card--"]) { border-top-color: var(--ip-amber); }
.ip-grid > .ip-card:nth-child(6n+3):not([class*="ip-card--"]) { border-top-color: var(--ip-deep); }
.ip-grid > .ip-card:nth-child(6n+4):not([class*="ip-card--"]) { border-top-color: var(--ip-coral); }
.ip-grid > .ip-card:nth-child(6n+5):not([class*="ip-card--"]) { border-top-color: var(--ip-teal); }
.ip-grid > .ip-card:nth-child(6n+6):not([class*="ip-card--"]) { border-top-color: var(--ip-green); }

.ip-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ip-sky-light);
  color: var(--ip-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

/* Solid colour tiles, as in "Our Approach" on the home page */
.ip-tile { border-radius: var(--ip-radius); padding: 30px; height: 100%; color: #fff; box-shadow: var(--ip-shadow); }
.ip-tile h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.ip-tile p { color: rgba(255, 255, 255, .9); line-height: 1.7; margin: 0; }
.ip-tile--amber { background: var(--ip-amber); }
.ip-tile--amber h3, .ip-tile--amber p { color: #1a2332; }
.ip-tile--sky { background: var(--ip-sky); }
.ip-tile--deep { background: var(--ip-deep); }
.ip-tile--coral { background: var(--ip-coral); }
.ip-tile--teal { background: var(--ip-teal); }
.ip-tile--navy { background: var(--ip-navy); }

/* --------------------------------------------------------------------------
   5. Stats strip, timeline, quote panel, lists
   -------------------------------------------------------------------------- */
.ip-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: linear-gradient(90deg, var(--ip-navy-dark), var(--ip-navy));
  border-radius: var(--ip-radius);
  overflow: hidden;
  box-shadow: var(--ip-shadow-lg);
}
.ip-stat { padding: 28px 16px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.ip-stat:last-child { border-right: 0; }
.ip-stat strong { display: block; font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--ip-amber); }
.ip-stat:nth-child(2n) strong { color: #5fd3ea; }
.ip-stat span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .88); }

.ip-timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 0; }
.ip-timeline::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--ip-sky), var(--ip-amber), var(--ip-coral)); border-radius: 2px; }
.ip-timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; margin-bottom: 22px; }
.ip-timeline li:last-child { margin-bottom: 0; }
.ip-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 40px;
  border-radius: 999px;
  background: var(--ip-sky);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 5px #fff;
}
.ip-section--grey .ip-year { box-shadow: 0 0 0 5px var(--ip-grey); }
.ip-timeline li:nth-child(4n+2) .ip-year { background: var(--ip-amber); color: #1a2332; }
.ip-timeline li:nth-child(4n+3) .ip-year { background: var(--ip-deep); }
.ip-timeline li:nth-child(4n+4) .ip-year { background: var(--ip-coral); }
.ip-timeline .ip-tl-body { background: #fff; border: 1px solid var(--ip-line); border-radius: 12px; padding: 14px 18px; box-shadow: var(--ip-shadow); line-height: 1.65; color: var(--ip-text); }

.ip-quote {
  background: var(--ip-sky);
  color: #fff;
  border-radius: var(--ip-radius);
  padding: 40px;
  box-shadow: var(--ip-shadow-lg);
}
.ip-quote h2, .ip-quote h3 { color: #fff; }
.ip-quote p { color: rgba(255, 255, 255, .92); line-height: 1.75; }

.ip-check { list-style: none; margin: 0; padding: 0; }
.ip-check li { position: relative; padding-left: 30px; margin-bottom: 12px; line-height: 1.65; color: var(--ip-text); }
.ip-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ip-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ip-check--light li { color: rgba(255, 255, 255, .95); }
.ip-check--light li::before { background-color: var(--ip-amber); }

/* Key facts list (label / value rows) */
.ip-facts { list-style: none; margin: 16px 0 0; padding: 0; }
.ip-facts li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ip-line); line-height: 1.55; }
.ip-facts li:first-child { border-top: 0; }
.ip-facts b { color: var(--ip-navy); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }

/* --------------------------------------------------------------------------
   6. Buttons, tags, media, video, accordion
   -------------------------------------------------------------------------- */
.ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s;
  line-height: 1.2;
}
.ip-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ip-btn--coral { background: var(--ip-coral); color: #fff; }
.ip-btn--coral:hover { background: #d9573a; color: #fff; }
.ip-btn--navy { background: var(--ip-navy); color: #fff; }
.ip-btn--navy:hover { background: var(--ip-navy-dark); color: #fff; }
.ip-btn--amber { background: var(--ip-amber); color: #1a2332; }
.ip-btn--amber:hover { background: #e89b0a; color: #1a2332; }
.ip-btn--sky { background: var(--ip-sky); color: #fff; }
.ip-btn--sky:hover { background: #007fae; color: #fff; }
.ip-btn--outline { border-color: currentColor; color: var(--ip-navy); background: transparent; }
.ip-btn--outline:hover { background: var(--ip-navy); color: #fff; border-color: var(--ip-navy); }
.ip-btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.ip-btn--outline-light:hover { background: #fff; color: var(--ip-navy); }
.ip-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.ip-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ip-sky-light);
  color: var(--ip-navy);
}
.ip-tag--amber { background: #fff3d6; color: #8a5a00; }
.ip-tag--coral { background: #fde6df; color: #a33a20; }

.ip-media { border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow-lg); }
.ip-media img { display: block; width: 100%; height: auto; }
.ip-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-caption { font-size: 14px; color: var(--ip-muted); margin-top: 10px; }

.ip-video { position: relative; padding-top: 56.25%; border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow-lg); background: #000; }
.ip-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ip-accordion details {
  background: #fff;
  border: 1px solid var(--ip-line);
  border-left: 4px solid var(--ip-sky);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--ip-shadow);
}
.ip-accordion details:nth-child(4n+2) { border-left-color: var(--ip-amber); }
.ip-accordion details:nth-child(4n+3) { border-left-color: var(--ip-deep); }
.ip-accordion details:nth-child(4n+4) { border-left-color: var(--ip-coral); }
.ip-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ip-navy);
  position: relative;
}
.ip-accordion summary::-webkit-details-marker { display: none; }
.ip-accordion summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ip-sky); }
.ip-accordion details[open] summary::after { content: "\2212"; }
.ip-accordion .ip-acc-body { padding: 0 20px 18px; line-height: 1.75; color: var(--ip-text); }
.ip-accordion .ip-acc-body ul { margin: 0; padding-left: 18px; }

/* --------------------------------------------------------------------------
   7. Articles (blogs, newsletters) and post cards
   -------------------------------------------------------------------------- */
.ip-article { max-width: 800px; margin: 0 auto; }
.ip-article h2 { font-size: 28px; font-weight: 700; color: var(--ip-sky); margin: 40px 0 14px; }
.ip-article h3 { font-size: 21px; font-weight: 700; color: var(--ip-navy); margin: 28px 0 10px; }
.ip-article p, .ip-article li { font-size: 17px; line-height: 1.85; color: var(--ip-text); }
.ip-article ul { padding-left: 22px; margin-bottom: 20px; }
.ip-article blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 5px solid var(--ip-amber);
  background: #fff8ec;
  border-radius: 0 12px 12px 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ip-navy);
}
.ip-article figure { margin: 28px 0; }
.ip-article figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.ip-article figcaption { font-size: 14px; color: var(--ip-muted); margin-top: 8px; }
.ip-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ip-muted); font-size: 14px; margin-bottom: 26px; }
.ip-byline .ip-tag { margin-right: 4px; }

.ip-post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--ip-radius); overflow: hidden; box-shadow: var(--ip-shadow); border: 1px solid var(--ip-line); height: 100%; transition: transform .2s, box-shadow .2s; }
.ip-post-card:hover { transform: translateY(-4px); box-shadow: var(--ip-shadow-lg); }
.ip-post-card .ip-post-img { aspect-ratio: 16 / 10; overflow: hidden; }
.ip-post-card .ip-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-post-card .ip-post-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ip-post-card h3 { font-size: 21px; line-height: 1.35; margin: 0; }
.ip-post-card h3 a { color: var(--ip-navy); text-decoration: none; }
.ip-post-card h3 a:hover { color: var(--ip-sky); }
.ip-post-card p { color: var(--ip-muted); line-height: 1.7; margin: 0; }
.ip-post-card .ip-more { margin-top: auto; font-weight: 700; color: var(--ip-coral); text-decoration: none; }
.ip-post-card .ip-more:hover { color: var(--ip-navy); }
.ip-post-body .ip-tag { align-self: flex-start; }

/* --------------------------------------------------------------------------
   8. Additional helpers used across inner pages
   -------------------------------------------------------------------------- */
.ip-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.ip-center-btns { justify-content: center; }
.ip-eyebrow--light { color: var(--ip-amber); }
.ip-link { font-weight: 700; color: var(--ip-coral); text-decoration: none; }
.ip-link:hover { color: var(--ip-navy); }
.ip-split--top { align-items: start; }
.ip-sticky { position: sticky; top: 110px; }
.ip-media--plain { box-shadow: none; border-radius: 0; }
.ip-pdf { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; background: var(--ip-coral); color: #fff; border-radius: 4px; padding: 1px 6px; vertical-align: 2px; margin-left: 4px; }

/* "Show more" panel */
.ip-morepanel { margin-top: 36px; padding: 32px 36px; background: var(--ip-grey); border-radius: var(--ip-radius); border-left: 5px solid var(--ip-sky); }
.ip-morepanel a { color: var(--ip-sky); font-weight: 600; }

/* Solid panels */
.ip-panel { border-radius: var(--ip-radius); padding: 34px; box-shadow: var(--ip-shadow-lg); }
.ip-panel--navy { background: linear-gradient(160deg, var(--ip-navy-dark), var(--ip-navy)); color: #fff; }
.ip-panel--navy h2 { color: #fff; font-size: 28px; font-weight: 700; margin-bottom: 18px; }
.ip-decl-list { list-style: none; margin: 0; padding: 0; counter-reset: decl; }
.ip-decl-list li { position: relative; padding: 14px 0 14px 44px; border-top: 1px solid rgba(255, 255, 255, .14); counter-increment: decl; }
.ip-decl-list li:first-child { border-top: 0; }
.ip-decl-list li::before { content: counter(decl); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ip-amber); color: #1a2332; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ip-decl-list strong { display: block; color: #fff; line-height: 1.45; }
.ip-decl-list strong a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.ip-decl-list strong a:hover { color: var(--ip-amber); }
.ip-decl-list span { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.ip-decl-list .ip-pdf { display: inline-block; color: #fff; margin-top: 0; font-size: 11px; }

/* Credo quote panel (About Us) */
.ip-quote--credo { background: linear-gradient(120deg, var(--ip-navy) 0%, var(--ip-sky) 100%); }
.ip-quote--credo h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }

/* Award row (Achievements) */
.ip-award-row { background: #fff; border-radius: var(--ip-radius); padding: 28px; box-shadow: var(--ip-shadow); grid-template-columns: .8fr 1.2fr; }

/* Mission and vision cards (home-page component) on inner pages */
.ip-section .mission-grid { grid-template-columns: 1fr; gap: 18px; }
.ip-section .mission-card h3 { font-size: 26px; line-height: 1.3; margin: 0; }
.ip-section .mission-card p { margin: 0 0 6px; line-height: 1.7; color: var(--ip-text); }

/* Our Purpose: IIPT logo panel */
.ip-logo-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 420px; height: 100%; padding: 48px 40px; background: #fff; border-radius: var(--ip-radius); box-shadow: var(--ip-shadow-lg); border-top: 6px solid var(--ip-sky); }
.ip-logo-panel img { width: 100%; max-width: 440px; height: auto; }
.ip-logo-panel p { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .02em; color: var(--ip-sky); }

@media (max-width: 991px) {
  .ip-sticky { position: static; }
  .ip-award-row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ip-morepanel { padding: 22px 20px; }
  .ip-panel { padding: 24px 20px; }
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .ip-stats { grid-template-columns: repeat(3, 1fr); }
  .ip-stat:nth-child(3) { border-right: 0; }
  .ip-stat:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .ip-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .ip-section { padding: 56px 0; }
  .ip-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ip-split, .ip-split--reverse { grid-template-columns: 1fr; gap: 32px; }
  .prt-titlebar-wrapper .page-title-heading h1 { font-size: 34px; }
}
@media (max-width: 767px) {
  .ip-section { padding: 44px 0; }
  .ip-h2 { font-size: 27px; }
  .ip-lead { font-size: 17px; }
  .ip-grid--2, .ip-grid--3, .ip-grid--4 { grid-template-columns: 1fr; }
  .ip-stats { grid-template-columns: repeat(2, 1fr); }
  .ip-stat { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .ip-stat:nth-child(2n) { border-right: 0; }
  .ip-stat:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, .12); }
  .ip-timeline::before { left: 35px; }
  .ip-timeline li { grid-template-columns: 72px 1fr; gap: 14px; }
  .ip-year { width: 72px; font-size: 14px; }
  .ip-quote { padding: 28px 22px; }
  .ip-card { padding: 22px; }
  .ip-facts li { grid-template-columns: 1fr; gap: 2px; }
  .prt-titlebar-wrapper .prt-titlebar-wrapper-inner { min-height: 150px; padding: 32px 0 30px; }
  .prt-titlebar-wrapper .page-title-heading h1 { font-size: 28px; }
}

/* Page title banner: optional tagline under the H1 */
.prt-titlebar-wrapper .page-title-heading .ip-tagline { margin: -4px 0 14px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .9); font-style: italic; }
@media (max-width: 767px) { .prt-titlebar-wrapper .page-title-heading .ip-tagline { font-size: 16px; } }

/* --------------------------------------------------------------------------
   Session 7 components: photo gallery, pull quote, chapter links, link cards
   -------------------------------------------------------------------------- */
.ip-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ip-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.ip-gallery--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.ip-gallery figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--ip-shadow); display: flex; flex-direction: column; }
.ip-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ip-gallery--square img { aspect-ratio: 1 / 1; }
.ip-gallery figcaption { padding: 12px 16px 14px; font-size: 14px; line-height: 1.5; color: var(--ip-muted); }

.ip-pullquote { margin: 0; position: relative; background: linear-gradient(120deg, var(--ip-navy) 0%, var(--ip-sky) 100%); }
.ip-pullquote::before { content: "\201C"; position: absolute; top: -6px; left: 26px; font-size: 120px; line-height: 1; color: rgba(255, 255, 255, .18); font-family: Georgia, serif; }
.ip-pullquote p { position: relative; font-size: 21px; line-height: 1.65; margin: 0 0 18px; font-style: italic; }
.ip-pullquote footer strong { display: block; color: #fff; font-size: 17px; }
.ip-pullquote footer span { display: block; color: rgba(255, 255, 255, .8); font-size: 14px; margin-top: 2px; }

.ip-pills { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ip-pills a, .ip-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--ip-line); color: var(--ip-navy); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ip-pills a:hover { background: var(--ip-sky); border-color: var(--ip-sky); color: #fff; }
.ip-pills [aria-current="page"] { background: var(--ip-navy); border-color: var(--ip-navy); color: #fff; }
.ip-pills .fa { font-size: 12px; opacity: .7; }

.ip-linkcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ip-linkcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--ip-line); border-left: 4px solid var(--ip-sky); border-radius: 12px; padding: 18px 20px; text-decoration: none; box-shadow: var(--ip-shadow); transition: transform .2s, box-shadow .2s; }
.ip-linkcard:nth-child(3n+2) { border-left-color: var(--ip-amber); }
.ip-linkcard:nth-child(3n+3) { border-left-color: var(--ip-coral); }
.ip-linkcard:hover { transform: translateY(-3px); box-shadow: var(--ip-shadow-lg); }
.ip-linkcard small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ip-sky); }
.ip-linkcard strong { color: var(--ip-navy); font-size: 17px; line-height: 1.4; }
.ip-linkcard span { color: var(--ip-muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 991px) {
  .ip-gallery, .ip-gallery--4, .ip-linkcards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ip-gallery, .ip-linkcards { grid-template-columns: 1fr; }
  .ip-gallery--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ip-gallery--4 figcaption { padding: 8px 10px 10px; font-size: 12px; }
  .ip-pullquote p { font-size: 18px; }
}

/* ==========================================================================
   Session 8 (SEO): section label in the title bar
   On pages whose main heading (H1) sits in the content, the title bar shows
   the section name as a label with the same look as the title-bar H1.
   ========================================================================== */
.prt-titlebar-wrapper .page-title-heading .prt-title-label {
  font-family: var(--base-headingfont);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  text-transform: none;
  color: var(--base-white);
}
@media (max-width: 991px) {
  .prt-titlebar-wrapper .page-title-heading .prt-title-label { font-size: 34px; }
}
@media (max-width: 767px) {
  .prt-titlebar-wrapper .page-title-heading .prt-title-label { font-size: 28px; }
}
/* Headings promoted to H1 keep the look they had as H2 */
h1.blog-title { font-weight: 700; }
.prt-blog-single h1.dp-title { font-size: 32px; line-height: 1.25; margin-bottom: 16px; }
@media (max-width: 767px) {
  .prt-blog-single h1.dp-title { font-size: 26px; }
}
