@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;700&display=swap');

/* Header Style */
.magpost-header {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-family: 'Mukta', sans-serif;
}
.magpost-line { flex: 1; height: 2px; background-color: #eee; }
.magpost-pill {
    background: #e31e24;
    color: #fff;
    padding: 4px 18px;
    font-weight: 700;
    border-radius: 50px;
    margin: 0 10px;
}

/* Main Layout Grid */
#magpost-grid-box {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 20px;
    font-family: 'Mukta', sans-serif;
}

.magpost-left { display: flex; flex-direction: column; gap: 15px; }
.magpost-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Card Styling */
.mag-card { overflow: hidden; }
.mag-card a { text-decoration: none; color: #111; }
.mag-card img { width: 100%; object-fit: cover; border-radius: 4px; display: block; }

.mag-main-item img { height: 320px; }
.mag-grid-item img { height: 160px; }

/* Right Column List Style */
.magpost-right { display: flex; flex-direction: column; gap: 12px; }
.mag-list-item { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; }
.mag-list-item img { width: 100px; height: 75px; border-radius: 4px; }

/* Headline: 20px Bold */
.mag-headline {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mag-list-item .mag-headline { font-size: 16px; margin: 0; }

/* Mobile Responsibility */
@media (max-width: 768px) {
    #magpost-grid-box { grid-template-columns: 1fr; }
    .magpost-bottom-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mag-main-item img { height: 220px; }
    .mag-headline { font-size: 18px; }
}
