/* Single post — tách từ single.php (P2 2026-07-16) */
/* === S1: HERO BANNER === */
.sp-hero {
    background: linear-gradient(135deg, #0a3b73 0%, #0c1a2c 100%);
    color: #fff;
    padding: 44px 20px 36px;
    border-bottom: 4px solid #FF6B6B;
}
.sp-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}
.sp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.sp-hero h1 {
    color: #fff !important;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
    font-family: 'Nunito', sans-serif;
}
.sp-breadcrumbs {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 16px;
}
.sp-breadcrumbs a { color: #fff; text-decoration: none; }
.sp-breadcrumbs a:hover { text-decoration: underline; }
.sp-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    opacity: 0.85;
}
.sp-meta-bar span { display: flex; align-items: center; gap: 5px; }

/* === S2+S3+S4: 3-COLUMN LAYOUT === */
.sp-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 28px;
    align-items: start;
}
/* Author Sidebar (Left) */
.sp-author { position: sticky; top: 90px; }
.sp-author-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ebeef5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 24px 16px;
    text-align: center;
}
.sp-author-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ebeef5;
    margin-bottom: 10px;
}
.sp-author-label {
    display: block; font-size: 10px; text-transform: uppercase;
    color: #999; letter-spacing: 1px; margin-bottom: 3px;
}
.sp-author-name {
    font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #111b27;
}
.sp-author-rank {
    display: inline-block; background: #fdf6ec; color: #e6a23c;
    font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 700;
}
.sp-author-bio {
    font-size: 12px; color: #888; line-height: 1.5;
    border-top: 1px solid #f2f6fc; padding-top: 10px; margin-top: 10px;
}

/* Main Content (Center) */
.sp-main {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ebeef5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 32px;
    min-width: 0;
}

