/**
 * Times News 24 — homepage layout (dynamic sections)
 */
.tn24-home {
    --tn24-home-gap: 14px;
    --tn24-box-radius: 4px;
    --tn24-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    /* Match theme1 / front_custom defaults (hadding_01/02/03, gallery-title) */
    --tn24-news-cat-size: 20px;
    --tn24-news-lead-size: 19px;
    --tn24-news-excerpt-size: 16px;
    --tn24-news-item-size: 16px;
    --tn24-news-more-size: 15px;
}

.tn24-home .tn24-home-section {
    padding: 12px 0;
}

.tn24-home .tn24-news-box {
    background: #fff;
    border-radius: var(--tn24-box-radius);
    box-shadow: var(--tn24-box-shadow);
    padding: 12px;
    margin-bottom: var(--tn24-home-gap);
    height: 100%;
}

.tn24-home .tn24-news-box__title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tn24-menu, #b80000);
}

.tn24-home .tn24-news-box__title a {
    color: #111;
    font-size: var(--tn24-news-cat-size);
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
}

.tn24-home .tn24-news-box__title a:hover {
    color: var(--tn24-menu, #b80000);
}

.tn24-home .tn24-news-box__lead img,
.tn24-home .tn24-news-box__thumb img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.tn24-home .tn24-news-list__item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tn24-home .tn24-news-list__item:last-child {
    border-bottom: 0;
}

.tn24-home .tn24-news-list__item img {
    width: 90px;
    min-width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 2px;
}

.tn24-home .tn24-news-list__item a {
    color: #222;
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
}

.tn24-home .tn24-more-link {
    margin: 10px 0 0;
    text-align: right;
}

.tn24-home .tn24-more-link a {
    color: var(--tn24-menu, #b80000);
    font-weight: 600;
}

/* Unified news box typography (overrides legacy yellow #F9FF06 / black cat_title) */
.tn24-home .gallery-title,
.tn24-home .fixed_cat_title span {
    background: transparent;
    border-left: 3px solid var(--tn24-menu, #b80000);
    padding-left: 10px;
    margin-bottom: 12px;
    margin-top: 0;
}

.tn24-home .gallery-title a,
.tn24-home .fixed_cat_title span a {
    color: var(--tn24-menu, #b80000) !important;
    background: transparent !important;
    font-size: var(--tn24-news-cat-size) !important;
    font-weight: 400;
    text-decoration: none;
    padding: 0 !important;
    display: inline-block;
}

.tn24-home .gallery-title a:after,
.tn24-home .tn24-news-box .cat_title a:after {
    display: none !important;
}

.tn24-home .tn24-news-box .cat_title {
    background: transparent !important;
    margin-bottom: 10px;
}

.tn24-home .tn24-news-box .cat_title a {
    color: #111 !important;
    background: transparent !important;
    font-size: var(--tn24-news-cat-size) !important;
    font-weight: 600;
    padding: 0 !important;
    border-bottom: 2px solid var(--tn24-menu, #b80000);
    display: inline-block;
    padding-bottom: 6px !important;
}

.tn24-home .photo-title a,
.tn24-home .content-padding > h4,
.tn24-home .content-padding > h4 a,
.tn24-home .hadding_02,
.tn24-home .hadding_02 a,
.tn24-home .hadding_03 a,
.tn24-home .defalt_hadding a,
.tn24-home .small-pto-title a {
    color: #111 !important;
    font-weight: 600;
    text-decoration: none;
}

.tn24-home .photo-title a,
.tn24-home .hadding_02 a,
.tn24-home .defalt_hadding a {
    font-size: var(--tn24-news-lead-size) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.tn24-home .hadding_03 a,
.tn24-home .ftx a,
.tn24-home .small-pto-title a {
    font-size: var(--tn24-news-item-size) !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.tn24-home .photo-title a:hover,
.tn24-home .hadding_02 a:hover,
.tn24-home .hadding_03 a:hover,
.tn24-home .content-padding > h4 a:hover,
.tn24-home .defalt_hadding a:hover,
.tn24-home .small-pto-title a:hover {
    color: var(--tn24-menu, #b80000) !important;
}

.tn24-home .content-dtls,
.tn24-home .photo-content {
    color: #333;
    text-align: justify;
    font-size: var(--tn24-news-excerpt-size) !important;
    line-height: 1.35 !important;
}

.tn24-home .photo-content a {
    font-size: var(--tn24-news-excerpt-size) !important;
}

.tn24-home .content-dtls a,
.tn24-home .content-dtls span a,
.tn24-home .more_news a,
.tn24-home .video-more-news a,
.tn24-home .tn24-more-link a {
    color: var(--tn24-menu, #b80000) !important;
    font-size: var(--tn24-news-more-size) !important;
    font-weight: 400;
    text-decoration: none;
}

.tn24-home .content-dtls a:hover,
.tn24-home .more_news a:hover {
    text-decoration: underline;
}

.tn24-home .ftx a {
    color: #222 !important;
    font-weight: 600;
    text-decoration: none;
}

.tn24-home .ftx a:hover {
    color: var(--tn24-menu, #b80000) !important;
}

.tn24-cat-list-item {
    overflow: hidden;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ddd;
}

.tn24-cat-list-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tn24-cat-list-thumb {
    display: block;
    float: left;
    width: 35%;
    margin-right: 8px;
}

.tn24-cat-list-thumb img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 2px;
    display: block;
}

.tn24-cat-list-title {
    margin: 0 0 4px;
    line-height: 1.35;
}

.tn24-cat-list-title a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.tn24-cat-list-title a:hover {
    color: var(--tn24-menu, #b80000);
}

.tn24-cat-list-snippet {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #555;
    clear: none;
}

.little-img.border .tn24-cat-list-thumb,
.little_img.border .tn24-cat-list-thumb {
    width: 30%;
}

/* বিনোদন / খেলাধুলা — same lead/list sizes as compact news boxes */
.tn24-home .section_five .gallery-title a,
.tn24-home-section.section_five .gallery-title a {
    font-size: var(--tn24-news-cat-size) !important;
    font-weight: 400 !important;
}

.tn24-home .section_five .hadding_02 a,
.tn24-home .section_five .photo-title a,
.tn24-home-section.section_five .hadding_02 a,
.tn24-home-section.section_five .photo-title a,
.tn24-home-section.section_five .defalt_hadding a {
    font-size: var(--tn24-news-lead-size) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #000 !important;
}

.tn24-home .section_five .hadding_03 a,
.tn24-home .section_five .ftx a,
.tn24-home-section.section_five .hadding_03 a,
.tn24-home-section.section_five .ftx a,
.tn24-home .section_five .small-pto-title a,
.tn24-home-section.section_five .small-pto-title a {
    font-size: var(--tn24-news-item-size) !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: #000 !important;
    text-decoration: none !important;
}

.tn24-home .section_five .small-pto-title,
.tn24-home-section.section_five .small-pto-title {
    text-align: left !important;
    margin-top: 5px;
    padding: 6px 4px 0 !important;
}

.tn24-home .section_five .hadding_02 a:hover,
.tn24-home .section_five .ftx a:hover,
.tn24-home .section_five .small-pto-title a:hover,
.tn24-home-section.section_five .hadding_02 a:hover,
.tn24-home-section.section_five .ftx a:hover,
.tn24-home-section.section_five .small-pto-title a:hover {
    color: var(--tn24-menu, #b80000) !important;
}

.tn24-home-section.section_five .video-bg-n .hadding_02 a {
    color: #111 !important;
}

/* Tablet responsive.css overrides (14–16px) — keep homepage section 3 uniform */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .tn24-home .section_five .hadding_02 a,
    .tn24-home-section.section_five .hadding_02 a,
    .tn24-home-section.section_five .defalt_hadding a {
        font-size: var(--tn24-news-lead-size) !important;
    }

    .tn24-home .section_five .photo-content,
    .tn24-home-section.section_five .photo-content {
        font-size: var(--tn24-news-excerpt-size) !important;
    }

    .tn24-home .section_five .ftx a,
    .tn24-home-section.section_five .ftx a,
    .tn24-home .section_five .small-pto-title a,
    .tn24-home-section.section_five .small-pto-title a {
        font-size: var(--tn24-news-item-size) !important;
    }
}

/* জাতীয় / fixed_cat_title — red tab + full-width underline (gradient 1st color) */
.section_three_bg .fixed_cat_title,
.section_six_bg .fixed_cat_title {
    padding: 0 !important;
    margin-bottom: 8px !important;
    border-bottom: 2px solid var(--tn24-primary, #cd2027) !important;
    background: transparent !important;
}

.section_three_bg .fixed_cat_title > span,
.section_six_bg .fixed_cat_title > span {
    display: inline-block !important;
    background: var(--tn24-primary, #cd2027) !important;
    padding: 8px 18px !important;
    margin-left: 0 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

.section_three_bg .fixed_cat_title > span a,
.section_six_bg .fixed_cat_title > span a {
    color: #fff !important;
    background: transparent !important;
}

.section_three_bg,
.section_six_bg {
    border-bottom: 2px solid var(--tn24-primary, #cd2027) !important;
}

.tn24-home .section_three_bg,
.tn24-home .section_six_bg,
.tn24-home .video-bg-n {
    background: #fff !important;
    border-bottom: none;
    box-shadow: var(--tn24-box-shadow);
    border-radius: var(--tn24-box-radius);
    padding: 12px;
}

/* Section 1 — জাতীয় · সারাদেশ (lead + side list twin panels) */
.tn24-section-one-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
}

.tn24-section-one-col {
    display: flex;
    flex-direction: column;
    float: none;
}

.tn24-section-one-panel {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.tn24-section-one-panel__body {
    flex: 1 1 auto;
    margin-left: 0;
    margin-right: 0;
}

.tn24-section-one-panel__lead-media {
    display: block;
    overflow: hidden;
}

.tn24-section-one-panel__lead-media img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.tn24-section-one-panel__read-more {
    display: inline-block;
    margin-left: 4px;
    white-space: nowrap;
}

.tn24-section-one-panel__read-more a {
    color: var(--tn24-menu, #b80000) !important;
    font-weight: 400;
    text-decoration: none;
}

.tn24-section-one-panel__list-col {
    display: flex;
    flex-direction: column;
}

.tn24-section-one-panel__list {
    flex: 1 1 auto;
}

.tn24-section-one-panel__list-item.little-img .tn24-cat-list-thumb,
.section_three .tn24-section-one-panel__list-item.little-img .tn24-cat-list-thumb {
    display: block;
    float: left;
    width: 38%;
    min-width: 100px;
    max-width: 145px;
    margin-right: 10px;
}

.tn24-section-one-panel__list-item.little-img .tn24-cat-list-thumb img,
.section_three .tn24-section-one-panel__list-item.little-img .tn24-cat-list-thumb img {
    width: 100%;
    height: auto;
    min-height: 72px;
    max-height: 90px;
    object-fit: cover;
    float: none;
    margin: 0;
    border: 1px solid #ddd;
    padding: 2px;
    display: block;
}

.tn24-section-one-panel__list-item .hadding_03,
.tn24-section-one-panel__list-item .tn24-cat-list-title {
    margin: 0;
    line-height: 1.35;
}

.tn24-section-one-panel__more-row {
    margin-top: auto;
    padding-top: 6px;
}

.tn24-section-one-panel__more,
.section_three .tn24-section-one-panel__more {
    margin: 8px 0 0;
    text-align: right;
}

.tn24-section-one-panel__more a,
.section_three .tn24-section-one-panel__more a {
    color: var(--tn24-primary, #cd2027) !important;
    font-size: var(--tn24-news-more-size, 15px) !important;
    font-weight: 400;
    text-decoration: none;
}

.tn24-section-one-panel__more a:hover {
    text-decoration: underline;
}

.section_three.tn24-home-section {
    padding: 12px 0;
}

@media (max-width: 767px) {
    .tn24-section-one-panel__lead-col {
        margin-bottom: 12px;
    }

    .tn24-section-one-panel__lead-media img {
        max-height: 200px;
    }
}

.tn24-home .photo-content {
    color: #444;
}

/* Hero */
.tn24-home-hero .home-news-slide-image {
    height: 340px;
}

.tn24-home-hero .tab-header .small-img img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
}

/* Section 3 entertainment + sports — equal twin panels */
.section_five .section-five-home-row {
    margin-left: -15px;
    margin-right: -15px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.section_five .section-five-home-row > .col-md-6,
.section_five .section-five-home-row > .col-md-8,
.section_five .section-five-home-row > .col-md-4 {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    float: none;
}

.section_five .section-five-home-row > .col-md-6 > .tn24-cat-panel,
.section_five .section-five-home-row > .col-md-8 > .tn24-cat-panel,
.section_five .section-five-home-row > .col-md-4 > .tn24-cat-panel {
    flex: 1 1 auto;
    width: 100%;
}

.section_five .photo-content {
    max-height: 9.5em;
    overflow: hidden;
}

.section_five .slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.section_five .slider-content-pic {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
}

.section_five .slide-small-img {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    box-sizing: border-box;
    padding: 5px;
}

/* বিনোদন + খেলাধুলা — unified category panels (section 3) */
.section_five .tn24-cat-panel,
.tn24-home .tn24-cat-panel,
.tn24-home-section.section_five .tn24-cat-panel {
    background: #fff;
    border-radius: var(--tn24-box-radius, 4px);
    box-shadow: var(--tn24-box-shadow, 0 1px 4px rgba(0, 0, 0, 0.08));
    padding: 12px 14px 14px;
    margin-bottom: 8px;
    height: 100%;
}

.section_five .tn24-cat-panel.slider-padding,
.tn24-home .tn24-cat-panel.slider-padding {
    padding: 12px 14px 14px;
    margin-bottom: 8px;
}

.section_five .tn24-cat-panel__lead-img,
.section_five .tn24-cat-panel .tn24-cat-panel__lead-link img,
.tn24-home .tn24-cat-panel__lead-img,
.tn24-home .tn24-cat-panel .normal-img > a > img,
.tn24-home .tn24-cat-panel .tn24-cat-panel__lead-link img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.section_five .tn24-cat-panel__lead .hadding_02,
.tn24-home .tn24-cat-panel__lead .hadding_02 {
    margin-top: 10px;
}

.section_five .tn24-cat-panel__grid,
.tn24-home .tn24-cat-panel__grid {
    margin: 8px -8px 0;
}

.section_five .tn24-cat-panel__grid-cell,
.tn24-home .tn24-cat-panel__grid-cell {
    padding-left: 8px;
    padding-right: 8px;
}

.section_five .tn24-cat-panel__sub,
.section_five .tn24-cat-panel__sub.tn24-cat-list-item,
.tn24-home .tn24-cat-panel__sub,
.tn24-home .tn24-cat-panel__sub.tn24-cat-list-item {
    overflow: hidden;
    margin: 8px 0 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.section_five .tn24-cat-panel__sub .tn24-cat-list-thumb,
.tn24-home .tn24-cat-panel__sub .tn24-cat-list-thumb {
    display: block;
    float: left;
    width: 38%;
    max-width: 110px;
    margin-right: 8px;
}

.section_five .tn24-cat-panel__sub.little-img,
.tn24-home .tn24-cat-panel__sub.little-img {
    margin: 8px 0 0 !important;
}

.section_five .tn24-cat-panel__sub.little-img img,
.tn24-home .tn24-cat-panel__sub.little-img img {
    float: none;
    width: 100%;
    margin-right: 0;
    display: block;
    border-radius: 3px;
    object-fit: cover;
    max-width: none;
}

.section_five .tn24-cat-panel__sub .tn24-cat-list-title,
.section_five .tn24-cat-panel__sub .hadding_03,
.tn24-home .tn24-cat-panel__sub .tn24-cat-list-title,
.tn24-home .tn24-cat-panel__sub .hadding_03 {
    margin: 0;
    overflow: hidden;
    line-height: 1.35;
}

.section_five .tn24-cat-panel__sub .tn24-cat-list-title a,
.section_five .tn24-cat-panel__sub .hadding_03 a,
.tn24-home .tn24-cat-panel__sub .hadding_03 a {
    font-size: var(--tn24-news-item-size, 15px) !important;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.section_five .tn24-cat-panel .video-more-news,
.tn24-home .tn24-cat-panel .video-more-news {
    margin-top: 12px;
    text-align: center;
}

.section_five .tn24-cat-panel .video-more-news a,
.tn24-home .tn24-cat-panel .video-more-news a {
    display: inline-block;
    background: #222;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: var(--tn24-news-more-size) !important;
    font-weight: 400 !important;
    text-decoration: none;
}

.section_five .tn24-cat-panel .video-more-news a:hover,
.tn24-home .tn24-cat-panel .video-more-news a:hover {
    background: var(--tn24-menu, #b80000);
}

.tn24-home .section_five .photo-content,
.tn24-home-section.section_five .photo-content {
    font-size: var(--tn24-news-excerpt-size) !important;
    color: #333 !important;
}

.tn24-home .tn24-cat-panel .gallery-title a {
    font-size: var(--tn24-news-cat-size) !important;
    font-weight: 400 !important;
}

/* বিনোদন / খেলাধুলা — category header matches জাতীয় (red tab + underline) */
.tn24-home .tn24-cat-panel .gallery-title,
.tn24-home-section.section_five .tn24-cat-panel .gallery-title {
    background: transparent !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-top: 0;
    margin-bottom: 8px !important;
    border-bottom: 2px solid var(--tn24-primary, #cd2027) !important;
}

.tn24-home .tn24-cat-panel .gallery-title a,
.tn24-home-section.section_five .tn24-cat-panel .gallery-title a {
    display: inline-block !important;
    background: var(--tn24-primary, #cd2027) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    margin-left: 0 !important;
    border-left: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

.tn24-home .tn24-cat-panel .hadding_02 a {
    font-size: var(--tn24-news-lead-size) !important;
    font-weight: 400 !important;
}

.tn24-home .tn24-cat-panel .hadding_03 a,
.tn24-home .tn24-cat-panel .ftx a {
    font-size: var(--tn24-news-item-size) !important;
    font-weight: 400 !important;
}

@media (max-width: 767px) {
    .tn24-home .tn24-cat-panel__lead-img,
    .tn24-home .tn24-cat-panel .normal-img > a > img {
        max-height: 200px;
    }
}

/* Section 4 grid */
.tn24-home .section-six-home-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tn24-home .section-six-home-row > [class*="col-"] {
    margin-bottom: var(--tn24-home-gap);
}

/* Ads */
.tn24-ad-row.widget_section {
    padding: 8px 0;
}

.tn24-ad-row .tn24-ad-img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.widget_section.widget_section--collapsed {
    display: none !important;
}

/* Sidebar tabs max height */
.tn24-home-hero .tab-content .gallery-list {
    max-height: 520px;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .tn24-home-hero .home-news-slide-image {
        height: 220px;
    }

    .tn24-home .tn24-news-list__item img {
        width: 72px;
        min-width: 72px;
        height: 54px;
    }
}

/* Category archive (জাতীয়, সারাদেশ, etc.) — same visual language as homepage panels */
.tn24-category-page {
    padding-top: 4px;
}

.tn24-category-page .tn24-category-heading.gallery-title {
    background: transparent !important;
    border-left: none !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border-bottom: 2px solid var(--cat-heading-color, var(--tn24-primary, #cd2027)) !important;
    color: inherit !important;
}

.tn24-category-page .tn24-category-heading.gallery-title span {
    display: inline-block;
    background: var(--cat-heading-color, var(--tn24-primary, #cd2027));
    color: #fff;
    padding: 8px 18px;
    font-size: var(--tn24-news-cat-size, 18px);
    font-weight: 600;
}

.tn24-category-page .category_info.tn24-category-breadcrumb {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
    color: #333;
    font-size: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 2px;
}

.tn24-category-page .category_info.tn24-category-breadcrumb a {
    color: var(--tn24-primary, #cd2027);
    text-decoration: none;
}

.tn24-category-page .category_info.tn24-category-breadcrumb a:hover {
    text-decoration: underline;
}

.tn24-category-page .tn24-category-sidebar__tabs.tab-header {
    margin-bottom: 0;
}

.tn24-category-page .tn24-category-sidebar__tabs .nav-tabs {
    border-bottom: 2px solid var(--tn24-primary, #cd2027);
}

.tn24-category-page .tn24-category-sidebar__tabs .nav-tabs > li > a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 0;
}

.tn24-category-page .content-tags {
    padding-right: 12px;
}

/* Bangladesh location pages (/news/bangladesh/...) */
.tn24-category-page .tn24-location-area-links {
    margin-bottom: 16px;
}

.tn24-category-page .tn24-location-area-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tn24-category-page .tn24-location-area-list li {
    margin: 0;
    padding: 0;
}

.tn24-category-page .tn24-location-area-list a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--tn24-primary, #cd2027);
    color: var(--tn24-primary, #cd2027);
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.tn24-category-page .tn24-location-legacy-crumb a {
    color: var(--tn24-primary, #cd2027);
    text-decoration: none;
    font-weight: 600;
}

.tn24-category-page .tn24-location-legacy-crumb a:hover {
    text-decoration: underline;
}

.tn24-category-page .tn24-category-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tn24-category-page .tn24-category-subnav__link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--cat-color, #cd2027);
    color: var(--cat-color, #cd2027);
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.tn24-category-page .tn24-category-subnav__link:hover {
    background: var(--cat-color, #cd2027);
    color: #fff;
}

.tn24-category-page .tn24-cat-panel--archive {
    background: #fff;
    border-radius: var(--tn24-box-radius, 4px);
    box-shadow: var(--tn24-box-shadow, 0 1px 4px rgba(0, 0, 0, 0.08));
    padding: 14px 14px 6px;
    margin-bottom: 12px;
}

.tn24-category-page .tn24-cat-archive-hero {
    margin-bottom: 8px;
}

.tn24-category-page .tn24-cat-panel__lead-img,
.tn24-category-page .tn24-cat-panel__lead-wrap img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.tn24-category-page .tn24-cat-archive-excerpt {
    color: #444;
    line-height: 1.55;
    margin-top: 8px;
}

.tn24-category-page .tn24-read-more-wrap {
    display: block;
    text-align: right;
    margin-top: 6px;
}

.tn24-category-page .tn24-cat-archive-side-item {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tn24-category-page .tn24-cat-archive-side-item:last-child {
    border-bottom: none;
}

.tn24-category-page .tn24-cat-archive-grid {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tn24-category-page .tn24-cat-archive-list {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.tn24-category-page .tn24-cat-archive-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tn24-category-page .tn24-cat-archive-row-excerpt {
    margin: 6px 0 0;
    color: #555;
    line-height: 1.5;
}

.tn24-category-page .tn24-category-sidebar {
    margin-top: 0;
}

.tn24-category-page .tn24-category-sidebar-ad,
.tn24-category-page .tn24-category-bottom-ad {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .tn24-category-page .tn24-cat-panel__lead-img,
    .tn24-category-page .tn24-cat-panel__lead-wrap img {
        max-height: 220px;
    }

    .tn24-category-page .tn24-cat-archive-side {
        margin-top: 12px;
    }
}

/* Category sidebar — dynamic division / all area (homepage-style AJAX) */
.tn24-cat-division-widget {
    margin-top: 16px;
    background: #fff;
    border-radius: var(--tn24-box-radius, 4px);
    box-shadow: var(--tn24-box-shadow, 0 1px 4px rgba(0, 0, 0, 0.08));
    padding: 12px 12px 10px;
}

.tn24-cat-division-widget__title {
    margin-bottom: 8px !important;
}

.tn24-cat-division-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tn24-cat-division-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
    min-width: max-content;
}

.tn24-cat-division-tabs > li {
    float: none;
    flex: 0 0 auto;
}

.tn24-cat-division-tabs > li > a {
    display: block;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 3px;
    color: #333;
    background: #f3f3f3;
    text-decoration: none;
    white-space: nowrap;
}

.tn24-cat-division-tabs > li.active > a,
.tn24-cat-division-tabs > li > a:hover {
    background: var(--tn24-primary, #cd2027);
    color: #fff;
}

.tn24-cat-division-panel {
    max-height: 420px;
    overflow-y: auto;
}

.tn24-cat-division-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.tn24-cat-division-item:last-child {
    border-bottom: none;
}

.tn24-cat-division-item__link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.tn24-cat-division-item__thumb {
    position: relative;
    flex: 0 0 80px;
    width: 80px;
    height: 56px;
    overflow: hidden;
    border-radius: 3px;
    background: #f5f5f5;
}

.tn24-cat-division-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tn24-cat-division-item__body {
    flex: 1;
    min-width: 0;
}

.tn24-cat-division-item__title {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    color: #222;
    font-weight: 400;
}

.tn24-cat-division-item__time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #888;
}

.tn24-cat-division-item__link:hover .tn24-cat-division-item__title {
    color: var(--tn24-primary, #cd2027);
}

/* Lead overlay + meta (banglanews-style density, TN24 colors) */
.tn24-cat-panel__lead--overlay .tn24-cat-lead-media {
    position: relative;
    display: block;
}

.tn24-cat-lead-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 2px;
}

.tn24-cat-archive-meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: #777;
}

.tn24-cat-archive-meta--compact {
    margin-top: 4px;
    margin-bottom: 0;
}

.tn24-cat-archive-index {
    display: inline-block;
    min-width: 22px;
    margin-right: 6px;
    font-weight: 700;
    color: var(--tn24-primary, #cd2027);
}

.tn24-category-page .archvie_more a {
    display: inline-block;
    background: var(--tn24-primary, #cd2027);
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 2px;
    font-size: 13px;
    text-decoration: none;
}

.tn24-category-page .archvie_more a:hover {
    opacity: 0.9;
}

    .tn24-category-page .tn24-read-more-wrap a {
    color: var(--tn24-primary, #cd2027);
    font-weight: 600;
}

/* Homepage division map — clickable regions */
.tn24-division-map-heading {
    margin-bottom: 8px;
}

.homePageSideSvg .tn24-division-map-region {
    cursor: pointer;
}

.homePageSideSvg .tn24-division-map-link {
    cursor: pointer;
}

/* Category sidebar widgets (Facebook, salat, rashifall, extra ads) */
.tn24-category-sidebar-widgets .tn24-cat-sidebar-widget {
    margin-top: 16px;
    background: #fff;
    border-radius: var(--tn24-box-radius, 4px);
    box-shadow: var(--tn24-box-shadow, 0 1px 4px rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.tn24-category-sidebar-widgets .tn24-cat-sidebar-widget__title {
    margin-bottom: 0 !important;
}

.tn24-category-sidebar-widgets .tn24-cat-sidebar-widget__body {
    padding: 10px 12px 12px;
}

.tn24-cat-sidebar-fb__link {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    text-align: center;
    background: #1877f2;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}

.tn24-cat-sidebar-fb__link:hover {
    opacity: 0.92;
}

.tn24-cat-sidebar-salat .pray-card {
    max-width: 100%;
    margin-top: 0;
}

.tn24-cat-rashi-intro {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.tn24-cat-rashi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tn24-cat-rashi-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 6px 4px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    transition: background 0.2s, border-color 0.2s;
}

.tn24-cat-rashi-cell:hover {
    background: #fff5f5;
    border-color: var(--tn24-primary, #cd2027);
    color: var(--tn24-primary, #cd2027);
}

.tn24-cat-rashi-cell__icon img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tn24-cat-rashi-cell__name {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

/* Dynamic category listing enhancements */
.tn24-category-page .tn24-cat-thumb-wrap img,
.tn24-category-page .tn24-cat-thumb-img {
    width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.tn24-category-page .tn24-cat-grid-card {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.tn24-category-page .tn24-cat-archive-hero--compact .tn24-cat-panel__lead-img,
.tn24-category-page .tn24-cat-archive-hero--compact .tn24-cat-panel__lead-wrap img {
    max-height: 280px;
}

.tn24-category-page .tn24-cat-archive-row--alt {
    background: #fafafa;
    border-radius: 4px;
    padding: 10px 8px;
}

.tn24-category-page .tn24-cat-inline-ad {
    margin: 14px 0;
    text-align: center;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
}

.tn24-category-page .tn24-cat-sidebar-thumb img {
    min-height: auto;
    max-height: 80px;
}

/* Section 4 — লাইফস্টাইল · স্বাস্থ্য · আইন · অর্থনীতি (same panel as বিনোদন / খেলাধুলা) */
.section_six.section_five,
.tn24-home-section.section_six.section_five {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

.section_six.section_five .section-five-home-row > [class*="col-"],
.tn24-home-section.section_six.section_five .section-five-home-row > [class*="col-"] {
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .section_six.section_five .section-five-home-row > [class*="col-"]:nth-child(n+3),
    .tn24-home-section.section_six.section_five .section-five-home-row > [class*="col-"]:nth-child(n+3) {
        margin-top: 0.25rem;
    }
}
