/**
 * 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;
}

/* বিনোদন / খেলাধুলা — 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;
}

.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 */
.section_five .section-five-home-row {
    margin-left: -15px;
    margin-right: -15px;
    overflow: hidden;
}

.section_five .section-five-home-row > .col-md-4 {
    margin-top: 0;
}

.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) */
.tn24-home .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%;
}

.tn24-home .tn24-cat-panel.slider-padding {
    padding: 12px 14px 14px;
    margin-bottom: 8px;
}

.tn24-home .tn24-cat-panel__lead-img,
.tn24-home .tn24-cat-panel .normal-img > a > img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.tn24-home .tn24-cat-panel__lead .hadding_02 {
    margin-top: 10px;
}

.tn24-home .tn24-cat-panel__grid {
    margin: 8px -8px 0;
}

.tn24-home .tn24-cat-panel__sub {
    overflow: hidden;
    margin: 8px 0 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.tn24-home .tn24-cat-panel__sub img {
    float: left;
    width: 38%;
    max-width: 140px;
    margin-right: 10px;
    border-radius: 3px;
    object-fit: cover;
}

.tn24-home .tn24-cat-panel__sub .hadding_03 {
    margin: 0;
    overflow: hidden;
}

.tn24-home .tn24-cat-panel .video-more-news {
    margin-top: 12px;
    text-align: center;
}

.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;
}

.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;
    }
}
