/* ========================================
   ABOUT PAGE – FINAL CLEAN & MODERN VERSION
   Fully compatible with new auto-scrolling team carousel
   ======================================== */

/* Variables for consistency */
:root {
  --orange: #ff6b35;
  --dark: #2c3e50;
  --gray: #5a6c7d;
  --light-bg: #f9fbfc;
}

/* About Section Layout */
.wpo-about-section-s2 {
  padding: 100px 0;
  background: var(--light-bg);
}

.wpo-about-wrap {
  position: relative;
  margin-bottom: 30px;
}

.wpo-about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.wpo-about-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.wpo-about-img:hover img {
  transform: scale(1.05);
}

.wpo-about-text {
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.wpo-about-text span {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 18px;
  display: block;
}

.wpo-about-text h2 {
  color: var(--dark);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
}

.wpo-about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.wpo-about-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wpo-about-text ul li {
  color: var(--gray);
  margin-bottom: 16px;
  padding-left: 32px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
}

.wpo-about-text ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: bold;
  font-size: 1.3rem;
}

.wpo-about-text ul li strong {
  color: var(--dark);
  font-weight: 600;
}

/* Section Title – Consistent across site */
.wpo-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.wpo-section-title span {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  display: block;
  margin-bottom: 12px;
}

.wpo-section-title h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.8rem;
  color: var(--dark);
  margin-bottom: 18px;
  font-weight: 700;
}

.wpo-section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* ========================================
   NEW TEAM CAROUSEL – FULLY INTEGRATED
   ======================================== */

.wpo-team-area {
  padding: 110px 0;
  background: #ffffff;
  overflow: hidden;
}

.team-carousel-wrapper {
  margin-top: 60px;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.team-track {
  display: flex;
  width: max-content;
  animation: teamScroll 28s linear infinite;
  will-change: transform;
}

.wpo-team-item {
  min-width: 380px;
  max-width: 380px;
  margin-right: 35px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  text-align: center;
}

.wpo-team-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.wpo-team-img {
  position: relative;
  overflow: hidden;
}

.wpo-team-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wpo-team-item:hover img {
  transform: scale(1.12);
}

.wpo-team-content {
  padding: 30px 20px 35px;
  background: #fff;
}

.wpo-team-content h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.wpo-team-content span {
  color: var(--orange);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 600;
}

/* Animation */
@keyframes teamScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.team-carousel-wrapper:hover .team-track {
  animation-play-state: paused;
}

.team-scroll-hint {
  text-align: center;
  margin-top: 35px;
  color: #888;
  font-size: 1.1rem;
  font-weight: 500;
}

.team-scroll-hint i {
  margin-right: 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* ========================================
   RESPONSIVE – PERFECT ON ALL DEVICES
   ======================================== */

@media (max-width: 1199px) {
  .wpo-about-text h2 { font-size: 2.5rem; }
  .wpo-section-title h2 { font-size: 2.5rem; }
}

@media (max-width: 991.98px) {
  .wpo-about-section-s2,
  .wpo-team-area {
    padding: 80px 0;
  }

  .wpo-about-text {
    padding-left: 0 !important;
    margin-top: 40px;
    text-align: center;
  }

  .wpo-about-img img {
    height: 380px;
  }

  .team-carousel-wrapper {
    overflow: visible;
  }

  .team-track {
    flex-direction: column;
    animation: none !important;
    width: 100%;
    transform: none !important;
    gap: 35px;
    align-items: center;
  }

  .wpo-team-item {
    min-width: 340px;
    max-width: 460px;
    width: 85%;
    margin-right: 0;
  }

  .desktop-only {
    display: none !important;
  }
}

/* Ensure desktop-only items are hidden on all mobile devices */
@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .team-scroll-hint { display: none; }
}

@media (max-width: 768px) {
  .wpo-about-section-s2,
  .wpo-team-area {
    padding: 70px 0;
  }

  .wpo-about-img img {
    height: 320px;
  }

  .wpo-about-text h2 { font-size: 2.1rem; }
  .wpo-section-title h2 { font-size: 2.2rem; }

  .wpo-team-img img {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .wpo-about-section-s2,
  .wpo-team-area {
    padding: 60px 0;
  }

  .wpo-about-img img {
    height: 280px;
    border-radius: 16px;
  }

  .wpo-about-text {
    padding: 0 15px;
  }

  .wpo-about-text h2 { font-size: 1.9rem; }
  .wpo-section-title h2 { font-size: 2rem; }
  .wpo-section-title p { font-size: 1rem; }

  .wpo-team-item {
    width: 100%;
    min-width: unset;
  }

  .wpo-team-img img {
    height: 340px;
  }

  .wpo-team-content h2 {
    font-size: 1.4rem;
  }
}