/* Info Bar */
.sp-info-bar {
    display: flex; flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; gap: 12px;
    background: #f8fafc;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #0a3b73;
    font-size: 13px; color: #666;
}
.sp-info-bar a { color: #0a3b73; font-weight: 600; text-decoration: none; }
.sp-stars { display: flex; align-items: center; gap: 6px; }
.sp-stars i { color: #f1c40f; font-size: 13px; }
.sp-stars-label { font-size: 11px; font-weight: 700; color: #888; }

/* Inline TOC */
.sp-toc {
    border: 1px solid #04c9ba;
    background: #f3fcfb;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 28px;
}
.sp-toc-header {
    font-weight: 700; font-size: 14px; color: #04c9ba;
    border-bottom: 1px solid rgba(4,201,186,0.3);
    padding-bottom: 10px; margin-bottom: 10px;
}
.sp-toc-list { display: flex; flex-direction: column; gap: 5px; }
.sp-toc-item a {
    color: #444; text-decoration: none; font-size: 13.5px;
    font-weight: 500; transition: color 0.2s; display: block;
    padding: 3px 0;
}
.sp-toc-item a:hover { color: #04c9ba; }
.sp-toc-item.sub { padding-left: 16px; }
.sp-toc-item.active a { color: #04c9ba; font-weight: 700; }

/* Featured Image */
.sp-featured-img {
    width: 100%; border-radius: 10px;
    margin-bottom: 28px; display: block;
    object-fit: cover; max-height: 420px;
}

/* Entry Content Styling */
.sp-main .entry-content h2 {
    font-size: 22px; font-weight: 800; color: #111b27;
    margin: 36px 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid #f0f3f8;
}
.sp-main .entry-content h3 {
    font-size: 18px; font-weight: 700; color: #333;
    margin: 28px 0 12px;
}
.sp-main .entry-content p {
    font-size: 15.5px; line-height: 1.8; color: #3c4043;
    margin-bottom: 16px;
}
.sp-main .entry-content ul,
.sp-main .entry-content ol {
    margin: 0 0 20px 20px; font-size: 15px; line-height: 1.8;
}
.sp-main .entry-content table {
    width: 100%; border-collapse: collapse; margin: 16px 0 24px;
    font-size: 14px;
}
.sp-main .entry-content th,
.sp-main .entry-content td {
    border: 1px solid #e8ecf1; padding: 10px 14px; text-align: left;
}
.sp-main .entry-content th {
    background: #f8fafc; font-weight: 700; color: #333;
}
.sp-main .entry-content img {
    max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0;
}

/* ============================================
   LISTING CARD CSS (shortcode [smedec_listing])
   ============================================ */
.smedec-listing {
    margin-bottom: 24px;
    transition: opacity 0.3s;
}
.smedec-listing-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.2s;
    align-items: start;
}
.smedec-listing-card:hover {
    box-shadow: 0 8px 30px rgba(10,59,115,0.1);
    transform: translateY(-2px);
}
.smedec-listing-img-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 180px;
    height: 140px;
    background: #f0f3f8;
}
.smedec-listing-img {
    width: 180px; height: 140px;
    object-fit: cover; display: block;
    border-radius: 10px;
}
/* Placeholder when no image */
.smedec-listing-img-box .listing-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    background: linear-gradient(135deg, #e8ecf1 0%, #f8fafc 100%);
    color: #bbb; font-size: 28px;
}
.smedec-listing-img-box .listing-placeholder span {
    font-size: 11px; color: #ccc; font-weight: 600;
}
.smedec-listing-rating-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,0.75); color: #f1c40f;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    z-index: 2;
}
.smedec-listing-rating-badge i { margin-right: 3px; }
.smedec-listing-details { min-width: 0; }
.smedec-listing-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.smedec-listing-name {
    font-size: 17px; font-weight: 700; color: #111b27;
    margin: 0; line-height: 1.3;
    word-break: break-word;
}
.smedec-header-actions {
    display: flex; align-items: center; gap: 6px;
    flex-shrink: 0;
}
.compare-lbl {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #888; cursor: pointer;
    white-space: nowrap;
    background: #f8fafc; padding: 4px 10px;
    border-radius: 6px; border: 1px solid #ebeef5;
    transition: all 0.2s;
}
.compare-lbl:hover { border-color: #0a3b73; color: #0a3b73; }
.compare-lbl input { accent-color: #0a3b73; width: 14px; height: 14px; }

/* Info Rows — aligned and no overflow */
.smedec-listing-info { margin-bottom: 10px; }
.info-row {
    font-size: 13.5px; color: #555; padding: 5px 0;
    display: flex; gap: 6px;
    align-items: baseline;
    word-break: break-word;
    border-bottom: 1px solid #f9f9f9;
}
.info-row:last-child { border-bottom: none; }
.info-row strong {
    color: #333; flex: 0 0 110px;
    font-size: 12.5px; text-transform: uppercase;
    letter-spacing: 0.3px;
}
.info-row span { flex: 1; min-width: 0; word-break: break-word; }
.price-val { color: #e74c3c; font-weight: 600; }
.small-copy {
    background: none; border: none; cursor: pointer;
    color: #999; font-size: 12px; padding: 0 4px;
    transition: color 0.2s; vertical-align: middle;
}
.small-copy:hover { color: #0a3b73; }

/* Province Merger Badge — Clear OLD → NEW */
.smedec-merger-badge {
    display: flex; align-items: flex-start; gap: 10px;
    background: linear-gradient(135deg, #fef9e7, #fdf2d5);
    border: 1px solid #f0d76e;
    border-left: 4px solid #f39c12;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    font-size: 12.5px; color: #7d6608;
    margin: 10px 0;
    line-height: 1.6;
}
.smedec-merger-badge i {
    color: #f39c12; font-size: 16px;
    margin-top: 1px; flex-shrink: 0;
}
.smedec-merger-badge .merger-label {
    font-weight: 700; color: #b7950b;
    text-transform: uppercase; font-size: 11px;
    letter-spacing: 0.5px;
    display: block; margin-bottom: 3px;
}
.smedec-merger-badge .merger-old {
    text-decoration: line-through; color: #c0392b; font-weight: 500;
}
.smedec-merger-badge .merger-new {
    color: #27ae60; font-weight: 700;
}
.smedec-merger-badge .merger-arrow {
    color: #f39c12; font-weight: 700; margin: 0 4px;
}

/* Description */
.smedec-listing-description {
    font-size: 14px; color: #555; line-height: 1.7;
    margin-bottom: 12px;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
}

/* Action Buttons — 2x2 Grid, consistent */
.smedec-listing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f3f8;
}
.smedec-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 5px;
    padding: 9px 12px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
    text-decoration: none !important; border: none;
    cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}
.smedec-btn-call,
.gold-evergreen-content a.smedec-btn-call,
.entry-content a.smedec-btn-call {
    background: #FF6B6B !important; color: #fff !important;
    text-decoration: none !important;
}
.smedec-btn-call:hover,
.gold-evergreen-content a.smedec-btn-call:hover { background: #e74c3c !important; color: #fff !important; }
.smedec-btn-map,
.gold-evergreen-content a.smedec-btn-map,
.entry-content a.smedec-btn-map {
    background: #27ae60 !important; color: #fff !important;
    text-decoration: none !important;
}
.smedec-btn-map:hover,
.gold-evergreen-content a.smedec-btn-map:hover { background: #219a52 !important; color: #fff !important; }
.smedec-btn-copy {
    background: #f0f3f8 !important; color: #555 !important;
}
.smedec-btn-copy:hover { background: #e2e8f0 !important; }
.smedec-btn-fav {
    background: #fff5f5 !important; color: #FF6B6B !important; border: 1px solid #fecaca;
}
.smedec-btn-fav:hover { background: #fee2e2 !important; }
.smedec-btn-fav.active {
    background: #FF6B6B !important; color: #fff !important; border-color: #FF6B6B;
}

/* === REVIEW SYSTEM === */

/* Header review button (next to compare) */
.sr-header-review-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 6px;
    background: #f0f7ff; color: #0a3b73; border: 1px solid #c8ddf0;
    font-size: 11.5px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.sr-header-review-btn:hover { background: #0a3b73; color: #fff; border-color: #0a3b73; }

/* Review container — hidden by default */
.smedec-reviews {
    display: none; margin-top: 16px; padding: 20px;
    background: #f9fafb; border-radius: 12px;
    border: 1px solid #e8ecf1;
    animation: srFadeIn 0.3s ease;
}
.smedec-reviews.active { display: block; }
@keyframes srFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Summary bar */
.sr-summary {
    display: flex; gap: 24px; padding-bottom: 18px;
    border-bottom: 1px solid #e8ecf1; margin-bottom: 16px;
    align-items: center;
}
.sr-avg { text-align: center; min-width: 100px; }
.sr-avg-num { font-size: 36px; font-weight: 800; color: #0a3b73; line-height: 1; }
.sr-avg-stars { margin: 4px 0; }
.sr-avg-count { font-size: 12px; color: #888; }
.sr-avg-imgs { font-size: 11px; color: #aaa; margin-top: 2px; }
.sr-histogram { flex: 1; }
.sr-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sr-bar-label { font-size: 12px; color: #888; min-width: 32px; text-align: right; white-space: nowrap; }
.sr-bar-track { flex: 1; height: 8px; background: #e8ecf1; border-radius: 4px; overflow: hidden; }
.sr-bar-fill { height: 100%; background: linear-gradient(90deg, #f5a623, #ff8c00); border-radius: 4px; transition: width 0.5s ease; }
.sr-bar-pct { font-size: 11px; color: #aaa; min-width: 30px; }

/* Review cards */
.sr-card {
    background: #fff; border-radius: 10px; padding: 16px;
    margin-bottom: 12px; border: 1px solid #eee;
    transition: box-shadow 0.2s;
}
.sr-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.sr-card-owner {
    border-left: 3px solid #0a3b73; background: #f0f6ff;
}
.sr-card-header { display: flex; gap: 12px; margin-bottom: 10px; align-items: center; }
.sr-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; }
.sr-card-meta { flex: 1; }
.sr-card-meta strong { font-size: 13px; color: #333; }
.sr-owner-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    background: #e8f4fd; color: #0a3b73; padding: 2px 8px;
    border-radius: 6px; margin-left: 6px;
}
.sr-card-info { font-size: 11px; color: #999; margin-top: 2px; }
.sr-card-body { font-size: 13px; color: #555; line-height: 1.7; }
.sr-card-images {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.sr-card-images img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 8px;
    border: 1px solid #eee; cursor: pointer; transition: transform 0.2s;
}
.sr-card-images img:hover { transform: scale(1.08); }

/* Load more / Write review buttons */
.sr-load-more, .sr-write-btn {
    display: block; width: 100%; padding: 12px;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    cursor: pointer; text-align: center; transition: all 0.2s;
    font-family: inherit; box-sizing: border-box;
    text-decoration: none;
}
.sr-load-more {
    background: #fff; border: 1px solid #ddd; color: #555;
    margin-bottom: 10px;
}
.sr-load-more:hover { background: #f5f5f5; border-color: #bbb; }
.sr-write-btn {
    background: linear-gradient(135deg, #0a3b73, #0f5caa); border: none;
    color: #fff !important;
}
.sr-write-btn:hover { background: linear-gradient(135deg, #083060, #0d4e91); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10,59,115,0.3); }
.sr-write-btn i { margin-right: 6px; }
.sr-google-btn {
    background: #fff !important; color: #333 !important;
    border: 1px solid #dadce0 !important; font-weight: 600;
    display: flex !important; align-items: center; justify-content: center;
}
.sr-google-btn:hover { background: #f8f9fa !important; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }

/* === REVIEW MODAL === */
.sr-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    justify-content: center; align-items: center;
}
.sr-modal-overlay.active { display: flex; }
.sr-modal {
    background: #fff; border-radius: 16px; padding: 0;
    width: 520px; max-width: 95vw; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: srSlideUp 0.3s ease;
}
@keyframes srSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.sr-modal-header {
    padding: 20px 24px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.sr-modal-header h3 { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
.sr-modal-close { background: none; border: none; font-size: 22px; color: #999; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.sr-modal-close:hover { background: #f5f5f5; color: #333; }
.sr-modal-body { padding: 24px; }

/* Star picker */
.sr-star-picker { display: flex; gap: 6px; margin-bottom: 20px; }
.sr-star-picker i {
    font-size: 28px; color: #ddd; cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.sr-star-picker i:hover { transform: scale(1.2); }
.sr-star-picker i.active { color: #f5a623; }
.sr-star-label { font-size: 13px; color: #888; margin-left: 8px; align-self: center; }

/* Form fields */
.sr-field { margin-bottom: 16px; }
.sr-field label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.sr-field input, .sr-field textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 13px; font-family: inherit;
    outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.sr-field input:focus, .sr-field textarea:focus { border-color: #0a3b73; }
.sr-field textarea { min-height: 100px; resize: vertical; }

/* Image upload */
.sr-img-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sr-img-upload-btn {
    width: 80px; height: 80px; border: 2px dashed #ccc;
    border-radius: 10px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    color: #aaa; font-size: 10px; transition: all 0.2s;
}
.sr-img-upload-btn:hover { border-color: #0a3b73; color: #0a3b73; }
.sr-img-upload-btn i { font-size: 20px; margin-bottom: 3px; }
.sr-img-preview {
    width: 80px; height: 80px; border-radius: 10px;
    object-fit: cover; border: 1px solid #eee; position: relative;
}
.sr-img-preview-wrap { position: relative; display: inline-block; }
.sr-img-remove {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #FF6B6B; color: #fff; border: none;
    font-size: 11px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}

/* Submit */
.sr-submit-btn {
    width: 100%; padding: 14px; border: none;
    background: linear-gradient(135deg, #0a3b73, #0f5caa);
    color: #fff; font-size: 15px; font-weight: 700;
    border-radius: 10px; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
}
.sr-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,59,115,0.3); }
.sr-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.sr-notice { font-size: 12px; color: #999; text-align: center; margin-top: 12px; }
.sr-notice i { color: #e6a23c; margin-right: 4px; }
.sr-msg { padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; text-align: center; }
.sr-msg.success { background: #ecfdf5; color: #065f46; }
.sr-msg.error { background: #fef2f2; color: #991b1b; }

/* Responsive */
@media (max-width: 768px) {
    .sr-summary { flex-direction: column; gap: 14px; }
    .sr-avg { min-width: auto; }
    .sr-modal { width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; margin-top: auto; }
    .sr-card-images img { width: 56px; height: 56px; }
}

/* Filter Bar */
.smedec-filter-bar-wrapper {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 20px 0; padding: 14px 18px;
    background: #f8fafc; border-radius: 10px;
    border: 1px solid #e8ecf1;
}
.filter-label { font-size: 13px; font-weight: 600; color: #555; white-space: nowrap; }
.smedec-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid #ddd; background: #fff;
    font-size: 12.5px; font-weight: 500;
    color: #555; cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: #0a3b73; color: #0a3b73; }
.filter-btn.active {
    background: #0a3b73; color: #fff; border-color: #0a3b73;
}

/* === SIDEBAR (Right) === */
.sp-sidebar { position: sticky; top: 90px; }
.sp-widget {
    background: #fff; border-radius: 10px;
    border: 1px solid #ebeef5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 18px; margin-bottom: 16px;
}
.sp-widget-title {
    font-size: 14px; font-weight: 700; color: #111b27;
    margin: 0 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid #f0f3f8;
}
.sp-widget-title i { color: #0a3b73; margin-right: 6px; }

/* Sidebar: Search */
.sp-search-form { display: flex; gap: 0; }
.sp-search-input {
    flex: 1; padding: 9px 12px; border: 1px solid #ddd;
    border-right: none; border-radius: 6px 0 0 6px;
    font-size: 13px; outline: none;
}
.sp-search-btn {
    padding: 0 14px; background: #0a3b73; color: #fff;
    border: none; border-radius: 0 6px 6px 0;
    cursor: pointer; font-size: 14px;
}

/* Sidebar: Recent Posts */
.sp-recent-item {
    display: flex; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none; color: #333;
    transition: color 0.2s;
}
.sp-recent-item:last-child { border-bottom: none; }
.sp-recent-item:hover { color: #0a3b73; }
.sp-recent-thumb {
    width: 55px; height: 45px; border-radius: 6px;
    object-fit: cover; flex-shrink: 0;
}
.sp-recent-title { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.sp-recent-date { font-size: 11px; color: #999; }

/* Sidebar: Share */
.sp-share-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sp-share-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; padding: 9px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; color: #fff;
    transition: opacity 0.2s;
    border: none; cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    width: 100%; min-height: 38px;
    -webkit-appearance: none; appearance: none;
    margin: 0;
}
.sp-share-btn:hover { opacity: 0.85; color: #fff; }
.sp-share-fb { background: #1877F2; }
.sp-share-zalo { background: #0068FF; }
.sp-share-tw { background: #1DA1F2; }
.sp-share-copy { background: #555; }

/* Sidebar: Categories */
.sp-cat-link {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 13px;
    color: #555; text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
    transition: color 0.2s;
}
.sp-cat-link:hover { color: #0a3b73; }
.sp-cat-count {
    background: #f0f3f8; color: #888;
    font-size: 11px; padding: 2px 8px;
    border-radius: 10px; font-weight: 600;
}

/* === S6: INLINE SHARE BAR === */
.sp-share-inline {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 0; margin: 30px 0;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.sp-share-inline span { font-size: 13px; font-weight: 700; color: #555; }

/* === S7: RELATED POSTS === */
.sp-related {
    max-width: 1260px; margin: 0 auto 40px;
    padding: 0 20px;
}
.sp-related-title {
    font-size: 22px; font-weight: 800; color: #111b27;
    margin-bottom: 20px;
}
.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sp-related-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #ebeef5;
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.sp-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.sp-related-card img {
    width: 100%; height: 150px;
    object-fit: cover; display: block;
}
.sp-related-body { padding: 14px; }
.sp-related-card h4 {
    font-size: 14px; font-weight: 700; color: #111b27;
    margin: 0 0 6px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sp-related-card .sp-rel-meta {
    font-size: 11.5px; color: #999;
}

/* === S8: NEWSLETTER === */
.sp-newsletter {
    max-width: calc(1260px - 40px); margin: 0 auto 50px;
    padding: 40px; background: linear-gradient(135deg, #0a3b73, #0c1a2c);
    border-radius: 14px; text-align: center; color: #fff;
}
.sp-newsletter h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.sp-newsletter p { opacity: 0.8; font-size: 14px; margin: 0 0 20px; }
.sp-nl-form { display: flex; max-width: 480px; margin: 0 auto; gap: 0; align-items: stretch; }
.sp-nl-input {
    flex: 1; padding: 12px 16px; border: none;
    border-radius: 8px 0 0 8px; font-size: 14px; outline: none;
    box-shadow: none; height: auto; margin: 0; -webkit-appearance: none; color: #333;
}
.sp-nl-btn {
    padding: 12px 24px; background: #FF6B6B; color: #fff;
    border: none; border-radius: 0 8px 8px 0;
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: background 0.2s; white-space: nowrap;
    margin: 0; height: auto; line-height: 1.2;
}
.sp-nl-btn:hover { background: #e74c3c; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sp-container {
        grid-template-columns: 1fr 280px;
    }
    .sp-author { display: none; }
}
@media (max-width: 768px) {
    .sp-container {
        grid-template-columns: 1fr;
    }
    .sp-sidebar { position: static; }
    .sp-hero h1 { font-size: 22px; }
    .sp-main { padding: 20px; }
    .smedec-listing-card {
        grid-template-columns: 1fr;
    }
    .smedec-listing-img-box {
        width: 100%; height: 180px;
    }
    .smedec-listing-img {
        width: 100%; height: 180px;
    }
    .info-row { flex-direction: column; gap: 2px; }
    .info-row strong { flex: none; }
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-nl-form { flex-direction: column; gap: 8px; }
    .sp-nl-input { border-radius: 8px; }
    .sp-nl-btn { border-radius: 8px; }
    .sp-share-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .sp-related-grid { grid-template-columns: 1fr; }
    .smedec-listing-actions { flex-direction: column; }
    .smedec-btn { justify-content: center; }
}

/* ===== Nội dung bài do content factory đăng (chuyển từ inline <style> của publisher) ===== */
.smedec-review-content a {
    color: #C8A951 !important;
    text-decoration: underline !important;
    font-weight: 700;
}
.smedec-review-content a:hover {
    color: #1a1a1a !important;
}
