/* ===== Page-specific styles: service.html ===== */
/* Them style rieng cho trang nay tai day (ghi de common.css). */

/* =====================================================================
   Feedback Đợt 1 — Trang chi tiết dịch vụ
   (căn giữa icon, trình bày hiện đại hơn; section ảnh minh họa chờ ảnh PM)
   ===================================================================== */

/* Icon dịch vụ — căn giữa, badge hiện đại */
.single-service-content .svc-icon-badge {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    box-shadow: 0 10px 26px rgba(9, 74, 54, 0.28);
}

.single-service-content .svc-icon-badge img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.single-service-content .svc-icon-badge .svc-icon-emoji {
    font-size: 48px;
    line-height: 1;
}

/* Lead căn giữa cho bố cục hiện đại, cân đối */
.single-service-content .lead {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature / lợi ích — căn giữa cân đối khối (feedback Đợt 1 #8).
   Dùng flex + justify-content:center để các thẻ luôn nằm giữa & cân đối
   dù số lượng tính năng là 1, 2, 3 hay 4 (grid cũ để lại ô trống lệch trái). */
.single-service-content .why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
}

.single-service-content .why-card {
    flex: 1 1 240px;
    max-width: 300px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-service-content .why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(9, 74, 54, 0.14);
}

.single-service-content .why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px; /* căn giữa icon */
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green-dark);
}

.single-service-content .why-card h5 {
    color: var(--green-dark);
    font-size: 16px;
}

.single-service-content h3 {
    text-align: center;
}

/* Reveal khi cuộn — chỉ ẩn khi body.mona-reveal-ready (no-JS vẫn hiện) */
body.mona-reveal-ready .single-service-content .why-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--i, 0) * 0.08s);
}
body.mona-reveal-ready .single-service-content .why-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Củng cố căn giữa icon ✓ trong why-card (feedback Đợt 3 #8b) */
.single-service-content .why-card {
    text-align: center;
}
.single-service-content .why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(9, 74, 54, 0.14);
    font-size: 26px;
    font-weight: 700;
    transition: transform 0.3s ease;
}
.single-service-content .why-card:hover .why-icon {
    transform: scale(1.08);
}

/* =====================================================================
   Feedback Đợt 3 #7 — Vùng hình ảnh cấu hình sẵn (.cpx-config-*)
   Dùng chung cho trang Dịch vụ (service-page.php).
   ===================================================================== */
