/* VAPELINKER SOL module styles — template/dafeult */

.main-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--layout-header-offset, 101px));
}

.main-container > .page-l {
  flex: 0 0 300px;
}

.content-right {
  flex: 1 1 auto;
  min-width: 0;
  padding: 28px;
  background: #f7f9fc;
}

.solution-page,
.solution-list-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.solution-breadcrumb {
  display: flex;
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  flex-wrap: wrap;
  width: auto;
  max-width: none;
  height: auto;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border-top: 0;
  color: #7a8494;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  transition: none;
}

.solution-breadcrumb a {
  color: #526173;
}

.solution-breadcrumb a:hover {
  color: #1671ff;
}

/* Detail hero */
.solution-hero {
  margin-bottom: 24px;
  padding: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(31, 45, 61, 0.06);
}

.sol-banner {
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 2 / 1;
  background: #eef2f7;
  border-radius: 10px;
}

.sol-banner img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: inherit;
}

.solution-hero h1 {
  margin: 0 0 12px;
  color: #243247;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.35;
}

.hero-desc {
  margin: 0 0 22px;
  color: #5c6778;
  font-size: 17px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.sol-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sol-btn-primary {
  color: #fff;
  background: #1671ff;
  border: 1px solid #1671ff;
}

.sol-btn-outline {
  color: #1671ff;
  background: #fff;
  border: 1px solid #1671ff;
}

.sol-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 113, 255, 0.2);
}

#sol-process {
  scroll-margin-top: 110px;
}

/* Detail content */
.solution-content {
  padding: clamp(28px, 4vw, 52px);
  color: #3d4654;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.9;
  box-shadow: 0 8px 28px rgba(31, 45, 61, 0.05);
}

.solution-content p {
  margin: 0 0 20px;
  font-size: inherit;
  line-height: inherit;
}

.solution-content h1,
.solution-content h2,
.solution-content h3 {
  color: #243247;
  line-height: 1.45;
}

.solution-content h1,
.solution-content h2 {
  margin: 42px 0 18px;
  font-size: 26px;
}

.solution-content h1:first-child,
.solution-content h2:first-child {
  margin-top: 0;
}

.solution-content h3 {
  margin: 28px 0 12px;
  font-size: 20px;
}

.solution-content ul,
.solution-content ol {
  margin: 0 0 22px;
  padding-left: 1.5em;
  overflow: visible;
}

.solution-content ul {
  list-style: disc;
}

.solution-content ol {
  list-style: decimal;
}

.solution-content li {
  margin-bottom: 8px;
}

.solution-content img {
  display: block;
  width: auto !important;
  max-width: min(100%, 900px) !important;
  height: auto !important;
  margin: 28px auto 34px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.1);
}

.solution-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
}

/* CTA */
.solution-cta {
  margin-top: 24px;
  padding: 38px 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0f5ed7, #1671ff);
  border-radius: 12px;
}

.solution-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.4;
}

.solution-cta p {
  max-width: 720px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.75;
}

.solution-cta .sol-btn-primary {
  color: #1671ff;
  background: #fff;
  border-color: #fff;
}

/* List */
.list-hero {
  margin-bottom: 26px;
  padding: 34px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
}

.list-hero h1 {
  margin: 0 0 10px;
  color: #243247;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.35;
}

.list-hero > p {
  margin: 0;
  color: #657184;
  font-size: 17px;
  line-height: 1.8;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.solution-item {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.12);
}

.solution-item-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #eef2f7;
}

.solution-item-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.solution-item:hover .solution-item-cover img {
  transform: scale(1.035);
}

.solution-item-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 22px;
}

.solution-item h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}

.solution-item h2 a {
  color: #26364c;
}

.solution-item p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: #687487;
  font-size: 15px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.solution-item-more {
  margin-top: auto;
  color: #1671ff;
  font-weight: 600;
}

.solution-pagination {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 1200px) {
  .content-right {
    padding: 24px;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .main-container > .page-l {
    display: none;
  }

  .content-right {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0 !important;
  }

  header {
    top: 0 !important;
  }

  .main-container {
    min-height: 0;
  }

  .content-right {
    padding: 16px;
  }

  .solution-hero,
  .list-hero {
    padding: 20px;
    border-radius: 10px;
  }

  .solution-breadcrumb {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .sol-banner {
    margin-bottom: 20px;
  }

  .solution-hero h1,
  .list-hero h1 {
    font-size: 24px;
    line-height: 1.45;
  }

  .hero-desc,
  .list-hero > p {
    font-size: 16px;
  }

  .solution-content {
    padding: 24px 20px;
    font-size: 16px;
    line-height: 1.85;
  }

  .solution-content h1,
  .solution-content h2 {
    margin-top: 34px;
    font-size: 23px;
  }

  .solution-content h3 {
    margin-top: 24px;
    font-size: 19px;
  }

  .solution-content img {
    margin: 22px auto 28px !important;
    border-radius: 8px !important;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .solution-item-body {
    padding: 20px;
  }

  .solution-cta {
    padding: 30px 20px;
  }

  .solution-cta h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .content-right {
    padding: 12px;
  }

  .solution-hero,
  .list-hero {
    padding: 16px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns a {
    width: 100%;
  }

  #sol-process {
    scroll-margin-top: 16px;
  }

  .solution-content {
    padding: 22px 16px;
  }
}
