:root {
  --primary-color: #0323e9; /* Green from the logo */
  --secondary-color: #ee4105; /* Blue from the logo */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* General Styles */
body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

section {
  padding: 60px 0;
}

.section-subtitle {
  color: var(--gray-color);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.btn-primary {
  background-color: #db6e03;
  border-color: #edb621bd;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  z-index: -1;
}

.btn-primary:hover:before {
  width: 100%;
}

.btn-outline-primary {
  color: #00A651;
  border-color: #00A651;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 166, 81, 0.1);
  transition: all 0.3s;
  z-index: -1;
}

.btn-outline-primary:hover:before {
  width: 100%;
}

.btn-link {
  color: var(--primary-color);
  padding: 0;
  font-weight: 600;
}

.btn-link:hover {
  color: var(--secondary-color);
}

/* Navbar */
.navbar {
  padding: 15px 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar-scroll {
  padding: 10px 0;
}

.navbar-brand {
  padding: 0;
  margin-right: 20px;
}

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar .contact-btn {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-left: 12px;
}

.navbar .contact-btn:hover {
  background-color: #0d6e4e;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .contact-btn.active {
  background-color: #db6e03;
  color: white !important;
}

/* Hero Section - Increased Height */
.hero {
  padding-top: 150px; /* Increased top padding */
  padding-bottom: 150px; /* Increased bottom padding */
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.05), rgba(0, 111, 185, 0.05));
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Kept divider height */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f0f8f5'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.hero-buttons .btn {
  min-width: 180px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background-color: #00A651;
  border-color: #00A651;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus {
  background-color: #008a44;
  border-color: #008a44;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.3);
}

.hero-buttons .btn-outline-primary {
  color: #00A651;
  border-color: #00A651;
  background-color: white;
}

.hero-buttons .btn-outline-primary:hover,
.hero-buttons .btn-outline-primary:focus {
  background-color: rgba(0, 166, 81, 0.1);
  color: #00A651;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.15);
}

/* Page Header (for inner pages) */
.page-header {
  padding-top: 160px;
  padding-bottom: 60px;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.compact-header {
  padding-top: 130px;
  padding-bottom: 40px;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.page-header .lead {
  position: relative;
  z-index: 2;
}

.header-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  opacity: 0.6;
}

/* Partners Section */
.partners {
  padding: 70px 0;
  background-color: var(--light-color);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-heading {
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.partners .section-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: var(--gray-color);
  margin-bottom: 3rem;
  font-weight: 400;
  text-align: center;
}

.partners-slider {
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: -10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.partners-row::-webkit-scrollbar {
  display: none;
}

.partner-item {
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 80px;
  min-width: 160px;
  flex: 0 0 auto;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-item img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Special styling for specific partner items */
.partner-item:nth-child(3), 
.partner-item:nth-child(4) {
  background-color: transparent;
  box-shadow: none;
}

/* Special sizing for some logos */
.partner-item:nth-child(1) img {
  max-height: 55px;
  transform: scale(1.7); /* 进一步放大第一个logo */
}

.partner-item:nth-child(2) img {
  max-height: 55px;
  transform: scale(1.4); /* 进一步放大第二个logo */
  margin: 0;
  object-fit: contain;
}

.partner-item:nth-child(3) img {
  max-height: 70px; /* Reduce height for grainsmart */
  transform: scale(1.4); /* Scale down the grainsmart logo */
  margin: -5px 0; /* Adjust vertical position */
}

.partner-item:nth-child(4) img {
  max-height: 65px; /* Reduce height for momoyo */
  transform: scale(1.35); /* Scale down the momoyo logo */
  padding: 0;
  margin: -8px 0; /* Adjust vertical position */
}

.partner-item:nth-child(5) img {
  max-height: 50px; /* 增加高度以便放大内容 */
  transform: scale(1.6); /* 放大COTTI图片内容 */
  margin: 0; /* 居中显示 */
  object-fit: contain; /* 确保图片保持比例 */
}

.partner-item:nth-child(6) img {
  max-height: 65px; /* Larger for the last partner */
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .partners {
    padding: 50px 0;
  }
  
  .partners-row {
    gap: 20px;
  }
  
  .partner-item {
    min-width: 140px;
    height: 70px;
    padding: 10px 15px;
  }

  .partner-item img {
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  .partners {
    padding: 40px 0;
  }
  
  .partners-heading {
    font-size: 1.5rem;
  }
  
  .partners .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .partners-row {
    gap: 15px;
  }
  
  .partner-item {
    min-width: 120px;
    height: 60px;
    padding: 8px 12px;
  }
  
  .partner-item img {
    max-height: 45px;
  }
}

/* Solutions Section - PayMongo Style */
.solutions {
  padding-top: 70px; /* Reduced top padding to match new divider */
  padding-bottom: 80px;
  position: relative;
  background-color: #f9fafb;
  margin-top: -1px;
  z-index: 5;
}

.solutions .section-subtitle {
  color: #4B5563;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 1.5rem;
}

.solutions-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0; /* Reverted */
  margin: 30px 0; /* Reverted */
}

.solutions-scroll-wrapper {
  display: flex;
  overflow-x: auto; /* Reverted to allow user scroll */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 15px;
  margin: 0; /* Reverted */
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 24px;
  /* Removed: padding-left: calc((100vw - 1200px) / 2); */
}

.solutions-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* Remove animation and hover pause */
/* @keyframes solutionsAutoScroll ... */
/* .solutions-scroll-container:hover .solutions-scroll-wrapper ... */

.solution-card {
  /* Revert to original card styles */
  flex: 0 0 auto;
  min-width: 380px;
  width: 380px;
  padding: 30px 40px 40px;
  background-color: #f3f9f4;
  border-radius: 24px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  text-align: left;
  margin-right: 0;
  opacity: 1;
  transform: translateY(0);
  height: 450px; /* 固定高度 */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Hover effect for individual cards (optional) */
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.solution-card .solution-image-container {
  margin-bottom: 10px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
}

.solution-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  transform: scale(1.1);
}

/* 适应不同图片的特殊样式 */
.solution-card:first-child .solution-image {
  transform: scale(1.3);
}

.solution-card:nth-child(2) .solution-image {
  transform: scale(1.3);
}

.solution-card:nth-child(5) .solution-image {
  transform: scale(1.0);
}

/* QRPh specific styling */
.solution-card:nth-child(3) .solution-image {
  transform: scale(1.0);
}

.solution-card h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
  line-height: 1.2;
  margin-top: auto;
  padding-top: 20px;
}

.solution-card p:not(.lead) {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.5; 
  margin-bottom: 0.75rem; 
  /* Ensure text is not clamped */
  overflow: visible !important; 
  display: block !important; 
  -webkit-line-clamp: initial !important;
  -webkit-box-orient: initial !important;
  max-height: none !important;
}

.solution-card .btn-link {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-weight: 600;
  color: #00A651;
  padding: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
}

.solution-card .btn-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.solution-card:hover .btn-link i {
  transform: translateX(5px);
}

.solution-icon-container {
  display: none;
}

/* Features Section */
.features {
  padding: 60px 0 80px;
  background-color: #fff;
}

.features .section-subtitle {
  margin-bottom: 40px;
  color: #4b5563;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  background-color: var(--light-color);
  border-radius: 16px;
}

.feature-item h4 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #111827;
}

.feature-item p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Payment Methods Section - Styles based on Screenshot */
.payment-methods {
  background-color: #f8f9fa; /* Light background for the section */
  padding: 80px 0;
}

.payment-methods h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.payment-methods .section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 3rem;
  text-align: center;
}

.payment-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Enforce 2 columns */
  gap: 30px;
  max-width: 1140px; /* Limit width for better layout */
  margin: 0 auto; /* Center the grid */
}

.payment-category {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.payment-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.payment-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color); /* Green title */
  margin-bottom: 0.75rem;
  padding-left: 0; /* Ensure left alignment */
}

