/*
Theme Name: Newspaper Child
Template: Newspaper
Version: 1.0.0
Description: Child theme overriding 404 page with AdSense-optimized landing page
*/

.p852-404-wrap { max-width: 1080px; margin: 40px auto; padding: 0 16px; font-family: inherit; }
.p852-404-hero { text-align: center; padding: 40px 20px; background: linear-gradient(135deg,#f9f9f9 0%,#ffffff 100%); border-radius: 8px; margin-bottom: 30px; }
.p852-404-hero h1 { font-size: 42px; margin: 0 0 10px 0; color: #222; }
.p852-404-hero p { font-size: 16px; color: #666; margin: 0 0 20px 0; }
.p852-404-searchbox { max-width: 520px; margin: 20px auto 0 auto; display: flex; gap: 8px; }
.p852-404-searchbox input[type=text] { flex: 1; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; }
.p852-404-searchbox button { padding: 12px 28px; background: #d94128; color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; }
.p852-404-ad { margin: 30px 0; text-align: center; min-height: 100px; }
.p852-404-section-title { font-size: 22px; font-weight: 700; margin: 0 0 18px 0; padding-bottom: 10px; border-bottom: 3px solid #d94128; color: #222; }
.p852-404-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 768px) { .p852-404-grid { grid-template-columns: 1fr; } .p852-404-hero h1 { font-size: 28px; } }
.p852-404-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: transform .15s, box-shadow .15s; background: #fff; }
.p852-404-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.p852-404-card a { color: inherit; text-decoration: none; display: block; }
.p852-404-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.p852-404-card h3 { font-size: 15px; line-height: 1.45; margin: 12px 14px 6px 14px; color: #222; font-weight: 600; }
.p852-404-card .p852-404-meta { margin: 0 14px 14px 14px; font-size: 12px; color: #999; }
.p852-404-category-tags { margin: 20px 0 0 0; text-align: center; }
.p852-404-category-tags a { display: inline-block; margin: 4px 6px; padding: 6px 14px; background: #f4f4f4; color: #333; border-radius: 16px; text-decoration: none; font-size: 13px; transition: background .15s; }
.p852-404-category-tags a:hover { background: #d94128; color: #fff; }
