/* =====================================
   TEAM PAGE SECTION STYLES
   ===================================== */

.team-page-section {
  position: relative;
  padding: 80px 0 100px;
  background: #f9f9f9;
}

/* Section Title */
.team-page-section .sec-title {
  margin-bottom: 60px;
}

.team-page-section .sec-title h2 {
  color: #1a1a1a;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.team-page-section .sec-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #2563eb;
}

.team-page-section .sec-title p {
  color: #666;
  font-size: 16px;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ BARIS PERTAMA: 4 ORANG BESAR ============ */
.team-row-large-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.team-member-large-page {
  flex: 0 0 260px;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.team-member-large-page:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member-large-page .team-inner {
  position: relative;
}

.team-member-large-page .team-image-circle-page {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #2563eb;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.team-member-large-page:hover .team-image-circle-page {
  transform: scale(1.05);
  border-color: #1d4ed8;
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.4);
}

.team-member-large-page .team-image-circle-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-member-large-page:hover .team-image-circle-page img {
  transform: scale(1.1);
}

/* ============ BARIS KEDUA: 4 ORANG KECIL ============ */
.team-row-small-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 35px;
  flex-wrap: wrap;
}

.team-member-small-page {
  flex: 0 0 230px;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  padding: 25px 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.team-member-small-page:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member-small-page .team-inner {
  position: relative;
}

.team-member-small-page .team-image-circle-page-small {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #2563eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
}

.team-member-small-page:hover .team-image-circle-page-small {
  transform: scale(1.05);
  border-color: #1d4ed8;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

.team-member-small-page .team-image-circle-page-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-member-small-page:hover .team-image-circle-page-small img {
  transform: scale(1.1);
}

/* ============ OVERLAY INFO (Hover Effect) ============ */
.team-overlay-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.team-image-circle-page:hover .team-overlay-page,
.team-image-circle-page-small:hover .team-overlay-page {
  opacity: 1;
}

.team-overlay-content h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.team-overlay-content p {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.team-image-circle-page:hover .team-overlay-content h3,
.team-image-circle-page:hover .team-overlay-content p,
.team-image-circle-page-small:hover .team-overlay-content h3,
.team-image-circle-page-small:hover .team-overlay-content p {
  transform: translateY(0);
}

/* ============ TEXT INFO DIBAWAH FOTO ============ */
.team-info-page {
  padding: 0 10px;
}

.team-info-page h3 {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.team-info-page .designation {
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-info-page p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.team-member-large-page:hover .team-info-page h3,
.team-member-small-page:hover .team-info-page h3 {
  color: #2563eb;
}

/* Small size adjustments */
.team-member-small-page .team-info-page h3 {
  font-size: 18px;
}

.team-member-small-page .team-info-page .designation {
  font-size: 13px;
}

.team-member-small-page .team-info-page p {
  font-size: 13px;
}

.team-member-small-page .team-overlay-content h3 {
  font-size: 16px;
}

.team-member-small-page .team-overlay-content p {
  font-size: 13px;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Large Tablet */
@media (max-width: 1200px) {
  .team-row-large-page {
    gap: 30px;
  }

  .team-member-large-page {
    flex: 0 0 240px;
  }

  .team-member-large-page .team-image-circle-page {
    width: 200px;
    height: 200px;
  }

  .team-row-small-page {
    gap: 25px;
  }

  .team-member-small-page {
    flex: 0 0 210px;
  }

  .team-member-small-page .team-image-circle-page-small {
    width: 160px;
    height: 160px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .team-page-section {
    padding: 60px 0 80px;
  }

  .team-page-section .sec-title h2 {
    font-size: 36px;
  }

  .team-row-large-page {
    gap: 25px;
    margin-bottom: 50px;
  }

  .team-member-large-page {
    flex: 0 0 220px;
    padding: 25px 15px;
  }

  .team-member-large-page .team-image-circle-page {
    width: 180px;
    height: 180px;
  }

  .team-row-small-page {
    gap: 20px;
  }

  .team-member-small-page {
    flex: 0 0 190px;
    padding: 20px 12px;
  }

  .team-member-small-page .team-image-circle-page-small {
    width: 150px;
    height: 150px;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .team-page-section .sec-title h2 {
    font-size: 30px;
  }

  .team-page-section .sec-title p {
    font-size: 15px;
  }

  .team-row-large-page,
  .team-row-small-page {
    justify-content: space-around;
    gap: 20px;
  }

  .team-member-large-page {
    flex: 0 0 calc(50% - 20px);
    max-width: 220px;
  }

  .team-member-small-page {
    flex: 0 0 calc(50% - 20px);
    max-width: 200px;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .team-page-section {
    padding: 50px 0 60px;
  }

  .team-page-section .sec-title h2 {
    font-size: 26px;
  }

  .team-page-section .sec-title {
    margin-bottom: 40px;
  }

  /* Stack vertically on small mobile */
  .team-row-large-page,
  .team-row-small-page {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .team-row-large-page {
    margin-bottom: 40px;
  }

  .team-member-large-page,
  .team-member-small-page {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }

  .team-member-large-page .team-image-circle-page {
    width: 200px;
    height: 200px;
  }

  .team-member-small-page .team-image-circle-page-small {
    width: 180px;
    height: 180px;
  }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
  .team-member-large-page,
  .team-member-small-page {
    max-width: 260px;
  }

  .team-member-large-page .team-image-circle-page {
    width: 180px;
    height: 180px;
  }

  .team-member-small-page .team-image-circle-page-small {
    width: 160px;
    height: 160px;
  }

  .team-info-page h3 {
    font-size: 18px;
  }

  .team-info-page p {
    font-size: 13px;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-member-large-page,
.team-member-small-page {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.team-member-large-page:nth-child(1) {
  animation-delay: 0.1s;
}

.team-member-large-page:nth-child(2) {
  animation-delay: 0.2s;
}

.team-member-large-page:nth-child(3) {
  animation-delay: 0.3s;
}

.team-member-large-page:nth-child(4) {
  animation-delay: 0.4s;
}

.team-member-small-page:nth-child(1) {
  animation-delay: 0.5s;
}

.team-member-small-page:nth-child(2) {
  animation-delay: 0.6s;
}

.team-member-small-page:nth-child(3) {
  animation-delay: 0.7s;
}

.team-member-small-page:nth-child(4) {
  animation-delay: 0.8s;
}

/* Accessibility */
.team-image-circle-page:focus,
.team-image-circle-page-small:focus {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}