.payment-category p {
  font-size: 1rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Allow description to take space */
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: auto; /* Push logos to the bottom */
}

.payment-logo-item {
  background-color: #ffffff; /* Match card background */
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65px; /* Increased */
  flex: 0 0 auto; /* Don't grow/shrink, rely on gap */
  min-width: 80px;
  transition: background-color 0.3s ease;
  border: 1px solid #f0f0f0; /* Subtle border */
}

.payment-logo-item:hover {
  background-color: #f8f9fa; /* Light background on hover */
}

.payment-logo {
  max-height: 40px; /* Increased */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0%); /* Show in full color */
  opacity: 1;
  transition: transform 0.3s ease;
}

.payment-logo-item:hover .payment-logo {
   transform: scale(1.05);
}

.payment-methods-note {
  color: #6c757d;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .payment-categories {
    gap: 25px;
  }
  .payment-category {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .payment-methods {
    padding: 60px 0;
  }
  .payment-categories {
    grid-template-columns: 1fr; /* Stack on smaller screens */
    gap: 20px;
  }
  .payment-category {
    padding: 20px;
  }
  .payment-logo-item {
    height: 55px; /* Increased */
  }
  .payment-logo {
    max-height: 35px; /* Increased */
  }
}

/* Business Section */
.business {
  background-color: white;
  position: relative;
  padding-bottom: 100px; /* Increase bottom padding */
  margin-bottom: 0;
}

.business-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.business-feature i {
  color: var(--primary-color);
  font-size: 20px;
  margin-right: 15px;
}

.business::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f8f9fa' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23f8f9fa' opacity='.5'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23f8f9fa'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

#about {
  background-color: var(--light-color);
  position: relative;
  padding-top: 80px;
  margin-top: 0;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 166, 81, 0.03) 0%, rgba(0, 111, 185, 0.03) 90%);
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 2;
}

/* Animate stats when in view */
.about-stats .stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-stats .stat-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.about-stats .stat-item:nth-child(1) {
  transition-delay: 0.1s;
}

.about-stats .stat-item:nth-child(2) {
  transition-delay: 0.3s;
}

.about-stats .stat-item:nth-child(3) {
  transition-delay: 0.5s;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.testimonial-author h5 {
  margin-bottom: 0;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--gray-color);
}

/* About Section */
.about-stats {
  display: flex;
  gap: 30px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--gray-color);
  margin: 0;
}

/* CTA Section */
.cta {
  background: var(--gradient-primary);
  color: white;
  padding: 60px 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  margin-top: 2rem;
}

/* Contact Section */
.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 20px;
  color:  #db6e03;
  margin-right: 15px;
  width: 20px;
}

/* 美化社交媒体图标 */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  margin-right: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-links a.social-icon i {
  font-size: 18px;
}

.footer .social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer .social-links a:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Contact Page Styles */
.contact-page {
  padding: 80px 0;
}

.contact-page .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-page .contact-item i {
  font-size: 24px;
  color: #db6e03;
  margin-right: 20px;
  width: 24px;
}

.contact-page .contact-item h5 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-page .contact-item p {
  margin-bottom: 5px;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-placeholder {
  background-color: white;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px dashed var(--gray-color);
  border-radius: var(--border-radius);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.faq-item {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
}

.faq-item h5 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.faq-item p {
  margin-bottom: 0;
  color: var(--gray-color);
}

/* Pricing Section */
.pricing {
  background-color: var(--light-color);
  padding: 100px 0;
}

.pricing-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom-left-radius: var(--border-radius);
}

.pricing-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
}

