/* ==========================================================================
   British Self Publishing - Blog & Blog Details Styling
   Refined British Editorial & Luxury Publishing Aesthetic
   ========================================================================== */

:root {
    --bsp-blog-gold: #c59b27;
    --bsp-blog-gold-hover: #d8aa2b;
    --bsp-blog-gold-light: #fbf7ee;
    --bsp-blog-gold-glow: rgba(197, 155, 39, 0.25);
    --bsp-blog-navy: #00050d;
    --bsp-blog-navy-card: #0a1120;
    --bsp-blog-text-dark: #0f172a;
    --bsp-blog-text-muted: #64748b;
    --bsp-blog-border: #e2e8f0;
    --bsp-blog-bg-light: #f8fafc;
}

/* -------------------------------------------------------------
   1. Hero Header Section
   ------------------------------------------------------------- */
.blog-hero-section {
    background: linear-gradient(145deg, #00050d 0%, #0c182b 100%);
    color: #ffffff;
    padding: 130px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 155, 39, 0.2);
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bsp-blog-gold-glow) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.blog-hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.blog-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 155, 39, 0.4);
    color: var(--bsp-blog-gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.blog-hero-title {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-hero-title span {
    color: var(--bsp-blog-gold);
    font-style: italic;
}

.blog-hero-desc {
    font-size: 17px;
    color: #94a3b8;
    max-width: 680px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   2. Blog Listing & Grid
   ------------------------------------------------------------- */
.blog-listing-section {
    background-color: #fafbfc;
    padding-top: 50px;
    padding-bottom: 70px;
}

.blog-cards-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 32px;
}

.blog-cards-grid>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--bsp-blog-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
    box-shadow: 0 4px 14px rgba(0, 5, 13, 0.04);
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 36px rgba(0, 5, 13, 0.1);
    border-color: #cbd5e1;
}

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #00050d;
    overflow: hidden;
}

.blog-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.07);
}

.blog-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 5, 13, 0.88);
    backdrop-filter: blur(8px);
    color: var(--bsp-blog-gold);
    border: 1px solid rgba(197, 155, 39, 0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 2;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--bsp-blog-text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card-meta i {
    color: var(--bsp-blog-gold);
}

.blog-card-title {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bsp-blog-navy);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--bsp-blog-gold);
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--bsp-blog-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #cbd5e1;
    border: 1px solid var(--bsp-blog-border);
}

.blog-author-initials-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c59b27 0%, #8c6710 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(197, 155, 39, 0.35);
    user-select: none;
}

.blog-card-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bsp-blog-text-dark);
}

.blog-card-readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--bsp-blog-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card-readmore:hover {
    color: #00050d;
    gap: 10px;
}

/* -------------------------------------------------------------
   3. Numbered Pagination
   ------------------------------------------------------------- */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
}

.blog-pagination .page-item .page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--bsp-blog-border);
    color: var(--bsp-blog-navy);
    font-weight: 600;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.blog-pagination .page-item .page-link:hover {
    background: var(--bsp-blog-gold-light);
    border-color: var(--bsp-blog-gold);
    color: var(--bsp-blog-gold);
}

.blog-pagination .page-item.active .page-link {
    background: var(--bsp-blog-gold);
    border-color: var(--bsp-blog-gold);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}

.blog-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* -------------------------------------------------------------
   4. Single Blog Details Page
   ------------------------------------------------------------- */
.blog-details-section {
    padding: 120px 0 60px;
    background: #ffffff;
}

.blog-breadcrumbs {
    font-size: 13px;
    color: var(--bsp-blog-text-muted);
    margin-bottom: 24px;
}

.blog-breadcrumbs a {
    color: var(--bsp-blog-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumbs a:hover {
    color: var(--bsp-blog-gold);
}

.blog-breadcrumbs span {
    margin: 0 8px;
    color: #cbd5e1;
}

.blog-breadcrumbs .current {
    color: var(--bsp-blog-navy);
    font-weight: 600;
}

.blog-details-title {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--bsp-blog-navy);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.blog-details-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--bsp-blog-text-muted);
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-details-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.blog-details-meta-item i {
    color: var(--bsp-blog-gold);
}

.blog-featured-media {
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 5, 13, 0.08);
    background: #00050d;
}

.blog-featured-media img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Social Share Bar */
.blog-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    padding: 12px 20px;
    background: var(--bsp-blog-bg-light);
    border-radius: 12px;
    border: 1px solid var(--bsp-blog-border);
}

.blog-share-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bsp-blog-navy);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-right: 6px;
}

.blog-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #ffffff;
}

.blog-share-facebook {
    background: #1877f2;
}

.blog-share-twitter {
    background: #000000;
}

.blog-share-linkedin {
    background: #0a66c2;
}

.blog-share-whatsapp {
    background: #25d366;
}

/* Article Prose */
.blog-prose {
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 45px;
}

.blog-prose h2 {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 27px;
    font-weight: 700;
    color: var(--bsp-blog-navy);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.blog-prose h3 {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 22px;
    font-weight: 700;
    color: var(--bsp-blog-navy);
    margin-top: 30px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.blog-prose p {
    margin-bottom: 22px;
}

.blog-prose ul,
.blog-prose ol {
    margin-bottom: 26px;
    padding-left: 24px;
}

.blog-prose li {
    margin-bottom: 10px;
}

.blog-prose blockquote {
    border-left: 4px solid var(--bsp-blog-gold);
    padding: 16px 24px;
    background: #fbf9f4;
    border-radius: 0 12px 12px 0;
    font-family: Georgia, serif;
    font-style: italic;
    color: #1e293b;
    margin: 28px 0;
    font-size: 18px;
    line-height: 1.6;
}

/* Author Box at Bottom of Article */
.blog-author-card {
    background: #f8fafc;
    border: 1px solid var(--bsp-blog-border);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 45px;
    margin-bottom: 45px;
}

.blog-author-avatar-wrap {
    flex-shrink: 0;
}

.blog-author-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bsp-blog-gold);
}

.blog-author-initials-large {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c59b27 0%, #8c6710 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}

.blog-author-content h4 {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 18px;
    font-weight: 700;
    color: var(--bsp-blog-navy);
    margin-bottom: 4px;
}

.blog-author-designation {
    font-size: 13px;
    color: var(--bsp-blog-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-author-bio {
    font-size: 14px;
    color: var(--bsp-blog-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   5. Sidebar Widget
   ------------------------------------------------------------- */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-widget {
    background: #ffffff;
    border: 1px solid var(--bsp-blog-border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(0, 5, 13, 0.03);
}

.blog-widget-title {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 19px;
    font-weight: 700;
    color: var(--bsp-blog-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bsp-blog-gold-light);
    position: relative;
}

.blog-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bsp-blog-gold);
}

/* Recent Posts List */
.blog-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-recent-thumb {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: #00050d;
}

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

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

.blog-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-recent-date {
    font-size: 11px;
    color: var(--bsp-blog-text-muted);
}

.blog-recent-title {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bsp-blog-navy);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-recent-title:hover {
    color: var(--bsp-blog-gold);
}

/* Sidebar CTA Consultation Card */
.blog-cta-widget {
    background: linear-gradient(145deg, #00050d 0%, #0c182b 100%);
    color: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.3);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta-widget::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--bsp-blog-gold-glow) 0%, transparent 70%);
}

.blog-cta-widget h3 {
    /* font-family: Georgia, 'Times New Roman', serif; */
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.blog-cta-widget p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .blog-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.blog-breadcrumbs .current {
    max-width: 380px;
}

@media (min-width: 768px) {

    .blog-breadcrumbs .current {
        max-width: 320px;
    }
}