* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #171b20;
    background: #fff;
    font: 16px 'Noto Sans Bengali', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #c9232b;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1240px;
    margin: auto;
    padding: 0 26px;
}

.masthead {
    height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edition {
    font-size: 13px;
    color: #596066;
    line-height: 2;
}

.edition span {
    color: #8a9298;
}

.brand {
    font-family: Arial, sans-serif;
    font-size: 62px;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
}

.brand span {
    color: #cc1927;
}

.brand small {
    display: block;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 400;
    margin-top: 13px;
    text-align: center;
}

.brand img {
    max-height: 75px;
    max-width: 250px;
}

.header-right {
    font-size: 13px;
}

.header-right a {
    margin-left: 20px;
    font-size: 25px;
}

.live-dot {
    display: inline-block;
    background: #c9232b;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 7px;
}

.nav {
    border-top: 1px solid #e1e3e5;
    border-bottom: 2px solid #20242a;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 23px;
    min-height: 57px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav a {
    font-weight: 600;
    font-size: 15px;
}

.search {
    display: flex;
    margin-left: auto;
    min-width: 140px;
}

.search input {
    width: 100px;
    border: 0;
    padding: 7px;
    background: #f6f6f6;
}

.search button {
    border: 0;
    background: #f6f6f6;
    font-size: 24px;
}

/* Breaking-news ticker */
.ticker {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-top: 20px;
    font-size: 14px;
    overflow: hidden;
}

.ticker b,
.ticker-label {
    flex: 0 0 auto;
    background: #c9232b;
    color: #fff;
    white-space: nowrap;
    padding: 8px 17px;
    margin-right: 15px;
}

.ticker-window {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: news-marquee 20s linear infinite;
}

.ticker-track a {
    flex: 0 0 auto;
    margin-right: 45px;
    color: #171b20;
    font-size: 22px;
    font-weight: 700;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes news-marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.top-ad {
    margin: 28px auto;
    max-width: 1000px;
}

.ad img {
    max-height: 280px;
    object-fit: contain;
    margin: auto;
}

.top-ad img {
    max-height: 115px;
}

.ad-placeholder {
    padding: 25px;
    text-align: center;
    background: #f3f5f3;
    border: 1px solid #e6e9e6;
    color: #657666;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-placeholder strong {
    font-size: 24px;
    color: #38583e;
}

.ad-placeholder small {
    font-size: 11px;
    color: #858d85;
}

.ad-placeholder span {
    font-size: 12px;
}

.section-heading {
    border-bottom: 2px solid #23272a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 22px;
}

.section-heading h1,
.section-heading h2 {
    font-size: 24px;
    margin: 0 0 12px;
}

.section-heading span {
    font-size: 12px;
    color: #899096;
}

.front-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr);
    gap: 26px;
}

.story-card {
    display: block;
    min-width: 0;
}

.story-image {
    background: #eef0f2;
    overflow: hidden;
    aspect-ratio: 1.7;
    margin-bottom: 15px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.story-card:hover img {
    transform: scale(1.025);
}

.category-label {
    color: #c9232b;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 9px;
}

.story-card h2 {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 23px;
    line-height: 1.55;
    margin: 0 0 10px;
}

.lead h2 {
    font-size: 34px;
    line-height: 1.5;
}

.story-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #626971;
    margin: 0 0 14px;
}

.story-card small {
    font-size: 11px;
    color: #868e94;
}

.secondary {
    min-width: 0;
    border-left: 1px solid #e2e4e5;
    padding-left: 25px;
}

.secondary .story-card + .story-card {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e1e3e5;
}

.secondary h2 {
    font-size: 21px;
}

.secondary p {
    display: none;
}

.sidebar {
    min-width: 0;
    border-left: 1px solid #e2e4e5;
    padding-left: 25px;
}

.sidebar > h3 {
    font-size: 19px;
    margin: 0;
    border-bottom: 2px solid #c9232b;
    padding-bottom: 12px;
}

.latest {
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid #ddd;
}

.latest h3 {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 18px;
    line-height: 1.65;
    margin: 4px 0;
}

.latest small {
    color: #ac202b;
    font-size: 12px;
}

.sidebar .ad {
    margin: 22px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.news-grid .story-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.news-grid h2 {
    font-size: 21px;
}

.news-grid p {
    display: none;
}

/* Single article page */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 60px;
    margin-top: 40px;
}

.article-layout > article {
    min-width: 0;
}

.article-title {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 43px;
    line-height: 1.5;
    margin: 15px 0 22px;
}

.standfirst {
    font-size: 21px;
    line-height: 1.8;
    color: #616971;
}

.byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding: 15px 0 22px;
    font-size: 13px;
}