.pricing-header h3 {
  margin-bottom: 15px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.currency {
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: 5px;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: var(--gray-color);
  margin-left: 5px;
}

.custom-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-body {
  padding: 30px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.pricing-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.pricing-features i {
  color: var(--primary-color);
  margin-right: 10px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Feature List Styles for Solutions Page */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.feature-list li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.solutions-detail {
  padding: 80px 0;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
}

.footer-logo-container {
  margin-bottom: 10px;
}

.footer-logo {
  width: auto;
  height: 60px;
  max-width: 100%;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a, .footer-links span {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover, .footer-links span:hover {
  color: white;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0 20px;
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Animation delay for staggered effect */
.solution-card:nth-child(1),
.feature-item:nth-child(1),
.testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}

.solution-card:nth-child(2),
.feature-item:nth-child(2),
.testimonial-card:nth-child(2) {
  transition-delay: 0.2s;
}

.solution-card:nth-child(3),
.feature-item:nth-child(3),
.testimonial-card:nth-child(3) {
  transition-delay: 0.3s;
}

.feature-item:nth-child(4) {
  transition-delay: 0.4s;
}

/* Responsive Styles */
@media (max-width: 992px) {
  section {
    padding: 50px 0;
  }
  
  .compact-header {
    padding-top: 110px;
    padding-bottom: 30px;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 100px;
  }
  
  .hero::after {
    height: 60px;
  }
  
  .industry-section::after {
    height: 40px;
  }
  
  .solutions {
    padding-top: 60px;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
  
  .navbar .contact-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    display: inline-block;
    margin-top: 10px;
  }
  
  .solutions-section {
    padding: 25px 0 40px !important;
  }
}

@media (max-width: 768px) {
  .navbar .btn {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
  
  .partners-logos img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    opacity: 1;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(1.05);
  }
  
  /* Special sizing for UnionBank logo on mobile */
  .partners-logos img[src*="partner3"] {
    height: 60px;
  }
  
  .partners-logos .col {
    min-height: 80px;
    padding: 10px 15px;
  }
  
  .testimonial-card {
    margin-bottom: 30px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header .lead {
    font-size: 1rem;
  }
  
  .solution-card {
    min-width: 300px;
    width: 300px;
    height: 400px;
    padding: 32px;
  }
  
  .solutions-scroll-wrapper {
    padding-left: 20px;
  }
  
  .solution-image-container {
    height: 140px;
    margin-bottom: 24px;
  }
  
  .solution-image {
    height: 140px;
  }
  
  .solution-card h3 {
    font-size: 24px;
  }
  
  .solution-card p {
    font-size: 15px;
  }
  
  .solution-card .btn-link {
    font-size: 15px;
    bottom: 32px;
    left: 32px;
  }
  
  .solutions-section {
    padding: 20px 0 30px !important;
  }
  
  .cta {
    padding: 40px 0;
  }
}

/* Mega Menu Dropdown Styles */
.mega-menu-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: #f8f9fa;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #00A651;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.mega-menu-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* 确保下拉菜单图标显示 */
.nav-link.dropdown-toggle::after {
  display: inline-block !important;
}

/* 解决navbar特定问题 */
.navbar .mega-menu-dropdown {
  position: static; /* 正确的位置是static，使mega-menu可以跨越整个navbar */
}

.navbar .mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1030; /* 确保在其他元素之上 */
}

/* 修复悬停问题 */
.navbar .nav-item.mega-menu-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 针对Bootstrap 5的下拉菜单修复 */
.dropdown-menu {
  margin-top: 0;
}

.dropdown-toggle[aria-expanded="true"] + .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-title {
  color: #00A651;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list li {
  margin-bottom: 0.75rem;
}

.mega-menu-list a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.mega-menu-list a:hover {
  color: #00A651;
  transform: translateX(3px);
}

.mega-menu-list a i {
  margin-right: 8px;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 166, 81, 0.1);
  border-radius: 4px;
  color: #00A651;
}

.mega-menu-card {
  background-color: white;
  padding: 1.25rem;
  border-radius: 8px;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

.mega-menu-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.mega-menu-card p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.mega-menu-promo {
  background-color: #00A651;
  padding: 1.25rem;
  border-radius: 8px;
  height: 100%;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mega-menu-promo h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
}

.mega-menu-promo p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.mega-menu .row {
  row-gap: 1rem;
}

/* Mobile Dropdown Toggle */
@media (max-width: 992px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .mobile-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
}

/* Horizontal Scroll for Solutions Section */
.solutions {
  background-color: #f9fafb;
  padding: 80px 0;
}

.solutions-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0; /* Reverted */
  margin: 30px 0; /* Reverted */
}

.solutions-scroll-wrapper {
  display: flex;
  overflow-x: auto; /* Reverted to allow user scroll */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 15px;
  margin: 0; /* Reverted */
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 24px;
  /* Removed: padding-left: calc((100vw - 1200px) / 2); */
}

.solutions-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.solutions-scroll-wrapper .solution-card {
  flex: 0 0 auto;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.solutions-scroll-wrapper .solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 166, 81, 0.1);
}

@media (max-width: 768px) {
  .solution-card {
    min-width: 85%;
    width: 85%;
  }
  /* Adjust padding for mobile if needed */
  .solutions-scroll-wrapper {
    padding: 10px 15px;
  }
}

/* 确保文字颜色始终为白色 */
.navbar-nav .nav-item .contact-btn,
.navbar-nav .nav-item .contact-btn:focus,
.navbar-nav .nav-item .contact-btn:active {
  color: white !important;
}

.tech-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  background: linear-gradient(90deg, #14B8A6 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.tech-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #14B8A6 0%, #0EA5E9 100%);
  border-radius: 3px;
}

/* 为锚点添加滚动边距，防止导航栏遮挡 */
#technical-features {
  scroll-margin-top: 100px;
}

.mega-menu-list span {
  color: var(--dark-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.mega-menu-list span i {
  margin-right: 8px;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 4px;
  color: var(--primary-color);
}

/* Solutions Cards - Enhanced */
.solution-card {
  transition: all 0.3s ease;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 166, 81, 0.2);
}

.solution-card .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 8px rgba(0, 166, 81, 0.3);
}

.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.solution-card .lead {
  color: var(--primary-color);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.solution-card p:not(.lead) {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.5; 
  margin-bottom: 0.75rem; 
  /* Ensure text is not clamped */
  overflow: visible !important; 
  display: block !important; 
  -webkit-line-clamp: initial !important;
  -webkit-box-orient: initial !important;
  max-height: none !important;
}

.solution-card .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 6px;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.solution-card .feature-item:hover {
  background-color: #fff;
  transform: translateX(3px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 166, 81, 0.2);
}

.solution-card .feature-item i {
  font-size: 12px;
  color: #fff;
  background-color: var(--primary-color);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 166, 81, 0.25);
}

.solution-card .feature-item span {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: #333;
}

.solution-card .feature-area {
  background-color: #f8f9fa; /* Light background */
  border-radius: 8px;
  padding: 1rem; /* Adjusted padding */
  margin-top: 1rem; /* Reduced */
  border-left: 3px solid var(--primary-color);
}

.solution-card .feature-title {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.85rem; /* Reduced */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem; /* Reduced */
  position: relative;
  padding-left: 1.2em; 
}

.solution-card .feature-title:before {
  content: '\2022'; /* Bullet point */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.2em; 
}

.solution-card .feature-tags {
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gap, rely on margin */
}

.solution-card .feature-tag {
  display: inline-flex; /* Changed to inline-flex */
  align-items: center;
  background-color: #ffffff;
  color: var(--dark-color);
  padding: 0.3rem 0.7rem; /* Reduced */
  border-radius: 20px;
  font-size: 0.8rem; /* Reduced */
  font-weight: 500;
  margin-bottom: 0.35rem; /* Reduced */
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  width: fit-content; /* Fit content width */
}

.solution-card .feature-tag:last-child {
  margin-bottom: 0;
}

.solution-card .feature-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: scale(1.03);
}

.solution-card .feature-tag i {
  color: var(--primary-color);
  margin-right: 0.5rem; /* Adjusted margin */
  font-size: 0.8em; 
}

.solution-card .feature-tag span {
  line-height: 1.3;
}

.solution-card .btn-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  padding: 4px 0;
  font-size: 0.9rem;
}

.solution-card .btn-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Adjust spacing for solutions section */
.py-5.solutions-section {
  padding-top: 40px !important;
  padding-bottom: 60px !important;
  background-color: #f8f9fa;
}

/* Row spacing for solution cards */
.row.solution-cards-row {
  row-gap: 20px;
}

/* 调整所有部分的内边距 */
section {
  padding: 60px 0;
}

.solutions-section {
  padding: 30px 0 50px !important;
  background-color: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 992px) {
  section {
    padding: 50px 0;
  }
  
  .compact-header {
    padding-top: 110px;
    padding-bottom: 30px;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }

  .solutions-section {
    padding: 25px 0 40px !important;
  }
}

