/* =====================================================
   GLOBAL
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f1f5f9;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.wrap {
    width: min(1200px, calc(100% - 30px));
    margin-left: auto;
    margin-right: auto;
}


/* =====================================================
   TOP STRIP
===================================================== */

.top-strip {
    width: 100%;
}

.top-inner {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    flex-wrap: wrap;
}


/* =====================================================
   SOCIAL
===================================================== */

.social {
    display: flex;
    align-items: center;

    gap: 8px;
}

.social a {
    text-decoration: none;

    font-weight: 700;
}


/* =====================================================
   MAIN NEWS TICKER
   PC + TABLET + MOBILE
   সব ডিভাইসে একই গতিতে চলবে
===================================================== */

.ticker {
    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


/* =====================================================
   TICKER INNER
===================================================== */

.ticker-inner {
    min-height: 38px;

    display: flex;
    align-items: center;

    gap: 8px;

    overflow: hidden;
}


/* =====================================================
   TICKER TITLE
===================================================== */

.ticker-inner > strong {
    flex: 0 0 auto;

    white-space: nowrap;

    font-weight: 700;
}


/* =====================================================
   TICKER SCROLL AREA
===================================================== */

.ticker-scroll {
    flex: 1 1 auto;

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    position: relative;

    padding: 0 10px;
}


/* =====================================================
   TICKER CONTENT

   শুধু animation-duration পরিবর্তন করলেই
   টিকারের গতি পরিবর্তন হবে।

   20s = দ্রুত
   25s = একটু দ্রুত
   30s = স্বাভাবিক
   40s = ধীর
   50s = আরও ধীর

   PC + Tablet + Mobile
   সব জায়গায় একই গতি থাকবে।
===================================================== */

.ticker-content {
    display: inline-flex;

    align-items: center;

    white-space: nowrap;

    width: max-content;

    animation-name: newsTicker;

    /* ================================================
       TICKER SPEED
       এখান থেকে গতি পরিবর্তন করুন
    ================================================= */

    animation-duration: 20s;

    animation-timing-function: linear;

    animation-iteration-count: infinite;

    will-change: transform;
}


/* =====================================================
   NEWS TEXT
===================================================== */

.ticker-content span {
    display: inline-block;

    white-space: nowrap;

    margin-right: 10px;
}


/* =====================================================
   DOT
===================================================== */

.ticker-content b {
    display: inline-block;

    margin-right: 10px;

    color: #e11d25;

    font-weight: 700;
}


/* =====================================================
   MOUSE HOVER করলে TICKER থামবে
===================================================== */

.ticker-content:hover {
    animation-play-state: paused;
}


/* =====================================================
   TICKER ANIMATION
===================================================== */

@keyframes newsTicker {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* =====================================================
   TICKER CLOSE BUTTON
===================================================== */

.ticker-inner > button {
    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    border: 0;

    background: transparent;

    color: #555;

    font-size: 22px;

    line-height: 28px;

    cursor: pointer;

    padding: 0;
}

.ticker-inner > button:hover {
    color: #e11d25;
}


/* =====================================================
   HEADER
===================================================== */
.brand-main {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;

    background: linear-gradient(
        90deg,
        #d60000,
        #ff9800,
        #006a4e
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}

.brand-main b {
    font-weight: 900;
}





.header {
    display: flex;
    align-items: center;

    gap: 20px;

    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    flex: 0 0 280px;

    min-width: 0;
}

.brand-small {
    font-size: 13px;
}

.brand-main {
    font-size: 28px;

    line-height: 1.2;

    font-weight: 700;
}

.brand-url {
    font-size: 12px;
}

.header-banner {
    flex: 1 1 auto;

    min-width: 0;

    height: 90px;

    position: relative;

    overflow: hidden;

    background: #eee;

    border: 1px solid #ddd;

    border-radius: 7px;
}

.banner-slide {
    position: absolute;

    inset: 0;

    display: block;

    opacity: 0;

    visibility: hidden;

    transition: opacity .6s ease;

    text-decoration: none;
}

.banner-slide.active {
    opacity: 1;

    visibility: visible;

    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.banner-empty {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #777;
}


/* =====================================================
   NAVIGATION
===================================================== */

.nav {
    width: 100%;

    background: #0f766e;
}

.nav-inner {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.menu-btn {
    display: none;

    flex: 0 0 auto;
}

.nav-links {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 3px;

    overflow-x: auto;

    scrollbar-width: thin;
}

.nav-links a {
    flex: 0 0 auto;

    white-space: nowrap;

    color: #ffffff !important;

    background: transparent;

    text-decoration: none;

    font-weight: 700;

    padding: 11px 13px;

    display: block;

    transition: all .2s ease;
}

.nav-links a:hover {
    color: #ffffff !important;

    background: #0b665f;
}

.nav-links a.active {
    color: #ffffff !important;

    background: #0b665f !important;
}


/* =====================================================
   SEARCH
===================================================== */

.search {
    flex: 0 0 230px;

    display: flex;

    min-width: 0;
}

.search input {
    min-width: 0;

    width: 100%;
}

.search button {
    flex: 0 0 auto;
}


/* =====================================================
   MAIN LAYOUT
===================================================== */

.layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 20px;

    align-items: start;

    margin-top: 20px;
}

.main-content {
    min-width: 0;

    background: #fff;

    border-radius: 10px;

    padding: 15px;

    box-shadow:
        0 2px 10px rgba(0,0,0,.05);
}

.sidebar {
    min-width: 0;

    background: #eef6ff;

    padding: 10px;

    border-radius: 10px;
}


/* =====================================================
   FEATURED
===================================================== */

.top-news {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(250px, 1fr);

    gap: 15px;
}

.featured {
    display: block;

    position: relative;

    min-width: 0;

    overflow: hidden;

    border-radius: 8px;
}

.featured img {
    width: 100%;
    height: 330px;

    object-fit: cover;

    display: block;
}

.featured-title {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px;

    color: #fff;

    font-size: 23px;

    line-height: 1.45;

    font-weight: 700;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.85)
        );
}


/* =====================================================
   SMALL NEWS
===================================================== */

.small-news {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.small-item {
    display: flex;

    gap: 10px;

    min-width: 0;

    padding: 7px;

    border: 1px solid #e5e7eb;

    border-radius: 7px;

    text-decoration: none;

    background: #fff;
}

.small-item img {
    width: 100px;
    height: 70px;

    object-fit: cover;

    border-radius: 5px;

    flex: 0 0 100px;
}

.small-item > div {
    min-width: 0;
}

.small-item b {
    display: block;

    font-size: 14px;

    line-height: 1.45;

    overflow-wrap: anywhere;
}

.small-item small {
    display: block;

    margin-top: 5px;

    color: #64748b;
}


/* =====================================================
   NEWS GRID
===================================================== */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.card {
    min-width: 0;

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    overflow: hidden;

    transition: .3s;
}

.card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0,0,0,.10);
}

.card > a {
    display: block;
}

.card > a img {
    width: 100%;
    height: 190px;

    object-fit: cover;

    display: block;
}

.card-body {
    padding: 12px;

    min-width: 0;
}

.card-body h2 {
    margin: 7px 0;

    font-size: 18px;

    line-height: 1.5;
}

.card-body h2 a {
    overflow-wrap: anywhere;
}

.card-body p {
    color: #64748b;

    line-height: 1.6;

    margin: 7px 0;

    overflow-wrap: anywhere;
}

.cat {
    color: #0f766e;

    font-size: 13px;

    font-weight: 700;
}


/* =====================================================
   SECTION TITLE
===================================================== */

.section-title {
    background:
        linear-gradient(
            90deg,
            #0f766e,
            #14b8a6
        );

    color: #fff;

    padding: 10px 15px;

    border-radius: 7px;

    margin: 15px 0;

    font-weight: 700;
}


/* =====================================================
   SIDEBAR
===================================================== */

.side-box {
    background: #fff;

    border-radius: 9px;

    overflow: hidden;

    margin-bottom: 15px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.07);
}

