/* ============================================
   DIGITECH INNOVATIONS - BLOG DETAILS STYLESHEET
   ============================================ */

:root {
    --blog-primary: #9c6cff; /* Vibrant light purple matching overall theme */
    --blog-primary-hover: #9371ff;
    --blog-text: #475569; /* Slate 600 for readability */
    --blog-heading: #1e293b; /* Slate 800 */
    --blog-bg-light: #f8fafc;
}

/* Hero Section with Purple Gradient Overlay */
.blog-detail-hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    background-color: #111827;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
    margin-top: 0;
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 18, 54, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.category-badge {
    background-color: var(--blog-primary);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(156, 108, 255, 0.3);
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--blog-primary);
}

/* Content Styling */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--blog-heading);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

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

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

.blog-content p {
    font-family: 'Georgia', Cambria, "Times New Roman", Times, serif;
    margin-bottom: 24px;
    letter-spacing: -0.003em;
}

.blog-content blockquote {
    border-left: 4px solid var(--blog-primary);
    padding: 24px 32px;
    background: rgba(156, 108, 255, 0.03);
    border-radius: 0 12px 12px 0;
    font-family: 'Georgia', Cambria, "Times New Roman", Times, serif;
    font-style: italic;
    color: #1e293b;
    margin: 32px 0;
    font-size: 1.25rem;
    line-height: 1.75;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px auto;
    display: block;
    box-shadow: 0 12px 30px rgba(156, 108, 255, 0.08);
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 24px;
    padding-left: 1.5rem;
    font-family: 'Georgia', Cambria, "Times New Roman", Times, serif;
}

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

.blog-content a {
    color: var(--blog-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: var(--blog-primary-hover);
}

.blog-content strong {
    color: var(--blog-heading);
    font-weight: 700;
}

.blog-content hr {
    margin: 40px 0;
    border: 0;
    height: 1px;
    background: #e2e8f0;
}

/* Sharing Circular Buttons */
.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.share-btn--facebook:hover {
    background-color: #1877f2;
    color: #ffffff !important;
}

.share-btn--twitter:hover {
    background-color: #1da1f2;
    color: #ffffff !important;
}

.share-btn--whatsapp:hover {
    background-color: #25d366;
    color: #ffffff !important;
}

/* Sidebar Styling */
.sidebar-widget {
    background: white;
    border: 1px solid rgba(55, 42, 90, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(55, 42, 90, 0.2);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blog-heading);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 2.5px;
    background: var(--blog-primary);
    border-radius: 2px;
}

.trending-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.trending-item:hover {
    transform: translateX(4px);
}

.trending-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-info h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.trending-item:hover .trending-info h6 {
    color: var(--blog-primary);
}

.trending-info span {
    font-size: 0.75rem;
    color: #64748b;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: var(--blog-primary);
    color: white;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .sticky-top {
        position: static !important;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-detail-hero {
        padding-top: 140px;
        padding-bottom: 70px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content blockquote {
        padding: 16px 20px;
        font-size: 1.05rem;
        margin: 24px 0;
    }
}
