/* ========================================
   MODERN TEAM SECTION - ELEGANT DESIGN
   Clean Style with Perfect Alignment
   ======================================== */

/* Section Container */
.about-k {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.about-k::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(33, 150, 243, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(13, 110, 253, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.about-k .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

/* Section Header */
.about-k .mb-5 {
  margin-bottom: 4rem !important;
}

.display-tittle-45 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0 auto;
  text-align: center;
}

/* Board of Directors Title */
.border_line1 {
  margin: 0 auto 4.5rem;
  position: relative;
  width: fit-content;
  text-align: center;
}

.border_line1:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -120px;
  right: -120px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

.border_line1 span {
  background: #ffffff;
  padding: 12px 32px;
  position: relative;
  z-index: 5;
  display: inline-block;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  color: #033270;
  letter-spacing: 0.5px;
}

/* Team Cards Container */
.about-k .row.g-4 {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.about-k .col-12.col-md-4.col-xl-4 {
  display: flex;
  align-items: stretch;
}

/* Modern Team Cards */
.modern-team-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.modern-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

/* Team Image Container */
.modern-team-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 85%;
  overflow: hidden;
  background: #f8f9fa;
}

.modern-team-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.modern-team-card:hover .modern-team-image {
  transform: scale(1.08);
}

.modern-team-image-overlay {
  display: none;
}

/* Team Content */
.modern-team-content {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: #ffffff;
}

/* Team Name */
.modern-team-name {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #033270;
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.modern-team-card:hover .modern-team-name {
  color: #2196f3;
}

/* Team Position */
.modern-team-position {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2196f3;
  margin: 0 0 20px 0;
  line-height: 1.5;
  display: block;
}

/* Team Description */
.modern-team-description {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.7;
  margin: 0 0 28px 0;
  flex: 1;
  text-align: left;
}

/* Social Icons */
.modern-team-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.modern-team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #033270;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  font-size: 16px;
}

.modern-team-social-link:hover {
  background: #033270;
  color: #ffffff;
  border-color: #033270;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(3, 50, 112, 0.2);
}

.modern-team-social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

.modern-team-social-link.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-k {
    padding: 80px 0;
  }
  
  .modern-team-content {
    padding: 28px 24px;
  }
  
  .border_line1:before {
    left: -100px;
    right: -100px;
  }
}

@media (max-width: 992px) {
  .about-k {
    padding: 70px 0;
  }
  
  .about-k .mb-5 {
    margin-bottom: 3rem !important;
  }
  
  .display-tittle-45 {
    margin-bottom: 3rem;
  }
  
  .border_line1 {
    margin-bottom: 3.5rem;
  }
  
  .border_line1:before {
    left: -80px;
    right: -80px;
  }
  
  .modern-team-content {
    padding: 24px 22px;
  }
}

@media (max-width: 768px) {
  .about-k {
    padding: 60px 0;
  }
  
  .about-k .mb-5 {
    margin-bottom: 2.5rem !important;
  }
  
  .border_line1:before {
    left: -60px;
    right: -60px;
  }
  
  .border_line1 span {
    padding: 10px 24px;
    font-size: 1.375rem;
  }
  
  .modern-team-card {
    margin-bottom: 2rem;
  }
  
  .modern-team-content {
    padding: 22px 20px;
  }
  
  .modern-team-social {
    gap: 10px;
  }
  
  .modern-team-social-link {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .about-k {
    padding: 50px 0;
  }
  
  .border_line1:before {
    display: none;
  }
  
  .border_line1 span {
    padding: 8px 20px;
    font-size: 1.25rem;
  }
  
  .modern-team-image-wrapper {
    padding-top: 90%;
  }
  
  .modern-team-content {
    padding: 20px 18px;
  }
  
  .modern-team-social-link {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  
  .modern-team-description {
    text-align: center;
  }
}

/* Animation on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-team-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.modern-team-card:nth-child(1) {
  animation-delay: 0.1s;
}

.modern-team-card:nth-child(2) {
  animation-delay: 0.2s;
}

.modern-team-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* ========================================
   OUR TEAM SECTION V2 - About Us Page
   New design: clean cards, accent lines, clear hierarchy
   ======================================== */

.our-team-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #ffffff 100%);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.our-team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(3, 50, 112, 0.15), transparent);
  pointer-events: none;
}

.our-team-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.our-team-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #033270;
  background: rgba(3, 50, 112, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.our-team-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.our-team-subtitle {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.our-team-group {
  margin-bottom: 4rem;
}

.our-team-group:last-child {
  margin-bottom: 0;
}

.our-team-group-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #033270;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  text-align: center;
}

.our-team-group-title::before {
  content: '';
  flex: 0 0 180px;
  max-width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(3, 50, 112, 0.4) 25%, #033270 100%);
  border-radius: 1px;
}

.our-team-group-title::after {
  content: '';
  flex: 0 0 180px;
  max-width: 180px;
  height: 2px;
  background: linear-gradient(90deg, #033270 0%, rgba(3, 50, 112, 0.4) 75%, transparent 100%);
  border-radius: 1px;
}

.our-team-group-text {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Team card V2 */
.team-card-v2 {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(3, 50, 112, 0.08);
  border: 2px solid rgba(3, 50, 112, 0.12);
  transition: transform 0.35s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(3, 50, 112, 0.18);
  border-color: #033270;
}

.team-card-v2-image-wrap {
  position: relative;
  width: 72%;
  margin: 1.75rem auto 0;
  padding-top: 72%;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 50%;
  border: 3px solid rgba(3, 50, 112, 0.15);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.team-card-v2:hover .team-card-v2-image-wrap {
  border-color: #033270;
  box-shadow: 0 0 0 4px rgba(3, 50, 112, 0.12);
}

.team-card-v2-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.team-card-v2:hover .team-card-v2-image {
  transform: scale(1.05);
}

.team-card-v2-body {
  padding: 1.5rem 1.25rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card-v2-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.team-card-v2-role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0369a1;
  margin: 0 0 1rem 0;
  line-height: 1.45;
}

.team-card-v2-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0077b5;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease, gap 0.2s ease;
}

.team-card-v2-linkedin i {
  font-size: 1rem;
}

.team-card-v2-linkedin:hover {
  color: #033270;
  gap: 0.65rem;
}

/* Responsive - Our Team Section V2 */
@media (max-width: 992px) {
  .our-team-section {
    padding: 4rem 0 4.5rem;
  }

  .our-team-header {
    margin-bottom: 3.25rem;
  }

  .our-team-group {
    margin-bottom: 3.25rem;
  }
}

@media (max-width: 768px) {
  .our-team-section {
    padding: 3rem 0 3.5rem;
  }

  .our-team-header {
    margin-bottom: 2.5rem;
  }

  .our-team-group-title {
    font-size: 1.2rem;
    margin-bottom: 20px !important;
  }

  .our-team-group-title::before,
  .our-team-group-title::after {
    flex: 0 0 60px;
    max-width: 60px;
  }

  .our-team-group {
    margin-bottom: 2.5rem;
  }

  .team-card-v2-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .team-card-v2-name {
    font-size: 1.125rem;
  }
}

@media (max-width: 576px) {
  .our-team-section {
    padding: 2.5rem 0 3rem;
  }

  .our-team-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .team-card-v2-image-wrap {
    width: 70%;
    padding-top: 70%;
    margin: 1.25rem auto 0;
  }
}