.side-head {
    padding: 11px 12px;

    font-weight: 700;

    background: #fff;
}

.side-head.dark {
    background: #111827;

    color: #fff;
}


/* =====================================================
   ARCHIVE
===================================================== */

.archive {
    background: #fff7ed;

    padding: 15px;

    display: flex;

    gap: 8px;
}

.archive input {
    min-width: 0;

    width: 100%;
}

.archive button {
    flex: 0 0 auto;
}


/* =====================================================
   LIVE TV
===================================================== */

.live-box {
    aspect-ratio: 16 / 9;

    height: auto;

    min-height: 180px;

    background: #050505;

    overflow: hidden;

    position: relative;
}

.live-box iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}

.live-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ef4444;

    font-size: 28px;

    font-weight: 900;
}

.live-video-list {
    background: #f8fafc;

    padding: 8px;

    max-height: 300px;

    overflow-y: auto;
}

.live-video-item {
    display: flex;

    gap: 9px;

    padding: 7px;

    margin-bottom: 6px;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 6px;

    cursor: pointer;

    transition: .25s;
}

.live-video-item:hover {
    background: #eff6ff;

    border-color: #3b82f6;
}

.live-video-item.active {
    background: #dbeafe;

    border-color: #2563eb;
}

.live-video-item img,
.video-thumb-empty {
    width: 90px;
    height: 55px;

    object-fit: cover;

    border-radius: 5px;

    flex: 0 0 90px;
}

