/**
 * Ravian Pharmaceuticals Limited - Blog Stylesheet
 * 2-Column Grid (col-8) with Floating Date Badges & Right Sidebar (col-4)
 */

/* Section Setup */
.blog-page-section {
    background-color: #faf8f5;
    padding: 60px 0 80px;
}

/* Header / Title Intro (Screenshot Inspired) */
.blog-intro-header {
    text-align: center;
    margin-bottom: 45px;
}

.blog-intro-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.blog-intro-title {
    font-family: 'Poppins', Georgia, serif;
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 700;
    color: #172b43;
    line-height: 1.25;
    margin-bottom: 12px;
}

.blog-intro-title span {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #b58d3d;
}

.blog-intro-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================================
   BLOG CARD (col-8 Left Grid)
   ======================================================== */
.pharma-blog-item-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ede8e1;
    box-shadow: 0 4px 18px rgba(18, 43, 67, 0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pharma-blog-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(18, 43, 67, 0.09);
    border-color: #dfd7cc;
}

/* Thumbnail Wrap */
.blog-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.blog-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pharma-blog-item-card:hover .blog-card-thumb-wrap img {
    transform: scale(1.05);
}

/* Floating Date Badge (Screenshot Wine/Burgundy Style) */
.blog-date-badge-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #7a1d36;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(122, 29, 54, 0.35);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

/* Card Body Content */
.blog-card-inner-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Tag Pill */
.blog-cat-pill-tag {
    display: inline-block;
    align-self: flex-start;
    background: #f4ede4;
    color: #4a3e35;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.blog-cat-pill-tag:hover {
    background: #e8ded2;
    color: #172b43;
}

/* Card Title */
.blog-card-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #172b43;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-card-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card-post-title a:hover {
    color: #0878d1;
}

/* Excerpt */
.blog-card-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Read Article Link */
.blog-read-article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a1d36;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.25s ease;
}

.blog-read-article-link i {
    transition: transform 0.25s ease;
}

.blog-read-article-link:hover {
    color: #0878d1;
}

.blog-read-article-link:hover i {
    transform: translateX(4px);
}

/* ========================================================
   RIGHT SIDEBAR WIDGETS (col-4)
   ======================================================== */
.blog-sidebar-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #ede8e1;
    box-shadow: 0 4px 18px rgba(18, 43, 67, 0.04);
}

/* 1. Search Box Widget (Screenshot Inspired) */
.blog-search-widget-form {
    display: flex;
    align-items: center;
    border: 1px solid #dcd7cf;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-search-widget-form:focus-within {
    border-color: #0878d1;
    box-shadow: 0 0 0 3px rgba(8, 120, 209, 0.12);
}

.blog-search-input-field {
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #172b43;
    width: 100%;
    background: transparent;
}

.blog-search-input-field::placeholder {
    color: #94a3b8;
}

.blog-search-submit-btn {
    border: none;
    background: #b58d3d;
    color: #ffffff;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.25s ease;
    flex-shrink: 0;
}

.blog-search-submit-btn:hover {
    background: #9a7329;
}

/* Widget Header Title */
.blog-widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #172b43;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ede8e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 2. Recent Posts List */
.blog-recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-recent-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 14px;
    border-bottom: 1px solid #f4f0ea;
    transition: all 0.25s ease;
}

.blog-recent-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.blog-recent-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.blog-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-recent-post-item:hover .blog-recent-thumb img {
    transform: scale(1.08);
}

.blog-recent-info {
    flex: 1;
    min-width: 0;
}

.blog-recent-date {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 500;
}

.blog-recent-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.25s ease;
}

.blog-recent-post-item:hover .blog-recent-title {
    color: #0878d1;
}

/* 3. Categories Widget */
.blog-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #334155;
    background: #fdfbf7;
    border: 1px solid #f1eae0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

.blog-category-link:hover,
.blog-category-link.active-cat {
    background: #eef5fc;
    border-color: #c7e0f8;
    color: #0878d1;
    font-weight: 600;
}

.blog-category-count {
    font-size: 11.5px;
    background: #ffffff;
    border: 1px solid #e2d9cd;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-category-link:hover .blog-category-count,
.blog-category-link.active-cat .blog-category-count {
    background: #0878d1;
    color: #ffffff;
    border-color: #0878d1;
}

/* 4. Franchise CTA Sidebar Box */
.blog-sidebar-cta {
    background: linear-gradient(135deg, #102f52 0%, #0878d1 100%);
    border-radius: 16px;
    padding: 26px 22px;
    color: #ffffff;
    text-align: center;
}

.blog-sidebar-cta h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.blog-sidebar-cta p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-sidebar-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #102f52;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
}

.btn-sidebar-enquire:hover {
    background: #f0f7ff;
    color: #0878d1;
    transform: translateY(-2px);
}

/* ========================================================
   PAGINATION
   ======================================================== */
.blog-pagination-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ede8e1;
    background: #ffffff;
    color: #172b43;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.blog-page-btn:hover,
.blog-page-btn.active {
    background: #0878d1;
    border-color: #0878d1;
    color: #ffffff;
}

/* Empty search state */
.blog-no-results {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.blog-no-results i {
    font-size: 44px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .blog-page-section {
        padding: 40px 0 60px;
    }
    .blog-sidebar-wrap {
        margin-top: 40px;
    }
}

@media (max-width: 575.98px) {
    .blog-card-thumb-wrap {
        height: 190px;
    }
    .blog-card-inner-body {
        padding: 18px 16px;
    }
    .blog-card-post-title {
        font-size: 16px;
    }
}
