/* =====================================================================
   CBC UPDATES - the single stylesheet for all the recent theme changes.
   Loaded LAST (after bootstrap, home, responsive, pages, accessibility ...)
   so these rules win over the older ones. Sections, in order:

     1. HOME PAGE      events, collaboration, leadership, opinions + testimonials
                       (video card, modal), shared card typography, See More button,
                       Glimpses (photo carousel + modal, smaller video card)
     2. TEAM PAGE      /team-cbc headings
     3. HEADER         top bar hides while scrolling down (js/header-scroll.js)
     4. TEAM SIDE NAV  left sidebar on /team-cbc (js/team-sidenav.js)
   ===================================================================== */

/* #####################################################################
   1. HOME PAGE
   ##################################################################### */

/* =====================================================================
   HOME - LATEST EVENTS (classic card design, overflow-safe)
   CSS only. Uses the theme's inherited font (no font-family of its own)
   and rem/em sizes so cards scale with the text-size controls without
   overlapping text or clipping the card bottom.
   ===================================================================== */

/* ---- Theme font everywhere in this section (excluding icons) ---- */
.events-section,
.events-section .events-header h2,
.events-section .events-header h2 span,
.events-section .home-event-card,
.events-section .home-event-card *:not(i):not([class*="fa-"]):not([class*="bi-"]):not([class*="fas"]):not([class*="far"]),
.events-section .events-see-more-btn,
.events-section .events-carousel-nav {
  font-family: inherit;
}

/* ---- Header: title + top-right controls ---- */
.events-section .events-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 99, 174, 0.18);
}

.events-section .events-header::after {
  bottom: -2px;
  height: 2px;
  width: 7.5rem;
}

.events-section .events-header h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem) !important;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  gap: 0.4em;
  min-width: 0;
}

.events-section .events-header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
}

.events-section .events-carousel-nav {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 1rem;
  color: #0063ae;
  background: #ffffff;
  border: 1.5px solid #0063ae;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 59, 115, 0.15);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.events-section .events-carousel-nav i {
  display: block;
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
}

.events-section .events-carousel-nav.pause i {
  font-size: 0.8rem;
}

.events-section .events-carousel-nav:hover {
  color: #ffffff;
  background: #0063ae;
  box-shadow: 0 4px 10px rgba(0, 99, 174, 0.3);
}

.events-section .events-carousel-nav:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 99, 174, 0.3);
}

.events-section .events-carousel-nav:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

/* ---- Card list: room for hover lift + shadow, nothing gets clipped ---- */
.events-section .events-content-wrapper {
  margin-bottom: 1rem;
}

.events-section .events-cards-container {
  overflow: hidden;
  margin: 0 -4px;
  padding: 0 4px;
}

.events-section .events-cards-list {
  align-items: stretch;
  gap: 1.5rem;
  padding: 0.75rem 0 1.5rem;
}

/* ---- Card ---- */
.events-section .home-event-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(25% - 1.125rem);
  min-width: 16rem;
  max-width: 20rem;
  height: auto;
  background: #ffffff;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 59, 115, 0.08);
  overflow: hidden;
}

.events-section .home-event-card:hover {
  border-color: #0063ae;
  box-shadow: 0 10px 22px rgba(0, 59, 115, 0.16);
}

/* no animated top/bottom border on hover */
.events-section .home-event-card::before,
.events-section .home-event-card:hover::before {
  content: none !important;
  display: none !important;
}

.events-section .home-event-card-image {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #e3ebf3;
}

.events-section .home-event-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.875rem 1rem 1rem;
}

.events-section .home-event-card-date {
  flex: 0 0 auto;
  margin: 0;
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-section .home-event-card-content>a:not(.home-event-card-read-more) {
  display: block;
  min-width: 0;
  text-decoration: none;
}

/* ---- Title: max 2 lines, always the same box height ---- */
.events-section .home-event-card-title *,
.events-section .home-event-card-description * {

  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  line-height: inherit !important;
  color: inherit !important;
  letter-spacing: 0 !important;
  display: inline;
}

.events-section .home-event-card-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: #003b73;
  height: 2.8em;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.events-section .home-event-card:hover .home-event-card-title {
  color: #0063ae;
}

/* ---- Description: max 3 lines, always the same box height ---- */
.events-section .home-event-card-description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.92rem !important;
  font-weight: 400;
  line-height: 1.5;
  color: #4b5563;
  height: 4.5em;
  min-height: 4.5em;
  max-height: 4.5em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---- Read more: pinned to the bottom, underline only under the link ---- */
.events-section .home-event-card-read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0063ae;
  text-decoration: none;
}

/* static light line under "Read More" (no hover animation) */
.events-section .home-event-card-read-more::after,
.events-section .home-event-card:hover .home-event-card-read-more::after {
  content: none !important;
  display: none !important;
}

.events-section .home-event-card-read-more {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(0, 99, 174, 0.25);
}

.events-section .home-event-card:hover .home-event-card-read-more {
  gap: 0.6rem;
}

.events-section .home-event-card-read-more i,
.home-event-card-read-more i {
  display: inline-block;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.events-section .home-event-card-read-more i::before,
.home-event-card-read-more i::before {
  content: "\f061";
}

.events-section .home-event-card:hover .home-event-card-read-more i,
.home-event-card:hover .home-event-card-read-more i {
  transform: translateX(6px);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .events-section .home-event-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 16rem;
  }
}

@media (max-width: 992px) {
  .events-section .home-event-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .events-section .events-cards-list {
    gap: 1rem;
  }

  .events-section .home-event-card {
    flex: 0 0 85%;
    min-width: 15rem;
    max-width: none;
  }

  .events-section .events-carousel-nav {
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
  }
}

/* =====================================================================
   HOME - OUR COLLABORATION MATTERS (refined cards + smooth carousel)
   Title: max 2 lines. Description: max 4 lines. Equal-height cards.
   ===================================================================== */
.collab-section .collab-carousel {
  overflow: hidden;
  padding: 0.75rem 0 0.5rem;
}

.collab-section .collab-track {
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1rem;
  align-items: stretch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.collab-section .collab-item {
  flex: 0 0 min(350px, calc(100% - 2.5rem));
  max-width: 350px;
  scroll-snap-align: start;
}

.collab-section .collab-item>a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.collab-section .collab-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 59, 115, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.collab-section .collab-box:hover {
  border-color: #0063ae;
  box-shadow: 0 10px 22px rgba(0, 59, 115, 0.16);
}

/* paused state: a clear but quiet cue on the cards */
.collab-section .collab-track.is-paused .collab-box {
  border-color: #b9cfe4;
}

.collab-section .collab-image {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e3ebf3;
}

/* Title - max 2 lines, always the same box height */
.collab-section .collab-box h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  flex: 0 0 auto;
  margin: 0;
  box-sizing: content-box;
  font-family: inherit;
  font-size: 0.95rem !important;
  font-weight: 500;
  color: #003b73;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-section .collab-box:hover h3 {
  color: #0063ae;
}

/* Description - max 4 lines, always the same box height */
.collab-section .collab-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  padding: 0 1rem 1rem;
  box-sizing: content-box;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4b5563;
  text-align: left;
  height: 6em;
  min-height: 6em;
  max-height: 6em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-section .collab-description * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  display: inline;
}

/* Controls: consistent round buttons */
.collab-section .collab-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.collab-section .collab-controls .collab-arrow,
.collab-section .collab-controls .collab-pause-btn {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  line-height: 1;
  font-size: 0.85rem;
  color: #0063ae;
  background: #ffffff;
  border: 1.5px solid #0063ae;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 59, 115, 0.15) !important;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.collab-section .collab-controls .collab-arrow:hover,
.collab-section .collab-controls .collab-pause-btn:hover {
  color: #ffffff;
  background: #0063ae;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0, 99, 174, 0.3) !important;
}

.collab-section .collab-controls .collab-arrow:focus-visible,
.collab-section .collab-controls .collab-pause-btn:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

.collab-section .collab-controls i {
  display: block;
  line-height: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .collab-section .collab-box,
  .collab-section .collab-controls .collab-arrow,
  .collab-section .collab-controls .collab-pause-btn {
    transition: none;
  }
}

/* ---- Collaboration cards: final spacing + clamp fixes ---- */
.collab-section .collab-track {
  padding: 0.75rem 0.25rem 2rem;
  /* room for hover lift + shadow, never clipped */
}

.collab-section .collab-carousel {
  padding: 0;
}

.collab-section .collab-box {
  padding-bottom: 1.1rem;
  /* visible breathing space at the bottom of every card */
}

.collab-section .collab-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: none;
  padding: 0 1rem;
  height: 6em;
  min-height: 6em;
  max-height: 6em;
  overflow: hidden;
}

.collab-section .collab-box h3 {
  -webkit-line-clamp: 2;
  line-clamp: none;
}

/* =====================================================================
   HOME - COMMISSION LEADERSHIP (adaptive, always-centred card layout)
   Cards are laid out with flex-wrap + centre justification, so any number
   of members (1, 2, 3, 4, 5 ...) stays perfectly aligned:
   - wide screens: up to 3 per row, an incomplete last row is centred
   - tablet: 2 per row, phone: 1 per row
   ===================================================================== */
.leadership-section {
  font-family: inherit;
  padding: 3rem 1.25rem 3.5rem;
}

.leadership-section .leadership-title {
  margin: 0 0 1.75rem;
  font-family: inherit;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  line-height: 1.2;
}

.leadership-section .leadership-grid-new {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.leadership-section .leadership-team-column {
  display: block;
  padding: 0;
  border-radius: 0;
}

.leadership-section .leadership-members-row {
  --lead-gap: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* 1-2 cards or a short last row sit in the middle, never to one side */
  align-items: stretch;
  gap: var(--lead-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.leadership-section .leadership-members-row>li {
  order: 0 !important;
  /* keep the order set in the admin (older rules moved the 2nd card first) */
  margin: 0 !important;
}

/* ---- Card ---- */
.leadership-section .chairperson-image-card {
  flex: 0 0 calc((100% - 2 * var(--lead-gap)) / 3);
  width: calc((100% - 2 * var(--lead-gap)) / 3);
  max-width: 22rem;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 59, 115, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.leadership-section .chairperson-image-card:hover {
  border-color: #0063ae;
  box-shadow: 0 12px 26px rgba(0, 59, 115, 0.16);
}

.leadership-section .chairperson-image-wrapper {
  flex: 0 0 auto;
  width: 100%;
  height: 320px;
  /* same image height as the original design */
  aspect-ratio: auto;
  overflow: hidden;
  background: #eef3f8;
}

.leadership-section .chairperson-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leadership-section .chairperson-overlay p {
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.leadership-section .chairperson-overlay .view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #005ea6 0%, #004b88 100%);
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 59, 115, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.leadership-section .chairperson-overlay .view-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  transition: left 0.6s ease;
}

.leadership-section .chairperson-overlay .view-more:hover::before {
  left: 100%;
}

.leadership-section .chairperson-overlay .view-more:hover {
  box-shadow: 0 8px 24px rgba(0, 59, 115, 0.4);
  background: linear-gradient(135deg, #004b88 0%, #003366 100%);
  color: #ffd54f !important;
  text-decoration: none;
}

.leadership-section .chairperson-overlay .view-more:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 59, 115, 0.3);
}

/* ---- Name + designation: same box height on every card ---- */
.leadership-section .chairperson-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid #e3ebf3;
  text-align: center;
}

.leadership-section .chairperson-content h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow: none;
  color: #003b73;
  min-height: 2.7em;
  height: 2.7em;
  overflow-wrap: anywhere;
}

.leadership-section .chairperson-designation {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: #0063ae;
  min-height: 2.8em;
  height: 2.8em;
  overflow-wrap: anywhere;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .leadership-section .chairperson-image-card {
    flex-basis: calc((100% - var(--lead-gap)) / 2);
    width: calc((100% - var(--lead-gap)) / 2);
  }
}

@media (max-width: 575px) {
  .leadership-section .leadership-members-row {
    --lead-gap: 1.25rem;
  }

  .leadership-section .chairperson-image-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 22rem;
  }
}

/* ---- Leadership: width + typography fixes (override !important rules from pages.css) ---- */
.leadership-section {
  flex-direction: column;
  align-items: stretch;
}

.leadership-section>.leadership-title,
.leadership-section>.leadership-grid-new {
  width: 100%;
  flex: 0 0 auto;
}

.leadership-section .leadership-team-column,
.leadership-section .leadership-team-column .region,
.leadership-section .leadership-team-column .view,
.leadership-section .leadership-team-column .view-content {
  width: 100%;
}

.leadership-section .chairperson-content h3,
.leadership-section .leadership-members-row h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
}

.leadership-section .chairperson-content h3 a,
.leadership-section .chairperson-content h3 a:hover {
  color: inherit;
  font: inherit !important;
  text-decoration: none;
}

.leadership-section .chairperson-content h3 a:hover {
  color: #0063ae;
}

/* pages.css zeroes the padding of every #app-content > section (ID specificity) - restore it here */
body #app-content>section.leadership-section.leadership-section {
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 3.5rem;
}

/* =====================================================================
   HOME - OPINIONS DO MATTER (uniform cards)
   Title: max 2 lines. Description: max 6 lines. Same font size on every
   card (plain text, theme font), identical box heights, Read More pinned
   to the bottom.
   ===================================================================== */
.blog-carousel-wrapper .home-opinion-card {
  height: 372px !important;
  /* one height for desktop, tablet and mobile */
}