.video-thumb-empty {
    display: flex;

    align-items: center;

    justify-content: center;

    background: #111827;

    color: #fff;

    font-size: 22px;
}

.live-video-info {
    flex: 1;

    min-width: 0;

    font-size: 13px;

    line-height: 1.4;
}

.live-video-info b {
    display: block;

    color: #1f2937;

    overflow-wrap: anywhere;
}

.live-now {
    display: inline-block;

    margin-top: 5px;

    background: #dc2626;

    color: #fff;

    padding: 2px 7px;

    border-radius: 10px;

    font-size: 10px;

    font-weight: bold;
}


/* =====================================================
   POPULAR
===================================================== */

.tabs {
    display: flex;

    gap: 10px;

    padding: 10px;

    border-bottom: 1px solid #e5e7eb;
}

.tabs b {
    font-size: 13px;
}

.popular {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 8px 10px;

    border-bottom: 1px solid #edf2f7;

    text-decoration: none;
}

.popular img {
    width: 75px;
    height: 55px;

    object-fit: cover;

    border-radius: 5px;

    flex: 0 0 75px;
}

.popular span {
    min-width: 0;

    font-size: 13px;

    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =====================================================
   FACEBOOK
===================================================== */

.facebook {
    padding: 15px;
}

.avatar {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #2563eb;

    color: #fff;

    border-radius: 50%;

    margin-bottom: 8px;

    font-weight: 700;
}


/* =====================================================
   GREEN AREA
===================================================== */

.green-area {
    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #d1fae5
        );

    border: 1px solid #a7f3d0;

    border-radius: 12px;

    padding: 15px;

    margin-top: 25px;
}

.green-heading {
    display: flex;

    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}

.green-heading button {
    border: 0;

    padding: 8px 13px;

    border-radius: 5px;

    cursor: pointer;
}

.green-heading button.active {
    background: #0f766e;

    color: #fff;
}

.green-heading i {
    flex: 1;
}

.green-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 12px;
}

.green-card {
    min-width: 0;

    background: #fff;

    border-radius: 8px;

    overflow: hidden;

    text-decoration: none;
}

.green-card img {
    width: 100%;
    height: 145px;

    object-fit: cover;

    display: block;
}

