/* ============================================
   LUMUS BLOG — blog.css
   Brand: #4f1f64 (purple) | Light theme
   ============================================ */

/* ── CSS variables ───────────────────────── */
:root {
    --bl-purple:       #4f1f64;
    --bl-purple-dark:  #3a1649;
    --bl-purple-light: #f0ebfd;
    --bl-text:         #212529;
    --bl-muted:        #616161;
    --bl-border:       #e8e0f5;
    --bl-radius:       14px;
    --bl-shadow:       0 2px 10px rgba(79,31,100,0.1);
    --bl-shadow-hover: 0 8px 24px rgba(79,31,100,0.18);
    --bl-bg:           #f7f5fc;
}

/* ── Page wrapper ────────────────────────── */
.bl-page {
    background: var(--bl-bg);
    min-height: 60vh;
}

/* ── Page header ─────────────────────────── */
.bl-page-header {
    background: linear-gradient(135deg, #1a0a22 0%, #3a1249 50%, #4f1f64 100%);
    padding: 52px 0 42px;
    text-align: center;
    /* margin-top: 78px; */
    position: relative;
    overflow: hidden;
}

.bl-page-header::before {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.bl-page-header::after {
    content: "";
    position: absolute;
    bottom: -60px; left: -40px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.bl-page-header .container { position: relative; z-index: 1; }

.bl-page-title {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.bl-page-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ── Category pills bar ──────────────────── */
.bl-cats-bar {
    background: #fff;
    border-bottom: 1px solid var(--bl-border);
    padding: 10px 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(136,79,232,0.06);
}

.bl-cats-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.bl-cats-scroll::-webkit-scrollbar { display: none; }

.bl-cat-pill {
    flex-shrink: 0;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: var(--bl-purple-light);
    color: var(--bl-purple);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    line-height: 1.6;
}

.bl-cat-pill:hover,
.bl-cat-pill.active {
    background: var(--bl-purple);
    color: #fff;
    text-decoration: none;
}

/* ── Grid section ────────────────────────── */
.bl-grid-section {
    padding: 30px 0 52px;
}

/* ── Card ────────────────────────────────── */
.bl-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--bl-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--bl-shadow);
    text-decoration: none;
    color: var(--bl-text);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bl-shadow-hover);
    color: var(--bl-text);
    text-decoration: none;
}

/* Card image */
.bl-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bl-purple-light);
    flex-shrink: 0;
}

.bl-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.bl-card:hover .bl-card-img-wrap img {
    transform: scale(1.04);
}

/* Category badge on image */
.bl-card-cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(136,79,232,0.88);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1.4;
}

/* Views badge on image */
.bl-card-views {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.92);
    padding: 3px 7px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #333;
}

.bl-card-views i {
    font-size: 10px;
    color: var(--bl-purple);
}

/* PVC plugin fixes inside views badge */
.bl-card-views .pvc_stats {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

.bl-card-views .pvc_clear,
.bl-card-views .pvc-stats-icon { display: none !important; }

.bl-card-views img[src*="ajax-loader"] { display: none !important; }

/* Card body */
.bl-card-body {
    padding: 12px 14px 8px;
    flex: 1;
}

.bl-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bl-text);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bl-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: var(--bl-muted);
}

.bl-card-date {
    color: var(--bl-purple);
    font-weight: 500;
}

.bl-card-author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

/* Card footer */
.bl-card-footer {
    padding: 8px 14px;
    border-top: 1px solid var(--bl-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--bl-purple);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.bl-card:hover .bl-card-footer {
    background: var(--bl-purple-light);
}

/* ── Pagination ───────────────────────────── */
.bl-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.bl-pagination .nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }

.bl-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bl-purple);
    background: #fff;
    border: 1px solid var(--bl-border);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.bl-pagination .page-numbers.current,
.bl-pagination .page-numbers:hover {
    background: var(--bl-purple);
    color: #fff;
    border-color: var(--bl-purple);
    text-decoration: none;
}

/* ── Tablet ───────────────────────────────── */
@media (min-width: 577px) and (max-width: 991px) {
    .bl-page-header { padding: 40px 0 32px; }
    .bl-page-title { font-size: 26px; letter-spacing: 2px; }
    .bl-page-subtitle { font-size: 12px; }
    .bl-cats-bar { top: 68px; }
    .bl-grid-section { padding: 22px 0 40px; }
    .bl-card-title { font-size: 14px; }
    .bl-card-body { padding: 10px 12px 6px; }
    .bl-card-author { max-width: 80px; }
}

/* ── Mobile ───────────────────────────────── */
@media (max-width: 576px) {
    .bl-page-header {
        padding: 35px 0 26px;
    }

    .bl-page-title { font-size: 22px; letter-spacing: 2px; }
    .bl-page-subtitle { font-size: 11px; letter-spacing: 1.5px; }

    .bl-cats-bar { padding: 8px 0; }

    .bl-cat-pill { font-size: 11px; padding: 4px 12px; }

    .bl-grid-section { padding: 16px 0 32px; }

    .bl-card-body { padding: 8px 10px 6px; }

    .bl-card-title { font-size: 13px; }

    .bl-card-meta { font-size: 10px; }

    .bl-card-author { max-width: 70px; }

    .bl-card-footer { padding: 7px 10px; font-size: 11px; }
}

