/* ===== Blog Detail Page Styles ===== */

.blog_hero_kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(209, 0, 0, 0.16);
    border: 1px solid rgba(209, 0, 0, 0.26);
    color: #d10000;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(6px);
}

.blog_hero_excerpt {
    max-width: 65ch;
    font-size: 1.08rem;
    line-height: 1.8;
    font-weight: 300;
}

.blog_hero_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.blog_author_info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.blog_author_avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(200, 162, 74, 0.2) 0%, rgba(200, 162, 74, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog_author_avatar i {
    font-size: 1.5rem;
    color: #d10000;
}

.blog_author_text .blog_author_name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.blog_author_text .blog_author_role {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 500;
}

.blog_meta_item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.blog_meta_item i {
    color: #d10000;
    font-size: 1rem;
}

/* Blog Detail Section */
.blog_detail_section {
    background: #f5f7fa;
    padding: 60px 0;
}

.blog_page {
    background: #ffffff;
    color: #333;
}

/* Featured Image */
.blog_featured_image {
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.blog_image_wrapper {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    transition: transform 0.3s ease;
}

.blog_featured_image:hover .blog_image_wrapper {
    transform: scale(1.02);
}

/* Article Content */
.blog_article_content {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7ebf0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.blog_article_body {
    padding: 36px 40px 40px;
}

.blog_post_header {
    margin-bottom: 28px;
}

.blog_post_category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(209, 0, 0, 0.1);
    color: #d10000;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog_post_category i {
    color: #d10000;
}

.blog_post_title {
    font-size: clamp(2rem, 2.6vw, 2.65rem);
    line-height: 1.2;
    margin: 0 0 14px;
    color: #111827;
    font-weight: 800;
}

.blog_post_excerpt {
    margin: 0 0 22px;
    color: #5b6472;
    line-height: 1.8;
    font-size: 1.02rem;
    max-width: 68ch;
}

.blog_post_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog_post_meta_item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f5f7fa;
    border: 1px solid #e7ebf0;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog_post_meta_item i {
    color: #d10000;
}

.blog_content_sections {
    line-height: 1.95;
}

.blog_paragraph {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.95;
}

.blog_paragraph:last-child {
    margin-bottom: 0;
}

/* Inline Images */
.blog_inline_image {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.blog_inline_image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.blog_inline_image:hover img {
    transform: scale(1.01);
}

.blog_image_caption {
    text-align: center;
    color: #8b92a0;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0;
}

/* Tags Section */
.blog_tags_section {
    margin-top: 48px;
    padding-top: 32px;
}

.blog_tags_section h5 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 16px;
}

.blog_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog_tag_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #f0f4f8;
    border: 1px solid #e0e7f1;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog_tag_link:hover {
    background: #d10000;
    color: #fff;
    border-color: #d10000;
    text-decoration: none;
}

.blog_tag_link i {
    font-size: 0.8rem;
}

/* Share Section */
.blog_share_section {
    margin-top: 48px;
    padding-top: 32px;
}

.blog_share_section h5 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 16px;
}

.blog_share_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog_share_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e0e7f1;
    background: transparent;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

button.blog_share_btn {
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.blog_share_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.blog_share_btn.facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.blog_share_btn.twitter:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.blog_share_btn.linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
}

.blog_share_btn.copy:hover {
    background: #d10000;
    color: #fff;
    border-color: #d10000;
}

.blog_share_btn i {
    font-size: 1rem;
}

/* Author Bio */
.blog_author_bio {
    margin-top: 48px;
    padding: 32px;
    background: #f5f7fa;
    border-radius: 12px;
    border-left: 4px solid #d10000;
}

.blog_author_avatar_large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d10000 0%, #8f0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.2);
}

.blog_author_avatar_large i {
    font-size: 2.5rem;
    color: #fff;
}

.blog_author_bio_content h5 {
    font-size: 1.15rem;
    color: #1a202c;
}

.blog_author_bio_content .text-secondary {
    color: #8b92a0 !important;
    font-weight: 500;
}

.blog_author_bio_content p {
    color: #4b5563;
    line-height: 1.8;
}

/* Sidebar */
.blog_sidebar_widget {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e7ebf0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.blog_sidebar_summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog_sidebar_summary_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e7ebf0;
}

.blog_sidebar_summary_label {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8b92a0;
    font-weight: 700;
}

.blog_sidebar_summary strong {
    color: #1a202c;
    font-size: 0.98rem;
}

.widget_title {
    font-size: 1.1rem;
    color: #1a202c;
    position: relative;
    padding-bottom: 12px;
}

.widget_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #d10000;
    border-radius: 2px;
}

/* Related Posts */
.blog_related_item {
    transition: all 0.2s ease;
}

.blog_related_item:hover {
    transform: translateX(4px);
}

