/* Service Page Styles */

/* Fix section-header visibility from main.js scroll animation */
.service-content-section .section-header,
.framework-section .section-header,
.training-section .section-header,
.after-sale-section .section-header {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hero Section */
.service-hero {
  padding-top: 72px;
  background: #f0f4f8;
}

.service-hero-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(26, 86, 168, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 60% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(70vh - 72px);
  padding: 60px 24px;
}

.service-hero-text {
  max-width: 600px;
}

.service-hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.service-hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.service-hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(26, 86, 168, 0.15), rgba(78, 205, 196, 0.1));
  border-radius: 4px;
  z-index: -1;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-badge {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid rgba(26, 86, 168, 0.2);
  border-radius: 24px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(26, 86, 168, 0.08);
  transition: var(--transition);
}

.service-badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-hero-image {
  flex-shrink: 0;
}

.shield-illustration {
  position: relative;
  width: 280px;
  height: 280px;
}

.shield-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 30px rgba(26, 86, 168, 0.2));
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.float-item {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 86, 168, 0.12);
  animation: floatUpDown 3s ease-in-out infinite;
}

.float-item.item-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.float-item.item-2 {
  top: 30%;
  right: 0;
  animation-delay: 0.5s;
}

.float-item.item-3 {
  bottom: 25%;
  right: 5%;
  animation-delay: 1s;
}

.float-item.item-4 {
  top: 50%;
  left: -5%;
  animation-delay: 1.5s;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Service Tabs */
.service-tabs-section {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-tabs {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.service-tab {
  cursor: pointer;
  padding: 16px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  flex: 1;
  text-align: center;
}

.service-tab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.service-tab:hover {
  background: var(--secondary);
}

.service-tab .tab-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-tab .tab-title .arrow {
  color: var(--text-gray);
  font-weight: 400;
  margin-left: 4px;
}

.service-tab.active {
  background: var(--secondary);
}

.service-tab.active .tab-title {
  color: var(--primary);
}

.service-tab.active .tab-title .arrow {
  color: var(--primary);
}

.service-tab .tab-desc {
  font-size: 14px;
  color: var(--text-gray);
}

.service-tab.active .tab-desc {
  color: var(--primary);
  opacity: 0.8;
}

.service-tab .tab-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.service-tab.active .tab-underline {
  width: 40px;
}

/* Tab Panels */
.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
  animation: panelFadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Sections */
.service-content-section {
  padding: 80px 0;
  background: #fff;
}

.content-block {
  text-align: center;
}

.content-text {
  margin-bottom: 40px;
}

.content-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.content-subtitle {
  font-size: 18px;
  color: var(--text-gray);
}

.content-image {
  max-width: 700px;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

/* Expert Section */
.expert-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.expert-content {
  max-width: 700px;
}

.expert-label {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.expert-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.expert-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin-bottom: 24px;
}

.expert-desc {
  font-size: 17px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* Framework Section */
.framework-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e8f4fd 100%);
}

.framework-section .section-header {
  text-align: left;
  margin-bottom: 48px;
}

.framework-section .section-header .section-line {
  margin: 16px 0 0 0;
}

.section-subtitle {
  font-size: 20px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-gray);
}

.framework-image,
.philosophy-image,
.training-image,
.after-sale-image {
  width: 100%;
  margin: 0;
  padding: 0;
}

.framework-image img,
.philosophy-image img,
.training-image img,
.after-sale-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.framework-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(26, 86, 168, 0.08);
  position: relative;
}

.framework-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.framework-card.card-flow {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.framework-card.card-flow h3,
.framework-card.card-flow p,
.framework-card.card-flow .framework-icon svg {
  color: #fff;
}

.framework-card.card-remote {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3b7a 100%);
  color: #fff;
}

.framework-card.card-remote h3,
.framework-card.card-remote p,
.framework-card.card-remote .framework-icon svg {
  color: #fff;
}

.framework-icon {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.framework-card.card-flow .framework-icon,
.framework-card.card-remote .framework-icon {
  background: rgba(255, 255, 255, 0.2);
}

.framework-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.framework-card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}

.framework-center {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.center-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(26, 86, 168, 0.3);
}

/* Philosophy Section */
.philosophy-section {
  padding: 0;
  background: #fff;
}

.philosophy-section .container {
  padding: 0;
  max-width: none;
}

.philosophy-header {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.philosophy-label {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.philosophy-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.philosophy-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.philosophy-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.philosophy-card.featured {
  border-color: var(--primary-light);
  box-shadow: 0 12px 40px rgba(26, 86, 168, 0.15);
}

.philosophy-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-align: center;
}

.philosophy-line-inner {
  width: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin: 0 auto 24px;
}

.philosophy-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

.philosophy-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  bottom: 24px;
  right: 24px;
  line-height: 1;
}

.philosophy-number span {
  font-size: 14px;
  display: block;
  text-align: right;
  margin-top: 4px;
}

.philosophy-arrow {
  position: absolute;
  bottom: 24px;
  left: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.philosophy-arrow:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

/* Training Section */
.training-section {
  padding: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e8f4fd 100%);
}

.training-section .container {
  padding: 0;
  max-width: none;
}

.training-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.training-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.training-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.training-icon {
  width: 64px;
  height: 64px;
  background: var(--secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.training-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.training-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
}

.training-card ul {
  list-style: none;
  padding: 0;
}

.training-card ul li {
  font-size: 15px;
  color: var(--text-gray);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.training-card ul li:last-child {
  border-bottom: none;
}

/* After Sale Section */
.after-sale-section {
  /* padding: 80px 0; */
  background: #fff;
}

.after-sale-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.after-sale-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.after-sale-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.after-sale-icon {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.after-sale-icon.large {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.after-sale-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.after-sale-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
}

.after-sale-table-card {
  background: linear-gradient(135deg, #e8f8f5 0%, #f0fdfa 100%);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 24px;
  border: 1px solid rgba(78, 205, 196, 0.2);
}

.after-sale-table-card.premium {
  background: linear-gradient(135deg, #fff9e6 0%, #fefce8 100%);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.after-sale-table-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.after-sale-table-card.premium h3 {
  color: #92400e;
}

.service-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.table-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row.table-header {
  background: var(--primary);
  color: #fff;
}

.table-row.table-header .table-cell {
  font-weight: 600;
  color: #fff;
}

.table-cell {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

.table-row:not(.table-header) .table-cell:first-child {
  background: var(--bg-light);
  font-weight: 500;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .service-hero-title {
    font-size: 40px;
  }

  .service-tabs {
    flex-wrap: wrap;
    gap: 24px;
  }

  .philosophy-cards,
  .training-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .after-sale-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .service-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .service-hero-text {
    max-width: 100%;
  }

  .service-hero-title {
    font-size: 32px;
  }

  .service-badges {
    justify-content: center;
  }

  .shield-illustration {
    width: 220px;
    height: 220px;
  }

  .service-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .service-tab {
    min-width: auto;
    width: 100%;
  }

  .content-title {
    font-size: 28px;
  }

  .expert-title {
    font-size: 32px;
  }

  .philosophy-cards,
  .training-cards {
    grid-template-columns: 1fr;
  }

  .philosophy-title {
    font-size: 32px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row.table-header {
    display: none;
  }

  .table-cell {
    padding: 12px 16px;
  }

  .table-row:not(.table-header) .table-cell:first-child {
    background: var(--secondary);
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .service-hero-title {
    font-size: 26px;
  }

  .expert-title,
  .philosophy-title {
    font-size: 26px;
  }

  .content-title {
    font-size: 24px;
  }
}