/* ============================================
   Legacy classes — kept for other templates
   ============================================ */

.blog_section { /* padding-top: 78px; */ background-color: #fff; }

@media (max-width: 576px) {
    .blog_section { padding-top: 15px; }
}
.content_blog_list { background-color: transparent; padding-top: 30px; }

/* Search */
.search_section_blog { margin: 10px 0 12px; }
.blog_search { max-width: 100% !important; border-bottom: 1px solid #ccc; padding-bottom: 2px; }
.blog_search_btn { background: transparent; border: none; padding-right: 15px; color: #616161; }
.blog_search_btn i { font-size: 13px; }
.blog_search .input_box_blog { width: 80%; border: none; color: #616161; background-color: transparent; font-size: 14px; }
.blog_search .input_box_blog:focus { outline: none; }

/* Desktop card */
.blog_box_content {
    border-radius: 12px;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: var(--bl-shadow);
    display: block;
    color: initial;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.blog_box_content:hover, .blog_box_content:focus {
    color: initial; text-decoration: none;
    transform: translateY(-3px); box-shadow: var(--bl-shadow-hover);
}
.blog_img_content img { width: 100%; border-radius: 12px 12px 0 0; height: 200px; object-fit: cover; object-position: center; }
.description_blog { padding: 10px 15px 5px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; color: #333 !important; font-weight: 500; line-height: 1.5; }
.last_row_blog_box { display: flex; align-items: center; justify-content: space-between; padding: 0 15px 10px; }
.date_description_blog { text-align: right; font-size: 13px; color: var(--bl-purple); font-weight: 500; }
.views_blog_box, .writter_blog_box { text-align: left; font-size: 13px; color: var(--bl-muted); }

.review_upper_image { position: absolute; top: 5px; right: 10px; background-color: rgba(255,255,255,0.9); padding: 3px 6px; border-radius: 25px; display: flex; align-items: center; }
.review_upper_image i { margin-right: 4px; font-size: 14px; color: #383535; }
.review_upper_image span { font-size: 10px; color: #383535; }
.review_upper_image .pvc_stats, .views_mbl_home .pvc_stats { float: none; display: inline-flex; align-items: center; padding-right: 0 !important; margin-bottom: 0 !important; }
.pvc_stats img[src*="ajax-loader"] { display: none !important; }
.review_upper_image .pvc_clear, .views_mbl_home .pvc_clear { display: none; }
.views_mbl_home { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--bl-purple); margin-bottom: 2px; }

/* Mobile card */
.blog_box_mbl_view { border-radius: 12px; background-color: #fff; box-shadow: var(--bl-shadow); margin-bottom: 10px; }
.blog_box_mbl_view_different { display: flex; background-color: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--bl-shadow); margin-bottom: 10px; overflow: hidden; }
.img_left_side_mbl_view img { width: 200px; min-width: 130px; height: 114px; object-fit: cover; object-position: center; border-radius: 10px; }
.details_blog_mbl_view { padding-left: 15px; }
.title_blog_details_mbl_view { font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.blogtitle_mob { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; color: #212529 !important; }
.produce_by_name_mbl_view, .date_blog_mbl_view_diff { font-size: 12px; color: var(--bl-muted); }
.readmore_btn_blog_mbl_view { text-align: right; display: flex; align-items: center; justify-content: space-between; }

.btn_redmore_click { background-color: var(--bl-purple); color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; border: none; padding: 4px 8px; text-decoration: none; transition: background 0.2s ease; }
.btn_redmore_click:hover { background-color: var(--bl-purple-dark); color: #fff; text-decoration: none; }

/* Mobile categories */
.astrology_blog_heading { font-size: 18px; margin: 10px 0; text-align: center; font-weight: 500; border-radius: 10px; padding: 10px 0; box-shadow: 0 0 4px rgba(136,79,232,0.2); background-color: #fff; }
.categories_items_mbl_view { display: flex; overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; padding-left: 2px; }
.categories_items_mbl_view::-webkit-scrollbar { display: none; }
.categories_box_mbl_view { background-color: #fff; padding: 7px 15px; border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.2s ease; }
.categories_box_mbl_view:hover, .categories_box_mbl_view:focus, .categories_box_mbl_view.active { background-color: var(--bl-purple-light); color: var(--bl-purple); }
.categories_section_mbl_view h6 { font-size: 1.1rem; color: #3c3c3c; font-weight: 500; }
.icon_category { width: 50px; margin: 0 auto; }
.name_category_mbl_view { font-size: 12px; font-weight: 500; }
