/* ===========================
   Single Blog Post — Styles
   Rapid Property Transfers — Premium Classical Design
   =========================== */

/* ── Container ─────────────────────────────────────────── */

.sp-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */

.sp-hero {
    background-color: #ffffff;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(12, 30, 74, 0.07);
}

.sp-hero .sp-container {
    max-width: 860px;
}

/* Breadcrumb */

.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.sp-breadcrumb a:hover {
    color: var(--color-navy);
}

.sp-breadcrumb span[aria-hidden] {
    color: #d1d5db;
}

/* Category badge */

.sp-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(197, 160, 73, 0.12);
    color: #8a6a1e;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 18px;
    transition: background-color 0.15s;
}

.sp-cat-badge:hover {
    background: rgba(197, 160, 73, 0.22);
}

/* Title */

.sp-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    margin: 0 0 24px;
}

/* Meta row */

.sp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6b7280;
}

.sp-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
}

.sp-author-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sp-meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-meta-date svg {
    flex-shrink: 0;
    color: #d1d5db;
}

.sp-meta-sep {
    color: #d1d5db;
}

.sp-meta-read {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================
   FEATURED IMAGE
   ============================================================ */

.sp-featured-img-wrap {
    background: #f8f9fb;
    padding: 0 0 48px;
}

.sp-featured-img-wrap .sp-container {
    max-width: 1000px;
}

.sp-featured-img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(12, 30, 74, 0.1);
}

/* ============================================================
   ARTICLE CONTENT — PROSE
   ============================================================ */

.sp-content {
    padding: 64px 0 72px;
    background: #ffffff;
}

.sp-content .sp-container {
    max-width: 760px;
}

.sp-prose {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.sp-prose h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--color-navy);
    margin: 56px 0 16px;
    line-height: 1.25;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(197, 160, 73, 0.25);
}

.sp-prose h2:first-child {
    margin-top: 0;
}

.sp-prose h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--color-navy);
    margin: 40px 0 12px;
    line-height: 1.3;
}

.sp-prose h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 28px 0 8px;
}

.sp-prose p {
    margin: 0 0 20px;
}

.sp-prose a {
    color: var(--color-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.sp-prose a:hover {
    color: var(--color-gold);
}

.sp-prose strong,
.sp-prose b {
    font-weight: 700;
    color: #1f2937;
}

.sp-prose ul,
.sp-prose ol {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.sp-prose ul li,
.sp-prose ol li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.75;
}

.sp-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

.sp-prose ol {
    counter-reset: sp-ol;
}

.sp-prose ol li {
    counter-increment: sp-ol;
}

.sp-prose ol li::before {
    content: counter(sp-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9375rem;
}

.sp-prose blockquote {
    border-left: 3px solid var(--color-gold);
    margin: 36px 0;
    padding: 18px 24px;
    background: rgba(197, 160, 73, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.75;
}

.sp-prose blockquote p:last-child {
    margin-bottom: 0;
}

.sp-prose hr {
    border: none;
    border-top: 1px solid rgba(12, 30, 74, 0.1);
    margin: 48px 0;
}

.sp-prose img {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0 28px;
}

.sp-prose figure {
    margin: 28px 0;
}

.sp-prose figcaption {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
}

.sp-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.9375rem;
}

.sp-prose th {
    background: var(--color-navy);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.875rem;
}

.sp-prose td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(12, 30, 74, 0.08);
    vertical-align: top;
}

.sp-prose tr:last-child td {
    border-bottom: none;
}

.sp-prose tr:nth-child(even) td {
    background: rgba(12, 30, 74, 0.02);
}

/* Tags */

.sp-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(12, 30, 74, 0.08);
}

.sp-tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.sp-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(12, 30, 74, 0.06);
    color: #4a5568;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.sp-tag:hover {
    background: var(--color-navy);
    color: #ffffff;
}

/* Back link */

.sp-back-link {
    margin-top: 40px;
}

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.15s, gap 0.15s;
}

.sp-back:hover {
    color: var(--color-gold);
    gap: 10px;
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */

.sp-related {
    padding: 72px 0 80px;
    background-color: #f8f9fb;
}

.sp-related-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-navy);
    text-align: center;
    margin: 0 0 48px;
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .sp-hero {
        padding: 48px 0 32px;
    }

    .sp-featured-img {
        max-height: 400px;
    }

}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ============================================================ */

@media (max-width: 640px) {

    .sp-hero {
        padding: 36px 0 28px;
    }

    .sp-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .sp-meta {
        gap: 8px;
    }

    .sp-featured-img-wrap {
        padding-bottom: 32px;
    }

    .sp-featured-img {
        border-radius: 10px;
        max-height: 260px;
    }

    .sp-content {
        padding: 48px 0 56px;
    }

    .sp-related {
        padding: 56px 0 64px;
    }

    .sp-prose h2 {
        margin-top: 40px;
    }

}
