/* ============================================
   SERVICE PAGES — Cho thuê / Thu mua / Cầm sim
   ============================================ */

.svc-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Header ─────────────────────────────────── */
.svc-header {
    padding: 32px 28px 28px;
    text-align: center;
    color: var(--white);
}
.svc-header--green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.svc-header--blue  { background: linear-gradient(135deg, var(--blue) 0%, #0D47A1 100%); }
.svc-header--gold  { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.svc-header--red   { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); }

.svc-header__icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.svc-header__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--white);
}
.svc-header__sub {
    opacity: 0.9;
    font-size: 13px;
    line-height: 1.5;
}
.svc-benefits {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.svc-benefit {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Body ────────────────────────────────────── */
.svc-body {
    padding: 32px 28px;
}

/* ── Sections ────────────────────────────────── */
.svc-section {
    margin-bottom: 32px;
}
.svc-section:last-child {
    margin-bottom: 0;
}
.svc-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}
.svc-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 0;
}

/* ── Grid layouts ────────────────────────────── */
.svc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}
.svc-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

/* ── Info cards ──────────────────────────────── */
.svc-info-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
}
.svc-info-card__icon {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.svc-info-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
}
.svc-info-card p {
    font-size: 13px;
    color: var(--warm-gray);
    line-height: 1.5;
    margin: 0;
}
.svc-info-card--compact {
    padding: 14px;
}
.svc-info-card--compact h4 {
    font-size: 13px;
    margin-bottom: 4px;
}
.svc-info-card--compact p {
    font-size: 12px;
}

/* ── Table ───────────────────────────────────── */
.svc-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: 14px;
}
.svc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.svc-table thead {
    background: var(--light-bg);
}
.svc-table th {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--charcoal);
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.svc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--charcoal);
}
.svc-table tbody tr:last-child td {
    border-bottom: none;
}
.svc-table tbody tr:hover {
    background: var(--hover-warm);
}
.svc-price-cell {
    font-weight: 700;
    color: var(--cta);
}

/* Badges */
.svc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.svc-badge--green { background: var(--green-light); color: var(--green); }
.svc-badge--blue  { background: var(--blue-light); color: var(--blue); }
.svc-badge--gold  { background: var(--gold-light); color: var(--gold-dark); }
.svc-badge--red   { background: var(--red-light); color: var(--red); }

/* ── Steps ───────────────────────────────────── */
.svc-steps {
    margin-top: 14px;
}
.svc-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.svc-step-item:last-child {
    margin-bottom: 0;
}
.svc-step-item__num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}
.svc-step-item--blue .svc-step-item__num { background: var(--blue); }
.svc-step-item--gold .svc-step-item__num { background: var(--accent); }

.svc-step-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}
.svc-step-item p {
    font-size: 13px;
    color: var(--warm-gray);
    margin: 0;
    line-height: 1.5;
}

/* ── Note ────────────────────────────────────── */
.svc-note {
    font-size: 12px;
    color: var(--warm-gray);
    font-style: italic;
    margin-top: 10px;
}

