/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
#custom-b2b-services-v2 {
  font-family: Arial, sans-serif;
  max-width: 500px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.custom-tab-nav-v2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}
.custom-tab-nav-v2 .tab-button {
  font-size: 12px;
  padding: 10px 8px;
  font-weight: bold;
  color: #333;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  flex: 1;
  text-align: center;
}
.custom-tab-nav-v2 .tab-button:hover {
  background-color: #d1d1d1;
}
.custom-tab-nav-v2 .tab-button.active {
  background-color: #000000;
  color: white;
  border-color: #000000;
}
.custom-tab-panels-v2 .panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.custom-tab-panels-v2 .panel.active {
  display: flex;
  justify-content: center;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .service-card-base {
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 5px;
    font-family: Arial, sans-serif;
    color: #333333;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.service-card-base:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.service-card-base h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.service-card-base h3 .icon {
  margin-right: 10px;
  font-size: 22px;
}
.service-description {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 10px;
}
.key-capabilities h4,
.process-flow h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}
.key-capabilities ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}
.key-capabilities li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555555;
  margin-bottom: 6px;
}
.checkmark {
  color: #4caf50;
  font-size: 16px;
  margin-right: 5px;
}
.flow-box {
  background-color: rgba(249, 249, 249, 0.75);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 13px;
  color: #555555;
  margin-bottom: 20px;
}
.learn-more-btn-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: rgba(34, 34, 34, 0.75);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s;
  border: none;
  width: 100%;
}
.learn-more-btn-solid:hover {
  background-color: #2196f3;
}
.arrow {
  margin-left: 8px;
}
/* =================================================== */
/* == Language selector style correction == */
/* ======================================================== */

/* 1. Correct the top bar height (keep) */
.header-top {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: auto !important;
}


.popup-over .popup-title {
    color: #ffffff !important; 
    font-size: 13px !important; 
}

/* 3. 修正语言选择器悬停颜色 */
.popup-over .popup-title:hover {
    color: #cccccc !important; 
}
/* ================================================= */
/* ==   将主导航菜单居中显示   == */
/* ================================================= */
#header .megamenu-content {
    display: flex !important;
    justify-content: center !important;
}
/* --- B2B Services Tabs Start (Updated Version) --- */
#custom-b2b-services-v2 {
    width: 100%;
    max-width: 650px;
    background: transparent; 
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
    margin: 20px auto;
    padding-top: 10px; 
}

@media (max-width: 768px) {
  .custom-tab-nav-v2 {
    display: flex;
    background-color: transparent; 
    border-bottom: 1px solid #e0e0e0;
    padding: 0 5px; 
  }
}

.tab-button {
    flex-grow: 1;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-button:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

.custom-tab-panels-v2 {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    box-sizing: border-box;
}

.panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
  .service-card-base { padding: 5px; }
}
.service-card-base h3 { font-size: 22px; color: #333; margin-top: 0; }
.service-card-base .icon { margin-right: 8px; }
.service-description { font-size: 16px; color: #666; line-height: 1.6; }
.key-capabilities h4 { 
    font-size: 16px; 
    margin-top: 5px; 
    margin-bottom: 10px; 
    color: #333; 
}
.process-flow h4 { 
    font-size: 16px; 
    margin-top: 25px; 
    margin-bottom: 10px; 
    color: #333; 
}

.key-capabilities ul { list-style: none; padding: 0; margin: 0; }
.key-capabilities li { margin-bottom: 8px; color: #555; }
.checkmark { color: #28a745; margin-right: 8px; }
.flow-box { background: #f0f8ff; 
  border: 1px solid #d1eaff; 
  padding: 12px; 
  border-radius: 6px; 
  font-weight: 500; 
  text-align: center; 
  color: #0056b3; }
.learn-more-btn-solid { 
  display: inline-block; 
  background-color: #007bff; 
  color: white; 
  padding: 12px 20px; 
  text-decoration: none; 
  border-radius: 6px; 
  font-weight: 600; 
  margin-top: 25px; 
  transition: background-color 0.3s; }
.learn-more-btn-solid:hover { background-color: #0056b3; }

@media (max-width: 600px) {
    .tab-button { font-size: 13px; padding: 12px 5px; }
}
/* --- B2B Services Tabs End (Updated Version) --- */