:root {
    --accent-blue: #2563eb;
}

/* ================= BLOG DETAILS HERO ================= */
.blog-details-hero {
    position: relative;
    padding: 190px 0 110px; /* Increased desktop padding top to beautifully clear the fixed top navbar and spacing bottom */
    background-color: #d5e7f9; /* Light background matching the other pages */
    color: #0f172a;
    overflow: hidden;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Heading */
.details-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.details-title .highlight-blue {
    background: #2563eb;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.details-subtitle {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Breadcrumb Pill */
.breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.breadcrumb-pill a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-pill a:hover {
    color: #1d4ed8;
}

.breadcrumb-pill .separator {
    margin: 0 10px;
    font-size: 10px;
    color: #94a3b8;
}

.breadcrumb-pill span {
    color: #64748b;
}

/* ================= BLOG CONTENT AREA ================= */
.blog-body-section {
    padding: 60px 0;
    background: #fff;
}

.blog-body-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Premium Article Meta Header */
.article-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.author-role {
    font-size: 13px;
    color: #64748b;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-item {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #3b82f6;
    font-size: 15px;
}

/* Featured Image */
.featured-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Typography */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #0f172a;
    font-weight: 600;
}

.article-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 25px;
    margin: 30px 0;
    font-size: 20px;
    font-style: italic;
    color: #1e293b;
    border-radius: 0 12px 12px 0;
}

/* Standard Inline Tables styling for premium rendering */
.article-content table {
    width: 100% !important;
    margin: 30px 0 !important;
    border-collapse: collapse !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.article-content table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    text-align: left !important;
}

.article-content table td {
    padding: 14px 18px !important;
    font-size: 14.5px !important;
    color: #475569 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    line-height: 1.6 !important;
}

.article-content table tr:last-child td {
    border-bottom: none !important;
}

.article-content table tr:hover td {
    background-color: #f8fafc !important;
}

/* Premium Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    padding: 28px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(11, 28, 62, 0.02);
    transition: all 0.3s ease;
}
.author-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.15);
}
.author-img-wrapper {
    position: relative;
    flex-shrink: 0;
}
.author-img {
    width: 85px !important;
    height: 85px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid white !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}
.author-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1c3e;
    margin-bottom: 4px;
    margin-top: 0;
}
.author-title {
    color: var(--accent-blue) !important;
    font-weight: 600;
    font-size: 13.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}
.author-bio {
    font-size: 14.5px !important;
    color: #475569 !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

/* Premium Post Footer, Tags & Share */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.post-tags .tag {
    background-color: rgba(37, 99, 235, 0.05) !important;
    color: var(--accent-blue) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(37, 99, 235, 0.08) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
}
.post-tags .tag:hover {
    background-color: var(--accent-blue) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}
.post-share span {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.post-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}
.post-share a:hover {
    transform: translateY(-2px);
    color: var(--accent-blue) !important;
    background: #f1f5f9;
}

/* ================= SIDEBAR ================= */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.sidebar-widget:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.06);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* Sidebar Search */
.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.sidebar-search input:focus {
    border-color: #3b82f6;
    background: #fff;
}

.sidebar-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-search button:hover {
    background: #1d4ed8;
}

/* Categories List */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list li:last-child {
    margin-bottom: 0;
}

