/* =========================================================
   HOMEPAGE MAIN LAYOUT
========================================================= */

.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
    margin-top: 28px;
}

.page > main {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}


/* =========================================================
   HOMEPAGE PARAGRAPH FONT
========================================================= */

.page p {
    font-family: 'Mukta', sans-serif;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    min-width: 0;
}


/* =========================================================
   MAIN HERO
========================================================= */

.hero-lead {
    min-width: 0;
}

.hero-lead .img {
    display: block;
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
}

.hero-lead .img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Hero category badge */

.hero-lead .img .cat {
    position: absolute;
    left: 0;
    bottom: 0;

    padding: 6px 12px;

    background: var(--brick);
    color: var(--white);

    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Hero title */

.hero-lead h1 {
    margin: 16px 0 12px;

    font-family: 'Noto Serif Devanagari', serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.22;
}

.hero-lead h1 a {
    color: inherit;
    text-decoration: none;
}

.hero-lead h1 a:hover {
    color: var(--brick);
}


/* =========================================================
   HERO DUAL LANGUAGE CONTENT
========================================================= */

.hero-dual {
    display: flex;
    gap: 16px;

    padding-top: 12px;

    border-top: 1px solid var(--line);
}

.hero-dual .col {
    flex: 1;
    min-width: 0;
}

.hero-dual p {
    margin: 6px 0 0;

    color: var(--ink);
    opacity: 0.8;

    font-family: 'Mukta', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   HERO SIDE NEWS
========================================================= */

.hero-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-list .item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid var(--line);
}

.hero-list .item:first-child {
    padding-top: 0;
}

.hero-list .item:last-child {
    border-bottom: 0;
}


/* Thumbnail */

.hero-list .thumb {
    display: block;

    width: 88px;
    height: 64px;

    flex: 0 0 88px;

    overflow: hidden;

    background: var(--paper-2);
}

.hero-list .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Side post text */

.hero-list .txt {
    flex: 1;
    min-width: 0;
}

.hero-list .txt h4 {
    margin: 0 0 6px;

    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.hero-list .txt h4 a {
    color: inherit;
    text-decoration: none;
}

.hero-list .txt h4 a:hover {
    color: var(--brick);
}

.hero-list .txt .meta {
    display: block;
    margin-top: 6px;
}


/* =========================================================
   HERO MINI DUAL EXCERPT
========================================================= */

.mini-dual {
    display: block;
}

.mini-dual .col {
    min-width: 0;
}

.mini-dual p {
    margin: 3px 0 0;

    color: var(--ink);
    opacity: 0.75;

    font-family: 'Mukta', sans-serif;
    font-size: 14px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.lang-tag.mini {
    margin-right: 5px;

    padding: 1px 5px 1px 4px;

    font-size: 12px;

    vertical-align: 1px;
}


/* =========================================================
   HOMEPAGE CATEGORY TAB SECTION
========================================================= */

.home-section {
    width: 100%;
    min-width: 0;
}

.home-tab-section {
    width: 100%;
}


/* =========================================================
   CATEGORY TAB HEADER
========================================================= */

.tab-sec-head {
    display: flex;
    align-items: flex-end;
    gap: 20px;

    margin: 85px 0 18px;

    border-bottom: 1px solid var(--line);
}


/* =========================================================
   CATEGORY TABS AS SECTION HEADINGS
========================================================= */

.tab-sec-head .tabs {
    display: flex;
    align-items: flex-end;
    gap: 22px;

    padding-top: 5px;

    flex: 1;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
}

.tab-sec-head .tabs::-webkit-scrollbar {
    display: none;
}

.tab-sec-head .home-tab {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 0 auto;

    margin: 0;

    padding: 0 0 8px;

    border: 0;
    border-bottom: 3px solid transparent;

    background: transparent;

    color: var(--maroon);

    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;

    opacity: 0.45;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.tab-sec-head .home-tab:hover {
    color: var(--brick);
    opacity: 0.8;
}

.tab-sec-head .home-tab.active,
.tab-sec-head .home-tab[aria-selected="true"] {
    color: var(--maroon);
    opacity: 1;

    border-bottom-color: var(--brick);
}

.tab-sec-head .home-tab:focus-visible {
    outline: 2px solid var(--brick);
    outline-offset: 4px;
}


/* =========================================================
   SEE ALL
========================================================= */

.tab-sec-head .more {
    flex: 0 0 auto;

    margin-left: auto;

    padding-bottom: 9px;

    color: var(--brick);

    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
}

.tab-sec-head .more:hover {
    color: var(--brick-dark);
}


/* =========================================================
   NEWS CARD GRID
========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    width: 100%;
}


/* =========================================================
   NEWS CARD
========================================================= */

.card {
    min-width: 0;

    background: var(--white);

    border: 1px solid var(--line);
}

.card .img {
    display: block;

    width: 100%;
    height: 140px;

    overflow: hidden;

    background: var(--paper-2);
}

.card .img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.card .body {
    padding: 16px 18px 18px;
}

.card h3 {
    margin: 0 0 10px;

    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.32;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--brick);
}


/* =========================================================
   CARD DUAL LANGUAGE CONTENT
========================================================= */

.card .dual {
    display: flex;
    gap: 12px;

    padding-top: 10px;

    border-top: 1px solid var(--line);
}

.card .dual .col {
    padding-left: 5px;
    flex: 1;
    min-width: 0;
}

.card .dual p {
    margin: 6px 0 0;

    color: var(--ink);
    opacity: 0.75;

    font-family: 'Mukta', sans-serif;
    font-size: 14px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   EMPTY CATEGORY
========================================================= */

.home-empty {
    margin: 0;

    padding: 20px;

    background: var(--white);

    border: 1px solid var(--line);

    font-family: 'Mukta', sans-serif;
    font-size: 14px;
}


/* =========================================================
   EXTRA CATEGORY SECTIONS
   अर्थ + शुक्रवकारया तँसा पाैं
========================================================= */

.extra-category-section {
    width: 100%;
    min-width: 0;

    margin-top: 44px;
}


/* =========================================================
   EXTRA CATEGORY HEADER
========================================================= */

.extra-category-section .extra-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;

    margin: 85px 0 18px;
}

.extra-category-section .extra-category-head h2 {
    flex: 0 0 auto;

    margin: 0;

    padding: 0 0 6px;

    border-bottom: 3px solid var(--brick);

    color: var(--maroon);

    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}


/* सबै हेर्नुहोस् */

.extra-category-section .extra-category-head .more {
    flex: 0 0 auto;

    margin: 0 0 0 auto;

    padding: 0;

    color: var(--brick);

    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;
    white-space: nowrap;
}

.extra-category-section .extra-category-head .more:hover {
    color: var(--brick-dark);
}


/* =========================================================
   EXTRA CATEGORY CARD GRID
========================================================= */

.extra-category-section .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    width: 100%;
}


/* =========================================================
   EXTRA CATEGORY CARDS
========================================================= */

.extra-category-section .card {
    min-width: 0;

    background: var(--white);

    border: 1px solid var(--line);
}


/* Image */

.extra-category-section .card .img {
    display: block;

    width: 100%;
    height: 160px;

    overflow: hidden;

    background: var(--paper-2);
}

.extra-category-section .card .img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Card body */

.extra-category-section .card .body {
    padding: 16px 18px 18px;
}


/* Title */

.extra-category-section .card h3 {
    margin: 0 0 10px;

    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.extra-category-section .card h3 a {
    color: inherit;
    text-decoration: none;
}

.extra-category-section .card h3 a:hover {
    color: var(--brick);
}


/* =========================================================
   DUAL LANGUAGE AREA
========================================================= */

.extra-category-section .card .dual {
    display: flex;
    gap: 12px;

    padding-top: 10px;

    border-top: 1px solid var(--line);
}

.extra-category-section .card .dual .col {
    flex: 1;
    min-width: 0;
}

.extra-category-section .card .dual p {
    margin: 6px 0 0;

    color: var(--ink);
    opacity: 0.75;

    font-family: 'Mukta', sans-serif;
    font-size: 14px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.extra-category-section .card .strut {
    flex: 0 0 2px;
}


/* =========================================================
   ADVERTISEMENTS — HOMEPAGE
========================================================= */

.ndd-home-ad-wrap {
    width: 100%;
}

.ndd-home-ad-wrap-top {
    margin-top: 22px;
}

.ndd-ad {
    width: 100%;
    max-width: 100%;

    text-align: center;
}

.ndd-ad a {
    display: block;

    width: 100%;
}

.ndd-ad-image {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto;
}

.ndd-ad-leaderboard {
    max-width: 728px;

    margin: 0 auto 28px;
}

.ndd-ad-home-mobile {
    display: none;

    max-width: 320px;

    margin: 0 auto 22px;
}

.ndd-ad-home-infeed {
    margin: 42px auto;
}

.ndd-ad-home-infeed .ndd-ad-image {
    width: auto;
    max-width: 100%;
}

.ndd-ad-sidebar {
    width: 100%;

    margin: 0 0 24px;
}

.ndd-ad-sidebar-bottom {
    margin-top: 24px;
}

.ndd-ad-sidebar .ndd-ad-image {
    width: 100%;
    height: auto;
}