.blog-carousel-wrapper .home-opinion-card-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  gap: 4px;
}

.blog-carousel-wrapper .home-opinion-card h3 {
  flex: 0 0 auto !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  color: #003b73 !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-line-clamp: 2 !important;
  height: 2.7em !important;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-carousel-wrapper .home-opinion-card .home-opinion-card-desc,
.blog-carousel-wrapper .home-opinion-card-content>p {
  flex: 0 0 auto !important;
  font-family: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  color: #4b5563 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-line-clamp: 6 !important;
  height: 8.7em !important;
  /* 6 lines x 1.45 */
  min-height: 8.7em !important;
  max-height: 8.7em !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-carousel-wrapper .home-opinion-card-link {
  flex: 0 0 auto;
  font-family: inherit !important;
}

/* =====================================================================
   UNIFIED CARD TYPOGRAPHY (reference: "Our Collaboration Matters" cards)
   Every homepage card uses the same title / description size + weight.
   The values below mirror the .collab-box h3 / .collab-description rules,
   change them here to resize all cards at once.
   ===================================================================== */
:root {
  --card-title-size: 0.95rem;
  --card-title-weight: 500;
  --card-title-lh: 1.35;
  --card-desc-size: 0.92rem;
  --card-desc-weight: 400;
  --card-desc-lh: 1.5;
}

/* Opinions Do Matter */
.blog-carousel-wrapper .home-opinion-card {
  height: 372px !important;
}

.blog-carousel-wrapper .home-opinion-card h3 {
  font-size: var(--card-title-size) !important;
  font-weight: 500 !important;
  line-height: var(--card-title-lh) !important;
  height: 2.8em !important;
  min-height: 2.8em !important;
  max-height: 2.8em !important;
}

.blog-carousel-wrapper .home-opinion-card .home-opinion-card-desc,
.blog-carousel-wrapper .home-opinion-card-content>p {
  font-size: var(--card-desc-size) !important;
  font-weight: var(--card-desc-weight) !important;
  line-height: var(--card-desc-lh) !important;
  height: 9em !important;
  /* 6 lines x 1.5 */
  min-height: 9em !important;
  max-height: 9em !important;
}

/* Latest Events */
.events-section .home-event-card-title {
  font-size: var(--card-title-size) !important;
  font-weight: var(--card-title-weight) !important;
  line-height: var(--card-title-lh) !important;
}

.events-section .home-event-card-description {
  font-size: var(--card-desc-size) !important;
  font-weight: var(--card-desc-weight) !important;
  line-height: var(--card-desc-lh) !important;
}

/* Commission Leadership (name) */
.leadership-section .chairperson-content h3,
.leadership-section .leadership-members-row h3 {
  font-size: var(--card-title-size) !important;
  font-weight: var(--card-title-weight) !important;
  line-height: var(--card-title-lh) !important;
  height: 2.8em;
  min-height: 2.8em;
}

/* =====================================================================
   OPINIONS + TESTIMONIALS: both boxes share one height and one baseline
   (change --opinion-box-height to resize the cards AND the video box)
   ===================================================================== */
:root {
  --opinion-box-height: 350px;
}

.blog-carousel-wrapper .home-opinion-card {
  height: var(--opinion-box-height) !important;
  min-height: var(--opinion-box-height) !important;
  max-height: var(--opinion-box-height) !important;
}

@media (min-width: 992px) {

  .opinions-layout-wrapper .opinions-vertical-box,
  .opinions-layout-wrapper .vertical-testimonials-scroll {
    height: var(--opinion-box-height) !important;
    min-height: var(--opinion-box-height) !important;
    max-height: var(--opinion-box-height) !important;
  }

  /* cards start 10px below the column top (wrapper 6px + track 4px padding): give the video box the same offset */
  .opinions-layout-wrapper .vertical-testimonials-scroll {
    margin-top: 10px;
  }

  /* footers (arrows + See More) sit on the same line on both sides */
  .opinions-layout-wrapper .opinions-testimonials-column .blog-footer {
    margin-top: 10px;
    margin-bottom: 0;
  }
}

/* =====================================================================
   TESTIMONIAL CARD: video + title bar + expand button, and the modal player
   ===================================================================== */
.opinions-layout-wrapper .testimonial-item {
  position: relative;
  flex-direction: column;
}

.opinions-layout-wrapper .testimonial-item:has(.testimonial-video.active) {
  flex-direction: column;
}

/* video takes the space above the title bar */
.opinions-layout-wrapper .testimonial-item .testimonial-video {
  flex: 1 1 0;
  min-height: 0;
  height: auto !important;
  cursor: pointer;
}

/* Title bar (never overlaps the video, so nothing is hidden) */
.opinions-layout-wrapper .testimonial-item .testimonial-caption {
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 3.4rem 0.6rem 0.8rem;
  /* right gap keeps clear of the unmute button */
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: #ffffff;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  height: calc(2 * 1.35em + 1.15rem);
  /* always 2 lines tall -> video area never jumps */
  cursor: pointer;
  overflow-wrap: anywhere;
}

.opinions-layout-wrapper .testimonial-item .testimonial-caption:hover {
  color: #ffd27a;
}

/* Expand button (top-right of the video) */
.opinions-layout-wrapper .testimonial-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 0.8rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.opinions-layout-wrapper .testimonial-expand:hover {
  background: #0063ae;
  transform: scale(1.08);
}

.opinions-layout-wrapper .testimonial-expand:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

/* unmute button sits inside the title bar corner */
.opinions-layout-wrapper .vertical-testimonials-scroll .video-unmute-btn {
  bottom: 0.7rem;
  right: 0.8rem;
}

/* ---- Modal ---- */
.testi-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.testi-modal[hidden] {
  display: none !important;
}

.testi-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.82);
}

.testi-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: 100%;
  background: #0f172a;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.testi-modal__player {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 0;
}

/* whole video visible at any size: width follows the dialog, height is capped by the viewport */
.testi-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 9rem);
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  background: #000;
}

.testi-modal__title {
  margin: 0;
  padding: 0.85rem 3.25rem 0.95rem 1.1rem;
  font-family: inherit;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem) !important;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.testi-modal__title[hidden] {
  display: none;
}

.testi-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.testi-modal__close:hover {
  background: #0063ae;
}

.testi-modal__close:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

body.testi-modal-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .testi-modal {
    padding: 0.5rem;
  }

  .testi-modal__dialog {
    border-radius: 8px;
  }

  .testi-modal__video {
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .testi-modal:not([hidden]) .testi-modal__dialog {
    animation: testiModalIn 0.22s ease-out;
  }

  @keyframes testiModalIn {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* =====================================================================
   TESTIMONIAL VIDEO BOX (base layout): any video (wide, square, tall) is
   shown whole and centred in the card. Box height = --opinion-box-height.
   ===================================================================== */
.opinions-layout-wrapper .opinions-vertical-box,
.opinions-layout-wrapper .vertical-testimonials-scroll {
  height: var(--opinion-box-height, 350px) !important;
  min-height: var(--opinion-box-height, 350px) !important;
  max-height: var(--opinion-box-height, 350px) !important;
}

.opinions-layout-wrapper .vertical-testimonials-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.opinions-layout-wrapper .opinions-vertical-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0f172a;
  /* neutral letterbox colour around the video */
}

/* only the slide that is currently playing takes up space */
.opinions-layout-wrapper .testimonial-item {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opinions-layout-wrapper .testimonial-item:has(.testimonial-video.active) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.opinions-layout-wrapper .testimonial-item .testimonial-video {
  display: none;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  /* whole video visible, scaled to fit the area above the title bar */
  object-position: center center !important;
  background: transparent;
}

.opinions-layout-wrapper .testimonial-item .testimonial-video.active {
  display: block !important;
}

/* ---- Testimonial title on the home card: exactly 2 lines, then "..." (full title is shown in the modal) ---- */
.opinions-layout-wrapper .testimonial-item .testimonial-caption {
  /* vertical spacing moved to margins: overflow is clipped at the padding edge, so padding
     would let a 3rd line peek out below the 2-line limit */
  padding: 0 3.4rem 0 0.8rem;
  margin: 0.55rem 0 0.6rem;
  height: 2.7em;
  min-height: 2.7em;
  max-height: 2.7em;
  width: auto;
  background: transparent;
  border-top: 0;
  text-overflow: ellipsis;
  white-space: normal;
}

/* ---- YouTube slides (iframe) behave like video slides in the card and in the modal ---- */
.opinions-layout-wrapper .testimonial-item iframe.testimonial-video {
  flex: 1 1 0;
  min-height: 0;
  height: auto !important;
  border: 0;
  border-radius: 0 !important;
  background: #000;
}

.opinions-layout-wrapper .testimonial-item .youtube-player-trigger.testimonial-video {
  flex: 1 1 0;
  min-height: 0;
  height: auto !important;
  border: 0;
  border-radius: 0 !important;
  background: #000;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.opinions-layout-wrapper .testimonial-item .youtube-player-trigger.testimonial-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.opinions-layout-wrapper .testimonial-item .youtube-player-trigger.testimonial-video:hover img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.opinions-layout-wrapper .testimonial-item .youtube-player-trigger .yt-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 42px;
  pointer-events: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  z-index: 3;
}

.opinions-layout-wrapper .testimonial-item .youtube-player-trigger:hover .yt-play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 6px 14px rgba(255, 0, 0, 0.6));
}

.testi-modal__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 9rem);
  max-height: calc(100dvh - 9rem);
  border: 0;
  background: #000;
}

.testi-modal__frame[hidden],
.testi-modal__video[hidden] {
  display: none;
}

/* =====================================================================
   .blog-see-more-btn - same look as the other See More / View More buttons
   (.collab-footer .view-more, .events-see-more-btn). Scoped with .blog-footer
   so the older orange style and the max-width:768px tweak in responsive.css
   no longer apply.
   ===================================================================== */
.blog-footer .blog-see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #005ea6 0%, #004b88 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 99, 174, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.blog-footer .blog-see-more-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 75, 136, 0.35);
  background: linear-gradient(135deg, #004b88 0%, #003366 100%);
  color: #ffd54f;
  text-decoration: none;
}

.blog-footer .blog-see-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 99, 174, 0.3);
}

.blog-footer .blog-see-more-btn:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

