/* ============================================
   BLOG CSS - Safarnamaa
   ============================================ */

/* ── BLOG HERO ── */
.blog-hero {
    height: 380px;
    background: linear-gradient(135deg, #0D1B2A, #1A2F42);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,0.6);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-tag {
    display: inline-block;
    background: rgba(201,146,42,0.2);
    border: 1px solid rgba(201,146,42,0.4);
    color: #E8B84B;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.15;
}

.blog-hero-content h1 em {
    color: #E8B84B;
    font-style: italic;
}

.blog-hero-content p {
    font-size: 16px;
    opacity: 0.75;
    margin-bottom: 28px;
}

/* BLOG SEARCH */
.blog-search-form { max-width: 500px; margin: 0 auto; }

.blog-search-wrap {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    padding: 4px 4px 4px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.blog-search-wrap i { color: #aaa; margin-right: 10px; }

.blog-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: transparent;
}

.blog-search-wrap button {
    background: #C9922A;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.blog-search-wrap button:hover { background: #0D1B2A; }

/* ── FEATURED BLOGS ── */
.featured-blogs-section {
    padding: 50px 0 0;
    background: #f9f5f0;
}

.featured-blogs-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    height: 420px;
}

.featured-blog-main,
.featured-blog-side-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.featured-blog-main { height: 100%; }
.featured-blog-side { display: flex; flex-direction: column; gap: 16px; }
.featured-blog-side-item { flex: 1; }

.featured-blog-main img,
.featured-blog-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-blog-main:hover img,
.featured-blog-side-item:hover img { transform: scale(1.05); }

.featured-blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(13,27,42,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.featured-blog-overlay h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 8px;
    line-height: 1.3;
}

.featured-blog-overlay h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0 6px;
}

.featured-blog-overlay p {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 10px;
}

.featured-blog-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    opacity: 0.7;
}

/* ── BLOG LISTING ── */
.blog-listing-section {
    padding: 50px 0 80px;
    background: #f9f5f0;
}

/* FILTER TABS */
.blog-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.blog-filter-tab {
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.blog-filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

/* RESULTS INFO */
.blog-results-info {
    background: #fff8e1;
    border: 1px solid #f0a500;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* BLOG CARDS */
.blog-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-featured-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f0a500;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.blog-card-body { padding: 22px; display: flex; flex-direction: column; }

.blog-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.blog-card-cat {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-read-time {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title:hover { color: #667eea; }

.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 15px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.blog-card-author { display: flex; align-items: center; gap: 10px; }

.blog-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
}

.blog-author-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.blog-post-date {
    font-size: 11px;
    color: #aaa;
    display: block;
}

.blog-card-stats { font-size: 12px; color: #aaa; }

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.blog-tag {
    background: #f0f0f0;
    color: #667eea;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-tag:hover { background: #667eea; color: white; }

/* EMPTY */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.blog-empty i { margin-bottom: 20px; }
.blog-empty h4 { color: #666; margin-bottom: 8px; }

/* CAT BADGE */
.blog-cat-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ── SIDEBAR ── */
.blog-sidebar-widget {
    background: white;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* POPULAR POSTS */
.popular-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.popular-post-item:last-child { border-bottom: none; }
.popular-post-item:hover { transform: translateX(4px); }

.popular-post-num {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    min-width: 28px;
}

.popular-post-img {
    width: 55px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 55px;
}

.popular-post-info h6 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.3;
}

.popular-post-info span {
    font-size: 11px;
    color: #aaa;
}

/* CATEGORY SIDEBAR */
.sidebar-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-category-item:last-child { border-bottom: none; }
.sidebar-category-item:hover { color: #667eea; transform: translateX(4px); }

.sidebar-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    min-width: 10px;
}

.sidebar-cat-count {
    margin-left: auto;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #888;
}

/* SIDEBAR CTA */
.blog-sidebar-cta {
    background: linear-gradient(135deg, #0D1B2A, #1A2F42);
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    color: white;
}

.sidebar-cta-icon { font-size: 36px; margin-bottom: 12px; }

.blog-sidebar-cta h5 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.blog-sidebar-cta p {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 18px;
}

.blog-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 8px;
}

.blog-wa-btn:hover { background: #128C7E; color: white; }

/* ── BLOG DETAIL ── */
.blog-detail-banner {
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.blog-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13,27,42,0.92) 100%);
}

.blog-detail-banner-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-bottom: 40px;
    width: 100%;
    max-width: 800px;
}

.blog-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    margin: 12px 0 16px;
    line-height: 1.2;
}

.blog-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: 0.75;
}

.blog-detail-meta span { display: flex; align-items: center; gap: 5px; }

.blog-detail-section {
    padding: 50px 0 80px;
    background: #f9f5f0;
}

/* SHARE BUTTONS */
.blog-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }

.share-btn.facebook  { background: #1877F2; color: white; }
.share-btn.twitter   { background: #1DA1F2; color: white; }
.share-btn.whatsapp  { background: #25D366; color: white; }
.share-btn.copy-link {
    background: #f0f0f0;
    color: #333;
}

/* ARTICLE CONTENT */
.blog-article-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.85;
    color: #444;
}

.blog-excerpt-lead {
    font-size: 17px;
    color: #555;
    border-left: 4px solid #C9922A;
    padding-left: 20px;
    margin-bottom: 28px;
    font-style: italic;
    line-height: 1.7;
}

.blog-article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 32px 0 16px;
}

.blog-article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1A2F42;
    margin: 24px 0 12px;
}

.blog-article-content p { margin-bottom: 18px; }

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.blog-article-content li { margin-bottom: 8px; }

.blog-article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-article-content blockquote {
    border-left: 4px solid #C9922A;
    margin: 24px 0;
    padding: 16px 24px;
    background: #FDF3E0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.blog-article-content a { color: #667eea; }

/* TAGS */
.blog-article-tags {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* SHARE BOTTOM */
.blog-share-bottom {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-share-bottom h5 { font-weight: 700; margin-bottom: 5px; }
.blog-share-bottom p  { color: #888; margin-bottom: 15px; font-size: 14px; }

.blog-share-bottom .blog-share-bar {
    justify-content: center;
    margin-bottom: 0;
}

/* RELATED ARTICLES */
.related-articles {
    margin-top: 30px;
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card-body { padding: 14px; }

.related-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card-body h5 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 6px 0 8px;
    line-height: 1.3;
}

.related-meta { font-size: 11px; color: #aaa; }

/* AUTHOR BOX */
.author-box { text-align: center; }

.author-avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.author-info h5 {
    font-weight: 700;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.author-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .blog-card         { grid-template-columns: 1fr; }
    .blog-card-img-wrap{ height: 220px; }
    .featured-blogs-grid{ grid-template-columns: 1fr; height: auto; }
    .featured-blog-main { height: 280px; }
    .featured-blog-side { flex-direction: row; }
    .related-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .blog-hero          { height: 300px; }
    .blog-article-content{ padding: 22px; }
    .related-grid        { grid-template-columns: 1fr; }
    .blog-detail-banner  { height: 300px; }
}