:root {
  --color-primary: #884bdf;
  --color-secondary: #4f00bd;
  --color-third: #133458;
  --color-fourth: #e63946;
  --shadow-card: 0 10px 30px rgba(136, 75, 223, 0.1);
}

html,
body {
  background: #f8f9fa;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px;
}

.row-pengurus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.found-penggurus {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  text-align: center;
  gap: 12px;
}

.found-penggurus .icon-empty {
  font-size: 2rem;
}

.found-penggurus p {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.col-card-pengurus {
  display: flex;
  width: 100%;
  height: 100%;
}

.header-description {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.badge-text-muted {
  text-align: center;
  display: inline-block;
  padding: 0.25rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 15px;
  margin: 0 auto 2rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  min-height: 480px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.our-team,
.image-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.flip-card:hover .our-team,
.flip-card:hover .image-area {
  /* border-color: rgba(0, 0, 0, 0.5); */
  border-color: var(--color-primary);
}

.flip-card:hover .pic {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.our-team {
  display: flex;
  flex-direction: column;
  padding: 0 0 25px 0;
  text-align: center;
  background: #ffffff;
}

.our-team .pic {
  display: block;
  width: 100%;
  height: 280px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(136, 75, 223, 0.08),
    rgba(23, 190, 187, 0.08)
  );
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.flip-card:hover .pic img {
  transform: scale(1.05);
}

.description-pengurus {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 0 15px;
  width: 100%;
}

.our-team .title {
  font-size: 18.3px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin: 0 0 7px 0;
  line-height: 1.3;
  word-break: break-word;
  letter-spacing: 0.25px;
}

.our-team .post {
  display: block;
  font-size: 15.8px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-transform: capitalize;
  margin-bottom: 15px;
}

.our-team .social {
  padding: 0;
  margin: auto 0 0 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.our-team .social li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
}

.flip-card:hover .social li a {
  transform: translateY(-3px);
}

.image-area {
  transform: rotateY(180deg);
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(136, 75, 223, 0.1),
    rgba(23, 190, 187, 0.1)
  );
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition:
    filter 0.6s ease,
    transform 0.6s ease;
}

.flip-card:hover .img-wrapper img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent 100%
  );
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
  transition: left 1s ease-in-out;
}

.flip-card:hover .img-wrapper::before {
  left: 150%;
}

.img-wrapper h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.flip-card:hover .img-wrapper h2 {
  transform: translateY(0);
}

.img-wrapper ul {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.img-wrapper ul li {
  transform: translateX(-25px);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.flip-card:hover .img-wrapper ul li {
  transform: translateX(0);
  opacity: 1;
}

.flip-card:hover .img-wrapper ul li:nth-child(1) {
  transition-delay: 0.1s;
}
.flip-card:hover .img-wrapper ul li:nth-child(2) {
  transition-delay: 0.2s;
}

.img-wrapper ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}

/* Periode Pengurus FA */
.periode-section-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0 40px 0;
}

.periode-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  padding: 0 45px;
}

.periode-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.periode-slider::-webkit-scrollbar {
  display: none;
}

.periode-item {
  flex: 0 0 calc((100% - 36px) / 4);
  text-align: center;
}

.periode-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 50px;
  color: #4a5568;
  font-size: 0.9rem;
  letter-spacing: 0.7px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.periode-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
}

.periode-link.active {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: #ffffff;
  border: none;
  font-weight: 700;
  transform: translateY(-2px);
  text-decoration: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #d5d5d5;
  color: #2d3748;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.slider-btn.left {
  left: -0.8rem;
}
.slider-btn.right {
  right: -0.8rem;
}

.slider-btn.left:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(136, 75, 223, 0.3);
}

.slider-btn.right:hover {
  background: var(--color-secondary);
  color: #ffffff;
  border-color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(23, 190, 187, 0.3);
}

/* Responsive in device categories */
@media (max-width: 1024px) {
  .row-pengurus {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 912px) {
  .row-pengurus {
    grid-template-columns: repeat(3, 1fr);
  }

  .periode-slider-wrapper {
    max-width: 80%;
    padding: 0 40px;
  }

  .periode-item {
    flex: 0 0 calc((100% - 24px) / 3);
  }
}

@media (max-width: 768px) {
  .row-pengurus {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .periode-link {
    height: 38px;
    font-size: 0.82rem;
    padding: 0 10px;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
  }
}

@media (max-width: 576px) {
  .row-pengurus {
    grid-template-columns: repeat(1, 1fr);
    max-width: 320px;
    margin: 0 auto;
  }

  .periode-slider-wrapper {
    max-width: 80%;
    padding: 0 40px;
  }

  .periode-item {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .periode-link {
    height: 35px;
    font-size: 0.8rem;
    padding: 0 8px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.76rem;
  }

  .flip-card {
    min-height: 550px;
    perspective: 1000px;
  }

  .our-team .pic {
    height: 370px;
  }
}
