/* ------------------------------------- Policy Page - Blurbs -------------------------------------- */
 
 .policy-blurb {
   background-color: #ffffff;
   padding: 1rem;
   text-align: left;
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }
 
/* ========================= */
/* Contact Cards - Shared    */
/* ========================= */
.blurb-card,
.contact-card,
.policy-blurb {
  border: 1px solid var(--color-light-grey3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blurb-card:hover,
.contact-card:hover,
.policy-blurb:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}



/* ========================= */
/* Blurb Card Styles         */
/* ========================= */
.blurb-card {
  background-color: var(--color-light-grey1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  margin-bottom: 1rem;
}



/* Remove global img stretch for logo specifically */
.blurb-header .blurb-logo img {
  display: block;
  width: auto !important;
  max-width: 358px;
  height: auto;
  margin: 0 auto 1rem;
}

.blurb-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.blurb-details p {
  margin: 0.5rem 0;
  color: var(--color-text);
  text-align: center;
}

.blurb-details a {
  color: var(--color-redwood);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.blurb-footer {
  margin-top: 0;
  padding-bottom: 1rem;
}

/* ========================= */
/* Contact Adica Section     */
/* ========================= */
.contact-card {
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}

.contact-image,
.contact-info {
  width: 50%;
  box-sizing: border-box;
  padding: 1rem;
}

.contact-info {
  padding: 1rem;
}

.contact-image img {
  height: auto;
  width: 100%;
  display: block;
}

.contact-info h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--color-text);
}

.contact-info a.button-pill-default {
  margin-top: 1rem;
  display: inline-block;
}

/* ========================= */
/* Responsive (Mobile Stack) */
/* ========================= */
@media (max-width: 767px) {
  .contact-image,
  .contact-info {
    width: 100%;
    text-align: center;
  }
  .contact-info p,
  .contact-info a {
    text-align: center !important;
  }

  .contact-info a.button-pill-default {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-image img {
    width: 100%;
    height: auto;
  }

  .contact-card {
    width: 100% !important;
  }

  .blurb-card {
    margin-bottom: 1rem;
  }
}

/* ========================= */
/* Claims Logos Grid Styles  */
/* ========================= */
.claims-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .claims-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .claims-logos-grid {
    grid-template-columns: 1fr;
  }
}

/* Remove list bullet and spacing from rwmb_the_value output */
.blurb-logo ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blurb-logo li {
  margin: 0;
  padding: 0;
}

/* ====================================
   Leadership Grid (Board & ELT)
==================================== */

/* === GRID WRAPPERS === */

.board-grid,
.elt-grid {
  display: grid;
  align-items: stretch; /* force equal-height items */
  gap: 1rem;
  width: 100%;
}

.board-grid {
  grid-template-columns: repeat(3, 1fr);
}

.elt-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* === CARD === */

.leader-card {
  border: 1px solid var(--color-redwood);
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%; /* REQUIRED for grid stretch */
  text-align: center;
  cursor: pointer;
}

.elt-grid .leader-card {
  border-color: var(--color-midnight-blue);
  background: rgba(240, 240, 240, 0.45);
}

/* === FUNCTION LABEL (TOP LEFT) === */

.leader-card h6 {
  background-color: var(--color-midnight, #001f3f);
  color: #fff;
  padding: 0.5rem 1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: 700;
  position: absolute;
  top: 0;
  left: 0;
}

.board-grid h6 {
  background-color: var(--color-redwood);
  display: none;
}

/* === PHOTO === */

.leader-photo {
  margin: 3.5rem auto 1rem;
  height: 220px;               /* LOCKED HEIGHT */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.board-grid .leader-photo {
  margin: 1.5rem auto 1rem;
}

.leader-photo img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* === NAME === */

.leader-card h5 {
  margin: 0;
  padding: 0 1rem;
  color: var(--color-text);
  font-weight: 700;
}


/* === POSITION === */

p.leader-position {
  font-weight: 700;
  padding: 0 1rem;
  margin: 0 0 0.5rem; /* reduced bottom spacing */
  
  color: var(--color-primary);
  line-height: var(--line-height-tight);
}


.board-grid p.leader-position {
  color: var(--color-redwood);
}

/* === DESCRIPTION (COLLAPSIBLE) === */

.leader-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  margin: 0;
  text-align: left;
  flex: 1 1 auto; /* fills remaining height */
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease,
    padding 0.4s ease;
}

.leader-description p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
}

.leader-card.active .leader-description {
  max-height: 600px;
  opacity: 1;
  padding: 0.5rem 1rem 1rem;
}

/* === TOGGLE ICON === */

.toggle-desc {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin: 0 auto 0.75rem;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.toggle-desc svg {
  width: 30px;
  height: 20px;
  stroke: var(--color-light-grey2);
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.leader-card.active .toggle-desc svg {
  transform: rotate(180deg);
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .elt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .board-grid,
  .elt-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    text-align: center;
  }

  .leader-card h6 {
    position: relative;
    margin-bottom: 1rem;
  }

  .leader-photo {
    margin: 1rem auto 1rem;
    height: 180px;
  }

  .leader-card h5 {
    min-height: auto;
    margin-bottom: 0.25rem;
  }

  p.leader-position {
    min-height: auto;
    margin-bottom: 1rem;
  }

  .leader-description {
    padding: 0 1rem;
  }

  .leader-card.active .leader-description {
    padding: 0.5rem 1rem 1rem;
  }
}