.blog_related_link:hover .blog_related_image img {
    transform: scale(1.05);
}

.blog_related_image {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4f8;
}

.blog_related_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog_related_link .blog_related_image+h6 {
    color: #1a202c;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.blog_related_link:hover .blog_related_image+h6 {
    color: #d10000;
}

.blog_related_link .text-secondary {
    color: #8b92a0 !important;
}

/* Categories */
.blog_categories {
    display: flex;
    flex-direction: column;
}

.blog_category_link {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

.blog_category_link:hover {
    color: #d10000;
    padding-left: 8px;
    text-decoration: none;
}

.blog_category_link .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: 600;
}

/* Newsletter Widget */
.blog_newsletter_widget {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
}

.blog_newsletter_widget .widget_title {
    color: #fff;
}

.blog_newsletter_widget .widget_title::after {
    background: #d10000;
}

.blog_newsletter_widget .text-secondary {
    color: rgba(255, 255, 255, 0.68) !important;
}

.blog_newsletter_form input {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.blog_newsletter_form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.blog_newsletter_form input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #d10000;
    box-shadow: 0 0 0 3px rgba(209, 0, 0, 0.12);
    color: #fff;
}

.blog_newsletter_form .btn {
    background: linear-gradient(135deg, #d10000 0%, #8f0000 100%);
    border: 0;
    color: #fff;
    transition: all 0.2s ease;
}

.blog_newsletter_form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* Blog Cards (Related Posts Section) */
.blog_card {
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.blog_card_image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog_card:hover .blog_card_image {
    transform: scale(1.05);
}

.blog_card_body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog_card_category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(209, 0, 0, 0.1);
    color: #d10000;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
}

.blog_card_title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog_card:hover .blog_card_title {
    color: #d10000;
}

.blog_card_excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.blog_card_footer {
    padding-top: 12px;
    border-top-color: #e7ebf0 !important;
}

.blog_card_footer .small {
    color: #8b92a0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog_card_footer .small i {
    color: #d10000;
}

/* Empty State */
.blog_detail_empty {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
}

.blog_detail_empty .btn {
    margin-top: 12px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog_hero_meta {
        gap: 16px;
    }

    .blog_article_body {
        padding: 28px;
    }

    .blog_inline_image {
        margin: 24px 0;
    }

    .blog_featured_image {
        margin-bottom: 32px;
    }

    .blog_image_wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .center_blog_detail_hero h1 {
        font-size: 1.8rem;
    }

    .blog_hero_excerpt {
        max-width: 100%;
        font-size: 1rem;
    }

    .blog_hero_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blog_author_info {
        width: 100%;
    }

    .blog_article_content {
        padding: 0;
    }

    .blog_article_body {
        padding: 20px;
    }

    .blog_paragraph {
        font-size: 1rem;
    }

    .blog_featured_image {
        margin-bottom: 24px;
    }

    .blog_image_wrapper {
        height: 220px;
    }

    .blog_author_bio {
        padding: 20px;
    }

    .blog_author_avatar_large {
        width: 60px;
        height: 60px;
    }

    .blog_author_avatar_large i {
        font-size: 1.8rem;
    }

    .blog_sidebar_widget {
        padding: 20px;
    }

    .blog_tags,
    .blog_share_buttons {
        gap: 8px;
    }

    .blog_tag_link,
    .blog_share_btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .blog_card_image {
        height: 160px;
    }

    .blog_card_body {
        padding: 16px;
    }

    .blog_card_title {
        font-size: 1rem;
    }

    .blog_card_excerpt {
        font-size: 0.9rem;
    }

    .blog_post_title {
        font-size: 1.7rem;
    }

    .blog_post_excerpt {
        font-size: 0.98rem;
    }
}

@media (max-width: 576px) {
    .center_blog_detail_hero h1 {
        font-size: 1.5rem;
    }

    .blog_hero_meta {
        gap: 10px;
    }

    .blog_meta_item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .blog_featured_image {
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .blog_image_wrapper {
        height: 200px;
    }

    .blog_article_content {
        padding: 0;
        border-radius: 8px;
    }

    .blog_article_body {
        padding: 16px;
    }

    .blog_paragraph {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .blog_tags_section,
    .blog_share_section,
    .blog_author_bio {
        margin-top: 32px;
        padding-top: 24px;
    }

    .blog_tags,
    .blog_share_buttons {
        gap: 6px;
    }

    .blog_tag_link,
    .blog_share_btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .blog_sidebar_widget {
        margin-bottom: 24px;
    }

    .widget_title {
        font-size: 1rem;
    }

    .blog_card_image {
        height: 150px;
    }

    .blog_card_body {
        padding: 14px;
    }

    .blog_card_title {
        font-size: 0.95rem;
    }

    .blog_card_excerpt {
        font-size: 0.85rem;
    }
}
