/* ????????????????????????????????????????????????????
   blog-detail.css  —  Styles for Home/BlogDetail page
   PDPortal / PublicDial Services
???????????????????????????????????????????????????? */

/* ?? Article section wrapper ?? */
.article_section { padding: 70px 0 90px; background: #f4f5fb; }

/* ?? Hero banner ?? */
.article_hero {
    background: linear-gradient(135deg,#1a237e 0%,#283593 65%,#e65100 100%);
    border-radius: 12px;
    padding: 48px 40px 40px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.article_hero::before {
    content: '\f15c';
    font-family: FontAwesome;
    position: absolute;
    right: 36px;
    top: 20px;
    font-size: 120px;
    color: rgba(255,255,255,.06);
    pointer-events: none;
}
.article_hero .blog_cat_badge {
    display: inline-block;
    background: #e65100;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
  letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.article_hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'Sen', sans-serif;
    line-height: 1.4;
    margin-bottom: 18px;
}
.article_hero_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    opacity: .82;
 margin-bottom: 20px;
}
.article_hero_meta span { display: flex; align-items: center; gap: 6px; }
.article_hero_meta i    { color: #ffb300; }
.article_hero_excerpt {
    font-size: 15px;
    opacity: .88;
    line-height: 1.75;
    border-left: 4px solid #ffb300;
    padding-left: 16px;
    margin-top: 8px;
}

/* ?? Article body card ?? */
.article_body {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26,35,126,.09);
    padding: 40px 40px 32px;
    margin-bottom: 28px;
}
.article_body h2 { font-size: 20px; font-weight: 800; font-family: 'Sen',sans-serif; color: #1a237e; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e8eaf6; }
.article_body h3 { font-size: 16px; font-weight: 700; color: #283593; margin: 22px 0 8px; }
.article_body p  { font-size: 14.5px; color: #555; line-height: 1.85; margin-bottom: 16px; }
.article_body ul,
.article_body ol { padding-left: 20px; margin-bottom: 18px; }
.article_body ul li,
.article_body ol li { font-size: 14px; color: #555; padding: 5px 0; line-height: 1.7; }
.article_body ul li::marker { color: #e65100; }
.article_body ol li::marker { color: #1a237e; font-weight: 700; }

/* ?? Meta info table ?? */
.article_meta_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.article_meta_table tr { border-bottom: 1px solid #f0f1f8; }
.article_meta_table tr:last-child { border-bottom: none; }
.article_meta_table td { padding: 10px 8px; vertical-align: top; }
.article_meta_table td:first-child { width: 130px; font-weight: 700; color: #888; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; white-space: nowrap; }
.article_meta_table td:last-child  { color: #333; word-break: break-word; }
.meta_badge { display: inline-block; background: #e8eaf6; color: #1a237e; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 12px; margin: 2px 3px 2px 0; }
.meta_badge.orange { background: #fff3e0; color: #e65100; }
.meta_badge.green  { background: #e8f5e9; color: #388e3c; }

/* ?? Tags row ?? */
.article_tags { margin-bottom: 28px; }
.article_tags span { font-size: 13px; font-weight: 700; color: #1a237e; margin-right: 8px; }
.tag_pill {
    display: inline-block;
    background: #f4f5fb;
    color: #444;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
  border: 1px solid #d0d4e8;
    margin: 3px 4px 3px 0;
    text-decoration: none;
    transition: all .2s;
}
.tag_pill:hover { background: #e65100; color: #fff; border-color: #e65100; }

/* ?? Author box ?? */
.author_box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26,35,126,.08);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.author_avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg,#1a237e,#e65100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author_avatar i { font-size: 30px; color: #fff; }
.author_info h5  { font-size: 16px; font-weight: 800; color: #1a237e; margin: 0 0 3px; font-family: 'Sen',sans-serif; }
.author_info span { font-size: 12px; color: #e65100; font-weight: 600; display: block; margin-bottom: 8px; }
.author_info p   { font-size: 13px; color: #666; margin: 0; line-height: 1.65; }

/* ?? Prev / Next post navigation ?? */
.post_nav { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.post_nav_btn {
 flex: 1;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
  box-shadow: 0 3px 16px rgba(26,35,126,.08);
    padding: 18px 20px;
    text-decoration: none;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.post_nav_btn:hover { box-shadow: 0 8px 28px rgba(26,35,126,.15); transform: translateY(-3px); }
.post_nav_icon {
    width: 40px;
    height: 40px;
    background: #e8eaf6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.post_nav_icon i { color: #1a237e; font-size: 18px; }
.post_nav_label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
.post_nav_title { font-size: 13px; font-weight: 700; color: #1a237e; line-height: 1.4; }
.post_nav_btn.next { flex-direction: row-reverse; text-align: right; }
.post_nav_btn:hover .post_nav_icon   { background: #e65100; }
.post_nav_btn:hover .post_nav_icon i { color: #fff; }

/* ?? Related article cards ?? */
.related_card { background: #fff; border-radius: 10px; box-shadow: 0 3px 16px rgba(26,35,126,.07); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.related_card:hover { box-shadow: 0 8px 28px rgba(26,35,126,.15); transform: translateY(-4px); }
.related_card_img { height: 140px; background: #e8eaf6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.related_card_img i   { font-size: 42px; color: #c5cae9; }
.related_card_img img { width: 100%; height: 100%; object-fit: cover; }
.related_card_body { padding: 16px 18px; }
.related_card_body .blog_cat_badge { position: static; display: inline-block; background: #e65100; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.related_card_body h6 { font-size: 14px; font-weight: 700; color: #1a237e; font-family: 'Sen',sans-serif; margin-bottom: 6px; line-height: 1.45; }
.related_card_body h6 a       { color: inherit; text-decoration: none; }
.related_card_body h6 a:hover { color: #e65100; }
.related_card_body .blog_meta { font-size: 11px; color: #aaa; display: flex; gap: 12px; }
.related_card_body .blog_meta i { color: #e65100; }

/* ?? Sidebar ?? */
.blog_sidebar { position: sticky; top: 20px; }
.sidebar_widget { background: #fff; border-radius: 10px; box-shadow: 0 4px 18px rgba(26,35,126,.07); margin-bottom: 24px; overflow: hidden; }
.sidebar_widget_header { background: linear-gradient(90deg,#1a237e,#283593); color: #fff; padding: 13px 20px; font-size: 14px; font-weight: 700; font-family: 'Sen',sans-serif; border-left: 4px solid #e65100; letter-spacing: .4px; }
.sidebar_widget_body { padding: 16px 20px; }

/* Search box */
.blog_search_box { display: flex; gap: 8px; }
.blog_search_box input  { flex: 1; border: 1px solid #d0d4e8; border-radius: 6px; padding: 9px 12px; font-size: 13px; outline: none; }
.blog_search_box button { background: #e65100; color: #fff; border: none; border-radius: 6px; padding: 9px 16px; cursor: pointer; font-size: 14px; }
.blog_search_box button:hover { background: #1a237e; }

/* Category list */
.cat_list { list-style: none; padding: 0; margin: 0; }
.cat_list li { border-bottom: 1px solid #f0f1f8; }
.cat_list li:last-child { border-bottom: none; }
.cat_list li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; font-size: 13px; color: #444; text-decoration: none; transition: all .2s; }
.cat_list li a:hover { color: #e65100; padding-left: 8px; }

/* Recent posts */
.recent_post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f8; align-items: flex-start; }
.recent_post:last-child { border-bottom: none; }
.recent_post_icon { width: 44px; height: 44px; border-radius: 6px; background: #e8eaf6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.recent_post_icon i { color: #1a237e; font-size: 18px; }
.recent_post_info a { font-size: 13px; font-weight: 600; color: #1a237e !important; text-decoration: none; line-height: 1.4; display: block; }
.recent_post_info a:hover { color: #e65100; }
.recent_post_info span { font-size: 11px; color: #aaa; }

/* Tag cloud */
.tag_cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag_cloud a { background: #f4f5fb; color: #444; font-size: 12px; padding: 5px 12px; border-radius: 20px; text-decoration: none; border: 1px solid #d0d4e8; transition: all .2s; }
.tag_cloud a:hover { background: #e65100; color: #fff; border-color: #e65100; }

/* ?? Responsive ?? */
@media (max-width: 767px) {
    .article_hero   { padding: 28px 20px; }
    .article_hero h1 { font-size: 20px; }
    .article_body   { padding: 24px 18px; }
    .author_box     { flex-direction: column; }
 .post_nav       { flex-direction: column; }
    .post_nav_btn.next { flex-direction: row; text-align: left; }
}
