/*
Theme Name: ColorMag Child - Daily Pulse
Template: colormag
Version: 1.0
*/

/* ===== BBC-style ATF hero ===== */
.dp-hero { max-width: 1280px; margin: 20px auto 30px; padding: 0 16px; }
.dp-hero-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; }
.dp-hero-grid > div { min-width: 0; }

.dp-card { display: block; color: inherit; text-decoration: none; }
.dp-card img { width: 100%; height: auto; display: block; border-radius: 2px; }
.dp-card h3, .dp-card h2 { margin: 10px 0 6px; line-height: 1.2; color: #111; font-weight: 800; }
.dp-card p { margin: 0 0 8px; color: #444; font-size: 14px; line-height: 1.45; }
.dp-card:hover h3, .dp-card:hover h2 { color: #b80000; }

.dp-left { display: flex; flex-direction: column; gap: 18px; }
.dp-left .dp-card h3 { font-size: 19px; }
.dp-left .dp-card { border-bottom: 1px solid #eee; padding-bottom: 14px; }
.dp-left .dp-card:last-child { border-bottom: none; }

.dp-center .dp-card h2 { font-size: 30px; }
.dp-center .dp-card p { font-size: 16px; }

.dp-live-badge {
    display: inline-block; background: #b80000; color: #fff !important;
    font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 2px;
    margin-right: 8px; vertical-align: middle; letter-spacing: 0.5px;
}

.dp-right { display: flex; flex-direction: column; }
.dp-right .dp-mini { padding: 14px 0; border-bottom: 1px solid #eee; }
.dp-right .dp-mini:first-child { padding-top: 0; }
.dp-right .dp-mini:last-child { border-bottom: none; }
.dp-right .dp-mini a { color: #111; text-decoration: none; font-weight: 800; font-size: 17px; line-height: 1.25; display: block; margin-bottom: 6px; }
.dp-right .dp-mini a:hover { color: #b80000; }
.dp-right .dp-mini p { margin: 0 0 6px; font-size: 13px; color: #555; line-height: 1.4; }
.dp-meta { font-size: 12px; color: #777; }
.dp-meta .dp-cat { color: #b80000; font-weight: 700; margin-left: 6px; padding-left: 8px; border-left: 1px solid #ccc; text-transform: capitalize; }

/* below ATF: latest news grid */
.dp-section { max-width: 1280px; margin: 30px auto; padding: 0 16px; }
.dp-section-title { font-size: 22px; font-weight: 800; border-bottom: 3px solid #b80000; padding-bottom: 6px; margin: 0 0 18px; }
.dp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dp-grid .dp-card h3 { font-size: 16px; }

@media (max-width: 980px) {
    .dp-hero-grid { grid-template-columns: 1fr; }
    .dp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .dp-grid { grid-template-columns: 1fr; }
}

/* ===== Per-category sections ===== */
.dp-section { max-width: 1280px; margin: 40px auto; padding: 0 16px; }
.dp-section-head {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 3px solid #b80000; padding-top: 12px; margin-bottom: 18px;
}
.dp-section-title { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: 0.3px; }
.dp-section-title a { color: #111; text-decoration: none; }
.dp-section-title a:hover { color: #b80000; }
.dp-view-more {
    font-size: 13px; font-weight: 700; color: #b80000; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 6px 12px; border: 1px solid #b80000; border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}
.dp-view-more:hover { background: #b80000; color: #fff; }

.dp-cat-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.dp-cat-grid > * { min-width: 0; }

.dp-cat-lead { position: relative; }
.dp-cat-lead img { border-radius: 3px; }
.dp-cat-lead .dp-cat-tag {
    position: absolute; top: 12px; left: 12px;
    background: #b80000; color: #fff; font-size: 11px; font-weight: 800;
    padding: 4px 10px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.5px;
}
.dp-cat-lead h3 { font-size: 22px; margin: 12px 0 6px; font-weight: 800; line-height: 1.25; }
.dp-cat-lead p { font-size: 14px; color: #555; }

.dp-cat-side { display: flex; flex-direction: column; gap: 14px; }
.dp-cat-side-item {
    display: grid; grid-template-columns: 96px 1fr; gap: 12px;
    color: inherit; text-decoration: none;
    padding-bottom: 14px; border-bottom: 1px solid #eee;
}
.dp-cat-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.dp-cat-side-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 2px; }
.dp-cat-side-item h4 {
    margin: 0 0 6px; font-size: 14px; font-weight: 700;
    color: #111; line-height: 1.3;
}
.dp-cat-side-item:hover h4 { color: #b80000; }
.dp-cat-side-item .dp-meta { font-size: 11px; color: #888; }

@media (max-width: 900px) {
    .dp-hero-grid { grid-template-columns: 1fr; }
    .dp-cat-grid { grid-template-columns: 1fr; }
    .dp-section-title { font-size: 20px; }
    .dp-cat-lead h3 { font-size: 18px; }
}