.widget-list li a {
    display: flex;
    justify-content: space-between;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.widget-list li a span {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.widget-list li a:hover {
    color: #2563eb;
}

.widget-list li a:hover span {
    background: #2563eb;
    color: #fff;
}

/* Recent Posts */
.recent-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.recent-post-content .date {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.recent-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.recent-post-content h4 a {
    color: #0f172a;
    text-decoration: none;
    transition: 0.3s;
}

.recent-post-content h4 a:hover {
    color: #2563eb;
}

/* Newsletter Widget */
.newsletter-widget {
    background: #f8fafc;
    text-align: center;
}

.newsletter-widget .widget-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.newsletter-widget p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 12px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
    transition: 0.3s;
}

.newsletter-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.spam-notice {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    text-align: center;
    border: none;
}

.cta-widget .widget-title {
    color: #fff;
}

.cta-widget .widget-title::after {
    left: 50%;
    transform: translateX(-50%);
    background: #60a5fa;
}

.cta-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.sidebar-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-btn:hover {
    background: #60a5fa;
    color: #fff;
}

/* Tags Widget */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-grid a {
    display: inline-block;
    background: #f8fafc;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.tags-grid a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Social Widget */
.social-links-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #0f1419; }
.social-btn.linkedin { background: #0a66c2; }
.social-btn.youtube { background: #ff0000; }

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Premium Input Group inside widget */
.input-group-premium {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group-premium input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: #f8fafc;
    color: #0b1c3e;
}
.input-group-premium input:focus {
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.input-group-premium .input-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 16px;
    transition: all 0.3s ease;
}
.input-group-premium input:focus + .input-icon {
    color: var(--accent-blue);
}

.btn-sidebar-premium {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-sidebar-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}
.btn-sidebar-premium:active {
    transform: translateY(0);
}

.spam-notice {
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* Connect Social Buttons Grid */
.connect-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.social-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}
.social-circle-btn:hover {
    transform: translateY(-3px) scale(1.05);
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Social Color Hover Brands */
.social-circle-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-circle-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: #e6683c; }
.social-circle-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-circle-btn.twitter-x:hover { background: #000000; border-color: #000000; }
.social-circle-btn.tiktok:hover { background: #010101; border-color: #010101; }
.social-circle-btn.threads:hover { background: #101010; border-color: #101010; }

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .blog-details-hero {
        padding: 120px 0 90px; /* Balanced tablet padding that accounts for topbar hiding and body padding-top */
    }
    .blog-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-details-hero {
        padding: 90px 0 70px; /* Balanced mobile padding */
    }
    
    .details-title {
        font-size: 32px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-footer {
        flex-direction: column;
        justify-content: center;
    }
}

/* ==========================================
   DYNAMIC TABLE OF CONTENTS PREMIUM STYLES
   ========================================== */
.table-of-contents-wrapper {
    margin-bottom: 40px;
}
.toc-card {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.toc-card:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.04) !important;
    border-color: rgba(37, 99, 235, 0.12) !important;
}
.toc-header {
    transition: background-color 0.2s ease;
}
.toc-header:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
}
.toc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16.5px !important;
    letter-spacing: 0.2px;
}
.toc-toggle-icon {
    font-size: 13px !important;
    font-weight: 600;
    color: #64748b !important;
    transition: color 0.2s;
}
.toc-header:hover .toc-toggle-icon {
    color: #2563eb !important;
}
.toc-list {
    margin: 0;
    padding: 0;
}
.toc-link {
    display: inline-flex;
    align-items: center;
    color: #475569 !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15) !important;
}
.toc-link:hover {
    color: #2563eb !important;
    transform: translateX(4px);
}
.toc-item-h3 {
    border-left: 2px solid #edf2f7;
    margin-left: 10px;
    padding-left: 18px !important;
}
.toc-item-h3:hover {
    border-color: #2563eb !important;
}

/* ==========================================
   PREMIUM FAQ ACCORDION OVERRIDES (AFRAZ ALAM BRAND THEME)
   ========================================== */
.faq-section {
    margin-top: 10px;
    background: none !important;
}
.faq-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px !important;
    color: #0b1c3e !important;
}
.faq-section .accordion-item {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
    overflow: hidden;
    background: #ffffff !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 10px rgba(11, 28, 62, 0.01) !important;
    border-left: 5px solid #e2e8f0 !important;
}
.faq-section .accordion-item:hover {
    border-color: rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.05) !important;
}
.faq-section .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-left: 5px solid #2563eb !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.06) !important;
}
.faq-section .accordion-button {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 22px 26px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease !important;
}
.faq-section .accordion-button:not(.collapsed) {
    color: #2563eb !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.faq-section .accordion-button::after {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.faq-section .accordion-body {
    background-color: #f8fafc !important;
    padding: 24px 28px !important;
    font-size: 15px !important;
    color: #475569 !important;
    line-height: 1.75;
    border-top: 1px solid #f1f5f9;
}