@media (max-width: 767px) {
  .solution-card {
    height: auto !important;
  }
  
  .solution-card .icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .py-5.solutions-section {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
  }
  
  .solution-card .feature-item {
    padding: 6px 8px;
    gap: 10px;
  }
  
  .solution-card .feature-item i {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .solution-card .feature-item span {
    font-size: 0.85rem;
  }
  
  .solution-card .feature-area {
    padding: 12px;
  }
  
  .solution-card .feature-tags {
    gap: 6px;
  }
  
  .solution-card .feature-tag {
    padding: 4px 8px;
  }
  
  .solution-card .feature-tag i {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }
  
  .solution-card .feature-tag span {
    font-size: 0.75rem;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
  /* Navbar adjustments */
  .navbar {
    padding: 10px 15px;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navbar > .container {
    position: relative;
    padding-right: 60px; /* 为按钮留出空间 */
    display: flex;
    align-items: center;
  }
  
  .navbar-brand {
    margin-right: 0;
    flex: 1;
    max-width: 70%;
  }
  
  .navbar-brand img {
    height: 40px;
    max-width: 100%;
  }
  
  .navbar-toggler {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background-color: white;
    z-index: 1050;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: block !important;
    margin-left: auto;
  }
  
  .navbar-toggler-icon {
    width: 1.4em;
    height: 1.4em;
    background-size: 100%;
    display: block !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  
  /* 调整手机上的hero区域距离 */
  .hero {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #333 !important;
  }
  
  .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 166, 81, 0.1);
  }
  
  .navbar .contact-btn {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
  }
  
  .navbar .contact-btn:hover, 
  .navbar .contact-btn.active {
    background-color: #008a44;
    color: white !important;
  }
  
  .mega-menu-dropdown .nav-link::after {
    float: right;
    margin-top: 0.5rem;
  }
  
  /* Hero section adjustments */
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  /* Solutions section adjustments */
  .solutions-scroll-container {
    padding: 0 1rem;
  }
  
  .solution-card {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .solution-image-container {
    height: 120px;
  }
  
  /* Features section adjustments */
  .feature-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 3rem 1rem;
  }
  
  .footer-logo {
    height: 40px;
  }
  
  .footer-links {
    margin-top: 1rem;
  }
  
  .footer-links li {
    margin: 0.5rem 0;
  }
  
  /* Certificate section adjustments */
  .d-flex.align-items-center.mb-3 {
    flex-direction: column;
    text-align: center;
  }
  
  .d-flex.align-items-center.mb-3 img {
    margin-bottom: 1rem;
  }
  
  /* Modal adjustments */
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-body img {
    max-width: 100%;
    height: auto;
  }
}

/* Remove dark mode for navbar on mobile */
@media (max-width: 991.98px) {
  @media (prefers-color-scheme: dark) {
    .navbar-light {
      background-color: white !important;
    }
    
    .navbar-light .navbar-brand,
    .navbar-light .nav-link {
      color: #333 !important;
    }
    
    .navbar-light .navbar-toggler {
      border-color: rgba(0, 0, 0, 0.1);
    }
    
    .navbar-light .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar .contact-btn {
      background-color: var(--primary-color);
      color: white !important;
    }
    
    .navbar .contact-btn:hover, 
    .navbar .contact-btn.active {
      background-color: #008a44;
      color: white !important;
    }
  }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .solution-card h3 {
    font-size: 1.25rem;
  }
  
  .feature-item h4 {
    font-size: 1.1rem;
  }
  
  .footer h5 {
    font-size: 1.1rem;
  }
  
  .copyright {
    text-align: center;
  }
  
  .copyright p {
    margin: 0.5rem 0;
  }
}

/* Fix for mega menu on mobile */
@media (max-width: 991.98px) {
  .mega-menu {
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin-top: 0.5rem;
  }
  
  .mega-menu .container {
    padding: 0;
  }
  
  .mega-menu .row {
    margin: 0;
  }
  
  .mega-menu .col-lg-6,
  .mega-menu .col-lg-3 {
    padding: 0.5rem;
  }
  
  .mega-menu-card,
  .mega-menu-promo {
    margin-bottom: 1rem;
  }
  
  .mega-menu-list {
    padding-left: 1rem;
  }
}

/* Fix for partners section on mobile */
@media (max-width: 991.98px) {
  .partners-slider {
    padding: 0 1rem;
  }
  
  .partner-item {
    padding: 0.5rem;
  }
  
  .partner-item img {
    max-height: 40px;
    width: auto;
  }
}

/* Fix for contact form on mobile */
@media (max-width: 991.98px) {
  .contact-form {
    padding: 1rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .contact-item {
    margin-bottom: 1rem;
  }
}

/* Fix for CTA section on mobile */
@media (max-width: 991.98px) {
  .cta {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #00A651, #006fb9);
    text-align: center;
  }
  
  .cta h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
  }
  
  .cta p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .cta-buttons .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    border-radius: 8px;
  }
  
  .cta-buttons .btn-light {
    background-color: white;
    color: #00A651;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
  }
  
  .cta-buttons .btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
  }
}

/* Fix for business section on mobile */
@media (max-width: 991.98px) {
  .business-feature {
    margin-bottom: 0.75rem;
  }
  
  .business-feature i {
    font-size: 1.1rem;
  }
  
  .business-feature span {
    font-size: 0.9rem;
  }
}

/* Fix for about section on mobile */
@media (max-width: 991.98px) {
  .about-stats {
    margin-top: 2rem;
  }
  
  .stat-item {
    margin-bottom: 1.5rem;
  }
  
  .stat-item h3 {
    font-size: 1.75rem;
  }
  
  .stat-item p {
    font-size: 0.9rem;
  }
}

