/* Modern News Portal UI & Mobile Enhancements */
html,
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #f3f5f8;
    color: #1e293b;
}

/* Header & Navigation Polish */
.top_header_bg {
    background: #ffffff;
    border-bottom: 1px solid #e7ecf2;
}

.bottom_header_bg {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

ul.social li a i {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

ul.social li a:hover i {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    opacity: 0.92;
}

/* Trending Tags Bar */
.trending-tag {
    gap: 6px;
    padding: 6px 10px;
    margin: 8px 0 6px 0;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.trending-tag span {
    font-size: 13px;
    font-weight: 700;
    color: #cc0000;
    white-space: nowrap;
}

.trending-tag a,
.trending-tag a:link,
.trending-tag a:visited {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 14px;
    background: #0a7e46;
    border: 1px solid #0a7e46;
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.trending-tag a:hover {
    background: #065f34;
    border-color: #065f34;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Section Titles & Read More Pills */
.home_sidebar_cat_title {
    border-bottom: 2px solid #e2e8f0;
    border-left: 4px solid #0a7e46;
    padding: 6px 10px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 70%);
    border-radius: 0 6px 6px 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.home_sidebar_cat_title > a:first-child {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.home_sidebar_cat_title > a:first-child:hover {
    color: #0a7e46;
}

.home_sidebar_cat_title .read-more,
.home_sidebar_cat_title .read-more p {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 600;
    color: #0a7e46 !important;
}

.home_sidebar_cat_title .read-more {
    gap: 5px;
    padding: 3px 10px;
    border-radius: 16px;
    background: #dcfce7;
    transition: all 0.2s ease;
}

.home_sidebar_cat_title .read-more p {
    margin: 0 !important;
    padding: 0 !important;
}

.home_sidebar_cat_title .read-more:hover,
.home_sidebar_cat_title .read-more:hover p {
    background: #0a7e46;
    color: #ffffff !important;
}

/* Home / Front Page Category & Grid Item Typography (Desktop) */
.home li.tab_post,
.home li.tab_post a,
#tab_post_container li.tab_post,
#tab_post_container li.tab_post a {
    font-size: 16px !important;
    line-height: 1.44 !important;
}

.home a.home_second_part_grid .tab_post {
    font-size: 16.5px !important;
    line-height: 1.4 !important;
}

.home .flex_column:first-of-type li.tab_post {
    font-size: 17.5px !important;
    line-height: 1.42 !important;
}

.home .three_firest h2.title,
.home .box-news h2.title,
.home .ocs.card .card-title,
.home .home_sidebar_posts .flex_inner h2.title {
    font-size: 17px !important;
    line-height: 1.42 !important;
}

.home .leatest_twelve_post h2.title,
.home .home_page_part_one_left_left .leatest_three_post h2.title,
.home .home_page_part_one_left_right .leatest_three_post:not(:first-of-type) h2.title {
    font-size: 16.5px !important;
    line-height: 1.42 !important;
}

.home .story-item .story-extra h2 {
    font-size: 16px !important;
    line-height: 1.38 !important;
}

.home .story-item p.story-category {
    font-size: 13px !important;
}

.home .leatest_popular_container .button_group button {
    font-size: 17px !important;
}

.home .leatest_popular_container .allnews a {
    font-size: 15.5px !important;
}

/* Card Elevation & Image Zoom */
.leatest_twelve_post,
.home_page_part_one_left_right .leatest_three_post,
.home_page_part_one_left_left .leatest_three_post,
.single_right_item,
.home_sidebar_posts,
.ocs.card,
.story-item,
.video_li .video-wrapper,
.tag_posts,
.all_twinty_posts a {
    background: #ffffff;
    border: 1px solid #e6ebf1 !important;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.leatest_twelve_post:hover,
.home_page_part_one_left_right .leatest_three_post:hover,
.home_page_part_one_left_left .leatest_three_post:hover,
.single_right_item:hover,
.home_sidebar_posts:hover,
.ocs.card:hover,
.story-item:hover,
.video_li .video-wrapper:hover,
.tag_posts:hover,
.all_twinty_posts a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1 !important;
}

.leatest_twelve_post img,
.leatest_three_post img,
.single_right_item img,
.ocs.card img,
.story-item img,
.video_li img,
.all_twinty_posts a img {
    transition: transform 0.35s ease;
}

.leatest_twelve_post:hover img,
.leatest_three_post:hover img,
.single_right_item:hover img,
.ocs.card:hover img,
.story-item:hover img,
.video_li:hover img,
.all_twinty_posts a:hover img {
    transform: scale(1.035);
}

.leatest_twelve_post {
    padding: 8px;
}

.leatest_twelve_post h2.title,
.leatest_three_post h2.title {
    line-height: 1.42;
    margin-top: 6px;
}

.leatest_twelve_post h2.title a,
.leatest_three_post h2.title a,
.single_right_item .tab_post a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.18s ease;
}

.leatest_twelve_post h2.title a:hover,
.leatest_three_post h2.title a:hover,
.single_right_item .tab_post a:hover {
    color: #0a7e46;
}

.home_page_part_one_left_right .leatest_three_post {
    padding: 10px;
}

.single_right_item {
    padding: 8px !important;
    margin-bottom: 8px;
}

/* Latest / Popular Tabs */
.leatest_popular_container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.leatest_popular_container .button_group {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    gap: 4px;
}

.leatest_popular_container .button_group button {
    flex: 1;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #475569;
}

.leatest_popular_container .button_group button.opened {
    background: #0a7e46 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(10, 126, 70, 0.28);
}

.leatest_popular_container .allnews a {
    display: block;
    text-align: center;
    padding: 9px;
    font-weight: 700;
    background: #f8fafc;
    color: #0a7e46 !important;
    border-top: 1px solid #e2e8f0;
    transition: background 0.2s ease, color 0.2s ease;
}

.leatest_popular_container .allnews a:hover {
    background: #0a7e46;
    color: #ffffff !important;
    text-decoration: none;
}

/* Area News Filter Controls */
.form-control[name="bd_division"],
.form-control[name="bd_district"],
.form-control[name="bd_thana"] {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.form-control[name="bd_division"]:focus,
.form-control[name="bd_district"]:focus,
.form-control[name="bd_thana"]:focus {
    border-color: #0a7e46;
}

.dist_news_srch {
    border-radius: 6px !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.dist_news_srch:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* Single Post Reading Polish */
.single_meta_box {
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    padding: 18px !important;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.single_title {
    line-height: 1.35;
    color: #0f172a;
}

.news-details,
.news-details p {
    font-size: 18px;
    line-height: 1.85;
    color: #1e293b;
}

.social_share .fa-clone,
.social_share .fa-print {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social_share .fa-clone:hover,
.social_share .fa-print:hover {
    background: #0a7e46;
    color: #ffffff;
}

.print_font span a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #dbe2ea;
    color: #1e293b;
    font-weight: 700;
    margin-left: 4px;
    text-decoration: none;
}

.print_font span a:hover {
    background: #0a7e46;
    border-color: #0a7e46;
    color: #ffffff;
}

/* Load More Button */
.misha_loadmore {
    display: inline-block;
    margin: 14px auto;
    padding: 9px 26px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #0a7e46, #13a45d) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(10, 126, 70, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.misha_loadmore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 126, 70, 0.32);
}

/* Footer Polish */
.footer_part_one_bg {
    border-top: 3px solid #0a7e46 !important;
    background: #f8fafc !important;
}

/* Mobile Enhancements (<= 991px) */
@media only screen and (max-width: 991px) {
    .custom_container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .top_header_container {
        padding: 4px 10px !important;
        gap: 6px !important;
    }

    .top_header_container .header_quick_btns {
        gap: 6px;
    }

    .top_header_container .hq-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .scrollmenu {
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0;
        padding: 6px 8px !important;
    }

    .scrollmenu ol li a {
        border-radius: 16px;
        padding: 4px 11px;
        margin-right: 5px;
        background: #f1f5f9;
        color: #1e293b !important;
        font-weight: 600;
        font-size: 14px;
    }

    .home_page_part_one,
    .three_coloumn,
    .two_col_flex {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .home_page_part_one_left,
    .home_page_part_one_right,
    .home_page_part_one_left_left,
    .home_page_part_one_left_right,
    .all_posts_container_left,
    .all_posts_container_right {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .leatest_posts {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Home / Front Page Category & Grid Item Typography (Mobile) */
    .home_sidebar_cat_title > a:first-child {
        font-size: 16.5px !important;
        line-height: 1.35 !important;
    }

    .home_sidebar_cat_title .read-more,
    .home_sidebar_cat_title .read-more p {
        font-size: 12.5px !important;
        line-height: 1.3 !important;
    }

    .home li.tab_post,
    .home li.tab_post a,
    .home a.home_second_part_grid .tab_post,
    #tab_post_container li.tab_post,
    #tab_post_container li.tab_post a {
        font-size: 15px !important;
        line-height: 1.42 !important;
    }

    .home .leatest_in_a_cat_postlopp .single_right_item:first-of-type li.tab_post,
    .home .home_page_pat_one_left_right_grid .single_right_item:first-of-type a li.tab_post,
    .home .flex_column:first-of-type li.tab_post {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }

    .home .leatest_twelve_post h2.title,
    .home .leatest_three_post h2.title,
    .home .three_firest h2.title,
    .home .box-news h2.title,
    .home .home_sidebar_posts .flex_inner h2.title,
    .home .ocs.card .card-title {
        font-size: 15.5px !important;
        line-height: 1.4 !important;
    }

    .home .home_page_part_one_left_right .leatest_three_post:first-of-type h2.title {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    .home .story-item .story-extra h2 {
        font-size: 15px !important;
        line-height: 1.38 !important;
    }

    .home .story-item p.story-category {
        font-size: 12.5px !important;
    }

    .home .leatest_popular_container .button_group button {
        font-size: 16px !important;
    }

    .home .leatest_popular_container .allnews a {
        font-size: 14.5px !important;
    }

    .single_meta_box {
        padding: 12px !important;
    }

    .news-details,
    .news-details p {
        font-size: 16px;
        line-height: 1.75;
    }

    .footer_three_col .custom_container {
        flex-direction: column !important;
        gap: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .leatest_posts {
        grid-template-columns: 1fr !important;
    }
}