.blog-footer .blog-see-more-btn i {
  font-size: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-footer .blog-see-more-btn:hover i {
  transform: translateX(5px);
}

/* =====================================================================
   GLIMPSES (Photo Gallery + Video Gallery)
   - laptop + tablet (>= 768px): exactly 50% / 50%, equal height
   - mobile (< 768px): the two boxes sit in separate rows, full width
   ===================================================================== */
.social-section .row.g-4>.col-lg-6,
.social-section .row.g-4>.col-md-6 {
  min-width: 0 !important;
  /* long content can never stretch a column */
}

@media (min-width: 768px) {

  .social-section .row.g-4>.col-lg-6,
  .social-section .row.g-4>.col-md-6 {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }
}

@media (max-width: 767.98px) {

  .social-section .row.g-4>.col-lg-6,
  .social-section .row.g-4>.col-md-6 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* the un-classed <div> Drupal puts around the view did not grow, so one box ended up shorter */
.social-section .row.g-4>[class*="col-"] .views-element-container>div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* both cards fill their column */
.social-section .row.g-4>[class*="col-"] .glimpses-card {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* =====================================================================
   GLIMPSES - bigger Photo Gallery (multi-photo carousel) + smaller Video card
   - laptop (>= 992px): photos 2/3 of the row, video 1/3
   - tablet (768-991px): 50% / 50%        - mobile (< 768px): stacked rows
   ===================================================================== */
@media (min-width: 992px) {
  .social-section .row.g-4>.col-lg-6:nth-child(1) {
    flex: 0 0 66.6667% !important;
    width: 66.6667% !important;
    max-width: 66.6667% !important;
  }

  .social-section .row.g-4>.col-lg-6:nth-child(2) {
    flex: 0 0 33.3333% !important;
    width: 33.3333% !important;
    max-width: 33.3333% !important;
  }
}

/* ---- Photo carousel: no card boxes, 3 / 2 / 1 photos per view ---- */
.photo-gallery-card .photo-carousel {
  container-type: inline-size;
  --photo-gap: 1rem;
  --photos-per-view: 1;
  width: 100%;
  min-width: 0;
}

@container (min-width: 440px) {
  .photo-gallery-card .photo-track {
    --photos-per-view: 2;
  }
}

@container (min-width: 700px) {
  .photo-gallery-card .photo-track {
    --photos-per-view: 3;
  }
}

.photo-gallery-card .photo-track {
  display: flex;
  gap: var(--photo-gap, 1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding: 0.25rem 0 0.5rem;
  margin: 0;
}

.photo-gallery-card .photo-track::-webkit-scrollbar {
  display: none;
}

.photo-gallery-card .photo-slide {
  flex: 0 0 calc((100% - (var(--photos-per-view, 1) - 1) * var(--photo-gap, 1rem)) / var(--photos-per-view, 1));
  min-width: 0;
  scroll-snap-align: start;
  list-style: none;
}

.photo-gallery-card .photo-slide__btn {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.photo-gallery-card .photo-slide__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef4;
}

.photo-gallery-card .photo-slide__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.photo-gallery-card .photo-slide__btn:hover .photo-slide__img img {
  transform: scale(1.05);
}

.photo-gallery-card .photo-slide__btn:focus-visible {
  outline: 2px solid #0063ae;
  outline-offset: 3px;
  border-radius: 8px;
}

/* title: 2 lines max, always the same box height so every photo lines up */
.photo-gallery-card .photo-slide__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: inherit;
  font-size: var(--card-title-size, 0.95rem);
  font-weight: var(--card-title-weight, 500);
  line-height: var(--card-title-lh, 1.35);
  color: #2c53a2;
  height: 2.7em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.photo-gallery-card .photo-slide__btn:hover .photo-slide__title {
  color: #0063ae;
}

/* ---- Video card: smaller (16:9, no fixed 320px height) ---- */
.social-section .row.g-4>.col-lg-6:nth-child(2) .video-container {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
}

.social-section .row.g-4>.col-lg-6:nth-child(2) .youtube-card video,
.social-section .row.g-4>.col-lg-6:nth-child(2) .youtube-card img,
.social-section .row.g-4>.col-lg-6:nth-child(2) .youtube-card iframe {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain;
}

/* ---- Photo modal (reuses the .testi-modal shell) ---- */
.photo-modal .photo-modal__dialog {
  width: min(1000px, 100%);
  max-height: 100%;
  background: #ffffff;
}

.photo-modal__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 0;
  background: #0f172a;
}

.photo-modal__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 16rem);
  max-height: calc(100dvh - 16rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.photo-modal__text {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 11rem;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.25rem;
  background: #ffffff;
}

.photo-modal__title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-family: inherit;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem) !important;
  font-weight: 600;
  line-height: 1.4;
  color: #003b73;
  overflow-wrap: anywhere;
}

.photo-modal__desc {
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem !important;
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.photo-modal__title[hidden],
.photo-modal__desc[hidden] {
  display: none;
}

@media (max-width: 575px) {
  .photo-modal__img {
    max-height: calc(100vh - 15rem);
    max-height: calc(100dvh - 15rem);
  }

  .photo-modal__text {
    max-height: 9.5rem;
  }
}

/* old fixed heights (550px card / 400px carousel) left a big empty gap under the photos */
.social-section .row.g-4>[class*="col-"] .glimpses-card {
  min-height: 0 !important;
}

.social-section .row.g-4>[class*="col-"] .youtube-section .youtube-carousel-wrapper {
  min-height: 0 !important;
  height: auto;
}

.social-section .row.g-4>.col-lg-6:nth-child(2) .youtube-carousel {
  height: auto;
}

.social-section .row.g-4>.col-lg-6:nth-child(2) .youtube-card {
  height: auto;
}

/* ---- Photo modal: previous / next ---- */
.photo-modal__figure {
  position: relative;
}

.photo-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.photo-modal__nav--prev {
  left: 0.75rem;
}

.photo-modal__nav--next {
  right: 0.75rem;
}

.photo-modal__nav:hover {
  background: #0063ae;
  transform: translateY(-50%) scale(1.08);
}

.photo-modal__nav:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

.photo-modal__nav[hidden],
.photo-modal__count[hidden] {
  display: none;
}

.photo-modal__count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  z-index: 3;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

@media (max-width: 575px) {
  .photo-modal__nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.85rem;
  }

  .photo-modal__nav--prev {
    left: 0.4rem;
  }

  .photo-modal__nav--next {
    right: 0.4rem;
  }
}

/* ---- Photo modal: the image area is never shorter than 200px, even when the photo is missing ---- */
.photo-modal__figure {
  min-height: 200px;
}

.photo-modal__figure.is-empty .photo-modal__img {
  display: none;
  /* hide the browser's broken-image icon / alt text */
}

.photo-modal__figure.is-empty::before {
  content: "\f03e";
  /* Font Awesome "image" icon as a neutral placeholder */
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

/* #####################################################################
   2. TEAM PAGE
   ##################################################################### */

/* =====================================================================
   TEAM PAGE (/team-cbc) headings - same style as the home "Latest Events"
   heading: left aligned, first word blue, thin line with a short
   blue-to-gold accent under the start of the heading.
   ===================================================================== */
.document-section-header {
  text-align: left;
  margin-bottom: 1.5rem !important;
}

.document-section-header .title-underline {
  display: none;
  /* the heading draws its own line + accent now */
}

.document-section-header .section-title,
.team-category-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4em;
  width: 100%;
  margin: 0 0 1.25rem !important;
  padding: 0 0 0.75rem;
  font-family: inherit;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem) !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: #003b73;
  border-bottom: 2px solid rgba(0, 99, 174, 0.18);
}

.document-section-header .section-title span,
.team-category-title span {
  color: #005ea6;
}

.document-section-header .section-title::after,
.team-category-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 7.5rem;
  height: 2px;
  transform: none;
  background: linear-gradient(90deg, #0063ae 0%, #ffaa01 100%);
  border-radius: 2px;
}

/* #####################################################################
   3. HEADER
   ##################################################################### */

/* =====================================================================
   HEADER SCROLL BEHAVIOUR (js/header-scroll.js)
   Scrolling down hides the top bar, only the navigation row stays.
   Scrolling up (or being back at the top) shows the top bar again.
   ===================================================================== */
header .top-bar {
  max-height: 320px;
  /* tall enough for the wrapped mobile layout */
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease, border-width 0.3s ease;
}

html.header-compact header .top-bar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  /* hidden links drop out of the tab order / screen readers */
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease, border-width 0.3s ease, visibility 0s linear 0.3s;
}

@media (prefers-reduced-motion: reduce) {

  header .top-bar,
  html.header-compact header .top-bar {
    transition: none;
  }
}

/* #####################################################################
   4. TEAM SIDE NAV
   ##################################################################### */

/* =====================================================================
   TEAM PAGE SIDE NAV (built by js/team-sidenav.js, loaded only on /team-cbc)
   Desktop: a 200px panel stuck to the left edge of the screen.
   Small screens: one row of chips under the header.
   It always starts under the header's LIVE height (--header-live-height, published by
   js/header-scroll.js), so it follows the header when the top bar hides and never slides
   inside the header.
   ===================================================================== */
:root {
  --sidenav-header: var(--header-live-height, var(--header-height, 112px));
  --sidenav-width: 170px;
  --sidenav-gap: 10px;
  --sidenav-left: 16px;
  /* space between the screen's left edge and the sidebar */
  --sidenav-right: 32px;
  /* space between the content and the screen's right edge */
  /* space between the sidebar and the content */
}

.team-sidenav {
  position: fixed;
  /* --sidenav-top is set by JS: starts at the team content (below the breadcrumb), then sticks under the header */
  top: var(--sidenav-top, calc(var(--sidenav-header) + 16px));
  left: var(--sidenav-left);
  /* a little space from the left edge of the screen */
  z-index: 2;
  /* below the header (z-index: 3) */
  box-sizing: border-box;
  width: var(--sidenav-width);
  max-height: calc(100vh - var(--sidenav-top, var(--sidenav-header)) - 16px);
  overflow-y: auto;
  padding: 0.5rem 0;
  background: #ffffff;
  /* solid: readable over any background */
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 59, 115, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* used by JS to measure the natural (one-line) width of the longest heading */
.team-sidenav.is-measuring {
  width: max-content !important;
  max-width: none !important;
}

.team-sidenav.is-measuring .team-sidenav__link {
  white-space: nowrap;
}

.team-sidenav.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.team-sidenav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-sidenav__link {
  display: block;
  padding: 0.6rem 1rem 0.6rem 0.9rem;
  border-left: 4px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.team-sidenav__link:hover {
  color: #0063ae;
  background: #f1f6fb;
}

.team-sidenav__link:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: -2px;
}

.team-sidenav__link.is-active {
  font-weight: 700;
  color: #003b73;
  border-left-color: #0063ae;
  background: #e6f0fa;
}

/* headings land below the fixed header when reached through a #hash link */
.meet-team-section-enhanced .section-title,
.team-category-title {
  scroll-margin-top: calc(var(--header-height, 112px) + 16px);
}

/* desktop: the content starts exactly --sidenav-gap (10px) to the right of the sidebar and runs to the
   right edge of the screen (no empty space on the right).
   (#app-content .container has padding/margin rules with !important, hence the ID + !important) */
@media (min-width: 992px) {
  body.has-team-sidenav #app-content [id^="block-cbc-views-block-our-team-block"] .container {
    margin-left: calc(var(--sidenav-left) + var(--sidenav-width) + var(--sidenav-gap)) !important;
    margin-right: 0 !important;
    /* the content uses all the width that is left of the sidebar */
    padding-left: 0 !important;
    padding-right: var(--sidenav-right) !important;
    max-width: none !important;
    width: auto !important;
    box-sizing: border-box;
  }

  /* the first block has an extra 20px inner padding the other blocks do not: align them all */
  body.has-team-sidenav .meet-team-section-enhanced .karmayogi-content-wrapper {
    padding-left: 0 !important;
  }
}

/* small screens: horizontal chips under the header */
@media (max-width: 991.98px) {
  .team-sidenav {
    top: var(--sidenav-header);
    max-height: none;
    left: 0;
    right: 0;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 59, 115, 0.12);
    transform: translateY(-8px);
  }

  .team-sidenav__list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .team-sidenav__list::-webkit-scrollbar {
    display: none;
  }

  .team-sidenav__link {
    flex: 0 0 auto;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(0, 99, 174, 0.25);
    border-radius: 999px;
    white-space: nowrap;
    background: #ffffff;
  }

  .team-sidenav__link.is-active {
    color: #ffffff;
    border-color: #0063ae;
    background: #0063ae;
  }

  .meet-team-section-enhanced .section-title,
  .team-category-title {
    scroll-margin-top: calc(var(--header-height, 112px) + 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-sidenav {
    transition: none;
  }
}

/* =====================================================================
   ABOUT CBC PAGE (/about-cbc): same side nav as the team page (js/team-sidenav.js)
   Desktop: the content starts --sidenav-gap (10px) to the right of the 200px sidebar.
   ===================================================================== */
.has-about-sidenav .mission-karmayogi-header h2,
.has-about-sidenav .framework-title,
.has-about-sidenav .about-cbc-core>h2,
.has-about-sidenav .vision-card h3.mb-2,
.has-about-sidenav .mission-card h3.mb-2,
.has-about-sidenav .mandate-section>.text-center h3 {
  scroll-margin-top: calc(var(--header-height, 112px) + 16px);
  font-size: 1.35rem !important;
}

@media (min-width: 992px) {
  body.has-body-sidenav #app-content .karmayogi-section-fullwidth>.container {
    margin-left: calc(var(--sidenav-left) + var(--sidenav-width) + var(--sidenav-gap)) !important;
    margin-right: 0 !important;
    /* the content uses all the width that is left of the sidebar */
    padding-left: 0 !important;
    padding-right: var(--sidenav-right) !important;
    max-width: none !important;
    width: auto !important;
    box-sizing: border-box;
  }
}

@media (max-width: 991.98px) {

  .has-about-sidenav .mission-karmayogi-header h2,
  .has-about-sidenav .framework-title,
  .has-about-sidenav .about-cbc-core>h2,
  .has-about-sidenav .vision-card h3.mb-2,
  .has-about-sidenav .mission-card h3.mb-2,
  .has-about-sidenav .mandate-section>.text-center h3 {
    scroll-margin-top: calc(var(--header-height, 112px) + 64px);
  }
}

/* =====================================================================
   TEAM PAGE: one card design, one size, one heading scale
   Laptop (>=992px): 4 cards per row | Tablet (576-991px): 3 | Mobile (<576px): 1
   Cards without a photo get a simple avatar (.team-avatar) of the same size.
   ===================================================================== */
body [id^="block-cbc-views-block-our-team-block"] {
  --team-img-h: 190px;
  --team-title-size: 1.2rem;
  /* size of every heading on the team page */
}