.byline small {
    display: block;
    margin-top: 9px;
    color: #7b848a;
}

.share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share a,
.share button {
    background: #f0f2f3;
    padding: 7px 10px;
    border: 0;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
}

figure {
    margin: 28px 0;
}

.article-photo {
    width: 100%;
}

figcaption {
    color: #6a7379;
    font-size: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #ddd;
}

.article-body {
    width: 100%;
    max-width: 760px;
    min-width: 0;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 21px;
    line-height: 2.05;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.article-body p,
.article-body h2,
.article-body h3,
.article-body li,
.article-body blockquote {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.article-body img,
.article-body video,
.article-body table {
    max-width: 100%;
    height: auto;
}

.empty {
    padding: 80px;
    text-align: center;
}

.pagination {
    padding: 30px 0;
}

.pagination svg {
    width: 20px;
}

.pagination nav {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pagination nav > div {
    padding: 10px;
}

.pagination .hidden {
    display: none;
}

footer {
    border-top: 4px solid #20252b;
    margin-top: 60px;
    background: #f7f8f9;
    padding: 35px 0 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand links"
        "description links"
        "copyright copyright";
    align-items: center;
    column-gap: 40px;
    row-gap: 12px;
}

.footer-inner > .brand {
    grid-area: brand;
    justify-self: start;
    font-size: 37px;
}

.footer-inner p {
    grid-area: description;
    margin: 0;
    font-size: 13px;
    color: #727b82;
}

.footer-inner > div {
    grid-area: links;
    display: flex;
    justify-self: end;
    flex-wrap: wrap;
    gap: 20px;
    font: 13px Arial, sans-serif;
}

.footer-inner small {
    grid-area: copyright;
    border-top: 1px solid #ddd;
    padding-top: 14px;
    font-size: 12px;
    color: #858c92;
}

.footer-info {
    white-space: pre-line;
    line-height: 1.8;
}
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "description"
            "links"
            "copyright";
        row-gap: 14px;
    }

    .footer-inner > div {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .front-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }

    .front-grid > .sidebar {
        display: none;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-layout .sidebar {
        border: 0;
        padding: 0;
    }

    .article-body {
        max-width: 100%;
    }

    .article-title {
        font-size: 34px;
    }

    .edition {
        display: none;
    }

    .brand {
        font-size: 53px;
    }

    .masthead {
        height: 115px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 17px;
    }

    .masthead {
        height: 100px;
    }

    .brand {
        font-size: 44px;
    }

    .brand small {
        font-size: 10px;
    }

    .header-right {
        font-size: 11px;
    }

    .nav-inner {
        gap: 20px;
    }

    .front-grid {
        display: block;
    }

    .secondary {
        border: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin-top: 25px;
    }

    .secondary .story-card + .story-card {
        padding: 0;
        margin: 0;
        border: 0;
    }

    .lead h2 {
        font-size: 28px;
    }

    .secondary h2,
    .news-grid h2 {
        font-size: 18px;
    }

    .news-grid {
        gap: 18px;
    }

    .section-heading span {
        display: none;
    }

    .article-title {
        font-size: 30px;
    }

    .byline {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-body {
        font-size: 19px;
    }

    .top-ad {
        margin: 18px auto;
    }

    .ad-placeholder strong {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}

@media print {
    .nav,
    .ticker,
    .ad,
    .sidebar,
    .share,
    footer {
        display: none;
    }

    .article-layout {
        display: block;
    }

    .masthead {
        height: 90px;
    }

    .article-title {
        font-size: 28px;
    }
}