/* ── Form ────────────────────────────────────── */
.svc-form {
    margin-top: 14px;
}
.svc-form .form-group {
    margin-bottom: 16px;
}
.svc-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}
.svc-form .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-body);
}
.svc-form .form-input:focus {
    border-color: var(--primary);
}
.svc-form select.form-input {
    cursor: pointer;
    appearance: auto;
}
.svc-form textarea.form-input {
    resize: vertical;
    min-height: 80px;
}
.svc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Submit button ───────────────────────────── */
.svc-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.svc-submit-btn--green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.svc-submit-btn--blue  { background: linear-gradient(135deg, var(--blue), #0D47A1); }
.svc-submit-btn--gold  { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

.svc-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.svc-submit-btn:active {
    transform: translateY(0);
}

.svc-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--warm-gray);
    margin-top: 12px;
}

/* ── CTA Box ─────────────────────────────────── */
.svc-cta {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    margin-top: 8px;
}
.svc-cta__title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.svc-cta__desc {
    font-size: var(--text-sm);
    color: var(--warm-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ============================================
   PHONG THỦY PAGE — Specific components
   ============================================ */

/* Header gradient */
.pt-header {
    background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 50%, #311B92 100%);
}

/* Element badges */
.pt-el {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.pt-el--kim  { background: #F5F5F5; color: #616161; border: 1px solid #BDBDBD; }
.pt-el--moc  { background: var(--green-light); color: var(--green); }
.pt-el--thuy { background: var(--blue-light); color: var(--blue); }
.pt-el--hoa  { background: var(--red-light); color: var(--red); }
.pt-el--tho  { background: var(--orange-light); color: var(--orange); }

/* Ngũ hành cycle diagram */
.pt-cycle {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}
.pt-cycle__inner {
    position: relative;
    width: 320px;
    height: 320px;
}
.pt-cycle__item {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.pt-cycle__label { font-size: 14px; font-weight: 800; }
.pt-cycle__nums  { font-size: 10px; opacity: 0.85; }

.pt-cycle__item--kim  { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); color: #333; top: 0; left: 50%; transform: translateX(-50%); }
.pt-cycle__item--thuy { background: linear-gradient(135deg, #42A5F5, #1565C0); top: 24%; right: 0; }
.pt-cycle__item--moc  { background: linear-gradient(135deg, #66BB6A, #2E7D32); bottom: 5%; right: 10%; }
.pt-cycle__item--hoa  { background: linear-gradient(135deg, #EF5350, #C62828); bottom: 5%; left: 10%; }
.pt-cycle__item--tho  { background: linear-gradient(135deg, #FFA726, #E65100); top: 24%; left: 0; }

.pt-cycle__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12px;
    color: var(--warm-gray);
    line-height: 1.6;
}
.pt-cycle__center small { display: block; font-size: 10px; }

/* Mệnh detail cards */
.pt-menh-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.pt-menh-card:last-child { margin-bottom: 0; }

.pt-menh-card__header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pt-menh-card__icon {
    font-size: 24px;
}
.pt-menh-card__name {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    flex: 1;
}
.pt-menh-card__nums {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 100px;
}
.pt-menh-card__body {
    padding: 16px 20px;
}
.pt-menh-card__body > p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
    margin: 0 0 12px;
}
.pt-menh-card__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.pt-menh-card__detail {
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.5;
}
.pt-menh-card__detail strong {
    color: var(--dark);
    margin-right: 4px;
}
.pt-menh-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: gap 0.2s;
}
.pt-menh-card__link:hover {
    gap: 10px;
}

/* Mệnh quick links grid */
.pt-menh-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.pt-menh-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.pt-menh-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.pt-menh-link__icon { font-size: 28px; }
.pt-menh-link__name { font-size: 14px; font-weight: 800; }
.pt-menh-link__nums { font-size: 11px; opacity: 0.85; }
.pt-menh-link svg { opacity: 0.7; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
    .svc-card {
        border-radius: var(--radius-lg);
        margin: 0 -4px;
    }
    .svc-header { padding: 24px 16px; }
    .svc-header__title { font-size: 20px; }
    .svc-body { padding: 24px 16px; }
    .svc-benefits { gap: 8px; }
    .svc-benefit { padding: 5px 10px; font-size: 11px; }
    .svc-grid-2 { grid-template-columns: 1fr; }
    .svc-grid-3 { grid-template-columns: 1fr 1fr; }
    .svc-form__row { grid-template-columns: 1fr; gap: 0; }
    .svc-table { font-size: 12px; }
    .svc-table th,
    .svc-table td { padding: 10px 12px; }
    .pt-menh-links { grid-template-columns: repeat(2, 1fr); }
    .pt-cycle__inner { width: 260px; height: 260px; }
    .pt-cycle__item { width: 60px; height: 60px; }
    .pt-cycle__label { font-size: 12px; }
    .pt-cycle__nums { font-size: 9px; }
    .svc-submit-btn { padding: 12px; font-size: 14px; gap: 8px; }
    .svc-submit-btn svg { width: 16px; height: 16px; }
    .svc-footer-note { font-size: 11px; }
    .svc-cta { padding: 20px 16px; }
    .svc-cta__title { font-size: 16px; }
    .svc-cta__desc { font-size: 13px; }
    .pt-menh-card__header { flex-wrap: wrap; }
    .pt-menh-card__nums { margin-top: 4px; }
    .lp-related__item { flex-direction: column; }
    .lp-related__icon,
    .lp-related__thumb { width: 100%; min-width: 0; height: 120px; }
}

/* ── Landing Page Related Posts ─────────────── */
.lp-related {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lp-related__item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-soft, #f8fafc);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-related__item:hover {
    border-color: var(--green, #22c55e);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}
.lp-related__thumb {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}
.lp-related__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lp-related__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-accent, #f0fdf4), var(--bg-soft, #f8fafc));
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
}
.lp-related__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lp-related__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading, #1e293b);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lp-related__item:hover .lp-related__title {
    color: var(--green, #22c55e);
}
.lp-related__excerpt {
    font-size: 13px;
    color: var(--muted, #64748b);
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lp-related__meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted, #94a3b8);
}
