/* CSS cho Trang Dịch Vụ /dich-vu
   Render theo loại: Nổi bật (hero), Chính (grid 3), Hỗ trợ/khác (grid 4) */

.fe-service-page {
  padding: 24px 0 60px;
  min-height: calc(100vh - 200px);
}

.fe-service-page .container {
  width: min(1180px, calc(100% - 30px));
  margin: auto;
}

/* Breadcrumb */
.fe-service-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.fe-service-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fe-service-breadcrumb a:hover {
  color: #111;
}

.fe-service-breadcrumb span {
  font-weight: 600;
  color: #111;
}

/* ===== Dịch vụ Nổi bật (featured) — 1 tin/hàng ===== */
.fe-service-hero {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 345px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  background: #fff;
  margin-bottom: 30px;
}

.fe-service-hero + .fe-service-hero {
  margin-top: -14px;
}

.fe-service-hero-image {
  display: block;
  min-height: 345px;
  overflow: hidden;
  background: #eee;
  text-decoration: none;
}

.fe-service-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 345px;
  object-fit: cover;
  display: block;
}

.fe-service-hero-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.fe-service-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 32px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fe-service-hero-title:hover {
  color: #111;
}

.fe-service-hero-desc {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 28px 45px;
  color: #555;
  line-height: 1.75;
  font-size: 16px;
}

.fe-service-hero-more {
  min-height: 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e5e5e5;
}

.fe-service-hero-btn {
  padding: 11px 24px;
  border: 1px solid #111;
  color: #111;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.fe-service-hero-btn:hover {
  background: #111;
  color: #fff;
}

/* ===== Tiêu đề nhóm ===== */
.fe-service-section-title {
  text-align: center;
  margin: 34px 0 22px;
  font-size: 25px;
  color: #111;
}

/* ===== Dịch vụ Chính (main) — desktop 3 cột ===== */
.fe-service-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 22px;
  padding-bottom: 20px;
}

/* ===== Dịch vụ Hỗ trợ/khác (support) — desktop 4 cột ===== */
.fe-service-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 22px;
  padding-bottom: 40px;
}

/* ===== Card dịch vụ chung ===== */
.fe-service-card {
  border: 1px solid #e7e7e7;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}

.fe-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fe-service-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.fe-service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.fe-service-card:hover .fe-service-card-image img {
  transform: scale(1.035);
}

.fe-service-card-body {
  padding: 14px 14px 18px;
}

.fe-service-card-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  color: #111;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fe-service-card-desc {
  margin: 0;
  text-align: center;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.6;
  min-height: 68px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.fe-service-card-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.fe-service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #111;
  border-radius: 4px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.fe-service-card:hover .fe-service-card-btn {
  background: #111;
  color: #fff;
}

/* ===== Trang Chi Tiết Dịch Vụ ===== */
.fe-service-detail-page .container {
  width: min(1420px, 94vw);
  margin: 18px auto 0;
}

.fe-service-detail {
  padding: 0 0 40px;
}

.fe-service-detail .card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 0;
  transition: all 0.3s ease;
}
.fe-service-detail .card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.07);
}

.fe-service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.30fr) minmax(290px, 0.80fr);
  gap: 16px;
  align-items: start;
}

.fe-service-main-col {
  min-width: 0;
}

.fe-service-top-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.52fr;
  gap: 16px;
  align-items: start;
}

.fe-service-top-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fe-service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  min-width: 0;
}

.fe-service-box {
  padding: 18px;
}

.fe-service-label {
  display: inline-block;
  background: linear-gradient(135deg, #0282a5, #015065);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 15px rgba(2, 130, 165, 0.25);
}

.fe-service-detail h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fe-service-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.fe-service-gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.fe-service-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.5s ease;
}
.fe-service-gallery-main:hover img {
  transform: scale(1.03);
}

.fe-service-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #9aa3ab;
  font-size: 14px;
}

.fe-service-gallery-empty i {
  font-size: 40px;
}

.fe-service-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.fe-service-thumb {
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fe-service-thumb:hover:not\(\.active\) {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.fe-service-thumb.active {
  border-color: #0282a5;
  box-shadow: 0 4px 12px rgba(2, 130, 165, 0.2);
}

.fe-service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-service-title-line {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  position: relative;
}
.fe-service-title-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 3px;
  background: #0282a5;
  border-radius: 3px;
}

.fe-service-consult-card {
  padding: 18px;
}

.fe-service-staff {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  margin-bottom: 16px;
  background: #ffffff;
  transition: all 0.3s ease;
}
.fe-service-staff:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: #e2e8f0;
}

.fe-service-staff:last-child {
  margin-bottom: 0;
}

.fe-service-staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #0282a5;
  background: #f0f9ff;
  border: none;
}

.fe-service-staff h3 {
  margin: 2px 0 6px;
  font-size: 17px;
  color: #1d1d1f;
}

.fe-service-phone {
  font-weight: 800;
  color: #111;
  margin: 4px 0 8px;
}

.fe-service-zalo {
  display: inline-block;
  background: #0068ff;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 104, 255, 0.25);
  text-decoration: none;
}
.fe-service-zalo:hover {
  background: #0056d6;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 104, 255, 0.35);
}

.fe-service-featured-card {
  padding: 18px;
}

.fe-service-mini {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: all 0.2s ease;
}
.fe-service-mini:hover {
  padding-left: 4px;
  background: #fafaf9;
  border-radius: 8px;
}

.fe-service-mini:last-child {
  border-bottom: none;
}

