/* Page Header Styles */
.business-header {
  background-image: url("../../img/business/global/banner.jpg");
  height: 40vh;
  margin-top: 0;
  background-position: center center;
}

/* Business Introduction Section */
.intro-content {
  max-width: 1000px;
  margin: 0 auto;
}

.intro-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Business Advantages Section */
.advantage-item {
  margin-bottom: 30px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advantage-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.advantage-content {
  padding: 2rem;
}

.advantage-content h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 1rem;
}

.advantage-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* End-to-End Services Section */
.services {
  background-color: #f8f9fa;
}

.service-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-item h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.service-item p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
}

/* Customer Value Section */
.customer-value {
  background-color: #fff;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-icon {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 1.5rem;
}

.value-item h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 1rem;
}

.value-item p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Global Partners Section */
.partners {
  background-color: #f8f9fa;
}

.partners-container {
  margin-top: 40px;
  position: relative;
  min-height: 200px;
  overflow: hidden;
  padding-bottom: 50px; /* Space for navigation buttons */
}

/* Add a fade-in/fade-out mask to enhance visual effect */
.partners-container::before,
.partners-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.partners-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(248, 249, 250, 1),
    rgba(248, 249, 250, 0)
  );
}

.partners-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(248, 249, 250, 1),
    rgba(248, 249, 250, 0)
  );
}

.partner-logo {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.partner-logo:hover {
  transform: translateY(-5px);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 4px;
}

/* Partner Group Styles */
.partner-group {
  display: none;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.partner-group.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.partner-group.slide-left-out {
  animation: slideLeftOut 0.4s forwards;
  display: block;
}

.partner-group.slide-right-in {
  animation: slideRightIn 0.4s forwards;
  display: block;
}

.partner-group.slide-right-out {
  animation: slideRightOut 0.4s forwards;
  display: block;
}

.partner-group.slide-left-in {
  animation: slideLeftIn 0.4s forwards;
  display: block;
}

@keyframes slideLeftOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideRightIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRightOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideLeftIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Navigation Control Styles */
.partner-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.partner-nav-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.partner-nav-btn:hover {
  background-color: #aaa;
}

.partner-nav-btn.active {
  background-color: #0d6efd;
  transform: scale(1.2);
}

.partner-nav-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 110, 253, 0.3);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.partner-nav-btn:active::after {
  transform: scale(2.5);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .advantage-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .intro-content {
    padding: 0 15px;
  }

  .advantage-item {
    margin-bottom: 20px;
  }

  .advantage-image {
    height: 200px;
  }

  .advantage-content {
    padding: 1.5rem;
  }

  .advantage-content h3 {
    font-size: 1.3rem;
  }

  .service-item {
    padding: 1.5rem;
    margin-bottom: 20px;
  }

  .service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .value-item {
    padding: 1.5rem;
    margin-bottom: 20px;
  }

  .value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .partner-logo {
    height: 120px;
    padding: 15px;
    margin-bottom: 20px;
  }

  .partner-logo img {
    max-height: 80px;
  }

  .partner-nav {
    margin-top: 10px;
  }

  .partner-nav-btn {
    width: 10px;
    height: 10px;
  }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
  .partner-logo {
    height: 100px;
    padding: 10px;
    margin-bottom: 15px;
  }

  .partner-logo img {
    max-height: 70px;
  }

  .partners-container {
    padding-bottom: 40px;
  }
}

/* Fancy Introduction Box */
.fancy-intro {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #0d6efd;
}

.fancy-intro h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.fancy-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #666;
}

.fancy-intro strong {
  color: #0d6efd;
  font-weight: 600;
}
