/* ===================================================================
   BLOG — listing page + post page styles
   =================================================================== */

/* ── Blog Hero (listing) ──────────────────────────────────────────── */
.blog-hero {
    position: relative;
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    color: var(--white);
    overflow: hidden;
    text-align: center;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(231, 90, 90, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(231, 90, 90, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.blog-hero .container { position: relative; z-index: 1; }

.blog-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.blog-hero-content .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(231, 90, 90, 0.2);
    color: var(--brand-light);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.blog-hero-content h1 .highlight { color: var(--brand); }

.blog-hero-content > p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Toolbar (categories + search) ────────────────────────────────── */
.blog-toolbar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    position: sticky;
    top: 64px;
    z-index: 10;
}

.blog-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.category-btn.active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

.blog-search {
    position: relative;
    min-width: 240px;
}

.blog-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.blog-search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(231, 90, 90, 0.1);
}

/* ── Blog Grid ────────────────────────────────────────────────────── */
.blog-listing {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.blog-card-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--brand-pale) 0%, #fde2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-thumb i {
    font-size: 3rem;
    color: var(--brand);
    opacity: 0.6;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-cat {
    display: inline-block;
    background: var(--brand-pale);
    color: var(--brand);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== POPULAR LINKS SECTIONS (from home.css) ===== */
.popular-cities-section, .popular-services-section {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(231, 90, 90, 0.06);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    margin: 2.5rem 0 0 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.popular-cities-section h2, .popular-services-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 1.2rem;
    text-align: left;
    letter-spacing: -0.01em;
}
.popular-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}
.popular-link {
    display: inline-block;
    background: var(--brand-pale);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 6px rgba(231, 90, 90, 0.07);
    border: 1.5px solid var(--brand-pale);
    margin-bottom: 0.5rem;
}
.popular-link:hover, .popular-link:focus {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(231, 90, 90, 0.13);
    text-decoration: none;
}
.popular-links-row:last-child {
    margin-bottom: 0;
}
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-card-body > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.blog-card-meta span,
.blog-card-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Empty State ──────────────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.blog-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.blog-empty p {
    font-size: 1rem;
}

/* ── Pagination ───────────────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.page-btn.active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* ===================================================================
   POST PAGE
   =================================================================== */

/* ── Post Hero ────────────────────────────────────────────────────── */
.post-hero {
    position: relative;
    padding: 10rem 0 3rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    color: var(--white);
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(231, 90, 90, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(231, 90, 90, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.post-hero .container { position: relative; z-index: 1; }

.post-hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.post-back:hover { color: var(--white); }

.post-hero-content .blog-card-cat {
    margin-bottom: 1rem;
}

.post-hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta i {
    font-size: 0.8rem;
    color: var(--brand-light);
}

/* ── Article Content ──────────────────────────────────────────────── */
.post-content {
    padding: 3rem 0;
}

.post-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-body strong {
    color: var(--dark);
    font-weight: 700;
}

.post-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover {
    color: var(--brand-dark);
}

.post-body blockquote {
    border-left: 4px solid var(--brand);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--brand-pale);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text);
}

/* ── Share ─────────────────────────────────────────────────────────── */
.post-share {
    max-width: 720px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-share > span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* ── Related Section ──────────────────────────────────────────────── */
.related-section {
    background: var(--bg);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-hero { padding: 8rem 0 3rem; }
    .post-hero { padding: 8rem 0 2.5rem; }

    .blog-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search { min-width: unset; }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-body { font-size: 1rem; }

    .post-meta { gap: 1rem; }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 { font-size: 1.75rem; }
    .post-hero-content h1 { font-size: 1.5rem; }
    .blog-card-thumb { height: 140px; }
}
