/* ===============================
   ACCREDITATIONS SECTION
================================ */

.accred-section{
  background:#fff;
  padding: 120px 5% 120px;
}

.accred-container{
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.accred-header h2{
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
}

.accred-header span{
  color: #61A60D;
}

/* ===============================
   LOGO SLIDER
================================ */

.accred-logos-wrapper{
  overflow: hidden;
  margin-bottom: 40px;
}

.accred-logos{
  display: flex;
  gap: 24px;
}

.logo-item{
  width: 270px;
  height: 190px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #CFE3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.logo-item img{
  max-width: 80%;
  max-height: 70%;
}

.logo-active-bar{
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: #416A10;
  opacity: 0;
  border-radius: 0 0 20px 20px;
}

.logo-item.is-active .logo-active-bar{
  opacity: 1;
}

/* ===============================
   DESCRIPTION SLIDER
================================ */

.accred-desc-wrapper{
  position: relative;
}

.accred-desc-track{
  display: flex;
  transition: transform 0.6s ease;
}

.accred-card{
  flex: 0 0 100%;
  background: #416A10;
  border-radius: 60px;
  padding: 60px 80px;
  color: #fff;
}

.accred-card h3{
  font-size: 36px;
  margin-bottom: 18px;
}

.accred-card p{
  font-size: 15px;
  line-height: 1.8;
  max-width: 900px;
}

/* ===============================
   ARROWS
================================ */

.accred-arrows{
  position: absolute;
  right: 0;
  bottom: -70px;
  display: flex;
  gap: 16px;
}

.arrow{
  background: none;
  border: none;
  cursor: pointer;
}

.arrow img{
  width: 52px;
  height: 52px;
}

.arrow.disabled{
  opacity: 0.35;
  pointer-events: none;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px){
  .accred-header h2{
    font-size: 36px;
  }

  .logo-item{
    width: 200px;
    height: 150px;
  }

  .accred-card{
    padding: 40px 30px;
    border-radius: 32px;
  }

  .accred-arrows{
    bottom: -56px;
  }

  .arrow img{
    width: 44px;
    height: 44px;
  }
}


/* LOGOS */
.accred-logos{
  display:flex;
  gap:24px;
  margin-bottom:40px;
}

.accred-logos .logo{
  width:270px;
  height:190px;
  border:1px solid #CFE3B8;
  border-radius:20px;
  background:#fff;
  position:relative;
  cursor:pointer;
}

.accred-logos .logo.is-active::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:6px;
  background:#416A10;
  border-radius:0 0 20px 20px;
}

/* DESC VIEWPORT — THIS FIXES YOUR ISSUE */
.accred-desc-viewport{
  position:relative;
  overflow:hidden;              /* 🔥 REQUIRED */
}

/* TRACK */
.accred-desc-track{
  display:flex;
  width:100%;
  transition:transform .6s ease;
}

/* CARD */
.accred-card{
  flex:0 0 100%;
  background:#416A10;
  border-radius:60px;
  padding:60px 80px;
  color:#fff;
}

/* ARROWS */
.accred-arrows{
  position:absolute;
  right:0;
  bottom:-70px;
  display:flex;
  gap:16px;
}

.arrow{
  font-size:32px;
  border:none;
  background:none;
  cursor:pointer;
}

.arrow.disabled{
  opacity:.35;
  pointer-events:none;
}


/* SECTION BACKGROUND LIKE FIGMA */
.accred-section{
  
    
  padding: 0px 5% 0px;
}

.accred-container{
  max-width: 1200px;
  margin: 0 auto;
}

.accred-title{
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  color:#1E1E1E;
  margin-bottom: 46px;
}

.accred-title span{
  color:#61A60D;
}

/* ---------------------------
   LOGO SLIDER
---------------------------- */
.accred-logos-viewport{
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 36px;
}
.accred-logos-viewport::-webkit-scrollbar{ display:none; }

.accred-logos-track{
  display:flex;
  gap: 26px;
  padding-bottom: 10px;
  width: max-content; /* allows horizontal scroll */
}

.accred-logo{
  width: 270px;
  height: 190px;
  border-radius: 22px;
  border: 1px solid #CFE3B8;
  background:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  position:relative;
  flex: 0 0 auto;
}

.accred-logo img{
  max-width: 75%;
  max-height: 55%;
  object-fit: contain;
}