.cpx-config-zone {
    max-width: 1280px;
    margin: 32px auto 40px;
    padding: 0 24px;
}
.cpx-config-banner {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 6px 22px rgba(9, 74, 54, 0.12);
}
.cpx-config-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.cpx-config-placeholder {
    aspect-ratio: 1200 / 300;
    width: 100%;
    border-radius: 16px;
    background: var(--green-light, #E8F5EF);
    border: 2px dashed var(--green, #0E6B4E);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--green-dark, #094A36);
    gap: 8px;
    padding: 24px;
    box-sizing: border-box;
}
.cpx-config-placeholder .cpx-ph-icon { font-size: 38px; line-height: 1; }
.cpx-config-placeholder .cpx-ph-title { font-size: 18px; font-weight: 700; }
.cpx-config-placeholder .cpx-ph-sub { font-size: 14px; color: var(--green, #0E6B4E); opacity: .85; }
@media (max-width: 600px) {
    .cpx-config-placeholder { aspect-ratio: 3 / 2; }
    .cpx-config-placeholder .cpx-ph-title { font-size: 16px; }
}

/* =====================================================================
   Feedback Đợt 3 #8a — Slider "Sản phẩm đã hoàn thành" (.completed-swiper)
   ===================================================================== */
.completed-section {
    max-width: 1100px;
    margin: 0 auto;
}
.completed-swiper {
    position: relative;
    padding: 8px 0 44px;
}
.completed-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}
.completed-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.completed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.completed-card--placeholder {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    background: var(--green-light, #E8F5EF);
    border: 2px dashed var(--green, #0E6B4E);
    color: var(--green-dark, #094A36);
    padding: 24px;
}
.completed-card--placeholder .cpx-ph-icon { font-size: 40px; line-height: 1; }
.completed-card--placeholder .cpx-ph-title { font-size: 16px; font-weight: 700; }
.completed-card--placeholder .cpx-ph-sub { font-size: 13px; color: var(--green, #0E6B4E); opacity: .85; }

.completed-swiper .swiper-button-prev,
.completed-swiper .swiper-button-next {
    color: var(--green, #0E6B4E);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(9, 74, 54, 0.18);
    top: 42%;
}
.completed-swiper .swiper-button-prev:after,
.completed-swiper .swiper-button-next:after {
    font-size: 16px;
    font-weight: 700;
}
.completed-swiper .swiper-pagination-bullet-active {
    background: var(--green, #0E6B4E);
}
@media (max-width: 768px) {
    .completed-swiper .swiper-button-prev,
    .completed-swiper .swiper-button-next { display: none; }
}

/* =====================================================================
   Task #64 — Cát Phương Xa
   #1 Ảnh dịch vụ full khung card · #2 Box ưu đãi chỉ-ảnh khung cao
   (override common.css; service.css load SAU common.css nên thắng độ ưu tiên)
   ===================================================================== */

/* #1 — Ảnh dịch vụ fill FULL khung xanh, bỏ lớp sọc khi đã có ảnh thật */
.page-service .svc-detail-img.has-photo {
    padding: 0;
}
.page-service .svc-detail-img.has-photo::before {
    display: none;
}
.page-service .svc-detail-img .svc-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

/* #2 — Box ưu đãi dạng CHỈ HÌNH ẢNH: khung cao hơn, ảnh full khung */
.page-service .side-banner--image {
    display: block;
    padding: 0;
    background: var(--green-light, #E8F5EF);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    min-height: 380px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.page-service .side-banner--image::before {
    content: none;
}
.page-service .side-banner--image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}
/* Placeholder khi chưa tải ảnh ưu đãi */
.page-service .side-banner--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    line-height: 1.4;
    padding: 24px;
    border: 2px dashed var(--green, #0E6B4E);
    color: var(--green-dark, #094A36);
}
.page-service .side-banner--placeholder .cpx-ph-icon { font-size: 40px; line-height: 1; }
.page-service .side-banner--placeholder .cpx-ph-title { font-size: 17px; font-weight: 700; }
.page-service .side-banner--placeholder .cpx-ph-sub { font-size: 12px; opacity: .85; }

/* Mobile: vẫn cho ảnh card hiển thị đủ cao */
@media (max-width: 860px) {
    .page-service .svc-detail-img.has-photo { min-height: 200px; height: 200px; }
    .page-service .side-banner--image,
    .page-service .side-banner--image img { min-height: 280px; }
}

/* =====================================================================
   Task #68 #4 — Bo góc hình ảnh trên trang Dịch vụ (card listing).
   ===================================================================== */
.page-service .svc-detail-img {
    border-radius: 14px;
    overflow: hidden;
}

/* =====================================================================
   Task #68 #2 — Trang CHI TIẾT dịch vụ: thu nhỏ ảnh cho cân đối + slider.
   - Hero "Ảnh dịch vụ" cap chiều cao để không quá lớn, căn giữa cân đối.
   - Slider "Sản phẩm đã hoàn thành" giữ thumbnail nhỏ (aspect 4/3, 4/view).
   ===================================================================== */
.single-service-content .svc-hero-photo {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.single-service-content .svc-hero-photo img {
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
}
/* Card slider nhỏ gọn, cân đối hơn */
.completed-card {
    max-width: 260px;
    margin: 0 auto;
}

/* =====================================================================
   Task #70 — Cát Phương Xa · Trang chi tiết dịch vụ (6 mục feedback)
   File load SAU common.css + các block trên → thắng độ ưu tiên.
   ===================================================================== */

/* #1 — Ảnh tiêu đề đầu trang: lấp đầy ô + zoom khi rê chuột */
.single-service-content .svc-icon-badge--photo {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: none;
    box-shadow: 0 12px 30px rgba(9, 74, 54, 0.22);
    overflow: hidden;
}
.single-service-content .svc-icon-badge--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;                 /* bỏ invert của icon → hiện ảnh thật */
    transition: transform 0.5s ease;
    display: block;
}
.single-service-content .svc-icon-badge--photo:hover img {
    transform: scale(1.12);
}
@media (max-width: 600px) {
    .single-service-content .svc-icon-badge--photo { width: 140px; height: 140px; }
}

/* #2 — Mô tả căn giữa + tăng cỡ chữ +20% */
.single-service-content .lead {
    font-size: 21.6px;            /* 18px +20% */
    color: #555;
    line-height: 1.7;
}
.single-service-content .svc-desc {
    text-align: center;
    font-size: 1.2em;            /* +20% so với prose mặc định */
    line-height: 1.85;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.single-service-content .svc-desc p,
.single-service-content .svc-desc li,
.single-service-content .svc-desc span {
    font-size: inherit;
}

/* #3 — Khối ảnh đầu trang dạng slider tự chạy, ảnh full khung */
.single-service-content .svc-hero-swiper-wrap {
    max-width: 1000px;
    margin: 0 auto 28px;
}
.single-service-content .svc-hero-swiper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(9, 74, 54, 0.16);
}
.single-service-content .svc-hero-swiper .swiper-slide {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.single-service-content .svc-hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.single-service-content .svc-hero-swiper .swiper-pagination {
    bottom: 12px;
}
.single-service-content .svc-hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}
.single-service-content .svc-hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gold, #E0A93B);
}

/* #4 — Tăng size tiêu đề "Tính năng & lợi ích" */
.single-service-content h3.svc-section-title {
    font-size: 30px;
    line-height: 1.25;
    color: var(--green-dark, #094A36);
}
@media (max-width: 600px) {
    .single-service-content h3.svc-section-title { font-size: 24px; }
}

/* #6 — Khối "Quan tâm dịch vụ này?": nền vân đá marble XANH LÁ (màu chủ đạo website).
   Task #73 #3 — đổi từ xanh dương sang xanh lá brand (#073d2c → #1c8a63). */
.single-service-content .cta-banner--marble {
    background-color: #073d2c;
    background-image:
        radial-gradient(120% 90% at 12% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        radial-gradient(110% 90% at 88% 82%, rgba(126, 217, 179, 0.22) 0%, transparent 50%),
        conic-gradient(from 210deg at 35% 40%, #063b2b, #0e6b4e, #094a36, #1c8a63, #063b2b),
        linear-gradient(135deg, #063b2b 0%, #0e6b4e 100%);
    background-blend-mode: screen, screen, overlay, normal;
    border-left-color: var(--gold, #E0A93B);
}
/* Vân đá marble bằng SVG turbulence — lớp phủ; nếu fail vẫn còn nền xanh lá gradient.
   feColorMatrix đổi sang tông xanh lá ngọc (RGB ~0.49/0.85/0.70) cho vân đá xanh. */
.single-service-content .cta-banner--marble::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='320'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014 0.05' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.49 0 0 0 0 0.85 0 0 0 0 0.70 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.5;
    mix-blend-mode: screen;
}
.single-service-content .cta-banner--marble h2,
.single-service-content .cta-banner--marble p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* =====================================================================
   Task #124 — Cát Phương Xa · Trang Dịch vụ (/dich-vu/) — 4 mục feedback
   File load SAU common.css + style.css → thắng độ ưu tiên (không cần !important).
   ===================================================================== */

/* #1 — Trình bày info mỗi dịch vụ thành TỪNG HÀNG gọn gàng:
   feature list từ lưới 2 cột → 1 cột (mỗi tính năng một dòng ngang),
   căn lề trên cho đều, khoảng cách thoáng. Card vẫn là 1 hàng ngang
   (ảnh trái | nội dung phải) như cũ. */
.page-service .svc-features {
    grid-template-columns: 1fr;   /* mỗi dòng một tính năng */
    gap: 9px 0;
    margin-bottom: 16px;
}
.page-service .svc-features li {
    align-items: flex-start;       /* tick ✓ thẳng dòng đầu khi mô tả dài */
    line-height: 1.55;
}
.page-service .svc-features li::before {
    margin-top: 1px;
    flex: 0 0 auto;
}
/* Thân card thoáng hơn cho bố cục theo dòng */
.page-service .svc-detail-body { padding: 24px 26px; }

/* #2 — Cho click cả ẢNH và TIÊU ĐỀ dịch vụ → trang chi tiết.
   (.svc-detail-img giờ là <a>, .svc-title-link bọc tiêu đề). */
.page-service a.svc-detail-img {
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}
.page-service a.svc-detail-img .svc-cover { transition: transform 0.5s ease; }
.page-service a.svc-detail-img:hover .svc-cover { transform: scale(1.06); }
.page-service .svc-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.page-service .svc-title-link:hover { color: var(--green, #0E6B4E); }

/* #3 — Button "ĐẶT DỊCH VỤ": nền vân đá marble XANH LÁ (màu chủ đạo),
   chữ VÀNG KIM. Tái dùng gradient marble như CTA trang chi tiết. */
.page-service .svc-detail-body a.btn.btn-gold {
    background-color: #073d2c;
    background-image:
        radial-gradient(120% 90% at 12% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        radial-gradient(110% 90% at 88% 82%, rgba(126, 217, 179, 0.22) 0%, transparent 50%),
        conic-gradient(from 210deg at 35% 40%, #063b2b, #0e6b4e, #094a36, #1c8a63, #063b2b),
        linear-gradient(135deg, #063b2b 0%, #0e6b4e 100%);
    background-blend-mode: screen, screen, overlay, normal;
    color: var(--gold, #E0A93B);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(224, 169, 59, 0.35);
}
.page-service .svc-detail-body a.btn.btn-gold:hover {
    color: #FFD86B;                         /* vàng kim sáng hơn khi rê chuột */
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(7, 61, 44, 0.35);
}

/* #4 — Tăng cỡ chữ TOÀN TRANG /dich-vu/ +10% (các phần tử chữ có size px cố định). */
.page-service .page-banner h1      { font-size: 35.2px; }   /* 32 +10% */
.page-service .page-banner .sub    { font-size: 15.4px; }   /* 14 +10% */
.page-service .breadcrumb          { font-size: 14.3px; }   /* 13 +10% */
.page-service .sidebar-header      { font-size: 15.4px; }   /* 14 +10% */
.page-service .sidebar-list li a   { font-size: 15.4px; }   /* ~14 +10% */
.page-service .svc-detail-body h3  { font-size: 19.8px; }   /* 18 +10% */
.page-service .svc-detail-body .price-row { font-size: 17.6px; } /* 16 +10% */
.page-service .svc-detail-body p   { font-size: 14.3px; }   /* 13 +10% */
.page-service .svc-features li     { font-size: 13.2px; }   /* 12 +10% */
.page-service .svc-detail-body a.btn.btn-gold { font-size: 15.4px; } /* 14 +10% */
@media (max-width: 600px) {
    .page-service .page-banner h1   { font-size: 24.2px; }  /* 22 +10% */
    .page-service .page-banner .sub { font-size: 13.2px; }  /* 12 +10% */
    .page-service .breadcrumb       { font-size: 13.2px; }  /* 12 +10% */
}