.fe-service-mini img,
.fe-service-mini-ph {
  width: 85px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fe-service-mini-ph {
  display: block;
  background: #eef1f4;
}

.fe-service-mini strong {
  font-size: 15px;
  line-height: 1.45;
  color: #334155;
  font-weight: 600;
  transition: color 0.2s ease;
}

.fe-service-mini:hover strong {
  color: #111;
}

.fe-service-middle {
  display: block;
  margin-top: 16px;
}

.fe-service-article {
  padding: 32px;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.fe-service-article img,
.fe-service-article video,
.fe-service-article iframe {
  max-width: 100%;
  height: auto;
}

.fe-service-article table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.fe-service-article pre {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.fe-service-article h2 {
  font-size: 28px;
  margin: 0 0 20px;
  color: #0f172a;
  font-weight: 800;
}

.fe-service-article h3 {
  font-size: 21px;
  margin: 22px 0 8px;
  color: #111;
}

.fe-service-article p {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 16px;
}

.fe-service-article ul {
  padding-left: 22px;
  line-height: 1.8;
}

.fe-service-pricing {
  padding: 16px 18px;
}

.fe-service-price-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fe-service-pricing .price-item {
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  transition: all 0.3s ease;
}
.fe-service-pricing .price-item:hover {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.fe-service-pricing .price-label {
  font-size: 13px;
  color: #66717c;
  font-weight: 700;
  margin-bottom: 5px;
}

.fe-service-pricing .price-value {
  font-size: 26px;
  font-weight: 800;
  color: #0282a5;
  line-height: 1.2;
}

.fe-service-pricing .price-old {
  text-decoration: line-through;
  color: #7b8794;
}

.fe-service-pricing .price-sale {
  color: #111;
}

.fe-service-pricing .price-vat {
  color: #111;
}

.fe-service-pricing .price-note {
  font-size: 12px;
  color: #7b8794;
  margin-top: 4px;
}

.fe-service-real {
  padding: 18px;
  margin-top: 16px;
}

.fe-service-real-desc {
  font-size: 14px;
  color: #5e6670;
  margin: -4px 0 12px;
  line-height: 1.6;
}

.fe-service-real-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.fe-service-real-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.fe-service-real-grid img:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  z-index: 2;
  position: relative;
}

.fe-service-real-actions-card {
  padding: 16px 18px;
  margin-top: 16px;
}

.fe-service-real-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

.fe-service-real-actions .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.fe-service-real-actions .action-consult {
  background: linear-gradient(135deg, #0282a5 0%, #015065 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 130, 165, 0.25);
}
.fe-service-real-actions .action-consult:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2, 130, 165, 0.35);
  color: #fff;
}

.fe-service-real-actions .action-consult:hover {
  background: #111;
  color: #fff;
}

.fe-service-real-actions .action-phone {
  background: #fff;
  color: #0282a5;
  border: 2px solid #0282a5;
}
.fe-service-real-actions .action-phone:hover {
  background: #f0f9ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2, 130, 165, 0.15);
}

.fe-service-real-actions .action-phone:hover {
  background: #111;
  color: #fff;
}

/* Lightbox phóng to ảnh thực tế */
.fe-service-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.83);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.fe-service-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.fe-service-lightbox.show {
  display: flex;
}

.fe-service-lightbox-close {
  position: absolute;
  right: 28px;
  top: 18px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

@keyframes fe-service-zoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fe-service-lightbox.show img {
  animation: fe-service-zoom 0.18s ease-in-out;
}

/* ===== Responsive ===== */
@media (max-width: 1050px) {
  .fe-service-detail-grid {
    grid-template-columns: 1fr;
  }

  .fe-service-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .fe-service-top-grid {
    grid-template-columns: 1fr 1.3fr;
  }

  .fe-service-real-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .fe-service-detail-page .container {
    width: 96vw;
  }

  .fe-service-real-actions {
    flex-direction: column;
  }

  .fe-service-real-actions .action-btn {
    width: 100%;
  }

  .fe-service-detail-grid {
    grid-template-columns: 1fr;
  }

  .fe-service-sidebar {
    display: flex;
  }

  .fe-service-top-grid {
    grid-template-columns: 1fr;
  }

  .fe-service-detail h1 {
    font-size: 24px;
  }

  .fe-service-real-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fe-service-staff {
    grid-template-columns: 72px 1fr;
  }

  .fe-service-staff-avatar {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 900px) {
  .fe-service-hero {
    grid-template-columns: 1fr;
  }

  .fe-service-hero-image,
  .fe-service-hero-image img {
    min-height: 300px;
  }

  .fe-service-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fe-service-support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .fe-service-hero-title {
    font-size: 23px;
    padding: 18px;
  }

  .fe-service-hero-desc {
    padding: 22px 18px;
    font-size: 15px;
  }

  .fe-service-section-title {
    font-size: 22px;
  }

  /* Dịch vụ Chính: 1 tin/hàng */
  .fe-service-main-grid {
    grid-template-columns: 1fr;
  }

  /* Dịch vụ Hỗ trợ/khác: 2 tin/hàng */
  .fe-service-support-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .fe-service-card-title {
    font-size: 15px;
    min-height: 42px;
  }

  .fe-service-card-desc {
    font-size: 13px;
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .fe-service-card-body {
    padding: 10px 10px 14px;
  }

  .fe-service-card-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}
@keyframes fe-fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fe-service-detail .fe-service-main-col > * {
  animation: fe-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fe-service-detail .fe-service-sidebar > * {
  animation: fe-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fe-service-detail .fe-service-sidebar > *:nth-child(1) { animation-delay: 0.1s; }
.fe-service-detail .fe-service-sidebar > *:nth-child(2) { animation-delay: 0.2s; }
.fe-service-detail .fe-service-top-grid, .fe-service-detail .fe-service-middle { animation-delay: 0.05s; }