.accred-logo.is-active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height: 12px;
  background:#416A10;
  border-radius: 0 0 25px 25px;
}

/* ---------------------------
   DESC SLIDER
---------------------------- */
.accred-desc-area{
  position: relative;
}

.accred-desc-viewport{
  overflow: hidden; /* CRITICAL: hides next slide */
}

.accred-desc-track{
  display:flex;
  transition: transform 650ms cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

.accred-card{
  flex: 0 0 100%;
  background:#416A10;
  border-radius: 70px;
  padding: 76px 88px;
  color:#fff;
  min-height: 320px;
}

.accred-card h3{
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 18px;
}

.accred-card p{
  font-size: 18px;
  line-height: 1.7;
  max-width: 900px;
}

/* ---------------------------
   ARROWS (BOTTOM RIGHT)
---------------------------- */
.accred-arrows{
  position:absolute;
  right: 0;
  bottom: -76px;
  display:flex;
  gap: 18px;
}

.accred-arrow{
  width: 62px;
  height: 62px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.accred-arrow img{
  width: 100%;
  height: 100%;
  display:block;
}

.accred-arrow.disabled{
  opacity: .25;
  pointer-events:none;
}

/* ---------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 1024px){
  .accred-title{ font-size: 52px; }
  .accred-card{ padding: 56px 52px; border-radius: 50px; }
  .accred-card h3{ font-size: 38px; }
}

@media (max-width: 768px){
  .accred-section{ padding: 56px 5% 110px; }
  .accred-title{ font-size: 40px; margin-bottom: 26px; }

  .accred-logo{ width: 220px; height: 160px; }
  .accred-card{ padding: 40px 26px; border-radius: 36px; min-height: 260px; }
  .accred-card p{ font-size: 15px; }

  .accred-arrows{ bottom: -68px; }
  .accred-arrow{ width: 54px; height: 54px; }
}
/* LOGO VIEWPORT */
.accred-logos-viewport{
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  /* 4 logos + gaps */
  max-width: calc((270px * 4) + (26px * 3));
}
@media (max-width: 1200px){
  /* 3 logos */
  .accred-logos-viewport{
    max-width: calc((270px * 3) + (26px * 2));
  }
}

@media (max-width: 768px){
  /* 1.5 logos visible */
  .accred-logos-viewport{
    max-width: calc((220px * 1.5) + 26px);
  }

  .accred-logo{
    width: 220px;
    height: 160px;
  }
}
.accred-logos-track{
  display:flex;
  gap:26px;
  width: max-content;
}
.accred-logos-viewport::-webkit-scrollbar{
  display:none;
}
.accred-logos-viewport{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  /* 👇 prevents logo cutting */
  padding: 0 14px;

  /* width that shows 4 FULL logos */
  max-width: calc((270px * 4) + (26px * 3));

  box-sizing: border-box;
}
.accred-logos-track{
  display: flex;
  gap: 26px;
  width: max-content;

  /* balances viewport padding */
  padding-right: 14px;
}
.accred-logo{
  width: 270px;
  height: 190px;
  flex: 0 0 auto;     /* ❗ prevents shrinking */
  box-sizing: border-box;
}
    @media (max-width: 1200px){
  .accred-logos-viewport{
    max-width: calc((270px * 3) + (26px * 2));
  }
}

@media (max-width: 768px){
  .accred-logos-viewport{
    max-width: calc((220px * 1.4) + 26px);
    padding: 0 12px;
  }

  .accred-logo{
    width: 220px;
    height: 160px;
  }
}
.accred-logo{
  width: 270px;
  height: 190px;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(65,106,16,.35);
  background: #fff;
  position: relative;
  overflow: visible; /* ✅ important */
}

/* image centered */
.accred-logo img{
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* ✅ underline INSIDE the card so it can't be clipped */
.accred-active-line{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;                 /* inside */
  height: 8px;
  background: #416A10;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  opacity: 0;
  transform: scaleX(.92);
  transform-origin: left;
  transition: .25s ease;
}

.accred-logo.is-active .accred-active-line{
  opacity: 1;
  transform: scaleX(1);
}
.accred-logos-viewport{
  overflow-x: auto;
  padding: 0 0 0 0; /* ✅ keep this */
  box-sizing: border-box;
}
