/* Responsive breakpoints for mobile and tablet, matching nationals page */
@media (max-width: 768px) {
  .leadership-section {
    min-height: 40vw;
    height: 40vw;
    max-height: 60vw;
    padding: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: initial !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
  }
  .leadership-section h1 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100vw;
    font-size: clamp(1.5rem, 8vw, 2.0rem);
    margin: 0 auto;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
    padding: 0 5vw;
    box-sizing: border-box;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .executive-board, .chairs {
    padding: 1.2rem 1rem;
    min-height: auto;
    max-width: 98vw;
  }
  .leadership-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }
  .leadership-member {
    max-width: 98vw;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .leadership-section h1 {
    font-size: 1.3rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 360px) {
  .leadership-section h1 {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }
}
 .leadership-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center ;
    background-attachment: fixed;
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 1rem;
    background-image: url('Web Images/leadership\ pic.png');
}


.leadership-section h1 {
    font-size: 4rem;
    margin-bottom: 0rem;
    font-weight: 600;
}

.executive-board{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 60vh;
    height: auto;
}



.executive-board h2{
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chairs h2{
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chairs{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 60vh;
    height: auto;
}

.leadership-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
    padding: 20px 40px;
    /* background-color: blue;; */
}

.leadership-member{
    width: 100%;
    max-width: 300px;
    height: auto;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    /* background-color: red;; */
}

.leadership-member .img-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    overflow: hidden; /* Hide overflow */
    margin-bottom: 1rem;
    border-radius: 10px;
}

.leadership-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;;
    /* border-radius: 10px; */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3)
}

.leadership-member .img-wrapper > img{
  display: block;
  width: 300px;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Default: move image down so more of the head is visible */
  margin: 0;
}

.leadership-container > * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;

}

@media (max-width: 768px){
  .leadership-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--pad);
    gap: calc(var(--gap) * .85);
  }
  .leadership-section h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
}

/* < 480px: 1 column, compact spacing, prevent overflow */
@media (max-width: 630px){
  .leadership-container {
    grid-template-columns: 1fr;
    gap: calc(var(--gap) * .7);
    padding: calc(var(--pad) * .8);
  }
  .leadership-member .img-wrapper{
    height: auto;
    aspect-ratio: 1/1;
  }


  .leadership-member { gap: calc(var(--space) * .8); } 
  .leadership-section h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}



.risk-prevention{
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.risk-prevention h1{
    font-size: 2rem;
    margin-bottom: 1rem;
}

.risk-prevention > p{
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
    padding: 40px 20px;
}


.risk-prevention .standards-container{
    /* Use flex so rows center naturally (3 on first row, 2 on second)
       and each card keeps the same width/height as the Chairs section. */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: min(100%, 1100px);
    padding: 20px 16px;
    margin: 0 auto 0 auto;
}

.risk-prevention .standards-container .leadership-member{
  max-width: 300px; /* match .leadership-member sizing */
  width: 100%; /* allow responsiveness; constrained by max-width */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* center names under images */
}

.risk-prevention .standards-container .img-wrapper{
  height: 300px; /* same fixed height as other sections */
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.risk-prevention .standards-container .img-wrapper > img{
  display: block;
  width: 100%; /* fill wrapper width so it scales */
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0;
}


.risk-prevention h2{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px){
  .risk-prevention .standards-container{
    justify-content: center;
    gap: calc(var(--gap) * .85);
    padding: 3rem;
  }
  .risk-prevention .standards-container .leadership-member{ width: 48%; max-width: none; }
}

@media (max-width: 630px){
  /* Stack standards cards and center on small screens */
  .risk-prevention .standards-container{
    flex-direction: column;
    align-items: center;
    gap: calc(var(--gap) * .75);
    padding: 2rem 1.2rem;
  }

  .risk-prevention .standards-container .leadership-member{
    width: 90%;
    max-width: 340px; /* allow larger image boxes on mobile */
  }

  .risk-prevention .standards-container .img-wrapper{
    /* Use a square aspect ratio on mobile so images remain square */
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 340px; /* keep a sensible maximum */
    border-radius: 12px;
    overflow: hidden;
  }

  .risk-prevention .standards-container .img-wrapper > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.advisor-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 60vh;
    height: auto;
    margin-top: -4rem;
    margin-bottom: -2rem;
}

.advisor-container .advisor-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: 10px 20px;
    max-width: 600px;
}

.advisor-text h3{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 630px){
  .advisor-text h3{
    font-size: 1.2rem;
  }
  .advisor-container img{
    max-width: 150px;
  }
}

/* Mobile: stack advisor image above text and remove negative margins */
@media (max-width: 630px) {
  .advisor-container{
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    margin-top: 0; /* remove negative offset that caused overlap */
    margin-bottom: 0;
  }

  .advisor-container .advisor-text{
    align-items: center; /* center text under image */
    text-align: center;
    padding: 10px 12px;
    max-width: 100%;
  }

  .advisor-container img{
    max-width: 230px;
    width: 70%;
    height: auto;
    margin-left: 0;
    margin-bottom: 1rem;
    border-radius: 10px;
  }
}

.advisor-container img {
    max-width: 230px;
    height: auto;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    filter: grayscale(100%);
}

/* .standards-container .leadership-member .img-wrapper {
    margin: 0;
    
    height: 100%;
} */

.img-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden; /* hide overlay outside bounds */
}

/* The overlay */
.img-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  transform: scaleY(0);
  transform-origin: bottom left;
  background: rgba(0, 0, 0, 0.6); /* darker overlay */
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.img-wrapper:hover::before, .img-wrapper:focus-within::before{
  transform: scaleY(1);
}


/* Hover effect */
.img-wrapper:hover::before {
  height: 100%;
  background: rgba(0, 0, 0, 0.6);

}

/* .img-wrapper:hover img {
  filter: blur(3px);

  } */


.li-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;                 /* above the overlay (::before has z-index:1) */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1;


  /* Start “below” so it rises in */
  transform: translateY(16px);
  opacity: 0;

  /* Match the overlay timing so they feel synchronized */
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* .li-badge:hover { background: rgba(0,0,0,0.6); } */

.li-badge .li-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.li-badge .li-text {
  display: inline-block;
  line-height: 1;                 /* keeps text aligned to icon center */
}

/* On hover, overlay height goes 0% -> 100%; bring badge up in sync */
.img-wrapper:hover .li-badge {
  transform: translateY(0);
  opacity: 1;
}

/* Optional: small image zoom for polish */




@media (max-width: 550px) {
  .li-badge {
    transform: translateY(0);
    opacity: 1;
  }
}


.img-wrapper .li-text::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    border-radius: 2px;
    background: white; /* White underline */
    transition: all .3s ease;
}

.img-wrapper .li-text:hover::after {
    width: 100%;
}

.li-icon{ width:18px; height:18px; display:block; object-fit:contain;
  transform: translateY(5px);   /* adjust 0–2px until it looks perfect */
}

/* Shared style: badge base */



