 :root{
      --brand-green:#2f7d3a;
      --brand-purple:#4b2f7b;
      --brand-orange:#e8792d;
      --soft-bg:#f6f8fb;
      --brand-yellow:#F4B400;

    }
    .bg-brand-purple{background:var(--brand-purple);}
    .bg-brand-yellow{background:var(--brand-yellow);}
    .bg-brand-green{background:var(--brand-green);}
    .bg-brand-orange{background:var(--brand-orange);}
    .text-brand-green{color:var(--brand-green);}
    .btn-brand{background:var(--brand-orange);border-color:var(--brand-orange);color:#fff;}
    .btn-brand:hover{filter:brightness(.95);color:#fff;}
    .soft{background:var(--soft-bg);}
    .section-pad{padding:4rem 0;}
    .rounded-2xl{border-radius:1rem;}
    .position-top{object-position: top;}
    .icon-badge{
      
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px; /* or 50% if you want circle */
  background: rgba(47,125,58,.12);
  color: var(--brand-green);

  font-size: 20px;
  line-height: 1;

  flex-shrink: 0; /* VERY important */
}
  
    .hero{
      min-height:78vh;
      background:
        linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url("images/backgrounds/heroimg.jpeg")
        center/cover no-repeat;
    }
    .hero .lead{max-width:60ch;}
    .card-hover{transition:transform .15s ease, box-shadow .15s ease;}
    .card-hover:hover{transform:translateY(-2px); box-shadow:0 .75rem 2rem rgba(0,0,0,.08)!important;}
    .footer-link{color:rgba(255,255,255,.85);text-decoration:none;}
    .footer-link:hover{color:#fff;text-decoration:underline;}
    .object-fit-cover{object-fit:cover;}

    .why-bg {
  position: relative;
  background: 
    /* linear-gradient(rgba(234,246,238,0.92), rgba(234,246,238,0.92)), */
    url("images/backgrounds/why-bg.jpeg") center/cover no-repeat;
    
}
.background-text{
color:rgba(255,255,255)
}
.team-card {
  display: flex;
  flex-direction: column;
}

/* .team-img {
  width: 100%;
  height: 300px;        
  object-fit: cover;    
  object-position: center;
} */
.team-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 30px auto 0 auto;
  object-fit: cover;
  object-position: top;
}
.team-card .card-body {
  flex-grow: 1;         /* forces equal card height */
}
  
.team-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
/* Slide Panel */
.profile-panel {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  z-index: 9999;
}

.profile-panel.active {
  visibility: visible;
}

.profile-overlay {
  flex: 1;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}

.profile-content {
  width: 420px;
  max-width: 95%;
  background: #fff;
  padding: 40px;
  transform: translateX(100%);
  transition: transform .35s ease;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,.1);
}

.profile-panel.active .profile-content {
  transform: translateX(0);
}

.profile-close {
  position: absolute;
  right: 20px;
  top: 20px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}

.profile-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
     object-position: top;
}

.profile-body {
  font-size: 14px;
  line-height: 1.6;
}

.profile-meta {
  margin-top: 20px;
  font-size: 13px;
  color: #555;
}
/* Flip Cards - guaranteed */
.flip-card{
  perspective: 1200px;
  height: 100%;
}

.flip-inner{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;            /* ensure visible height */
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

/* Desktop hover + keyboard focus */
@media (hover:hover) and (pointer:fine){
  .flip-card:hover .flip-inner{
    transform: rotateY(180deg);
  }
}
.flip-card:focus-within .flip-inner{
  transform: rotateY(180deg);
}

/* Mobile / click toggle */
.flip-card.is-flipped .flip-inner{
  transform: rotateY(180deg);
}

.flip-front,
.flip-back{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari */
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.flip-back{
  transform: rotateY(180deg);
}

/* Image size consistent */
.flip-img{
  width:100%;
  height: 300px;
  object-fit:cover;
    object-position: top;

  

}

/* Title row */
.card-title-row{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:.5rem;
}

/* Icon badge fix (no stretching) */
.icon-badge{
  width:44px;height:44px;
  min-width:44px;min-height:44px;
  display:inline-flex;
  align-items:center;justify-content:center;
  border-radius:12px;
  flex-shrink:0;
  line-height:1;
}
.flip-back-body {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flip-back-body .btn-brand {
  min-width: 180px;
}

.flip-back-btn {
  border: none;
  background: none;
  color: #777;
  text-decoration: underline;
}