/* Hải Long Services UI Pro Max - Archive, Catalog, & Single Service Post */
.hl-svc-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* 1. Archive Hero */
.hl-svc-hero {
    background: radial-gradient(circle at 88% 12%, rgba(194, 26, 27, 0.08) 0%, rgba(194, 26, 27, 0) 46%), linear-gradient(180deg, #ffffff 0%, #fff7f7 55%, #f8fafc 100%);
    color: #0f172a; padding: 54px 0 46px; text-align: center;
    border-top: 1px solid #f1f5f9; border-bottom: 3px solid #c21a1b;
}
.hl-svc-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
    background: #fef2f2; border: 1px solid #fecaca;
    color: #b91c1c; font-size: 12.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 14px;
}
.hl-svc-hero h1 {
    color: #0f172a; font-size: clamp(25px, 3.4vw, 38px); font-weight: 900;
    line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.4px;
}
.hl-svc-hero-desc { color: #475569; font-size: 15.5px; line-height: 1.68; max-width: 800px; margin: 0 auto 24px; }
.hl-svc-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.hl-svc-hero-btn-primary,
.hl-svc-hero-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 800;
    text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.hl-svc-hero-btn-primary {
    background: #c21a1b; color: #ffffff !important; border: 2px solid #c21a1b;
    box-shadow: 0 6px 18px rgba(194, 26, 27, 0.28);
}
.hl-svc-hero-btn-primary:hover { background: #991b1b; border-color: #991b1b; transform: translateY(-2px); }
.hl-svc-hero-btn-outline { background: #ffffff; color: #0f172a !important; border: 1.5px solid #cbd5e1; }
.hl-svc-hero-btn-outline:hover { background: #fff5f5; border-color: #c21a1b; color: #c21a1b !important; transform: translateY(-2px); }
.hl-svc-hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 960px; margin: 0 auto; }
.hl-svc-hero-metrics > div {
    background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    border-radius: 12px; padding: 14px 12px;
}
.hl-svc-hero-metrics strong { display: block; color: #c21a1b; font-size: 20px; font-weight: 900; line-height: 1.2; margin-bottom: 3px; }
.hl-svc-hero-metrics span { display: block; color: #475569; font-size: 12.5px; font-weight: 600; }

/* 2. Catalog Controls & Tabs */
.hl-svc-catalog-section { padding: 42px 0 56px; background: #ffffff; }
.hl-svc-showcase { width: 100%; max-width: 1240px; margin: 0 auto; padding: 6px 0 12px; box-sizing: border-box; }
.hl-svc-controls { margin-bottom: 26px; display: flex; flex-direction: column; gap: 16px; }
.hl-svc-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hl-svc-tab {
    background: #ffffff; color: #334155; border: 1.5px solid #cbd5e1; padding: 9px 18px; min-height: 42px;
    border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hl-svc-tab:hover { border-color: #c21a1b; color: #c21a1b; transform: translateY(-1px); }
.hl-svc-tab.is-active { background: #c21a1b; color: #ffffff; border-color: #c21a1b; box-shadow: 0 4px 14px rgba(194, 26, 27, 0.25); }

.hl-svc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hl-svc-search-wrap { position: relative; flex: 1 1 320px; max-width: 480px; }
.hl-svc-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.hl-svc-search-input {
    width: 100% !important; min-height: 44px; padding: 10px 14px 10px 42px !important; margin: 0 !important;
    border: 1.5px solid #cbd5e1 !important; border-radius: 12px !important; background: #f8fafc !important;
    color: #0f172a !important; font-size: 14px !important; box-sizing: border-box;
}
.hl-svc-search-input:focus { background: #ffffff !important; border-color: #c21a1b !important; outline: none; box-shadow: 0 0 0 3px rgba(194, 26, 27, 0.14); }
.hl-svc-counter { font-size: 13.5px; color: #475569; font-weight: 600; }
.hl-svc-counter strong { color: #0f172a; }

/* 3. Service Cards Grid */
.hl-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.hl-svc-card {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05); display: flex; flex-direction: column; min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hl-svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1); border-color: rgba(194, 26, 27, 0.35); }
.hl-svc-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #f1f5f9; overflow: hidden; }
.hl-svc-thumb a { display: block; width: 100%; height: 100%; }
.hl-svc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.45s ease; }
.hl-svc-card:hover .hl-svc-thumb img { transform: scale(1.04); }
.hl-svc-thumb--contain { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); padding: 12px; box-sizing: border-box; }
.hl-svc-thumb--contain img { object-fit: contain; }
.hl-svc-card:hover .hl-svc-thumb--contain img { transform: scale(1.02); }

.hl-svc-pill {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; line-height: 1.3;
}
.hl-svc-thumb .hl-svc-pill { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.hl-svc-pill--red { background: #c21a1b; color: #ffffff; }
.hl-svc-pill--amber { background: #b45309; color: #ffffff; }
.hl-svc-pill--blue { background: #0369a1; color: #ffffff; }
.hl-svc-pill--green { background: #047857; color: #ffffff; }

.hl-svc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.hl-svc-title {
    font-size: 16.5px; font-weight: 800; line-height: 1.42; margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-svc-title a { color: #0f172a; text-decoration: none; }
.hl-svc-title a:hover { color: #c21a1b; }
.hl-svc-desc {
    font-size: 13.8px; color: #475569; line-height: 1.62; margin: 0 0 18px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-svc-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.hl-svc-btn-call,
.hl-svc-btn-detail {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
    border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none;
}
.hl-svc-btn-call { background: #fef2f2; color: #b91c1c; }
.hl-svc-btn-call:hover { background: #c21a1b; color: #ffffff; }
.hl-svc-btn-detail { color: #0f172a; }
.hl-svc-btn-detail:hover { color: #c21a1b; }

.hl-svc-empty { text-align: center; padding: 42px 20px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 16px; margin-top: 10px; }
.hl-svc-empty p { color: #475569; font-size: 15.5px; margin: 0 0 14px; }
.hl-svc-reset-btn {
    background: #c21a1b; color: #ffffff; border: 0; border-radius: 999px;
    padding: 10px 22px; min-height: 42px; font-size: 14px; font-weight: 800; cursor: pointer;
}

/* 4. Process & Quote Sections on Archive / Services Page */
.hl-svc-process-section { padding: 56px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.hl-svc-section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.hl-svc-section-head h2 { color: #0f172a; font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; margin: 0 0 8px; }
.hl-svc-section-head p { color: #475569; font-size: 15px; margin: 0; }
.hl-svc-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl-svc-step { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 18px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); }
.hl-svc-step span {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 10px; background: #c21a1b; color: #ffffff; font-weight: 900; font-size: 14px; margin-bottom: 12px;
}
.hl-svc-step h3 { color: #0f172a; font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.hl-svc-step p { color: #475569; font-size: 13.8px; line-height: 1.62; margin: 0; }
.hl-svc-quote-section { padding: 58px 0; background: #ffffff; }
.hl-svc-quote-inner { max-width: 920px; }

/* 5. Single Service Post UX */
.single-post .large-10.col { max-width: 900px; flex-basis: 100%; }
.hl-svc-single-top { margin-bottom: 26px; }
.hl-svc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: #64748b; margin-bottom: 14px; }
.hl-svc-breadcrumb a { color: #334155; font-weight: 600; text-decoration: none; }
.hl-svc-breadcrumb a:hover { color: #c21a1b; text-decoration: underline; }
.hl-svc-single-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 18px;
}
.hl-svc-single-meta i { color: #c21a1b; margin-right: 4px; }
.hl-svc-single-figure {
    margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0;
    background: #0f172a; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}
.hl-svc-single-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; display: block; }
.hl-svc-single-figure--contain { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.hl-svc-single-figure--contain img { max-height: 440px; object-fit: contain; padding: 18px; box-sizing: border-box; }
.hl-svc-single-figure figcaption { padding: 11px 16px; background: #ffffff; border-top: 1px solid #e2e8f0; font-size: 13px; font-weight: 600; color: #475569; text-align: center; }

.hl-svc-single-prose { color: #1e293b; font-size: 16px; line-height: 1.78; }
.hl-svc-single-prose h2 { color: #0f172a; font-size: 22px; font-weight: 900; margin: 28px 0 12px; }
.hl-svc-single-prose h3 { color: #0f172a; font-size: 18px; font-weight: 800; margin: 20px 0 8px; }
.hl-svc-single-prose ul, .hl-svc-single-prose ol { padding-left: 22px; margin-bottom: 18px; }
.hl-svc-single-prose li { margin-bottom: 8px; }

.hl-svc-single-cta {
    margin: 34px 0 28px; padding: 26px; border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #ffffff;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hl-svc-single-cta h3 { color: #ffffff; font-size: 20px; font-weight: 900; margin: 0 0 6px; }
.hl-svc-single-cta p { color: #cbd5e1; font-size: 14.5px; margin: 0; max-width: 520px; }
.hl-svc-single-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-svc-cta-btn-primary,
.hl-svc-cta-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px;
    border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none;
}
.hl-svc-cta-btn-primary { background: #c21a1b; color: #ffffff !important; }
.hl-svc-cta-btn-primary:hover { background: #991b1b; }
.hl-svc-cta-btn-secondary { background: #ffffff; color: #0f172a !important; }
.hl-svc-cta-btn-secondary:hover { background: #f1f5f9; }

.hl-svc-related { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.hl-svc-related-title { color: #0f172a; font-size: 21px; font-weight: 900; margin: 0 0 18px; }
.hl-svc-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hl-svc-related-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04); }
.hl-svc-related-body { padding: 14px 16px; }
.hl-svc-related-body h3 { font-size: 14.5px; font-weight: 800; line-height: 1.45; margin: 0; }
.hl-svc-related-body a { color: #0f172a; text-decoration: none; }
.hl-svc-related-body a:hover { color: #c21a1b; }

.hl-svc-tab:focus-visible, .hl-svc-btn-call:focus-visible, .hl-svc-btn-detail:focus-visible,
.hl-svc-hero-btn-primary:focus-visible, .hl-svc-hero-btn-outline:focus-visible { outline: 3px solid #c21a1b; outline-offset: 2px; }

@media (max-width: 992px) {
    .hl-svc-grid, .hl-svc-hero-metrics, .hl-svc-process-grid { grid-template-columns: repeat(2, 1fr); }
    .hl-svc-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hl-svc-grid, .hl-svc-hero-metrics, .hl-svc-process-grid, .hl-svc-related-grid { grid-template-columns: 1fr; }
    .hl-svc-tab { font-size: 12.5px; padding: 8px 14px; }
    .hl-svc-hero-actions { flex-direction: column; }
    .hl-svc-hero-btn-primary, .hl-svc-hero-btn-outline { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hl-svc-card, .hl-svc-thumb img, .hl-svc-tab, .hl-svc-hero-btn-primary, .hl-svc-hero-btn-outline { transition: none; }
}
