﻿/* ============================================================
   BLOG MODULE — Om Taxi Service
   Includes: Blog Cards, Listings, Single Blog Post Layout,
   Recent Posts & Blog Sidebar
   ============================================================ */

/* ── HOMEPAGE BLOG SECTION ── */
.blg-sec {
    position: relative;
    background: #ffffff;
    padding: 60px 0 70px;
}

.blg-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border, #e2e8f0);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blg-card:hover {
    border-color: var(--theme, #5F2DED);
    box-shadow: 0 12px 32px rgba(95, 45, 237, 0.12);
}

.blg-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f1f5f9;
}

.blg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.blg-card:hover .blg-img-wrap img {
    transform: scale(1.08);
}

.blg-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blg-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.blg-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blg-meta i {
    color: var(--theme, #5F2DED);
}

.blg-title {
    font-size: 17px;
    font-weight: 800;
    color: #170F2F;
    margin: 0 0 12px;
    line-height: 1.35;
}

.blg-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blg-title a:hover {
    color: var(--theme, #5F2DED);
}

.blg-read-more {
    margin-top: auto;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--theme, #5F2DED);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.blg-read-more:hover {
    gap: 10px;
    color: #4c20c9;
}

/* ── BLOG LISTING & SINGLE POST ── */
.pg-blog-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border, #e2e8f0);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.pg-blog-card:hover {
    border-color: var(--theme, #5F2DED);
    box-shadow: 0 10px 30px rgba(95, 45, 237, 0.1);
}

.pg-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-recent-posts li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.pg-recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pg-recent-posts a {
    font-size: 13.5px;
    font-weight: 700;
    color: #170F2F;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.pg-recent-posts a:hover {
    color: var(--theme, #5F2DED);
}