/* ---- headings: one size (--team-title-size), smaller on small screens ---- */
body [id^="block-cbc-views-block-our-team-block"] .section-title,
body [id^="block-cbc-views-block-our-team-block"] .team-category-title,
body [id^="block-cbc-views-block-our-team-block"] h2,
body [id^="block-cbc-views-block-our-team-block"] h3,
body [id^="block-cbc-views-block-our-team-block"] h4 {
  font-size: var(--team-title-size) !important;
  line-height: 1.3 !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-category-title {
  padding-bottom: 10px;
}

/* ---- grid: every row of cards ---- */
/* the category is ONE grid: the normal-members row and the PS/PPS row are dissolved
   (display: contents) so all their cards flow together in the same rows */
body [id^="block-cbc-views-block-our-team-block"] .team-category {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

body [id^="block-cbc-views-block-our-team-block"] .team-category>.team-category-title {
  grid-column: 1 / -1;
  margin-bottom: 0.4rem !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-category .row {
  display: contents !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-category .row>li,
body [id^="block-cbc-views-block-our-team-block"] .team-category .row>.col-pillar,
body [id^="block-cbc-views-block-our-team-block"] .team-category .row>[class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
}

/* ---- card: identical for every block (also PS/PPS) ---- */
body [id^="block-cbc-views-block-our-team-block"] .team-member-card,
body [id^="block-cbc-views-block-our-team-block"] .team-member-card.is-ps-pps {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 99, 174, 0.15) !important;
  border-left: 1px solid rgba(0, 99, 174, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 12px rgba(0, 59, 115, 0.08) !important;
  overflow: hidden;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card:hover {
  box-shadow: 0 8px 20px rgba(0, 59, 115, 0.14) !important;
}

/* photo / avatar area: same height everywhere */
body [id^="block-cbc-views-block-our-team-block"] .team-member-image {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: var(--team-img-h) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #cfe4f7 100%);
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* simple avatar for members without a photo */
.team-avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar::before {
  content: '';
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: url("../img/team-avatar.png") center / cover no-repeat;
  /* css/ -> img/ */
  box-shadow: 0 2px 10px rgba(0, 99, 174, 0.18);
}

/* text area */
body [id^="block-cbc-views-block-our-team-block"] .team-member-info,
body [id^="block-cbc-views-block-our-team-block"] .team-member-card.is-ps-pps .team-member-info {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  height: auto !important;
  padding: 12px 14px !important;
  text-align: left !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-name,
body [id^="block-cbc-views-block-our-team-block"] h3.team-member-name,
body [id^="block-cbc-views-block-our-team-block"] h4.team-member-name {
  font-weight: 700 !important;
  color: #002b5b !important;
  margin: 0 0 3px !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}

body [id^="block-cbc-views-block-our-team-block"] h3.team-member-name {
  color: #0063ae !important;
  /* pillar name above the person's name */
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-role {
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #0063ae !important;
  margin: 0 0 8px !important;
  text-align: left !important;
}

body [id^="block-cbc-views-block-our-team-block"] .contact-details {
  margin: auto 0 0 !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
}

body [id^="block-cbc-views-block-our-team-block"] .contact-item,
body [id^="block-cbc-views-block-our-team-block"] .team-member-contact {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 4px !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  color: #444 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left !important;
}

body [id^="block-cbc-views-block-our-team-block"] .contact-item:hover {
  background: none !important;
  padding: 0 !important;
}

body [id^="block-cbc-views-block-our-team-block"] .contact-item i,
body [id^="block-cbc-views-block-our-team-block"] .team-member-contact i {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  font-size: 0.65rem !important;
  color: #0063ae !important;
  background: rgba(0, 99, 174, 0.1);
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-contact:first-of-type {
  margin-top: 0 !important;
}

/* ---- tablet: 3 cards ---- */
@media (max-width: 991.98px) {
  body [id^="block-cbc-views-block-our-team-block"] .team-category {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  body [id^="block-cbc-views-block-our-team-block"] {
    --team-img-h: 170px;
    --team-title-size: 1.1rem;
  }
}

/* ---- mobile: 1 card per row, smaller headings ---- */
@media (max-width: 575.98px) {
  body [id^="block-cbc-views-block-our-team-block"] .team-category {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  body [id^="block-cbc-views-block-our-team-block"] {
    --team-img-h: 200px;
    --team-title-size: 1rem;
  }

  body [id^="block-cbc-views-block-our-team-block"] .team-member-role {
    font-size: 0.76rem !important;
  }

  body [id^="block-cbc-views-block-our-team-block"] .contact-item,
  body [id^="block-cbc-views-block-our-team-block"] .team-member-contact {
    font-size: 0.74rem !important;
  }
}

/* the old mobile re-ordering (middle card first) must not apply to the uniform grid */
@media (max-width: 767px) {
  .meet-team-section-enhanced .team-category ul.row li:nth-child(2) {
    order: 0;
  }
}

/* =====================================================================
   TEAM PAGE: final colour + size scale (all contrast >= 4.5:1 on white)
     headings  #002b5b  (accent word #0063ae)   0.95rem  (0.9 tablet, 0.85 mobile)
     names     #002b5b                          0.95rem
     pillar    #0063ae                          0.88rem
     role      #0b5394                          0.82rem
     contact   #374151                          0.8rem
   ===================================================================== */
body [id^="block-cbc-views-block-our-team-block"] .section-title,
body [id^="block-cbc-views-block-our-team-block"] .team-category-title {
  color: #002b5b !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

body [id^="block-cbc-views-block-our-team-block"] .section-title span,
body [id^="block-cbc-views-block-our-team-block"] .team-category-title span {
  color: #0063ae !important;
  font-size: inherit !important;
}

body [id^="block-cbc-views-block-our-team-block"] h4.team-member-name,
body [id^="block-cbc-views-block-our-team-block"] .team-member-card:hover h4.team-member-name {
  color: #002b5b !important;
  font-size: var(--team-title-size) !important;
  font-weight: 700 !important;
}

body [id^="block-cbc-views-block-our-team-block"] h3.team-member-name,
body [id^="block-cbc-views-block-our-team-block"] .team-member-card:hover h3.team-member-name {
  color: #0063ae !important;
  font-size: calc(var(--team-title-size) - 0.07rem) !important;
  font-weight: 700 !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-role {
  color: #0b5394 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

body [id^="block-cbc-views-block-our-team-block"] .contact-item,
body [id^="block-cbc-views-block-our-team-block"] .team-member-contact {
  color: #374151 !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body [id^="block-cbc-views-block-our-team-block"] .contact-item i,
body [id^="block-cbc-views-block-our-team-block"] .team-member-contact i {
  color: #0063ae !important;
}

@media (max-width: 575.98px) {
  body [id^="block-cbc-views-block-our-team-block"] .team-member-role {
    font-size: 0.78rem !important;
  }

  body [id^="block-cbc-views-block-our-team-block"] .contact-item,
  body [id^="block-cbc-views-block-our-team-block"] .team-member-contact {
    font-size: 0.76rem !important;
  }
}

/* =====================================================================
   TEAM PAGE: FINAL OVERRIDE (highest specificity) - identical text on EVERY card
   (older PS/PPS and leadership rules had bigger specificity and made some cards larger/smaller;
    names are links, so the link itself is styled too)
     name 0.95rem #004b88 | pillar 0.88rem #004b88 | role 0.82rem #004b88 | contact 0.8rem #374151
   ===================================================================== */
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info h3.team-member-name,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info h3.team-member-name a {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #004b88 !important;
  text-decoration: none !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info h4.team-member-name,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info h4.team-member-name a {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #004b88 !important;
  text-decoration: none !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info h4.team-member-name a:hover {
  text-decoration: underline !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-role,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-role * {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #004b88 !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .contact-item,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-contact,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .contact-item a,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-contact a {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #374151 !important;
  text-decoration: none !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .contact-item i,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-contact i {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.65rem !important;
  color: #004b88 !important;
}

/* same card padding and spacing everywhere */
html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info {
  padding: 12px 14px !important;
  gap: 0 !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-category-title,
html body [id^="block-cbc-views-block-our-team-block"][id] .section-title,
html body [id^="block-cbc-views-block-our-team-block"][id] .section-title span,
html body [id^="block-cbc-views-block-our-team-block"][id] .team-category-title span {
  color: #004b88 !important;
  font-size: var(--team-title-size) !important;
}

@media (max-width: 575.98px) {

  html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-role,
  html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-role * {
    font-size: 0.78rem !important;
  }

  html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .contact-item,
  html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-contact {
    font-size: 0.76rem !important;
  }
}

/* =====================================================================
   TEAM PAGE: card spacing
   - every card in a row has the same height (the grid cell is filled completely)
   - the same inner padding everywhere; photo, name/role and contact block are spaced evenly
   - the phone/email block sits at the bottom of the card, so it lines up across a row
   ===================================================================== */
body [id^="block-cbc-views-block-our-team-block"] .team-category .row>li>.team-member-card,
body [id^="block-cbc-views-block-our-team-block"] .team-category .row>[class*="col-"]>.team-member-card {
  height: 100% !important;
  align-self: stretch;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  padding: 14px 16px 14px !important;
  gap: 0 !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-name {
  margin: 0 0 4px !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-role {
  margin: 0 0 10px !important;
}

/* the divider + phone/email start right under the role, at the same height on every card;
   the email line always reserves 2 lines, so a long email never makes one card taller */
body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-role+.team-member-contact {
  margin-top: 0 !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card .contact-details {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card .contact-item,
body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-contact {
  margin-bottom: 6px !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card .contact-item:last-child,
body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-contact:last-child {
  margin-bottom: 0 !important;
}

/* =====================================================================
   TEAM PAGE - compact cards
   - a photo is shown only when one is uploaded; no photo = no placeholder icon, no empty space
   - without a photo the card gets a blue accent bar on the left, so it still looks finished
   - the role is a small label, name / role / phone / email are all visible and close together
   ===================================================================== */
body [id^="block-cbc-views-block-our-team-block"] .team-member-card:not(:has(.team-member-image)) {
  border-left: 4px solid #0063ae !important;
}

body [id^="block-cbc-views-block-our-team-block"] .team-member-card:not(:has(.team-member-image)) .team-member-info {
  padding: 14px 16px !important;
}

html body [id^="block-cbc-views-block-our-team-block"][id] .team-member-card .team-member-info .team-member-role {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin: 2px 0 10px !important;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6f0fa;
  color: #004b88 !important;
  line-height: 1.35 !important;
}

/* the phone / email block sits right under the role: no big gaps */
body [id^="block-cbc-views-block-our-team-block"] .team-member-card .team-member-info {
  justify-content: flex-start !important;
}

/* less empty space between the team sections */
body [id^="block-cbc-views-block-our-team-block"] .row.mb-5 {
  margin-bottom: 1.5rem !important;
}

body [id^="block-cbc-views-block-our-team-block"] .meet-team-section-enhanced {
  padding-top: 2rem !important;
  padding-bottom: 0 !important;
}

/* =====================================================================
   TEAM PAGE - person card (Leadership, Secretariat)
   Top: photo on the left, name / role / phone / email on the right.
   Bottom (inside the same card): a strip with the PS / PPS of that person.
   Nothing is written on top of the photo. Columns come from Bootstrap classes in the template
   (col-lg-4 / col-md-6 / col-sm-12); there is no width CSS here.
   Markup: templates/views/views-view-unformatted--our_team--block-2 / block-3
   ===================================================================== */
.team-profile {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  /* fills the grid cell: same height as its neighbour */
  align-self: stretch;
  width: 100%;
  background: #ffffff;
  border: 1px solid #d9e4ee;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 59, 115, 0.08);
  overflow: hidden;
}

.team-profile__main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  flex: 1 1 auto;
}

.team-profile__photo {
  position: relative;
  flex: 0 0 110px;
  width: 110px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #cfe4f7 100%);
}

.team-profile__photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-profile__photo .team-avatar::before {
  width: 70%;
  height: 70%;
  box-shadow: none;
}

.team-profile__info {
  flex: 1 1 auto;
  min-width: 0;
}

/* text colours / sizes are the same as the cards of "Officers of CBC" */
.team-profile .team-profile__name {
  margin: 0 0 4px;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.3;
  color: #004b88;
  text-align: left;
}

.team-profile .team-profile__role {
  display: inline-block;
  max-width: 100%;
  margin: 2px 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6f0fa;
  font-size: 0.82rem !important;
  font-weight: 600;
  line-height: 1.35;
  color: #004b88;
  text-align: left;
}

.team-profile .team-profile__contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.45;
  color: #374151;
  text-align: left;
}

.team-profile__contact i {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 50%;
  background: rgba(0, 99, 174, 0.1);
  font-size: 0.65rem;
  color: #004b88;
}

.team-profile__contact span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* PS / PPS strip */
.team-profile__staff {
  display: flex;
  flex-direction: column;
  /* name + role on top, phone + email below: same on every card */
  align-items: flex-start;
  gap: 6px;
  padding: 12px 16px;
  background: #f2f8ff;
  border-top: 1px solid #000000;
  /* same strip height on every card, so the separator line sits at the same level
     in neighbouring cards (the strip is bottom-aligned, the main part flexes) */
  min-height: 165px;
  box-sizing: border-box;
}

.team-profile__staff+.team-profile__staff {
  border-top-style: dashed;
}

.team-profile__staff-id {
  min-width: 0;
}

.team-profile .team-profile__staff-name {
  margin: 0 0 3px;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.3;
  color: #004b88;
}

.team-profile .team-profile__staff-role {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #b4daff;
  font-size: 0.82rem !important;
  font-weight: 600;
  line-height: 1.35;
  color: #004b88;
}

.team-profile__staff-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  min-width: 0;
  max-width: 100%;
}

.team-profile__staff-contact .team-profile__contact {
  margin-bottom: 2px !important;
}

/* names are links in the backend output: keep them dark and plain */
.team-profile .team-profile__name,
.team-profile .team-profile__name a,
.team-profile .team-profile__staff-name,
.team-profile .team-profile__staff-name a {
  color: #004b88 !important;
  text-decoration: none !important;
}

.team-profile .team-profile__name a:hover,
.team-profile .team-profile__staff-name a:hover {
  text-decoration: underline !important;
}

@media (max-width: 575.98px) {
  .team-profile__main {
    gap: 12px;
    padding: 14px;
  }

  .team-profile__photo {
    flex-basis: 90px;
    width: 90px;
    height: 120px;
  }

  .team-profile__staff {
    flex-direction: column;
    padding: 12px 14px;
  }
}

/* =====================================================================
   ABOUT CBC: "Mission Karmayogi - Institutional Framework" (.institutional-framework-flowchart)
   CSS only: the same HTML is restyled as two soft, rounded cards
     - the title is plain dark text (no blue band)
     - Capacity Building Commission: warm yellow card | Karmayogi Bharat: light blue card
     - a rounded icon box on the left, the name next to it, the description (when there is one) below
   ===================================================================== */
.institutional-framework-flowchart .framework-header {
  background: none;
  padding: 0 0 16px;
  border-radius: 0;
  text-align: center;
}

.institutional-framework-flowchart .framework-header .framework-title {
  color: #1e293b;
  font-size: 1.05rem !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  -webkit-text-fill-color: currentColor;
}

.institutional-framework-flowchart .framework-content {
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.institutional-framework-flowchart .framework-content .row>[class*="col-"] {
  display: flex;
}

.institutional-framework-flowchart .framework-box {
  --fw-bg: #ffffff;
  --fw-border: #e2e8f0;
  --fw-icon-bg: #f1f5f9;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 14px;
  align-content: start;
  width: 100%;
  height: 100% !important;
  /* both cards are as tall as the taller one */
  align-self: stretch;
  padding: 20px 22px;
  text-align: left;
  background: var(--fw-bg) !important;
  border: 1.5px solid var(--fw-border) !important;
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

/* hover: the card stays where it is, only its border gets darker */
.institutional-framework-flowchart .framework-box:hover,
.institutional-framework-flowchart .framework-box.position-relative:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--fw-border-hover) !important;
}

/* Capacity Building Commission: warm yellow */
.institutional-framework-flowchart .framework-box.cbc-box {
  /* --fw-bg: #fffbef; */
  --fw-border: #fbe3a6;
  --fw-border-hover: #e9b949;
  --fw-icon-bg: #fff1c2;
}

/* Karmayogi Bharat: light blue */
.institutional-framework-flowchart .framework-box.karmayogi-box {
  --fw-bg: #f6faff;
  --fw-border: #c9ddf7;
  --fw-border-hover: #7aa7e0;
  --fw-icon-bg: #e2edff;
}

/* icon box */
.institutional-framework-flowchart .framework-box .framework-logo {
  grid-column: 1;
  grid-row: 1;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fw-icon-bg);
  border: 1px solid var(--fw-border);
  border-radius: 14px;
  box-sizing: border-box;
}

.institutional-framework-flowchart .framework-box .framework-logo a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100% !important;
}

.institutional-framework-flowchart .framework-box .framework-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* name */
.institutional-framework-flowchart .framework-box .framework-box-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem !important;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.institutional-framework-flowchart .framework-box .framework-box-title a {
  display: block;
  height: auto !important;
  color: inherit;
  text-decoration: none;
}

/* description */
.institutional-framework-flowchart .framework-box .framework-box-subtitle {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.institutional-framework-flowchart .framework-box .framework-box-subtitle a {
  display: block;
  height: auto !important;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .institutional-framework-flowchart .framework-content .row>.col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .institutional-framework-flowchart .framework-box {
    padding: 16px;
  }

  .institutional-framework-flowchart .framework-box .framework-box-title {
    font-size: 1rem !important;
  }
}

/* =====================================================================
   GLIMPSES: no outer card around Photo Gallery / Video Gallery
   (white box, border, shadow, padding and rounded corners removed; the carousels keep their own clipping)
   ===================================================================== */
.social-section .glimpses-card,
.social-section .youtube-section.glimpses-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

/* =====================================================================
   GLIMPSES SECTION: white background, top padding, headings, testimonial-style video card
   ===================================================================== */
.social-section {
  background: #ffffff !important;
  padding: 0px 0 56px !important;
  border-top: 0 !important;
}

@media (max-width: 767.98px) {
  .social-section {
    padding: 32px 0 40px !important;
  }
}

/* same heading for Photo Gallery (h3) and Video Gallery (h4) */
.social-section .social-heading {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #002b5b !important;
}

.social-section .social-heading i {
  color: #0063ae !important;
}

.social-section .video-gallery-footer {
  padding-top: 1rem;
}

/* ---- Video card = testimonial card: rounded dark card, 16:9 video, dark 2-line title bar ---- */
.social-section .youtube-card {
  border-radius: 12px;
  overflow: hidden !important;
  background: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  height: auto !important;
}

.social-section .youtube-card .video-container {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #000;
}

.social-section .youtube-card .youtube-player-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.social-section .youtube-card .youtube-player-trigger img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.social-section .youtube-card .youtube-player-trigger:hover img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.social-section .youtube-card .yt-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 42px;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.social-section .youtube-card .youtube-player-trigger:hover .yt-play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
}

.social-section .youtube-card .youtube-player-trigger:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: -3px;
}

/* title bar (same as testimonial caption) */
.social-section .youtube-card .video-caption {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem 0.6rem;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.social-section .youtube-card .video-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  height: calc(2 * 1.35em);
  /* always 2 lines: card never jumps */
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.social-section .youtube-card .video-description {
  display: none;
  /* testimonial cards show the title only */
}

/* ---- Glimpses: space between the "Glimpses" bar and the gallery headings ---- */
.social-section .container {
  padding-top: 2.25rem !important;
}

@media (max-width: 767.98px) {
  .social-section .container {
    padding-top: 1.5rem !important;
  }
}

/* photo titles: font-weight 500 */
.social-section .photo-gallery-card .photo-slide__title {
  font-weight: 500 !important;
}

/* video thumbnail placeholder when a video has no thumbnail */
.social-section .youtube-card .video-thumb-empty {
  width: 100%;
  height: 100%;
  background: #000;
}

/* the video modal sits above the sticky header */
#videoGalleryModal {
  z-index: 100000;
}

/* =====================================================================
   GLIMPSES "View All Photos / Videos" = same button as the other sections
   (.blog-see-more-btn / .collab-footer .view-more), aligned to the right
   ===================================================================== */
.social-section .video-gallery-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 0;
  padding-top: 1rem;
}

.social-section .video-gallery-footer .view-all-videos-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #005ea6 0%, #004b88 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 99, 174, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  white-space: nowrap;
}

.social-section .video-gallery-footer .view-all-videos-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 75, 136, 0.35);
  background: linear-gradient(135deg, #004b88 0%, #003366 100%);
  color: #ffd54f;
  text-decoration: none;
}

.social-section .video-gallery-footer .view-all-videos-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 99, 174, 0.3);
}

.social-section .video-gallery-footer .view-all-videos-btn:focus-visible {
  outline: 2px solid #ffaa01;
  outline-offset: 2px;
}

.social-section .video-gallery-footer .view-all-videos-btn i {
  font-size: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-section .video-gallery-footer .view-all-videos-btn:hover i {
  transform: translateX(5px);
}

/* ---- Glimpses: less empty space at the bottom of the section ---- */
.social-section {
  padding-bottom: 12px !important;
}

.social-section .container {
  padding-bottom: 0.5rem !important;
  /* overrides Bootstrap py-5 (3rem) */
}

.social-section .video-gallery-footer {
  padding-top: 0.6rem;
  margin-top: 0 !important;
}

@media (max-width: 767.98px) {
  .social-section {
    padding-bottom: 8px !important;
  }
}

/* ---- Video Gallery: smaller title text ---- */
.social-section .youtube-card .video-title {
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  height: calc(2 * 1.35em) !important;
}

@media (max-width: 575.98px) {
  .social-section .youtube-card .video-title {
    font-size: 0.74rem !important;
  }
}

/* ---- Photo + Video sections: same height, "View All" buttons on the same line ---- */
.social-section .row.g-4>[class*="col-"] {
  display: flex;
}

.social-section .row.g-4>[class*="col-"] .glimpses-card {
  flex: 1 1 auto;
}

.social-section .glimpses-card .video-gallery-footer {
  margin-top: auto !important;
  /* pushes the button to the bottom of both cards */
}

.social-section .youtube-section .youtube-carousel-wrapper {
  flex: 0 0 auto;
}

/* ---- Photo gallery titles: Noto Sans (same font as the other home cards), weight 500 ---- */
.social-section .photo-gallery-card .photo-slide__btn,
.social-section .photo-gallery-card .photo-slide__title {
  font-family: Noto Sans, Noto Sans Devanagari, sans-serif !important;
}

.social-section .photo-gallery-card .photo-slide__title {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0;
  color: #1f3f7a !important;
  height: 2.9em !important;
  /* exactly 2 lines (2 x 1.45em) */
}

.social-section .photo-gallery-card .photo-slide__btn:hover .photo-slide__title {
  color: #0063ae !important;
}

/* =====================================================================
   ONE FONT FOR THE WHOLE SITE: Noto Sans (loaded once in html.html.twig).
   Every font-family in the theme is Noto Sans; icon fonts (Font Awesome, Bootstrap Icons) keep their own.
   ===================================================================== */
:root {
  --font-heading: Noto Sans, Noto Sans Devanagari, sans-serif;
  --font-body: Noto Sans, Noto Sans Devanagari, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
optgroup {
  font-family: Noto Sans, Noto Sans Devanagari, sans-serif;
}

/* =====================================================================
   OUR PARTNERS: 10px gap between logo cards, bigger cards
   (padding-right = gap keeps the endless marquee loop seamless)
   ===================================================================== */
.partners-section .partners-track {
  gap: 10px;
  padding: 10px 10px 10px 0;
}

.partners-section .partner-card {
  flex: 0 0 220px;
  width: 220px;
  height: 120px;
  padding: 12px 18px;
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  .partners-section .partner-card {
    flex-basis: 190px;
    width: 190px;
    height: 105px;
  }
}

@media (max-width: 575.98px) {
  .partners-section .partner-card {
    flex-basis: 160px;
    width: 160px;
    height: 90px;
    padding: 10px 14px;
  }
}

/* =====================================================================
   HEADER MENU: arrows that show which items have a sub menu
     - top-level items                         -> no arrow
     - dropdown option that opens another menu -> right chevron (desktop)
   (Bootstrap's own triangle is replaced by a Font Awesome chevron; the arrows follow the text colour)
   ===================================================================== */
/* top-level menu items: no arrow (pages.css hides Bootstrap's default one) */

@media (min-width: 993px) {
  .navbar-nav .dropdown-menu .dropdown-item.has-sub-items {
    padding-right: 36px !important;
    /* room for the arrow */
  }

  .navbar-nav .dropdown-menu .dropdown-item.has-sub-items::after {
    content: '\f054';
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    transform: translateY(-50%);
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 0.7rem;
    line-height: 1;
    color: currentColor;
    transition: transform 0.2s ease;
  }

  .navbar-nav .dropdown-menu .has-submenu:hover>.dropdown-item.has-sub-items::after,
  .navbar-nav .dropdown-menu .has-submenu:focus-within>.dropdown-item.has-sub-items::after {
    transform: translateY(-50%) translateX(3px);
  }
}

/* =====================================================================
   HEADER MENU: which page is open
   The dropdown option of the page you are on gets a gold background (like the active top-level
   item); an option that only contains the current page (a sub menu) gets a softer highlight.
   Classes come from templates/navigation/menu--extras--main.html.twig
   ===================================================================== */
.navbar-nav .dropdown-menu .dropdown-item.is-current,
.navbar-nav .dropdown-menu .dropdown-item.is-current:hover,
.navbar-nav .dropdown-menu .dropdown-item.is-current:focus {
  background: #ffaa01 !important;
  border-left-color: #ffffff !important;
  color: #1a1a1a !important;
}

.navbar-nav .dropdown-menu .dropdown-item.is-current *,
.navbar-nav .dropdown-menu .dropdown-item.is-current i,
.navbar-nav .dropdown-menu .dropdown-item.is-current .knowledge-title,
.navbar-nav .dropdown-menu .dropdown-item.is-current .knowledge-desc {
  color: #1a1a1a !important;
}

.navbar-nav .dropdown-menu .dropdown-item.is-current-parent {
  background: rgba(255, 255, 255, 0.22);
  border-left-color: #ffaa01;
}

.navbar-nav .dropdown-menu .dropdown-item.is-current-parent .knowledge-title {
  font-weight: 700;
}

/* =====================================================================
   COLLABORATION DETAIL PAGE (a card of "Our Collaboration Matters" opened)
   Laptop: image left (col-4) + text right (col-8). Mobile/tablet: image on top, text below.
   Template: templates/layout/node--our_collaboration_matters.html.twig
   ===================================================================== */
.collab-detail-media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eef3f8;
  box-shadow: 0 4px 16px rgba(0, 59, 115, 0.12);
}

.collab-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.collab-detail-content .collab-detail-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .collab-detail-media {
    position: sticky;
    top: calc(var(--header-live-height, 112px) + 16px);
  }
}

@media (max-width: 991.98px) {
  .collab-detail-media img {
    max-height: 360px;
  }
}

/* collaboration detail: title and description are left-aligned (not centred) */
.collab-detail-content .collab-detail-title,
.collab-detail-content .collab-detail-text,
.collab-detail-content .collab-detail-text .event-article-content,
.collab-detail-content .collab-detail-text .field__item,
.collab-detail-content .collab-detail-text p,
.collab-detail-content .collab-detail-text li,
.collab-detail-content .collab-detail-text h1,
.collab-detail-content .collab-detail-text h2,
.collab-detail-content .collab-detail-text h3,
.collab-detail-content .collab-detail-text h4 {
  text-align: left !important;
}

/* =====================================================================
   ABOUT CBC: Mission Karmayogi highlight box (.mission-karmayogi-highlight)
   white background, no slide-up on hover, left edge = 5px bar that fades from orange (top) to blue (bottom)
   ===================================================================== */
.mission-karmayogi-highlight {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  border-left: 0 !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
  transition: none;
}

.mission-karmayogi-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(to bottom, #f59e0b 0%, #0063ae 100%);
}

.mission-karmayogi-highlight:hover {
  transform: none !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

/* =====================================================================
   ABOUT CBC: Our Vision / Our Mission cards (.vision-mission-card)
   CSS only (the text still comes from the page content): white rounded card, small icon box on the
   top left, "Our Vision" / "Our Mission" title, the statement below in quotes, everything left aligned.
   ===================================================================== */

.vision-mission-section .vision-mission-card::before,
.vision-mission-section .vision-mission-card::after {
  display: none !important;
}

/* icon box */
.vision-mission-section .vision-mission-card .vision-icon-wrapper,
.vision-mission-section .vision-mission-card .mission-icon-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transform: none !important;
}

.vision-mission-section .vision-mission-card .vision-icon-wrapper {
  background: #dbe8ff !important;
}

.vision-mission-section .vision-mission-card .mission-icon-wrapper {
  background: #fdeebb !important;
}

.vision-mission-section .vision-mission-card .vision-icon-wrapper i,
.vision-mission-section .vision-mission-card .mission-icon-wrapper i {
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1;
  transform: none !important;
}

.vision-mission-section .vision-mission-card .vision-icon-wrapper i {
  color: #1d4ed8 !important;
}

.vision-mission-section .vision-mission-card .mission-icon-wrapper i {
  color: #c2410c !important;
}

/* the first block (icon + "Our Vision") is as wide as the card, text left */
.vision-mission-section .vision-mission-card>.mb-3 {
  width: 100%;
  margin-bottom: 8px !important;
  text-align: left;
}

/* "Our Vision" / "Our Mission" */
.vision-mission-section .vision-mission-card>.mb-3 h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.25;
  text-align: left !important;
}

/* the statement */
.vision-mission-section .vision-mission-card .vision-content,
.vision-mission-section .vision-mission-card .mission-content {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
  background: none !important;
}

.vision-mission-section .vision-mission-card .vision-content h3,
.vision-mission-section .vision-mission-card .mission-content h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1.6;
  text-align: left !important;
}

.vision-mission-section .vision-mission-card .vision-content h3::before,
.vision-mission-section .vision-mission-card .mission-content h3::before {
  content: '\201C';
}

.vision-mission-section .vision-mission-card .vision-content h3::after,
.vision-mission-section .vision-mission-card .mission-content h3::after {
  content: '\201D';
}

@media (max-width: 575.98px) {
  .vision-mission-section .vision-mission-card {
    padding: 18px !important;
  }

  .vision-mission-section .vision-mission-card>.mb-3 h3 {
    font-size: 1.2rem !important;
  }
}

/* Our Vision / Our Mission hover: the icon box is filled with the full colour (white icon) and the
   border takes the same colour. Nothing moves. */
.vision-mission-section .vision-mission-card {
  transition: border-color 0.2s ease !important;
}

.vision-mission-section .vision-mission-card .vision-icon-wrapper,
.vision-mission-section .vision-mission-card .mission-icon-wrapper,
.vision-mission-section .vision-mission-card .vision-icon-wrapper i,
.vision-mission-section .vision-mission-card .mission-icon-wrapper i {
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.vision-mission-section .vision-mission-card.vision-card:hover .vision-icon-wrapper {
  background: #0063ae !important;
}

.vision-mission-section .vision-mission-card.mission-card:hover .mission-icon-wrapper {
  background: #c2410c !important;
}

.vision-mission-section .vision-mission-card.vision-card:hover .vision-icon-wrapper i,
.vision-mission-section .vision-mission-card.mission-card:hover .mission-icon-wrapper i {
  color: #ffffff !important;
}

/* =====================================================================
   ABOUT CBC: Mandate of the Commission (.mandate-section)
   CSS only: soft grey section, white rounded cards (3 per row on a laptop), a small tinted icon box on
   the top left, the title and the text left aligned. The icon hover effect is the same as before.
   ===================================================================== */
.mandate-section {
  background: #f8fafc;
  padding: 2.5rem 2rem;
  border-radius: 16px;
}

/* heading + sub line */
.mandate-section>.text-center h3 {
  color: #0f172a;
  font-size: 1.75rem !important;
  font-weight: 700;
  line-height: 1.25;
}

.mandate-section>.text-center .title-underline {
  display: none;
}

.mandate-section>.text-center p {
  max-width: 620px;
  margin: 0 auto;
  color: #475569 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* card */
.mandate-section .mandate-card {
  align-items: flex-start !important;
  text-align: left !important;
  padding: 24px !important;
  background: #ffffff;
  border: 1px solid #e3e9f1;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transform: none !important;
}

.mandate-section .mandate-card::before {
  display: none;
}

.mandate-section .mandate-card:hover {
  transform: none !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  border-color: #e3e9f1;
}

/* icon box */
.mandate-section .mandate-card .mandate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 16px !important;
  padding: 0;
  border-radius: 12px;
  background: #e8efff;
}

.mandate-section .mandate-card .mandate-icon i {
  margin: 0;
  font-size: 1.05rem !important;
  line-height: 1;
  color: #1d4ed8 !important;
}

/* one tint per card */
.mandate-section .row> :nth-child(6n + 2) .mandate-icon {
  background: #ebecff;
}

.mandate-section .row> :nth-child(6n + 2) .mandate-icon i {
  color: #4338ca !important;
}

.mandate-section .row> :nth-child(6n + 3) .mandate-icon {
  background: #dff5ec;
}

.mandate-section .row> :nth-child(6n + 3) .mandate-icon i {
  color: #047857 !important;
}

.mandate-section .row> :nth-child(6n + 4) .mandate-icon {
  background: #fff3d1;
}

.mandate-section .row> :nth-child(6n + 4) .mandate-icon i {
  color: #b45309 !important;
}

.mandate-section .row> :nth-child(6n + 5) .mandate-icon {
  background: #dcf4fa;
}

.mandate-section .row> :nth-child(6n + 5) .mandate-icon i {
  color: #0e7490 !important;
}

.mandate-section .row> :nth-child(6n + 6) .mandate-icon {
  background: #f1e6fb;
}

.mandate-section .row> :nth-child(6n + 6) .mandate-icon i {
  color: #7e22ce !important;
}

/* icon hover effect: unchanged (full gradient fill, slightly bigger, white icon) */
.mandate-section .mandate-card:hover .mandate-icon {
  background: linear-gradient(135deg, #0063ae 0%, #ffc107 100%) !important;
  transform: scale(1.1);
}

.mandate-section .mandate-card:hover .mandate-icon i {
  color: #ffffff !important;
}

/* title + text */
.mandate-section .mandate-card h3 {
  margin: 0 0 8px !important;
  color: #0f172a;
  font-size: 1.05rem !important;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.mandate-section .mandate-card p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.875rem;
  line-height: 1.65;
  text-align: left;
}

@media (max-width: 767.98px) {
  .mandate-section {
    padding: 2rem 1rem;
  }

  .mandate-section>.text-center h3 {
    font-size: 1.4rem !important;
  }

  .mandate-section .mandate-card {
    padding: 18px !important;
  }
}

/* =====================================================================
   NSCSTI "Chronology of Events" timeline: dot, date and card on the same level
   - every date has the same fixed width, so every card starts at the same left edge
   - dot and date are vertically centred on the first line of the card
   ===================================================================== */
@media (min-width: 768px) {
  .karmayogi-timeline-item {
    align-items: flex-start;
  }

  .karmayogi-timeline-item>.karmayogi-timeline-date {
    flex: 0 0 210px;
    width: 210px;
    min-height: 3.5rem;
    margin: 0;
    padding-top: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    align-items: center;
    white-space: normal;
  }

  .karmayogi-timeline-item>.karmayogi-timeline-content {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  .karmayogi-timeline-item>.karmayogi-timeline-dot {
    /* centre of the 3.5rem date row (vertical) and centre of the 3px line (horizontal):
       wrapper padding-left is 40px, the line is 3px wide at the wrapper's left edge */
    top: 1.75rem;
    left: -38.5px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767.98px) {
  .karmayogi-timeline-item {
    display: block;
  }

  .karmayogi-timeline-item>.karmayogi-timeline-content {
    margin-top: 6px;
  }
}

/* Stat / milestone cards (e.g. NSCSTI "Impact So Far"): when the row is not full, centre the cards */
.karmayogi-content-wrapper .row:has(> [class*="col-"] > .karmayogi-milestone-card) {
  justify-content: center;
}

/* Quote blocks (Vision etc.): the lightbulb icon has its own column on the left,
   so it never sits on top of / overlaps the text */
.karmayogi-quote-block {
  padding-left: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  /* text and icon are both centred vertically in the block */
  min-height: 110px;
  box-sizing: border-box;
}

.karmayogi-quote-block>.karmayogi-quote-text:first-of-type {
  margin-top: auto !important;
}

.karmayogi-quote-block>.karmayogi-quote-text:last-of-type {
  margin-bottom: auto !important;
}

.karmayogi-quote-block>.karmayogi-quote-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 24px;
  width: 48px;
  text-align: center;
  font-size: 2.6rem;
  line-height: 1;
}

.karmayogi-quote-block .karmayogi-quote-text {
  padding-left: 0 !important;
}

@media (max-width: 575.98px) {
  .karmayogi-quote-block {
    padding-left: 64px !important;
    padding-right: 16px !important;
  }

  .karmayogi-quote-block>.karmayogi-quote-icon {
    left: 12px;
    width: 40px;
    font-size: 2rem;
  }
}

/* =====================================================================
   FEEDBACK DIALOG (footer "Feedback" link opens webform/feedback in a modal)
   - centred on the screen, above the sticky header (the title was hidden behind it)
   - height follows the form (no big empty area), scrolls only when the screen is small
   - fields: same font as the site, labels/inputs on one level, even spacing
   ===================================================================== */
.ui-dialog.cbc-feedback-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 90vh !important;
  z-index: 10050 !important;
}

.ui-dialog.cbc-feedback-dialog .ui-dialog-content {
  height: auto !important;
  max-height: calc(90vh - 150px) !important;
}

.ui-dialog.cbc-feedback-dialog .contact-form-section-enhanced {
  padding: 1.25rem 0 !important;
}

.ui-dialog.cbc-feedback-dialog .form-section-title {
  font-family: inherit;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1rem !important;
}

.ui-dialog.cbc-feedback-dialog,
.ui-dialog.cbc-feedback-dialog form,
.ui-dialog.cbc-feedback-dialog label,
.ui-dialog.cbc-feedback-dialog input,
.ui-dialog.cbc-feedback-dialog textarea,
.ui-dialog.cbc-feedback-dialog button,
.ui-dialog.cbc-feedback-dialog .form-required-instruction {
  font-family: inherit !important;
}

/* name + email: two equal columns, labels and inputs on the same level */
.contact-form>.row {
  --bs-gutter-x: 1.25rem;
  align-items: flex-start;
}

.contact-form .form-item,
.contact-form .js-form-item {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.contact-form .form-label {
  display: block;
  margin: 0 0 6px !important;
  line-height: 1.3;
}

.contact-form .form-control-enhanced {
  display: block;
  width: 100%;
  margin: 0 !important;
}

.contact-form textarea.form-control-enhanced {
  min-height: 110px;
}

/* full-width rows (Subject, Message, captcha) always start on their own line, below name/email */
.contact-form>.row>.form-item:not([class*="col-"]),
.contact-form>.row>fieldset,
.contact-form>.row>.form-actions {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

/* the same spacing and alignment on the standalone /webform/feedback page */
.contact-form-section-enhanced .contact-form>.row {
  --bs-gutter-x: 1.25rem;
  row-gap: 0;
  align-items: flex-start;
}

/* feedback dialog: less padding - the form uses the full dialog width */
.ui-dialog.cbc-feedback-dialog .ui-dialog-titlebar {
  padding: 0.9rem 1.5rem !important;
}

.ui-dialog.cbc-feedback-dialog .ui-dialog-content,
.ui-dialog.cbc-feedback-dialog .modal-body {
  padding: 0 !important;
}

.ui-dialog.cbc-feedback-dialog .contact-form-section-enhanced {
  padding: 0.75rem 0 0.25rem !important;
}

.ui-dialog.cbc-feedback-dialog .contact-form-section-enhanced .container {
  max-width: none !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.ui-dialog.cbc-feedback-dialog .contact-form-section-enhanced .col-lg-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

.ui-dialog.cbc-feedback-dialog .form-section-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem !important;
}

.ui-dialog.cbc-feedback-dialog .mandatory-fields-instruction {
  margin-bottom: 0.6rem !important;
}

.ui-dialog.cbc-feedback-dialog .contact-form .form-item,
.ui-dialog.cbc-feedback-dialog .contact-form .js-form-item {
  margin-bottom: 0.75rem !important;
}

.ui-dialog.cbc-feedback-dialog .ui-dialog-buttonpane {
  padding: 0.6rem 1.5rem !important;
}

/* =====================================================================
   EVENTS filter bar (exposed form): compact - one row on desktop, one card (no card inside a card)
   ===================================================================== */
.view-filters {
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
}

.view-filters .portfolio-exposed-form {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px 14px !important;
  align-items: end !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.view-filters .portfolio-exposed-form .form-item {
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
}

.view-filters .portfolio-exposed-form .form-item label {
  margin: 0 0 4px !important;
  font-size: 0.75rem !important;
  line-height: 1.2;
}

.view-filters .portfolio-exposed-form .form-item input[type="text"],
.view-filters .portfolio-exposed-form .form-item input[type="date"],
.view-filters .portfolio-exposed-form .form-item input.form-text,
.view-filters .portfolio-exposed-form .form-item input.form-date,
.view-filters .portfolio-exposed-form .form-item select,
.view-filters .portfolio-exposed-form .form-item .form-select {
  height: 40px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  font-size: 0.9rem !important;
}

.view-filters .portfolio-exposed-form .form-item select,
.view-filters .portfolio-exposed-form .form-item .form-select {
  padding-right: 36px !important;
}

.view-filters .portfolio-exposed-form .form-actions {
  width: auto !important;
  margin: 0 !important;
}

.view-filters .portfolio-exposed-form .form-actions .form-submit {
  height: 40px;
  padding: 0 22px;
  margin: 0 !important;
}

@media (max-width: 1199.98px) {
  .view-filters .portfolio-exposed-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-filters .portfolio-exposed-form .form-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 575.98px) {
  .view-filters .portfolio-exposed-form {
    grid-template-columns: 1fr;
  }
}

/* feedback form: the "* denotes mandatory fields" note is centred under the heading */
.ui-dialog.cbc-feedback-dialog .mandatory-fields-instruction,
.webform-submission-feedback-form .mandatory-fields-instruction {
  text-align: center;
}

/* dialog close button (×): centred vertically with the title, same right padding as the title's left padding */
.ui-dialog.cbc-join-form-dialog .ui-dialog-titlebar {
  align-items: center !important;
}

.ui-dialog.cbc-join-form-dialog .ui-dialog-titlebar-close {
  top: auto !important;
  right: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  align-self: center;
  flex: 0 0 42px;
  box-sizing: border-box;
}

.ui-dialog.cbc-join-form-dialog .ui-dialog-titlebar-close::before {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-top: -2px;
  /* the × glyph sits slightly low in its box: nudge to the true centre */
}

.ui-dialog.cbc-join-form-dialog .ui-dialog-title {
  line-height: 1.2;
}

/* feedback form: a little more room between the "* denotes mandatory fields" note and the first fields */
.ui-dialog.cbc-feedback-dialog .mandatory-fields-instruction,
.webform-submission-feedback-form .mandatory-fields-instruction {
  margin-bottom: 1.1rem !important;
}

/* feedback form (standalone page): the Send Message button is centred */
.webform-submission-feedback-form .form-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =====================================================================
   MOBILE: home "about + PM message" section and the header top bar
   - the two boxes of .about-pm-section stack and fit the screen width (no sideways overflow)
   - the top bar rows (Skip / Screen Reader / Hindi, accessibility + search) are centred
   ===================================================================== */
@media (max-width: 991.98px) {
  .info-wrapper>.about-pm-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
  }

  .about-pm-section .about-cbc-column,
  .about-pm-section .pm-modi-column {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .about-pm-section .mission-karmayogi-section-alt,
  .about-pm-section .modi-card {
    max-width: 100%;
    min-width: 0;
  }

  .about-pm-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 767.98px) {
  header .top-bar .container-fluid {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
  }

  header .top-bar .container-fluid>.d-flex {
    justify-content: center !important;
    width: 100%;
  }

  header .top-bar .search-wrapper {
    flex: 1 1 auto;
    max-width: 320px;
  }
}

/* MOBILE: home "About Us" box (.mission-karmayogi-section-alt) keeps only 6px padding */
@media (max-width: 767.98px) {
  .about-pm-section .mission-karmayogi-section-alt {
    padding: 6px !important;
  }

  .about-pm-section .mission-karmayogi-section-alt .mission-content {
    padding: 6px !important;
  }
}

/* =====================================================================
   SIDE NAV (Team, About CBC, NSCSTI ...): same look as the "Initiative Overview" card
   blue header bar with a title, 3px blue border, rounded corners, soft shadow
   (desktop only; on small screens it stays a row of chips)
   ===================================================================== */
@media (min-width: 992px) {
  .team-sidenav {
    padding: 0 !important;
    border: 3px solid #0063ae !important;
    border-radius: 15px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    background: #ffffff;
  }

  .team-sidenav::before {
    content: attr(data-title, "Name of the Page");
    display: block;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 13px 18px;
    background: #0063ae;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
  }

  html[lang="hi"] .team-sidenav::before {
    content: attr(data-title, "पृष्ठ का नाम");
  }

  .team-sidenav__list {
    padding: 8px 0 10px;
  }
}

/* side nav: the header stays fixed, only the list scrolls (thin scrollbar, inside the card);
   compact header and items so more of the list fits on short screens */
@media (min-width: 992px) {
  .team-sidenav {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }

  .team-sidenav::before {
    position: static;
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .team-sidenav__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 0 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 99, 174, 0.35) transparent;
  }

  .team-sidenav__list::-webkit-scrollbar {
    width: 5px;
  }

  .team-sidenav__list::-webkit-scrollbar-thumb {
    background: rgba(0, 99, 174, 0.35);
    border-radius: 4px;
  }

  .team-sidenav__link {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}

/* =====================================================================
   "Initiative Overview" card (IKS, ULB ...): not a narrow column on the right,
   but a full-width card below the Vision text, with Focus / Reach / Key Framework / Approach
   in ONE ROW (4 columns), in the same order.
   ===================================================================== */
.row:has(> [class*="col-"] > .iks-overview-card)>[class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.iks-overview-card {
  height: auto;
}

.iks-overview-body {
  padding: 18px 22px;
}

.iks-overview-body>div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
}

.iks-overview-body .iks-info-row {
  margin: 0;
}

@media (max-width: 991.98px) {
  .iks-overview-body>div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .iks-overview-body>div {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   QUOTE BLOCKS (Vision ...) - final layout: the lightbulb icon sits on TOP of the text
   (no reserved column on the left), text uses the full width, even spacing between paragraphs
   ===================================================================== */
.karmayogi-quote-block {
  display: block !important;
  min-height: 0 !important;
  padding: 22px 32px 26px !important;
}

.karmayogi-quote-block>.karmayogi-quote-icon {
  position: static !important;
  transform: none !important;
  width: auto !important;
  margin: 0 0 8px !important;
  text-align: left;
  font-size: 2rem !important;
  line-height: 1;
}

.karmayogi-quote-block>.karmayogi-quote-text,
.karmayogi-quote-block>.karmayogi-quote-text:first-of-type,
.karmayogi-quote-block>.karmayogi-quote-text:last-of-type {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* same gap between every paragraph, whichever helper class the editor used (mt-3, mb-3 ...) */
.karmayogi-quote-block .karmayogi-quote-text+.karmayogi-quote-text,
.karmayogi-quote-block .karmayogi-quote-text>p+p {
  margin-top: 14px !important;
}

.karmayogi-quote-block .karmayogi-quote-text>p {
  margin-bottom: 0 !important;
}

/* the highlighted "Click Here ..." bar: clear gap above it */
.karmayogi-quote-block .nscsti-highlight-box {
  margin: 18px 0 0 !important;
}

@media (max-width: 575.98px) {
  .karmayogi-quote-block {
    padding: 18px 16px 20px !important;
  }
}

/* =====================================================================
   MILESTONE / OBJECTIVE CARDS (icon + title + text): proper alignment
   - titles never break in the middle of a word ("Standardisatio-n")
   - every title reserves the same height (2 lines), so all descriptions start on the same line
   - same padding, icon position and text size in every card of a row
   ===================================================================== */
.karmayogi-milestone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px !important;
}

.karmayogi-milestone-card .karmayogi-milestone-title:not(.nscsti-stat-big) {
  font-size: 1.25rem;
  line-height: 1.3;
  min-height: 2.6em;
  /* two lines: descriptions line up across the row */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.karmayogi-milestone-card .karmayogi-milestone-label {
  flex: 1 1 auto;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* =====================================================================
   CONTACT US page: tighter vertical spacing, tidy CAPTCHA block
   ===================================================================== */
.contact-intro-section {
  padding: 28px 20px 20px !important;
}

.contact-intro-icon {
  width: 84px !important;
  height: 84px !important;
  margin-bottom: 18px !important;
  font-size: 2.1rem !important;
}

.contact-intro-divider {
  margin-top: 22px !important;
}

.contact-info-item {
  padding: 26px 24px !important;
}

.contact-info-wrapper.py-5,
.contact-form-section-enhanced.py-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* CAPTCHA (all forms): small heading, image + reload icon on one line, field and hint below */
.contact-form fieldset.captcha {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-form fieldset.captcha .captcha__title {
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #002b5b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-form fieldset.captcha .captcha__image-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-form fieldset.captcha .captcha__image-wrapper img {
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.contact-form fieldset.captcha .reload-captcha-wrapper {
  margin: 0;
}

.contact-form fieldset.captcha .form-item {
  margin: 0 0 6px !important;
}

.contact-form fieldset.captcha .form-item label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #002b5b;
}

.contact-form fieldset.captcha .form-item input.form-text {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 42px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.contact-form fieldset.captcha .description,
.contact-form fieldset.captcha .captcha__description {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

/* CAPTCHA fix-up: stack image row and answer field, align with the other fields, reload icon beside the image */
.contact-form fieldset.captcha {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
}

.contact-form fieldset.captcha .captcha__element {
  display: block !important;
}

.contact-form fieldset.captcha .captcha__element>.form-item {
  display: block !important;
  width: 100%;
  max-width: none;
}

.contact-form fieldset.captcha .reload-captcha-wrapper {
  position: static !important;
  display: inline-flex;
  align-items: center;
}

.contact-form fieldset.captcha .reload-captcha {
  position: static !important;
  margin: 0 !important;
}

/* =====================================================================
   ORGANIZATIONAL STRUCTURE (/organizational-structure)  .org-wrapper
   The chart comes from the page body (it has its own <style> that stacks the boxes below 992px).
   Here the chart keeps the SAME desktop layout on tablet / mobile (3 boxes in a row, Secretariat box,
   7 pillars in a row, connector lines), only smaller. If the screen is too narrow the chart scrolls sideways.
   ===================================================================== */
@media (max-width: 991.98px) {
  .org-wrapper {
    padding: 28px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .org-wrapper .container-fluid {
    min-width: 560px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .org-wrapper .org-title-container {
    margin-bottom: 28px;
  }

  .org-wrapper .org-title-container h2 {
    font-size: 1.15rem;
  }

  /* level 1: three boxes in one row, joined by a line */
  .org-wrapper .level-1-container {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 28px;
  }

  .org-wrapper .level-1-container::before {
    display: block;
    width: 70%;
  }

  .org-wrapper .level-1-container::after {
    display: block;
    bottom: -28px;
    height: 28px;
  }

  /* level 2 */
  .org-wrapper .level-2-container {
    margin-bottom: 28px;
  }

  .org-wrapper .level-2-container::after {
    display: block;
  }

  /* level 3: seven pillars in one row */
  .org-wrapper .level-3-container::before,
  .org-wrapper .pillar-col::before {
    display: block;
  }

  .org-wrapper .level-3-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .org-wrapper .pillar-col {
    flex: 0 0 14.2857% !important;
    max-width: 14.2857% !important;
    width: 14.2857% !important;
    padding: 0 3px !important;
    margin-bottom: 0;
  }

  /* smaller boxes and text */
  .org-wrapper .org-box-primary {
    min-height: 44px;
    padding: 6px 4px !important;
    font-size: 0.78rem;
    line-height: 1.25;
    border-width: 1.5px;
  }

  .org-wrapper .org-box-secondary h5 {
    font-size: 0.68rem !important;
    margin-bottom: 3px;
  }

  .org-wrapper .org-box-secondary p {
    font-size: 0.56rem !important;
    line-height: 1.2;
  }
}

/* =====================================================================
   FEATURE HEADERS (icon + heading), e.g. KCM "Global Benchmarking"  .karmayogi-feature-header
   The icon sits in a <p> (it had a bottom margin and a tall line-height, so it looked pushed up) and was
   bigger than the heading. Now the icon is sized to the heading text and both are centred on one line.
   Used on: KCM, UNNATI, DAKSH, Indian Knowledge System, Capacity Building of ULBs, Advanced Case Writing.
   ===================================================================== */
.karmayogi-feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.karmayogi-feature-header>p {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
  line-height: 1;
}

.karmayogi-feature-header i {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  margin: 0;
  vertical-align: 0;
}

.karmayogi-feature-header h3,
.karmayogi-feature-header h4 {
  margin: 0 !important;
  line-height: 1.3;
}

/* =====================================================================
   KCM PAGE (/karmayogi-competency-model-kcm, node 864): sizes taken from the HOME page
   KCM page is the reference for the whole project: section heading 20.4px / 700, card title 0.95rem (16.15px),
   description 14px, card radius 6px, icons sized to their text. The rules apply to every page that uses these classes.
   ===================================================================== */
:root {
  --kcm-radius: 6px;
  --kcm-card-title: 0.95rem;
  --kcm-text: 14px;
}

/* section headings (h2): same weight as the home headings */
.karmayogi-section-title {
  font-weight: 700;
}

/* icons next to the section headings follow the heading size (were 34px beside 20px text) */
.karmayogi-section-title i,
.karmayogi-section-title-icon {
  font-size: 1.1em !important;
  line-height: 1;
  vertical-align: -0.1em;
}

/* card titles */
.karmayogi-feature-header h3,
.karmayogi-feature-header h4,
.karmayogi-principle-name,
.karmayogi-domain-title,
.karmayogi-alignment-title,
.karmayogi-milestone-title,
.karmayogi-significance-box strong,
.karmayogi-timeline-date,
.karmayogi-principles-label {
  font-size: var(--kcm-card-title) !important;
  font-weight: 600 !important;
  line-height: 1.35;
}

/* descriptions */
.karmayogi-feature-desc,
.karmayogi-principle-desc,
.karmayogi-domain-subtitle,
.karmayogi-domain-examples,
.karmayogi-milestone-label,
.karmayogi-timeline-content,
.karmayogi-list-item,
.karmayogi-process-item,
.karmayogi-objective-list-item,
.karmayogi-transform-item,
.karmayogi-badge {
  font-size: var(--kcm-text) !important;
  line-height: 1.6;
}

/* card radius */
.karmayogi-quote-block,
.karmayogi-feature-block,
.karmayogi-principle-item,
.karmayogi-domain-card,
.karmayogi-alignment-block,
.karmayogi-milestone-card,
.karmayogi-significance-box,
.karmayogi-timeline-content {
  border-radius: var(--kcm-radius) !important;
}

/* icons: sized to the text they belong to */
.karmayogi-quote-icon i {
  font-size: 1.6rem !important;
}

.karmayogi-domain-icon i {
  font-size: 2.1rem !important;
}

.karmayogi-milestone-icon i {
  font-size: 1.5rem !important;
}

.karmayogi-significance-box i {
  font-size: 1.5rem !important;
}

.karmayogi-feature-header i {
  font-size: 1.1rem;
}

.karmayogi-list-item i,
.karmayogi-process-item i,
.karmayogi-objective-list-item i,
.karmayogi-transform-item i {
  font-size: 1.05rem !important;
}

.karmayogi-process-item,
.karmayogi-objective-list-item,
.karmayogi-transform-item {
  align-items: center;
}

.karmayogi-process-item span,
.karmayogi-objective-list-item span,
.karmayogi-transform-item span {
  font-size: var(--kcm-text) !important;
  line-height: 1.6;
}

/* all card titles use the same navy */
.karmayogi-feature-header h3,
.karmayogi-feature-header h4 {
  color: #002b5b;
}

/* KCM PAGE: no animation on icons (the section heading icons pulsed non-stop: iconPulse) */
body.page-node-864 #app-content i,
body.page-node-864 #app-content [class*="-icon"],
body.page-node-864 #app-content [class*="-icon"]:hover {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* quote blocks: no quote icon (the icon and the space it took are removed) */
.karmayogi-quote-block .karmayogi-quote-icon {
  display: none !important;
}

/* =====================================================================
   LESS EXTRA SPACE (same feel as the home and About pages)
   Home cards use 12-18px padding, About cards 24px; these pages had 25-51px padding on cards and 25-40px
   between a heading and the text below it. Cards now use 18-24px and headings sit closer to their text.
   Used on: KCM, UNNATI, DAKSH, Indian Knowledge System, ULBs, Advanced Case Writing, Amrit Gyaan Kosh,
   Know your CBC, Contact us.
   ===================================================================== */
.karmayogi-feature-block {
  padding: 24px !important;
}

.karmayogi-quote-block {
  padding: 18px 24px !important;
}

.karmayogi-principle-item,
.karmayogi-timeline-content {
  padding: 18px !important;
}

.karmayogi-domain-card,
.karmayogi-alignment-block {
  padding: 24px !important;
}

.karmayogi-milestone-card {
  padding: 22px 18px !important;
}

.karmayogi-learning-card,
.karmayogi-phase-card,
.karmayogi-requirements-card,
.karmayogi-topics-card {
  padding: 20px !important;
}

.document-page {
  padding: 32px !important;
}

.contact-info-item {
  padding: 18px !important;
}

/* heading -> text gaps */
.karmayogi-section-title {
  margin-bottom: 20px !important;
}

.karmayogi-alignment-title {
  margin-bottom: 10px !important;
}

.karmayogi-feature-header {
  margin-bottom: 10px !important;
}

.karmayogi-feature-desc {
  margin-bottom: 14px !important;
}

.contact-intro-title,
.form-section-title,
.social-section-title {
  margin-bottom: 16px !important;
}

body #app-content .karmayogi-section-title {
  margin-bottom: 20px !important;
}

body #app-content .karmayogi-quote-block {
  margin-top: 16px !important;
}

body #app-content .contact-intro-text {
  margin-top: 14px !important;
}

/* the first block under a section heading no longer adds another 40px on top of the heading gap */
body #app-content .karmayogi-content-wrapper> :first-child {
  margin-top: 0 !important;
}

/* =====================================================================
   MISSING ICONS: these classes are used in the page content but do not exist in Bootstrap Icons 1.10.5
   (the icon showed as an empty circle), so the glyph is supplied here.
   ===================================================================== */
.bi-copyright::before {
  content: "\f7db";
  /* bi-c-circle */
}

.bi-check2-circle-fill::before {
  content: "\f26a";
  /* bi-check-circle-fill */
}

.bi-handshake::before,
.bi-handshake-fill::before {
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  content: "\f2b5";
  /* Font Awesome: handshake */
}

/* KCM page: smaller Key Milestones cards (icon circle, icon and text) */
.karmayogi-milestone-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.karmayogi-milestone-icon i {
  font-size: 1.25rem !important;
}

.karmayogi-milestone-title {
  font-size: 0.9rem !important;
  margin-bottom: 6px;
}

.karmayogi-milestone-label {
  font-size: 13px !important;
  line-height: 1.55;
}

/* =====================================================================
   SIDE NAV TEXT: same scale as the page text (14px), calm weights
   ===================================================================== */
.team-sidenav__link {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.4rem 0.7rem 0.4rem 0.75rem;
}

.team-sidenav__link.is-active {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .team-sidenav__link {
    font-size: 13px;
    padding: 0.3rem 0.8rem;
  }
}

/* =====================================================================
   CARD RADIUS: every card / box in the project uses 6px
   (pills, round icons, buttons and inputs keep their own shape)
   ===================================================================== */
.card,
.partner-card,
.home-event-card,
.chairperson-image-card,
.opinions-vertical-box,
.youtube-card,
.youtube-player-trigger,
.testimonial-video-card,
.video-container,
.video-gallery-card-page,
.newsletter-item,
.event-list-card,
.event-image-item,
.events-list-view,
.view-filters,
.team-member-card,
.team-profile,
.team-sidenav,
.document-page,
.document-viewer-wrapper,
.document-fallback,
.mou-status-table-wrapper,
.table-responsive,
table.table,
.org-box,
.mandate-section,
.nscsti-highlight-box,
.contact-info-item,
.join-opportunity-card,
.cbp-description-box,
.sutra-card,
.gallery-card,
.cbc-column-box,
.cbc-schedule-table-card,
.iks-overview-card,
.ulb-overview-card,
.ulb-challenges-box,
.ulb-challenge-item,
.ulb-stat-display,
.ulb-workshop-card,
.ulb-info-chip,
.karmayogi-topic-item,
.karmayogi-learning-card,
.karmayogi-phase-card,
.karmayogi-requirements-card,
.karmayogi-topics-card,
.karmayogi-process-item,
.karmayogi-transform-item,
.karmayogi-objective-list-item {
  border-radius: 6px !important;
}

body #app-content [id^="block-cbc-views-block-our-team-block"] .team-member-card,
body #app-content [id^="block-cbc-views-block-our-team-block"] .team-member-card.is-ps-pps,
.mission-karmayogi-highlight,
.cbc-intro-card,
.vision-mission-card,
.mission-karmayogi-header,
.gdcba-list {
  border-radius: 6px !important;
}

.join-cta-section,
.section-about,
.cbc-schedule-section,
.gdcba-footer {
  border-radius: 6px !important;
}

/* =====================================================================
   MDOs PAGE (/ministries-departments-and-organizations-mdos): smaller nav boxes
   Colours are unchanged; only the height, padding, text, icon, arrow and radius are smaller.
   ===================================================================== */
.mdos-nav-buttons {
  gap: 16px;
}

.mdos-nav-btn {
  padding: 20px 16px;
  min-height: 120px;
  gap: 10px;
  border-radius: 6px !important;
  letter-spacing: 1px;
  font-size: 14px;
}

.mdos-btn-icon {
  font-size: 30px;
}

.mdos-btn-text {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 1px;
}

.mdos-btn-arrow {
  font-size: 18px;
  margin-top: 0;
}

@media (max-width: 992px) {
  .mdos-nav-buttons {
    gap: 12px;
  }

  .mdos-nav-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    min-height: 110px;
    padding: 18px 14px;
  }
}

@media (max-width: 768px) {
  .mdos-nav-btn {
    flex: 1 1 100%;
    min-width: 100%;
    min-height: 96px;
    padding: 16px 14px;
    gap: 8px;
  }

  .mdos-btn-icon {
    font-size: 28px;
  }

  .mdos-btn-text {
    font-size: 13px;
  }

  .mdos-btn-arrow {
    font-size: 16px;
  }
}

/* MDOs boxes on mobile: one under the other, each only as tall as its content */
@media (max-width: 768px) {
  .mdos-nav-buttons {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .mdos-nav-btn {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
}

/* =====================================================================
   ONE FONT SCALE FOR THE WHOLE PROJECT (reference: Home, About, KCM and Indian Knowledge System pages)
     section heading (h2) ........ 20.4px
     card / block title (h3-h5) .. 16.15px (0.95rem)
     paragraph, list, table, description text .. 14px
   Hero titles, big numbers/stats, buttons and the Home / About pages are left as they are.
   ===================================================================== */
body:not(.path-frontpage):not(.page-node-75) #app-content .card-text,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-topic-item span,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-feature-list li,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-feature-list li span,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-milestone-list li,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-numbered-list li,
body:not(.path-frontpage):not(.page-node-75) #app-content .daksh-timeline-content,
body:not(.path-frontpage):not(.page-node-75) #app-content .daksh-checklist-item,
body:not(.path-frontpage):not(.page-node-75) #app-content .daksh-timeline-date strong,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-highlight,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-info-chip,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-workshop-date,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-challenge-item,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-challenge-item strong,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-overview-label,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-stat-label,
body:not(.path-frontpage):not(.page-node-75) #app-content .gdcba-framework-card li,
body:not(.path-frontpage):not(.page-node-75) #app-content .gdcba-grid-item,
body:not(.path-frontpage):not(.page-node-75) #app-content .gdcba-list li,
body:not(.path-frontpage):not(.page-node-75) #app-content .gdcba-footer span,
body:not(.path-frontpage):not(.page-node-75) #app-content .section-about p,
body:not(.path-frontpage):not(.page-node-75) #app-content .section-about strong,
body:not(.path-frontpage):not(.page-node-75) #app-content .cbc-glimpses-header p,
body:not(.path-frontpage):not(.page-node-75) #app-content .cbc-schedule-subtitle,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-feature-desc span,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-quote-text span,
body:not(.path-frontpage):not(.page-node-75) #app-content table td,
body:not(.path-frontpage):not(.page-node-75) #app-content table th {
  font-size: 14px !important;
}

body:not(.path-frontpage):not(.page-node-75) #app-content h2 {
  font-size: 20.4px !important;
}

body:not(.path-frontpage):not(.page-node-75) #app-content h3:not(.count):not(.agk-stat-number):not(.karmayogi-framework-title):not(.team-category-title):not(.cta-title):not(.fw-bold),
body:not(.path-frontpage):not(.page-node-75) #app-content h4,
body:not(.path-frontpage):not(.page-node-75) #app-content h5,
body:not(.path-frontpage):not(.page-node-75) #app-content .ulb-workshop-title,
body:not(.path-frontpage):not(.page-node-75) #app-content .cbc-column-title {
  font-size: 0.95rem !important;
}

body:not(.path-frontpage):not(.page-node-75) #app-content h2 strong,
body:not(.path-frontpage):not(.page-node-75) #app-content h3 strong,
body:not(.path-frontpage):not(.page-node-75) #app-content h4 strong,
body:not(.path-frontpage):not(.page-node-75) #app-content h5 strong,
body:not(.path-frontpage):not(.page-node-75) #app-content .card-title a,
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-timeline-date strong {
  font-size: inherit !important;
}


/* =====================================================================
   Tables inside a bordered .table-responsive wrapper: the wrapper already draws the outer border,
   so the table itself must not draw a second one (it showed as a double line on the right/left on mobile).
   ===================================================================== */
.table-responsive:not(.no-border-wrapper)>.mou-status-table,
.table-responsive:not(.no-border-wrapper)>.tenders-table {
  border: 0 !important;
}

/* Mobile: table header text may wrap (it was wider than its column, which made the table scroll 17px past its last column) */
@media (max-width: 767.98px) {
  .table-responsive .states-ut-table thead th {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

/* sitemap tree: group links are block titles, the other links are normal text */
body:not(.path-frontpage):not(.page-node-75) #app-content li.expanded>a {
  font-size: 0.95rem !important;
}

body:not(.path-frontpage):not(.page-node-75) #app-content li.leaf>a {
  font-size: 14px !important;
}

/* milestone card titles: same card-title size */
body:not(.path-frontpage):not(.page-node-75) #app-content .karmayogi-milestone-title {
  font-size: 0.95rem !important;
}

/* side nav: optional document / link item (arrow on the right, opens in a new tab) */
.team-sidenav__doc-item {
  flex: 0 0 auto;
  padding: 6px 8px 8px;
  border-top: 1px solid #e3e8ee;
  background: #fff;
}

.team-sidenav__doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px solid #0063ae;
  border-radius: 6px;
  color: #0063ae;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.3;
  text-decoration: none;
  transition: all 0.25s ease;
}

.team-sidenav__doc:hover,
.team-sidenav__doc:focus-visible {
  background: #0063ae;
  color: #fff;
  outline: none;
}
