/* ==========================================
   Single Blog Post Template - Primus Theme
   ========================================== */

/* Hero Banner */
.single-blog-hero {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.single-blog-hero .hero-image-wrap {
    position: absolute;
    inset: 0;
}

.single-blog-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-blog-hero .mob-banner {
    display: none;
}

.single-blog-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.single-blog-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 60px 50px;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.single-blog-hero .hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.single-blog-hero .hero-category {
    background: #821a52;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s;
}

.single-blog-hero .hero-category:hover {
    background: #a3834f;
}

.single-blog-hero .hero-date,
.single-blog-hero .hero-read {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Lato", sans-serif;
    font-size: 0.9rem;
}

.single-blog-hero .hero-date::after {
    content: "·";
    margin-left: 16px;
}

.single-blog-hero .hero-title {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 0;
}

/* Content + Sidebar Layout */
.single-blog-body {
    background: #FAFAF7;
    padding: 50px 20px 60px;
}

.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    align-items: start;
}

/* Main Content */
.blog-content {
    background: #fff;
    border-radius: 16px;
    padding: 45px 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.blog-content-inner h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 36px 0 16px;
    line-height: 1.3;
}

.blog-content-inner h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 28px 0 12px;
    line-height: 1.35;
}

.blog-content-inner h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 24px 0 10px;
}

.blog-content-inner p {
    font-family: "Lato", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
}

.blog-content-inner ul,
.blog-content-inner ol {
    font-family: "Lato", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 20px 24px;
    padding: 0;
}

.blog-content-inner li {
    margin-bottom: 8px;
}

.blog-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-content-inner blockquote {
    border-left: 4px solid #821a52;
    margin: 24px 0;
    padding: 16px 24px;
    background: #FAF6F0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.blog-content-inner a {
    color: #821a52;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.blog-content-inner a:hover {
    color: #821a52;
}

.blog-content-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
}

.blog-content-inner table th,
.blog-content-inner table td {
    border: 1px solid #E5DDD3;
    padding: 12px 16px;
    text-align: left;
}

.blog-content-inner table th {
    background: #F5EFE6;
    font-weight: 700;
    color: #333;
}

.blog-content-inner table tr:nth-child(even) {
    background: #FDFBF8;
}

.blog-content-inner strong {
    font-weight: 700;
    color: #333;
}

/* Tags */
.blog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #EDE8E0;
}

.tags-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.tag-pill {
    background: #F5EFE6;
    color: #6B5535;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: "Lato", sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: #8B6F47;
    color: #fff;
}

/* Share Buttons */
.blog-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #EDE8E0;
}

.share-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F5EFE6;
    color: #821a52;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #821a52;
    color: #fff;
    transform: translateY(-2px);
}

/* Post Navigation */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #EDE8E0;
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #FAFAF7;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-next {
    text-align: right;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: #821a52;
    background: #FAF6F0;
}

.nav-label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #821a52;
}

.nav-title {
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sidebar-widget h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F5EFE6;
}

/* About Widget */
.sidebar-about p {
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555;
    margin: 0 0 16px;
}

.sidebar-cta {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #821a52;
    text-decoration: none;
    border-bottom: 2px solid #821a52;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.sidebar-cta:hover {
    color: #821a52;
}

/* Categories Widget */
.sidebar-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid #F5F0EA;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-categories a:hover {
    color: #821a52;
}

.cat-count {
    background: #821a52;
    color: #F5EFE6;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-post-card {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #F5F0EA;
    text-decoration: none;
    transition: all 0.2s;
}

.recent-post-card:last-child {
    border-bottom: none;
}

.recent-post-card:hover h4 {
    color: #821a52;
}

.recent-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.recent-info h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.recent-date {
    font-family: "Lato", sans-serif;
    font-size: 0.8rem;
    color: #999;
}

/* CTA Box Widget */
.sidebar-cta-box {
    background: linear-gradient(135deg, #821a52 0%, #fff 100%);
    color: #fff;
}

.sidebar-cta-box h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta-box p {
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 18px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #821a52;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #FAF6F0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   RELATED POSTS
   ========================================== */
.related-posts-section {
    background: #fff;
    padding: 60px 20px 70px;
}

.related-container {
    max-width: 1280px;
    margin: 0 auto;
}

.related-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.related-card {
    background: #FAFAF7;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #EDE8E0;
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px 22px 24px;
}

.related-cat {
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #821a52;
}

.related-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 8px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-family: "Lato", sans-serif;
    font-size: 0.82rem;
    color: #999;
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-cta-box {
        grid-column: 1 / -1;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-blog-hero {
        height: 400px;
    }

    .single-blog-hero .desk-banner {
        display: none;
    }

    .single-blog-hero .mob-banner {
        display: block;
    }

    .single-blog-hero .hero-content {
        padding: 24px 20px 32px;
    }

    .single-blog-hero .hero-title {
        font-size: 1.6rem;
    }

    .single-blog-hero .hero-meta {
        gap: 10px;
    }

    .blog-content {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .blog-content-inner h2 {
        font-size: 1.35rem;
    }

    .blog-content-inner h3 {
        font-size: 1.15rem;
    }

    .blog-content-inner p,
    .blog-content-inner ul,
    .blog-content-inner ol {
        font-size: 1rem;
    }

    .blog-post-nav {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-heading {
        font-size: 1.4rem;
    }

    .blog-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .single-blog-hero {
        height: 340px;
    }

    .single-blog-hero .hero-title {
        font-size: 1.35rem;
    }

    .single-blog-hero .hero-category {
        font-size: 0.7rem;
    }
}