* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f4f5f6;
    color: #222;
    font-family:
        "Noto Sans Bengali",
        "SolaimanLipi",
        "Nirmala UI",
        Arial,
        sans-serif;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}


/* =========================
   COMMON
========================= */

.wrap {
    width: min(1180px, 94%);
    margin: auto;
}


/* =========================
   TOP STRIP
========================= */

.top-strip {
    background: #fff;
    border-bottom: 1px solid #ddd;
    color: #666;
    font-size: 12px;
}

.top-inner {
    min-height: 34px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.social {
    margin-left: auto;
    color: #21465b;
}


/* =========================
   HEADER
========================= */

.header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.brand {
    min-width: 320px;
    line-height: 1;
}

.brand-small {
    font-size: 22px;
    font-weight: 800;
    display: inline;
}

.brand-main {
    font-size: 42px;
    color: #e11d25;
    font-weight: 900;
    display: inline;
    margin-left: 5px;
    text-shadow: 1px 1px #222;
}

.brand-main b {
    color: #087b42;
}

.brand-url {
    text-align: center;
    color: #777;
    font-size: 10px;
    margin-top: 6px;
}

.header-ad {
    min-height: 72px;
    flex: 1;
    background: linear-gradient(
        90deg,
        #f5d700,
        #ffed61
    );
    border: 1px solid #e0c900;
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    font-size: 12px;
    padding: 8px;
}

.header-ad strong {
    color: #d0191d;
    font-size: 15px;
}


/* =========================
   NAV
========================= */

.nav {
    background: #fff;
    border-bottom: 3px solid #ddd;
    border-top: 1px solid #ddd;
}

.nav-inner {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
}

.nav-links a,
.home-link {
    padding: 9px 11px;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    transition: .2s;
}

.nav-links a:hover,
.nav-links a.active,
.home-link {
    background: #093b52;
    color: #fff;
}

.search {
    margin-left: auto;
    display: flex;
}

.search input {
    width: 160px;
    padding: 7px 9px;
    border: 1px solid #ddd;
    outline: none;
}

.search input:focus {
    border-color: #078344;
}

.search button {
    width: 40px;
    background: #078344;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.menu-btn {
    display: none;
    background: #10384d;
    color: #fff;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
}


/* =========================
   TICKER
========================= */

.ticker {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.ticker-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.ticker-inner strong {
    background: #12374a;
    color: #fff;
    padding: 7px 12px;
    white-space: nowrap;
}

.ticker-scroll {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    flex: 1;
}

.ticker-inner > button {
    background: #172f3c;
    color: #fff;
    border: 0;
    font-size: 20px;
    height: 32px;
    width: 40px;
    cursor: pointer;
}


/* =========================
   MAIN LAYOUT
========================= */

.layout {
    display: grid;
    grid-template-columns:
        minmax(0, 2.15fr)
        minmax(280px, .85fr);
    gap: 12px;
    padding: 14px 0;
}

.top-news {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
}


/* =========================
   FEATURED
========================= */

.featured {
    display: block;
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #ddd;
    text-decoration: none;
}

.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 12px 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(
        transparent,
        #000b
    );
}


/* =========================
   SMALL NEWS
========================= */

.small-news {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.small-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 6px;
    text-decoration: none;
    color: #222;
}

.small-item img {
    width: 100px;
    height: 68px;
    object-fit: cover;
}

.small-item b {
    font-size: 12px;
    line-height: 1.45;
    display: block;
}

.small-item small {
    color: #777;
    font-size: 9px;
    display: block;
    margin-top: 3px;
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    margin-top: 12px;
    background: #e9f1f5;
    border-left: 5px solid #0b354b;
    padding: 8px 10px;
    font-size: 17px;
    font-weight: 800;
}


/* =========================
   NEWS GRID
========================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.card-body {
    padding: 8px;
}

.card h2,
.card h3 {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

.card h2 a,
.card h3 a {
    color: #222;
    text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover {
    color: #008247;
}

.card p {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin: 4px 0;
}

.card small {
    color: #777;
    font-size: 9px;
}

.cat {
    font-size: 10px;
    color: #008247;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-box {
    background: #fff;
    border: 1px solid #ddd;
}

.side-head {
    padding: 9px 10px;
    background: #eaf1f5;
    border-left: 4px solid #10394e;
    font-weight: 800;
    font-size: 16px;
}

.side-head.dark {
    background: #172b38;
    color: #fff;
    border: 0;
}


/* LIVE */

.live-box {
    height: 150px;
    background: #111;
    color: #e33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}


/* ARCHIVE */

.archive {
    display: flex;
    padding: 10px;
}

.archive input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ccc;
    padding: 8px;
}

.archive button {
    background: #123c54;
    color: #fff;
    border: 0;
    padding: 0 12px;
    cursor: pointer;
}


/* TABS */

.tabs {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}


/* POPULAR */

.popular {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #222;
}

.popular img {
    width: 78px;
    height: 55px;
    object-fit: cover;
}

.popular span {
    font-size: 11px;
    line-height: 1.4;
}


/* FACEBOOK */

.facebook {
    padding: 12px;
    min-height: 145px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0a5772;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 7px;
}

.facebook p {
    font-size: 11px;
    color: #777;
}

.facebook button {
    border: 0;
    background: #eee;
    padding: 6px 12px;
    cursor: pointer;
}


/* =========================
   GREEN AREA
========================= */

.green-area {
    background: #007d40;
    color: #fff;
    margin: 4px
        calc((100% - 100vw) / 2)
        16px;

    padding:
        22px
        max(3%, calc((100vw - 1180px) / 2));
}

.green-heading {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 15px;
}

.green-heading button {
    background: #202625;
    color: #fff;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.green-heading button.active {
    background: #f32420;
}

.green-heading i {
    height: 5px;
    background: #145234;
    flex: 1;
}

.green-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.green-card {
    color: #fff;
    text-decoration: none;
}

.green-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.green-card b {
    font-size: 12px;
    line-height: 1.45;
    display: block;
    margin-top: 5px;
}


/* =========================
   DIVISION
========================= */

.division {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.compact img {
    height: 130px;
}

.compact h3 {
    padding: 0 8px;
}

.compact small {
    padding: 0 8px;
    display: block;
    padding-bottom: 8px;
}


/* =========================
   MAP
========================= */

.map {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.map-shape {
    height: 220px;
    background:
        linear-gradient(
            135deg,
            #d92127 0 45%,
            #138a45 46% 64%,
            #d82127 65%
        );

    clip-path: polygon(
        48% 0,
        72% 8%,
        62% 24%,
        84% 33%,
        75% 51%,
        91% 67%,
        68% 73%,
        58% 98%,
        41% 77%,
        24% 87%,
        29% 63%,
        8% 55%,
        26% 38%,
        15% 20%,
        35% 25%
    );

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 800;
}

.map-shape strong {
    font-size: 13px;
}

.map p {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
}


/* =========================
   EMPTY
========================= */

.empty {
    background: #fff;
    padding: 30px;
    text-align: center;
    grid-column: 1 / -1;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #12313f;
    color: #fff;
    padding: 24px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1.8;
}


/* =========================
   BACK TO TOP
========================= */

.top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;

    background: #12394c;
    color: #fff;

    border: 0;

    width: 44px;
    height: 44px;

    border-radius: 5px;

    font-size: 24px;

    display: none;

    cursor: pointer;

    z-index: 100;
}

.top-btn.show {
    display: block;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .header {
        flex-direction: column;
    }

    .brand {
        text-align: center;
    }

    .header-ad {
        width: 100%;
    }

    .menu-btn {
        display: block;
    }

    .nav-inner {
        position: relative;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 42px;
        left: 0;
        right: 0;

        background: #fff;

        z-index: 20;

        box-shadow: 0 5px 15px #0002;
    }

    .nav-links.open {
        display: block;
    }

    .nav-links a {
        display: block;
        border-bottom: 1px solid #eee;
    }

    .search {
        margin-left: auto;
    }

    .layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .top-news {
        grid-template-columns: 1fr;
    }

    .featured {
        height: 320px;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .side-box:last-child {
        grid-column: 1 / -1;
    }

    .division {
        grid-template-columns: 1fr;
    }

    .green-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .top-inner {
        font-size: 9px;
        gap: 6px;
    }

    .social {
        display: none;
    }

    .brand-main {
        font-size: 34px;
    }

    .brand-small {
        font-size: 18px;
    }

    .header-ad {
        min-height: 60px;
        font-size: 9px;
    }

    .header-ad strong {
        font-size: 11px;
    }

    .search input {
        width: 105px;
    }

    .featured {
        height: 245px;
    }

    .featured-title {
        font-size: 16px;
    }

    .small-news {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card img {
        height: 110px;
    }

    .card h2 {
        font-size: 12px;
    }

    .sidebar {
        display: block;
    }

    .side-box {
        margin-bottom: 10px;
    }

    .green-area {
        padding: 16px 3%;
    }

    .green-heading {
        overflow-x: auto;
    }

    .green-heading button {
        white-space: nowrap;
    }

    .green-grid {
        grid-template-columns: 1fr 1fr;
    }

    .green-card img {
        height: 95px;
    }

    .division-grid {
        grid-template-columns: 1fr 1fr;
    }

    .compact img {
        height: 100px;
    }

    .footer {
        display: block;
    }

    .footer > div + div {
        margin-top: 10px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

    .news-grid,
    .division-grid,
    .green-grid {
        grid-template-columns: 1fr;
    }

    .brand-main {
        font-size: 28px;
    }

    .header-ad {
        flex-direction: column;
        gap: 8px;
    }

    .search input {
        width: 90px;
    }

    .ticker-inner strong {
        padding-left: 8px;
        padding-right: 8px;
    }
}