.green-card b {
    display: block;

    padding: 9px;

    font-size: 14px;

    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =====================================================
   DIVISION
===================================================== */

.division {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(260px, 1fr);

    gap: 20px;

    background: #fff;

    border-radius: 12px;

    padding: 15px;

    margin-top: 25px;

    box-shadow:
        0 2px 10px rgba(0,0,0,.05);
}

.division-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.compact img {
    width: 100%;
    height: 135px;

    object-fit: cover;

    display: block;
}

.compact h3 {
    margin: 8px;

    font-size: 15px;

    line-height: 1.45;
}

.compact h3 a {
    overflow-wrap: anywhere;
}

.compact small {
    display: block;

    padding: 0 8px 10px;
}


/* =====================================================
   MAP
===================================================== */

.map {
    min-height: 250px;

    padding: 20px;

    text-align: center;

    border-radius: 10px;

    background: #eff6ff;
}

.map-shape {
    margin: 20px auto;

    width: min(180px, 70%);

    padding: 45px 10px;

    border-radius:
        48% 52% 45% 55%;

    background: #bfdbfe;

    color: #1e3a8a;

    font-weight: 700;
}

.map-shape img {
    width: 100%;
    height: auto;

    display: block;
}

.map p {
    line-height: 1.7;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background:
        linear-gradient(
            135deg,
            #172554,
            #1e3a8a
        );

    color: #fff;

    margin-top: 30px;
}

.footer {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding: 30px 0;

    line-height: 1.8;
}

.footer a {
    color: #fff;

    text-decoration: none;
}

.top-btn {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 999;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .wrap {
        width: min(
            calc(100% - 24px),
            900px
        );
    }

    .layout {
        grid-template-columns:
            minmax(0, 1fr)
            280px;

        gap: 15px;
    }

    .news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .green-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .division {
        grid-template-columns: 1fr;
    }

    .division-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .brand {
        flex-basis: 230px;
    }

    .header-banner {
        height: 80px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .wrap {
        width: calc(100% - 20px);
    }

    .top-inner {
        min-height: 32px;

        justify-content: center;

        font-size: 12px;

        gap: 8px;
    }

    .top-inner .social {
        display: none;
    }


    /* =================================================
       TICKER MOBILE
       একই 30s গতি থাকবে
    ================================================= */

    .ticker-inner {
        min-height: 34px;

        font-size: 13px;
    }

    .ticker-content {
        animation-duration: 30s;
    }


    /* =================================================
       HEADER
    ================================================= */

    .header {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        padding-top: 10px;

        padding-bottom: 10px;
    }

    .brand {
        flex: 0 0 auto;

        width: 100%;

        text-align: center;
    }

    .brand-small {
        font-size: 13px;
    }

    .brand-main {
        font-size: 30px;

        line-height: 1.1;
    }

    .brand-url {
        font-size: 11px;
    }

    .header-banner {
        width: 100%;

        height: 90px;

        flex: none;
    }


    /* =================================================
       MOBILE NAV
    ================================================= */

    .nav-inner {
        position: relative;

        display: flex;

        flex-wrap: wrap;

        padding: 7px 0;
    }

    .menu-btn {
        display: block;

        width: 42px;
        height: 38px;

        border: 0;

        border-radius: 5px;

        cursor: pointer;
    }

    .nav-links {
        display: none;

        order: 3;

        flex-basis: 100%;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        max-height: 65vh;

        overflow-y: auto;

        overflow-x: hidden;

        padding: 5px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        width: 100%;

        padding: 10px 12px;

        border-bottom:
            1px solid rgba(0,0,0,.06);
    }

    .search {
        flex: 1;

        width: auto;
    }

    .search input {
        height: 38px;
    }

    .search button {
        width: 42px;
    }


    /* =================================================
       MAIN
    ================================================= */

    .layout {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-top: 12px;
    }

    .main-content {
        padding: 10px;
    }

    .sidebar {
        order: 2;
    }


    /* =================================================
       FEATURED
    ================================================= */

    .top-news {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .featured img {
        height: auto;

        aspect-ratio: 16 / 10;
    }

    .featured-title {
        font-size: 19px;

        line-height: 1.4;

        padding: 11px;
    }

    .small-news {
        display: grid;

        grid-template-columns: 1fr;

        gap: 7px;
    }

    .small-item img {
        width: 85px;
        height: 60px;

        flex-basis: 85px;
    }

    .small-item b {
        font-size: 13px;
    }

    .section-title {
        margin: 12px 0;

        font-size: 16px;
    }


    /* =================================================
       NEWS
    ================================================= */

    .news-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .card > a img {
        height: auto;

        aspect-ratio: 16 / 9;
    }

    .card-body h2 {
        font-size: 17px;
    }


    /* =================================================
       LIVE TV
    ================================================= */

    .live-box {
        aspect-ratio: 16 / 10;

        min-height: 200px;
    }

    .live-video-list {
        max-height: 260px;
    }

    .live-video-item img,
    .video-thumb-empty {
        width: 80px;
        height: 50px;

        flex-basis: 80px;
    }


    /* =================================================
       GREEN
    ================================================= */

    .green-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 8px;
    }

    .green-card img {
        height: auto;

        aspect-ratio: 16 / 10;
    }

    .green-card b {
        font-size: 13px;

        padding: 8px;
    }

    .green-heading {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 4px;
    }

    .green-heading button {
        flex: 0 0 auto;

        white-space: nowrap;
    }


    /* =================================================
       DIVISION
    ================================================= */

    .division {
        display: block;

        padding: 10px;
    }

    .division-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 8px;
    }

    .compact img {
        height: auto;

        aspect-ratio: 16 / 10;
    }

    .compact h3 {
        margin: 7px;

        font-size: 14px;
    }


    /* =================================================
       MAP
    ================================================= */

    .map {
        min-height: 220px;
    }


    /* =================================================
       FOOTER
    ================================================= */

    .footer {
        flex-direction: column;

        gap: 15px;

        padding: 22px 0;

        font-size: 13px;
    }

    .top-btn {
        right: 12px;

        bottom: 12px;
    }

}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 400px) {

    .wrap {
        width: calc(100% - 14px);
    }

    .ticker-inner {
        font-size: 12px;
    }

    /* একই গতি */
    .ticker-content {
        animation-duration: 30s;
    }

    .brand-main {
        font-size: 27px;
    }

    .header-banner {
        height: 75px;
    }

    .search {
        flex: 1;
    }

    .search input {
        font-size: 13px;
    }

    .featured-title {
        font-size: 17px;
    }

    .green-grid,
    .division-grid {
        grid-template-columns: 1fr;
    }

    .green-card img {
        aspect-ratio: 16 / 9;
    }

    .live-video-item {
        padding: 6px;
    }

    .live-video-info {
        font-size: 12px;
    }

}


/* =====================================================
   LONG TEXT PROTECTION
===================================================== */

a,
h1,
h2,
h3,
p,
span,
b,
small {
    overflow-wrap: anywhere;
}