/* Fix for solutions section on mobile */
@media (max-width: 991.98px) {
  .solution-cards-row {
    margin: 0;
  }
  
  .solution-card {
    margin-bottom: 1.5rem;
  }
  
  .feature-tags {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .feature-tag {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Fix for page headers on mobile */
@media (max-width: 991.98px) {
  .page-header {
    padding: 4rem 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header .lead {
    font-size: 1.1rem;
  }
}

/* Fix for mega menu dropdowns on mobile */
@media (max-width: 991.98px) {
  .mega-menu-dropdown {
    position: static;
  }
  
  .mega-menu-dropdown .nav-link {
    padding-right: 2rem;
  }
  
  .mega-menu-dropdown .nav-link::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .mega-menu-dropdown .mega-menu {
    display: none;
    padding-left: 1rem;
  }
  
  .mega-menu-dropdown.show .mega-menu {
    display: block;
  }
}

/* Fix for social links on mobile */
@media (max-width: 991.98px) {
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin: 0 0.5rem;
  }
}

/* Fix for buttons on mobile */
@media (max-width: 991.98px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Fix for images on mobile */
@media (max-width: 991.98px) {
  .img-fluid {
    max-width: 100%;
    height: auto;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .about-image {
    margin-bottom: 2rem;
  }
}

/* Fix for spacing on mobile */
@media (max-width: 991.98px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .mb-5 {
    margin-bottom: 3rem !important;
  }
  
  .mt-5 {
    margin-top: 3rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Fix for grid system on mobile */
@media (max-width: 991.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Fix for text alignment on mobile */
@media (max-width: 991.98px) {
  .text-md-end {
    text-align: center !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
}

/* Fix for container padding on mobile */
@media (max-width: 991.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Fix for form elements on mobile */
@media (max-width: 991.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .form-check-label {
    font-size: 0.9rem;
  }
}

/* Fix for badges on mobile */
@media (max-width: 991.98px) {
  .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
  }
}

/* Fix for icons on mobile */
@media (max-width: 991.98px) {
  .icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .fas, .far, .fab {
    font-size: 1.1rem;
  }
}

/* Fix for shadows on mobile */
@media (max-width: 991.98px) {
  .shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }
  
  .shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  }
}

/* Fix for borders on mobile */
@media (max-width: 991.98px) {
  .border {
    border-width: 1px !important;
  }
  
  .rounded {
    border-radius: 0.5rem !important;
  }
}

/* Fix for spacing utilities on mobile */
@media (max-width: 991.98px) {
  .ms-3 {
    margin-left: 1rem !important;
  }
  
  .me-3 {
    margin-right: 1rem !important;
  }
  
  .mt-3 {
    margin-top: 1rem !important;
  }
  
  .mb-3 {
    margin-bottom: 1rem !important;
  }
  
  .p-3 {
    padding: 1rem !important;
  }
}

/* Fix for flex utilities on mobile */
@media (max-width: 991.98px) {
  .d-flex {
    flex-wrap: wrap;
  }
  
  .align-items-center {
    align-items: flex-start !important;
  }
  
  .justify-content-center {
    justify-content: center !important;
  }
}

/* Fix for visibility on mobile */
@media (max-width: 991.98px) {
  .d-none {
    display: none !important;
  }
  
  .d-block {
    display: block !important;
  }
  
  .d-flex {
    display: flex !important;
  }
}

/* Fix for overflow on mobile */
@media (max-width: 991.98px) {
  .overflow-hidden {
    overflow: hidden !important;
  }
  
  .overflow-auto {
    overflow: auto !important;
  }
}

/* Fix for position on mobile */
@media (max-width: 991.98px) {
  .position-relative {
    position: relative !important;
  }
  
  .position-absolute {
    position: absolute !important;
  }
  
  .position-fixed {
    position: fixed !important;
  }
}

/* Fix for z-index on mobile */
@media (max-width: 991.98px) {
  .z-0 {
    z-index: 0 !important;
  }
  
  .z-1 {
    z-index: 1 !important;
  }
  
  .z-2 {
    z-index: 2 !important;
  }
  
  .z-3 {
    z-index: 3 !important;
  }
}

/* Fix for transitions on mobile */
@media (max-width: 991.98px) {
  .transition {
    transition: all 0.3s ease-in-out !important;
  }
}

/* Fix for animations on mobile */
@media (max-width: 991.98px) {
  .fade {
    opacity: 1 !important;
  }
  
  .show {
    display: block !important;
  }
}

/* Fix for modal backdrop on mobile */
@media (max-width: 991.98px) {
  .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
  }
}

/* Fix for scrollbar on mobile */
@media (max-width: 991.98px) {
  ::-webkit-scrollbar {
    width: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

/* Fix for touch targets on mobile */
@media (max-width: 991.98px) {
  a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
}

/* Fix for form focus states on mobile */
@media (max-width: 991.98px) {
  .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
}

/* Fix for text selection on mobile */
@media (max-width: 991.98px) {
  ::selection {
    background: rgba(0, 123, 255, 0.25);
    color: #000;
  }
}

/* Fix for tap highlight on mobile */
@media (max-width: 991.98px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Fix for viewport height on mobile */
@media (max-width: 991.98px) {
  .vh-100 {
    height: 100vh !important;
    height: -webkit-fill-available !important;
  }
}

/* Fix for safe areas on mobile */
@media (max-width: 991.98px) {
  .safe-top {
    padding-top: env(safe-area-inset-top);
  }
  
  .safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .safe-left {
    padding-left: env(safe-area-inset-left);
  }
  
  .safe-right {
    padding-right: env(safe-area-inset-right);
  }
}

/* Fix for orientation on mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
  .navbar-collapse {
    max-height: 80vh;
  }
  
  .hero {
    min-height: 80vh;
  }
}

/* Fix for high contrast mode on mobile */
@media (max-width: 991.98px) {
  @media (prefers-contrast: high) {
    .btn-primary {
      background-color: #0056b3;
      border-color: #0056b3;
    }
    
    .btn-outline-primary {
      color: #0056b3;
      border-color: #0056b3;
    }
  }
}

/* Fix for reduced motion on mobile */
@media (max-width: 991.98px) {
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* Fix for dark mode on mobile */
@media (max-width: 991.98px) {
  @media (prefers-color-scheme: dark) {
    .navbar-light {
      background-color: #212529;
    }
    
    .navbar-light .navbar-brand,
    .navbar-light .nav-link {
      color: #fff;
    }
    
    .navbar-light .navbar-toggler {
      border-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-light .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
  }
}

/* Fix for print styles on mobile */
@media print {
  .navbar,
  .footer,
  .cta,
  .modal,
  .btn {
    display: none !important;
  }
  
  body {
    padding: 0;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  .row {
    display: block;
    margin: 0;
  }
  
  [class*="col-"] {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Mobile specific button optimizations */
@media (max-width: 991.98px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 0 1rem;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
  }
  
  /* Contact Us button */
  .hero-buttons .btn-primary {
    margin-bottom: 0;
    background-color: #00A651;
    border-color: #00A651;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 166, 81, 0.2);
  }
  
  /* Explore Solutions button */
  .hero-buttons .btn-outline-primary {
    background-color: white;
    color: #00A651;
    border: 2px solid #00A651;
  }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
  .hero-buttons {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .hero-buttons .btn {
    padding: 16px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

/* Fix for buttons on very small devices */
@media (max-width: 320px) {
  .hero-buttons .btn {
    padding: 14px;
    font-size: 0.95rem;
  }
}

/* Hero button spacing and layout fix for mobile */
@media (max-width: 991.98px) {
  .hero {
    text-align: center;
    padding-top: 160px;
    padding-bottom: 4rem;
  }
  
  .hero-buttons {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-width: 2px;
    background-color: #00A651;
    color: white;
    border-color: #00A651;
    box-shadow: 0 4px 10px rgba(0, 166, 81, 0.3);
  }
  
  .hero-buttons .btn-outline-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border-width: 2px;
    background-color: #00A651;
    color: white;
    border-color: #00A651;
    box-shadow: 0 4px 10px rgba(0, 166, 81, 0.3);
  }
}

/* 只针对移动端的按钮样式，不影响web端 */
@media (max-width: 767px) {
  /* CTA section specific mobile styles */
  .cta-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .cta-buttons .btn {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
  }
  
  .cta-buttons .btn-light {
    margin-bottom: 16px; /* 增加第一个按钮的底部边距 */
  }
  
  .cta-buttons .btn-outline-light {
    background-color: transparent;
    border: 2px solid white;
  }
}

/* 保持桌面版按钮样式不变 */
@media (min-width: 768px) {
  .cta-buttons .btn {
    margin-right: 10px;
  }
  
  .cta-buttons .btn:last-child {
    margin-right: 0;
  }
}

/* 桌面端按钮样式 */
@media (min-width: 768px) {
  .hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 150px;
    margin: 0;
  }
  
  /* 左侧绿色按钮 */
  .hero-buttons .btn-primary {
    background-color: #00A651;
    color: white;
    border-color: #00A651;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* 右侧白色按钮 */
  .hero-buttons .btn-outline-primary {
    background-color: transparent;
    color: #00A651;
    border-color: #00A651;
    border-width: 2px;
  }
  
  .hero-buttons .btn-primary:hover {
    background-color: #008a44;
    border-color: #008a44;
  }
  
  .hero-buttons .btn-outline-primary:hover {
    background-color: rgba(0, 166, 81, 0.1);
    color: #00A651;
  }
}

/* 移动端导航栏优化 - 完全禁止子菜单显示 */
@media (max-width: 991.98px) {
  /* 隐藏所有子菜单内容 */
  .navbar-nav .dropdown-menu,
  .navbar-nav .mega-menu,
  .mega-menu-dropdown .mega-menu,
  .navbar-nav .dropdown .mega-menu-title,
  .navbar-nav .dropdown-menu .container,
  .navbar-nav .dropdown-menu .row {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }
  
  /* 阻止下拉菜单的交互 */
  .navbar-nav .dropdown-toggle[aria-expanded="true"] + .mega-menu,
  .navbar-nav .dropdown-toggle[aria-expanded="true"] + .dropdown-menu,
  .navbar-nav .dropdown.show .mega-menu,
  .navbar-nav .dropdown.show .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* 防止Bootstrap的展开行为 */
  .navbar-nav .nav-item.dropdown,
  .navbar-nav .nav-item.mega-menu-dropdown {
    position: relative;
  }
  
  .navbar-nav .nav-item.dropdown > .nav-link,
  .navbar-nav .nav-item.mega-menu-dropdown > .nav-link {
    pointer-events: auto !important; /* Ensure parent links are clickable */
  }
  
  /* 移除下拉箭头 */
  .navbar-nav .dropdown-toggle::after,
  .navbar-nav .mega-menu-dropdown .nav-link::after {
    display: none !important;
    visibility: hidden !important;
  }
}

/* 调整移动端页面头部的顶部间距 */
@media (max-width: 991.98px) {
  .page-header {
    padding-top: 180px !important; /* Increased top padding */
    padding-bottom: 50px !important;
  }

  .compact-header {
      padding-top: 160px !important; /* Increased top padding */
      padding-bottom: 40px !important;
  }

  /* 页面标题 */
  .page-header h1,
  .compact-header h1 {
      font-size: 2.2rem;
      margin-top: 10px;
  }
}

/* 确保特定的小屏幕尺寸也有足够间距 */
@media (max-width: 767.98px) {
  .page-header {
    padding-top: 140px !important;
  }
}

/* 增加移动端页面头部的顶部间距 */
@media (max-width: 991.98px) {
  /* 普通页面头部 */
  .page-header {
    padding-top: 180px !important;
    padding-bottom: 50px !important;
  }
  
  /* 紧凑型页面头部 */
  .compact-header {
    padding-top: 160px !important;
    padding-bottom: 40px !important;
  }
  
  /* 页面标题 */
  .page-header h1,
  .compact-header h1 {
    font-size: 2.2rem;
    margin-top: 10px;
  }
}

/* 在较小屏幕上进一步调整间距 */
@media (max-width: 767.98px) {
  .page-header {
    padding-top: 160px !important;
  }
  
  .compact-header {
    padding-top: 150px !important;
  }
  
  .page-header h1,
  .compact-header h1 {
    font-size: 2rem;
  }
}

/* 在最小屏幕上的调整 */
@media (max-width: 575.98px) {
  .page-header {
    padding-top: 150px !important;
  }
  
  .compact-header {
    padding-top: 140px !important;
  }
}

/* 解决方案卡片之间的间距调整 */
.solution-cards-row {
  gap: 30px;
  margin: 0 -5px;
}

.solution-card {
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: white;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 解决方案页面内容间距调整 */
.py-5.solutions-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* 解决方案卡片内部内容间距 */
.solution-card .icon-wrapper {
  margin-right: 15px;
}

.solution-card h3 {
  margin-bottom: 15px;
}

.solution-card .lead {
  margin-bottom: 20px;
}

.solution-card p {
  margin-bottom: 20px;
}

/* 标签区域间距调整 */
.solution-card .feature-area {
  margin-top: 25px;
}

.solution-card .feature-title {
  margin-bottom: 15px;
}

.solution-card .feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.solution-card .feature-tag {
  padding: 8px 12px;
  margin-bottom: 8px;
}

/* 移动端适配 */
@media (max-width: 991.98px) {
  .solution-cards-row {
    gap: 20px;
  }
  
  .solution-card {
    margin-bottom: 25px;
  }
}

@media (max-width: 767.98px) {
  .solution-cards-row {
    gap: 15px;
  }
  
  .solution-card {
    margin-bottom: 20px;
  }
}

/* 解决方案卡片行布局 */
.solution-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
}

/* 移除原来的bootstrap列设置 */
.solution-cards-row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-bottom: 0;
}

/* 解决方案卡片样式 */
.solution-card {
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: white;
  padding: 25px !important;
  margin-bottom: 0 !important;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 响应式布局调整 */
@media (max-width: 1199.98px) {
  .solution-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 991.98px) {
  .solution-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  .solution-cards-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 移动端按钮对齐样式 */
@media (max-width: 767px) {
  /* 通用按钮容器样式 */
  .hero-buttons, 
  .cta-buttons,
  .contact-section .row .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 15px;
  }
  
  /* 通用按钮样式 */
  .hero-buttons .btn,
  .cta-buttons .btn,
  .contact-section .btn {
    width: 100%;
    margin: 0 !important;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    display: block;
  }
  
  /* 绿色背景按钮样式 */
  .hero-buttons .btn-primary,
  .contact-section .btn-primary {
    background-color: #00A651;
    border-color: #00A651;
    color: white;
  }
  
  /* 白色按钮样式 */
  .cta-buttons .btn-light {
    background-color: white;
    border-color: white;
    color: #00A651;
  }
  
  /* 边框按钮样式 */
  .hero-buttons .btn-outline-primary {
    background-color: transparent;
    border: 2px solid #00A651;
    color: #00A651;
  }
  
  .cta-buttons .btn-outline-light {
    background-color: transparent;
    border: 2px solid white;
    color: white;
  }
}

.solution-scroll-wrapper .solution-card {
  display: flex;
  flex-direction: column;
  height: 450px;
  padding: 25px;
}

.solution-card .solution-image-container {
  height: 220px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111827;
  line-height: 1.2;
}

.solution-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 0;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 72px; /* 约等于3行文本的高度 */
}

/* Cash Management卡片特殊处理 */
.solution-scroll-wrapper .solution-card:nth-child(4) {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 450px;
  padding: 20px;
}

.solution-scroll-wrapper .solution-card:nth-child(4) .solution-image-container {
  height: 95px;  /* 进一步减小图片高度 */
  margin-bottom: 0px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-scroll-wrapper .solution-card:nth-child(4) .solution-image {
  max-height: 95px;
  width: auto;
  object-fit: contain;
}

.solution-scroll-wrapper .solution-card:nth-child(4) h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.2;
}

.solution-scroll-wrapper .solution-card:nth-child(4) p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.3;  /* 进一步减小行高 */
  color: #4b5563;
  flex-grow: 1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  -webkit-line-clamp: initial;
  -webkit-box-orient: initial;
  max-height: none !important;
}

/* Industry Icons */
.industry-icon-item {
    flex: 0 0 auto;
    width: 100px; /* Smaller item width */
    padding: 0 5px;
    text-align: center;
}

.industry-icon-circle {
    width: 50px; /* Smaller circle */
    height: 50px; /* Smaller circle */
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px; 
    box-shadow: 0 2px 6px rgba(0, 166, 81, 0.05); 
    transition: all 0.4s ease; 
    border: 1px solid #e8e8e8;
}

.industry-icon-item:hover .industry-icon-circle {
    transform: translateY(-4px) scale(1.04); /* Adjust hover effect slightly */
    box-shadow: 0 6px 12px rgba(0, 166, 81, 0.1); 
    background-color: #e8f4ee;
    border-color: rgba(0, 166, 81, 0.1);
}

.industry-svg {
    width: 25px; /* Smaller SVG */
    height: 25px; /* Smaller SVG */
    color: #495057;
    transition: color 0.4s ease; 
    fill: currentColor;
}

/* Update animation calculation */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Update based on actual item width (100px + 10px padding) */
    transform: translateX(calc(-110px * 15)); 
  }
}

.industry-icons-row {
    display: flex;
    flex-wrap: nowrap;
    /* Update width calculation (110px * 15 items * 2 sets) */
    width: 3300px;
    padding-bottom: 0;
    margin-bottom: 0;
    animation: autoScroll 35s linear infinite; 
    will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .industry-icon-item {
        width: 90px; 
        padding: 0 4px; /* 8px total padding */
    }
    .industry-icon-circle {
        width: 45px; /* Smaller responsive circle */
        height: 45px;
    }
    .industry-svg {
        width: 22px; /* Smaller responsive SVG */
        height: 22px;
    }
    .industry-icons-row {
        /* Width = (90px + 8px) * 15 * 2 */
        width: 2940px; 
        animation-duration: 32s;
    }
    /* Keyframes for 768px */
    @keyframes autoScroll768 {
      0% { transform: translateX(0); }
      100% { transform: translateX(calc(-98px * 15)); } /* -1470px */
    }
    .industry-icons-row {
      animation-name: autoScroll768;
    }
}

@media (max-width: 576px) {
    .industry-icon-item {
        width: 80px; 
        padding: 0 3px; /* 6px total padding */
    }
    .industry-icon-circle {
        width: 40px; /* Smaller responsive circle */
        height: 40px;
    }
    .industry-svg {
        width: 20px; /* Smaller responsive SVG */
        height: 20px;
    }
    .industry-icons-row {
        /* Width = (80px + 6px) * 15 * 2 */
        width: 2580px; 
        animation-duration: 28s;
    }
    /* Keyframes for 576px */
    @keyframes autoScroll576 {
      0% { transform: translateX(0); }
      100% { transform: translateX(calc(-86px * 15)); } /* -1290px */
    }
    .industry-icons-row {
      animation-name: autoScroll576;
    }
}

.industry-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-top: 0;
    white-space: normal;
    height: 2.55em;
    line-height: 1.275em;
    overflow: hidden;
    transition: color 0.3s ease;
}

.industry-icon-item:hover .industry-title {
    color: var(--primary-color);
}

/* Industry Section - Better Balanced Spacing */
.industry-section {
    padding: 70px 0 30px; /* Significantly reduced bottom padding */
    background: linear-gradient(180deg, #f0f8f5 0%, #ffffff 100%);
    position: relative;
    overflow: visible;
}

.industry-section::after { /* Smaller divider */
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 30px; /* Greatly reduced divider height */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f9fafb'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
}

/* Add more space between section heading and carousel */
.section-heading {
    margin-bottom: 2.5rem !important; /* Increased space */
}

/* Slightly better heading style for this section */
.industry-section h2 {
    font-weight: 700;
    margin-bottom: 1.8rem; /* 增加标题与副标题间的间距，原为0.8rem */
}

.industry-section .section-subtitle {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7; /* 增加行高 */
    color: #555;
}

.industry-carousel-container {
    margin-top: 1.5rem; /* Additional space before carousel */
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    padding-bottom: 15px; /* Add small padding at bottom of carousel */
}

/* Define the scrolling animation */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Calculate based on item width */
    transform: translateX(calc(-100px * 15));
  }
}

.industry-icons-row {
    display: flex;
    flex-wrap: nowrap;
    /* Calculate total width */
    width: calc(100px * 15 * 2);
    padding-bottom: 0;
    margin-bottom: 0;
    animation: autoScroll 35s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.industry-carousel-container:hover .industry-icons-row {
    animation-play-state: paused;
}

.industry-icon-item {
    flex: 0 0 auto;
    width: 100px; /* Smaller item width */
    padding: 0 5px;
    text-align: center;
}

.industry-icon-circle {
    width: 50px; /* Smaller circle */
    height: 50px; /* Smaller circle */
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px; 
    box-shadow: 0 2px 6px rgba(0, 166, 81, 0.05); 
    transition: all 0.4s ease; 
    border: 1px solid #e8e8e8;
}

.industry-icon-item:hover .industry-icon-circle {
    transform: translateY(-4px) scale(1.04); /* Adjust hover effect slightly */
    box-shadow: 0 6px 12px rgba(0, 166, 81, 0.1); 
    background-color: #e8f4ee;
    border-color: rgba(0, 166, 81, 0.1);
}

.industry-svg {
    width: 25px; /* Smaller SVG */
    height: 25px; /* Smaller SVG */
    color: #495057;
    transition: color 0.4s ease; 
    fill: currentColor;
}

.industry-icon-item:hover .industry-svg {
    color: var(--primary-color);
}

.industry-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-top: 0;
    white-space: normal;
    height: 2.55em;
    line-height: 1.275em;
    overflow: hidden;
    transition: color 0.3s ease;
}

.industry-icon-item:hover .industry-title {
    color: var(--primary-color);
}

/* Adjust next section's top padding */
.solutions {
  padding-top: 40px; /* Reduced top padding */
  padding-bottom: 80px;
  position: relative;
  background-color: #f9fafb;
  margin-top: -1px;
  z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .industry-section {
        padding: 60px 0 25px;
    }
    .section-heading {
        margin-bottom: 2rem !important;
    }
    .industry-section .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .industry-section::after {
        height: 25px;
    }
    .industry-icon-item {
        width: 115px;
        padding: 0 4px;
    }
    .industry-icon-circle {
        width: 70px;
        height: 70px;
    }
    .industry-svg {
        width: 35px;
        height: 35px;
    }
    .industry-icons-row {
        width: calc(115px * 15 * 2);
        animation-duration: 38s;
    }
    @keyframes autoScroll {
      100% { transform: translateX(calc(-115px * 15)); }
    }
    .solutions {
        padding-top: 35px;
    }
}

@media (max-width: 576px) {
    .industry-section {
        padding: 50px 0 20px;
    }
    .section-heading {
        margin-bottom: 1.5rem !important;
    }
    .industry-icon-item {
        width: 105px;
        padding: 0 4px;
    }
    .industry-icon-circle {
        width: 65px;
        height: 65px;
    }
    .industry-svg {
        width: 32px;
        height: 32px;
    }
    .industry-title {
        font-size: 0.78rem;
    }
    .industry-icons-row {
        width: calc(105px * 15 * 2);
        animation-duration: 32s;
    }
    @keyframes autoScroll {
      100% { transform: translateX(calc(-105px * 15)); }
    }
    .industry-section::after {
        height: 20px;
    }
    .solutions {
        padding-top: 30px;
    }
}

/* 更新动画计算 */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 使用新的元素宽度计算 */
    transform: translateX(calc(-110px * 15));
  }
}

.industry-icons-row {
    display: flex;
    flex-wrap: nowrap;
    /* 使用新的元素宽度计算总宽度 */
    width: calc(110px * 15 * 2);
    padding-bottom: 0;
    margin-bottom: 0;
    animation: autoScroll 36s linear infinite; /* 缩短动画时间 */
    will-change: transform;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* Responsive styles for 768px */
    .industry-icon-item {
        width: 105px; 
        padding: 0 4px;
    }
    .industry-icon-circle {
        width: 55px; 
        height: 55px;
    }
    .industry-svg {
        width: 28px; 
        height: 28px;
    }
    .industry-icons-row {
        width: calc(105px * 15 * 2);
        animation-duration: 34s;
    }
    /* Keyframes need to be outside media query or redefined */
    /* For simplicity, assuming outer @keyframes autoScroll is sufficient */
    /* End responsive styles for 768px */
}

@media (max-width: 576px) {
    /* Responsive styles for 576px */
    .industry-icon-item {
        width: 90px;
        padding: 0 3px;
    }
    .industry-icon-circle {
        width: 50px;
        height: 50px;
    }
    .industry-svg {
        width: 24px;
        height: 24px;
    }
    .industry-icons-row {
        width: calc(90px * 15 * 2);
        animation-duration: 28s;
    }
     /* Keyframes need to be outside media query or redefined */
    /* For simplicity, assuming outer @keyframes autoScroll is sufficient */
    /* End responsive styles for 576px */
}

.payment-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  position: relative;
  /* Remove left padding */
  padding-left: 0; 
}

/* Remove the ::before pseudo-element */
/* .payment-category h3::before { ... } */

.payment-category p {
  font-size: 1rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: auto; /* Push logos to the bottom */
}

.payment-logo-item {
  /* Change background to transparent */
  background-color: transparent; 
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65px; /* Increased */
  flex: 1 1 80px; /* Allow items to grow and shrink */
  min-width: 80px;
  transition: background-color 0.3s ease;
  /* Remove border or make it lighter if needed */
    border: none;
}

.payment-logo-item:hover {
  /* Keep or remove hover effect */
  background-color: #f8f9fa; /* Light background on hover instead? */
  }

.payment-logo {
  max-height: 40px; /* Increased */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0%); /* Show in full color */
  opacity: 1;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  /* ... other rules ... */
  .payment-logo-item {
    height: 55px; /* Increased */
  }
  .payment-logo {
    max-height: 35px; /* Increased */
  }
}

/* GCash logo specific styling - make it larger than other logos */
.payment-logo[src*="gcash"] {
  max-height: 48px !important; /* Significantly larger than the standard 40px */
  transform: scale(1.2); /* Additional scaling effect */
  margin: 0 auto; /* Center in case it gets larger than its container */
}

/* Add extra space for GCash container */
.payment-logo-item:has(img[src*="gcash"]) {
  height: 70px; /* Slightly taller to accommodate the larger GCash logo */
}

/* Unionbank logo specific styling - make it larger than other logos */
.payment-logo[src*="unionbank"] {
  max-height: 48px !important; /* Keep max height */
  transform: scale(1.4); /* Increased scale further */
  margin: 0 auto; /* Center in case it gets larger than its container */
}

/* Add extra space for Unionbank container */
.payment-logo-item:has(img[src*="unionbank"]) {
  height: 75px; /* Increased height further */
}

/* Chinabank logo specific styling - make it larger */
.payment-logo[src*="chinabank"] {
  max-height: 48px !important; /* Significantly larger than the standard 40px */
  transform: scale(1.4); /* Apply increased scale */
  margin: 0 auto; /* Center in case it gets larger than its container */
}

/* Add extra space for Chinabank container */
.payment-logo-item:has(img[src*="chinabank"]) {
  height: 75px; /* Taller to accommodate the larger Chinabank logo */
}

.footer-logo {
  max-height: 40px;
}

.footer-info-column {
  max-width: 320px; /* Further limit width of the first footer column */
}

.footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Add space before Products and Certifications columns on large screens */
@media (min-width: 992px) {
  .footer .row > div:nth-child(2) { /* Products column */
    margin-left: 1.5rem; /* Adjust as needed */
  }
  .footer .row > div:nth-child(4) { /* Certifications column */
    margin-left: 1.5rem; /* Adjust as needed */
  }
}

.footer-links {
  list-style: none;
}