/* Trang "Dịch vụ" - chỉ load trên trang này, xem custom/functions.php
   (custom_override_style). Dùng lại .top/.container đã có sẵn (định nghĩa
   trong alibabamedia.css) - chỉ định nghĩa CSS thuần (không phụ thuộc
   Tailwind, theme này không nạp Tailwind) cho các phần riêng của trang. */

/* Banner chéo cam - đầu trang */
.dv-banner {
  position: relative;
  width: 100%;
  padding: 170px 0 90px 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.6px),
    linear-gradient(135deg, #ff6004 0%, #ff8a3d 55%, #ffc98a 100%);
  background-size: 16px 16px, 100% 100%;
  background-position: 0 0, 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 0 78%);
}

.dv-banner__wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.dv-banner__title {
  display: block !important;
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
}

.dv-banner__breadcrumbs {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.dv-banner__breadcrumbs a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .dv-banner {
    padding: 190px 0 130px 0;
  }

  .dv-banner__title {
    font-size: 42px;
  }
}

.dv-intro {
  padding: 48px 0 56px 0;
}

.dv-intro__wrap {
  max-width: 780px;
  text-align: center;
}

.dv-intro__title {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 700;
  color: #ff6004;
}

.dv-intro__desc {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.dv-section {
  padding: 56px 0;
}

.dv-section--alt {
  background: #f4f7ff;
}

.dv-section__title {
  margin: 0 0 40px 0;
  text-align: center;
  text-transform: capitalize;
  font-size: 28px;
  font-weight: 700;
  color: #ff6004;
}

.dv-section__title--left {
  margin: 0 0 28px 0;
  text-align: left;
  color: #17386C;
}

/* Grid dịch vụ: 1 cột mobile -> 2 cột tablet -> 3 cột desktop */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}





@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .dv-intro__title,
  .dv-section__title {
    font-size: 36px;
  }
}

.service__item {
  display: block;
  height: 100%;
  background: #f4f7ff;
  border-radius: 80px 16px 80px 16px;
  padding: 40px 24px;
  color: inherit;
  text-decoration: none;
  transition: all 0.4s ease;
}

@keyframes waterBlob {
  0% { border-radius: 0 80px 0 80px; }
  25% { border-radius: 40px 100px 30px 60px; }
  50% { border-radius: 80px 20px 80px 20px; }
  75% { border-radius: 30px 60px 40px 100px; }
  100% { border-radius: 0 80px 0 80px; }
}

.service__item:hover {
  background: #0e1f3f;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(14, 31, 63, 0.3);
  animation: waterBlob 4s ease-in-out infinite;
}

.service__item--image {
  width: fit-content;
  margin: 0 auto;
}

.service__item--image img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service__item:hover .service__item--image img {
  transform: translateY(-12px) scale(1.08);
}

.service__item--title {
  margin: 20px 0 12px 0;
  text-align: center;
  text-transform: capitalize;
  font-size: 19px;
  font-weight: 700;
  color: #17386C;
  transition: color 0.3s ease;
}

.service__item:hover .service__item--title {
  color: #ffffff;
}

.service__item--desc {
  text-align: center;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.service__item:hover .service__item--desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Quy trình: ảnh blob bên trái + danh sách bước bên phải */
.process__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.process__visual {
  order: -1;
}

.process__visual--shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.45);
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.process__visual--shape svg {
  width: 100%;
  height: 100%;
}

.process__visual img {
  position: relative;
  z-index: 5;
}

.process__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process__row {
  display: flex;
  gap: 16px;
}

.process__row--step {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #58AD40;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(88, 173, 64, 0.3);
  transition: all 0.3s ease;
}

.process__row:hover .process__row--step {
  background: #17386C;
  box-shadow: 0 4px 12px rgba(23, 56, 108, 0.3);
  transform: scale(1.1);
}

.process__row--title {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
  color: #17386C;
}

.process__row--desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .process__wrap {
    grid-template-columns: 1fr 1fr;
    gap: 100px;
  }

  .process__visual {
    order: 0;
    transform: translateX(-30px);
  }
}

@media (max-width: 640px) {
  .service__item--body { padding: 20px; }
}
