
/* MB Pratidin HP.6.2 — Editorial Design System */
/* Homepage only. Existing functionality preserved. */

body.home .home-main {
    --mbp-editorial-ink: #171717;
    --mbp-editorial-muted: #666666;
    --mbp-editorial-line: #e5e5e5;
    --mbp-editorial-surface: #f5f5f5;
    --mbp-editorial-radius: 4px;
    --mbp-editorial-gap: 20px;
    --mbp-editorial-section-gap: 36px;
}

/* Section rhythm */

body.home .home-main > .section {
    margin-block: var(--mbp-editorial-section-gap);
}

body.home .home-main > .section .section-title {
    color: var(--mbp-editorial-ink);
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    padding-left: 11px;
    border-left: 4px solid var(--accent, #cf101b);
    margin-bottom: 18px;
}

body.home .home-main > .section .section-heading {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--mbp-editorial-line);
}

body.home .home-main > .section
.section-heading .section-title {
    margin: 0;
}

body.home .home-main > .section
.section-heading > a {
    border: 0;
    background: transparent;
    padding: 4px 0 4px 8px;
    border-radius: 0;
    min-height: 36px;
    color: var(--accent, #cf101b);
    font-size: 14px;
    font-weight: 600;
}

body.home .home-main > .section
.section-heading > a:hover {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Editorial news cards */

body.home .home-main > .section .card-grid {
    gap: var(--mbp-editorial-gap);
}

body.home .home-main > .section
.card-grid > .news-card {
    border: 0;
    border-bottom: 1px solid var(--mbp-editorial-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.home .home-main > .section
.card-grid > .news-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--mbp-editorial-line);
}

body.home .home-main > .section
.card-grid > .news-card .thumb {
    aspect-ratio: 16 / 10;
    border-radius: var(--mbp-editorial-radius);
}

body.home .home-main > .section
.card-grid > .news-card .card-content {
    padding: 10px 0 13px;
    gap: 5px;
}

body.home .home-main > .section
.card-grid > .news-card h3 {
    font-size: clamp(17px, 1.45vw, 19px);
    font-weight: 600;
    line-height: 1.55;
    color: var(--mbp-editorial-ink);
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

body.home .home-main > .section
.card-grid > .news-card h3 a {
    color: var(--mbp-editorial-ink);
}

body.home .home-main > .section
.card-grid > .news-card h3 a:hover {
    color: var(--accent, #cf101b);
}

body.home .home-main > .section
.card-grid > .news-card .meta {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--mbp-editorial-muted);
    margin: 0;
}

/* Keyboard accessibility */

body.home .home-main > .section a:focus-visible {
    outline: 2px solid var(--accent, #cf101b);
    outline-offset: -2px;
}

/* Tablet */

@media (min-width: 768px) and (max-width: 1050px) {
    body.home .home-main {
        --mbp-editorial-gap: 16px;
        --mbp-editorial-section-gap: 30px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    body.home .home-main {
        --mbp-editorial-gap: 12px;
        --mbp-editorial-section-gap: 28px;
    }

    body.home .home-main > .section .section-title {
        font-size: 22px;
        padding-left: 9px;
        margin-bottom: 14px;
    }

    body.home .home-main > .section .section-heading {
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 14px;
    }

    body.home .home-main > .section
    .section-heading .section-title {
        margin: 0;
    }

    body.home .home-main > .section
    .section-heading > a {
        font-size: 13px;
    }

    body.home .home-main > .section
    .card-grid > .news-card h3 {
        font-size: 17px;
        line-height: 1.5;
    }

    body.home .home-main > .section
    .card-grid > .news-card .meta {
        font-size: 12px;
    }

    body.home .home-main > .section
    .card-grid > .news-card .card-content {
        padding: 8px 0 12px;
        gap: 4px;
    }
}

@media (max-width: 360px) {
    body.home .home-main > .section
    .card-grid > .news-card h3 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .home-main > .section
    .card-grid > .news-card,
    body.home .home-main > .section
    .card-grid > .news-card img {
        transition: none;
        transform: none;
    }
}
