/*
Theme Name: Balachelimi Layout
Theme URI: https://balachelimi.com/
Author: Balachelimi
Description: Responsive Telugu children's newspaper theme with a compact news-portal layout, breaking-news strip, featured stories and magazine archive. Built as a safe standalone theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: balachelimi-layout
*/
:root{--red:#c91e2b;--dark:#222;--muted:#666;--line:#e8e8e8;--cream:#fffaf2;--blue:#1769aa;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:#222;font-family:Arial,"Noto Sans Telugu",sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}img{max-width:100%;height:auto;display:block}.wrap{width:min(var(--max),calc(100% - 28px));margin:auto}.site-header{background:#fff;border-bottom:1px solid var(--line)}.header-row{min-height:86px;display:flex;align-items:center;gap:18px;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand img{max-height:64px;width:auto}.brand-title{font-size:clamp(24px,3vw,34px);font-weight:900;color:var(--red);line-height:1.15}.brand-tag{font-size:12px;color:#555}.menu-toggle{display:none;border:0;background:var(--red);color:#fff;border-radius:6px;padding:10px 13px;font-size:20px}.main-nav{background:var(--red);color:white}.nav-inner{display:flex;align-items:center;gap:0;flex-wrap:wrap}.main-nav a{display:block;padding:12px 15px;font-weight:700;font-size:15px}.main-nav a:hover{background:#9f1420;color:#fff}.breaking{margin:14px auto;display:flex;align-items:stretch;border:1px solid #f0d3d5;border-radius:5px;overflow:hidden;background:#fff8f8}.breaking strong{background:var(--red);color:white;padding:8px 13px;white-space:nowrap}.breaking p{margin:0;padding:8px 12px;min-width:0}.hero-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:18px;margin:16px auto 24px}.featured{position:relative;min-height:320px;background:#f5f5f5;overflow:hidden;border-radius:8px}.featured img{width:100%;height:100%;min-height:320px;object-fit:cover}.featured .shade{position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.86))}.featured .feature-copy{position:absolute;left:20px;right:20px;bottom:18px;color:white}.eyebrow{display:inline-block;background:var(--red);color:#fff;border-radius:3px;padding:2px 8px;font-size:12px;font-weight:700}.featured h1{font-size:clamp(23px,3vw,34px);line-height:1.35;margin:8px 0}.side-stories{display:grid;gap:12px}.story-mini{display:grid;grid-template-columns:112px 1fr;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.story-mini img{width:112px;height:84px;object-fit:cover;border-radius:5px}.story-mini h3{font-size:17px;line-height:1.4;margin:0}.section{margin:28px auto}.section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--red);margin-bottom:14px}.section-head h2{font-size:23px;margin:0;padding:7px 12px;background:var(--red);color:white;border-radius:5px 5px 0 0}.section-head a{font-weight:700;color:var(--red)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.post-card{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}.post-card img{width:100%;height:155px;object-fit:cover;background:#f4f4f4}.post-card .pad{padding:12px}.post-card h3{font-size:17px;line-height:1.45;margin:6px 0}.meta{font-size:12px;color:var(--muted)}.magazine-band{background:var(--cream);border:1px solid #f1e2ca;padding:18px;border-radius:9px;display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:18px}.magazine-band img{width:150px;height:190px;object-fit:cover;border:1px solid #ddd;background:#fff}.button{display:inline-block;background:var(--red);color:#fff;padding:10px 16px;border-radius:5px;font-weight:700}.button:hover{background:#9f1420;color:#fff}.site-footer{margin-top:36px;background:#202020;color:#eee;padding:28px 0}.footer-row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-links{display:flex;gap:14px;flex-wrap:wrap}.single-layout{max-width:850px;margin:24px auto}.single-layout h1{font-size:clamp(26px,4vw,38px);line-height:1.35}.single-layout .entry-content{font-size:18px}.archive-title{font-size:28px;border-bottom:2px solid var(--red);padding-bottom:8px}.no-image{background:#f4f4f4;display:flex;align-items:center;justify-content:center;color:#999;min-height:130px;font-weight:700}.mobile-bottom{display:none}
@media(max-width:800px){.wrap{width:calc(100% - 22px)}.header-row{min-height:70px;gap:10px}.brand img{max-height:52px}.brand-title{font-size:25px}.brand-tag{font-size:11px}.menu-toggle{display:block;flex-shrink:0}.main-nav{display:none}.main-nav.is-open{display:block}.nav-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.main-nav a{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.18)}.breaking{margin:10px auto}.breaking strong{font-size:13px;padding:8px}.breaking p{font-size:13px;padding:8px}.hero-grid{grid-template-columns:1fr;gap:14px;margin-top:12px}.featured,.featured img{min-height:260px}.featured h1{font-size:24px}.side-stories{grid-template-columns:1fr 1fr;gap:10px}.story-mini{grid-template-columns:84px 1fr;gap:8px}.story-mini img{width:84px;height:72px}.story-mini h3{font-size:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.post-card img{height:125px}.post-card .pad{padding:9px}.post-card h3{font-size:15px}.section-head h2{font-size:19px}.magazine-band{grid-template-columns:90px 1fr;gap:12px;padding:12px}.magazine-band img{width:90px;height:125px}.magazine-band .button{grid-column:1/-1;text-align:center}.mobile-bottom{display:flex;position:sticky;bottom:0;z-index:20;background:#fff;border-top:1px solid #ddd;justify-content:space-around;padding:8px 3px;box-shadow:0 -3px 10px rgba(0,0,0,.06)}.mobile-bottom a{text-align:center;font-size:11px;font-weight:700;display:grid;gap:1px}.mobile-bottom span{font-size:18px;line-height:1.2}.footer-row{display:block}.site-footer{padding-bottom:22px}}
@media(max-width:390px){.side-stories{grid-template-columns:1fr}.story-mini img{width:92px}.cards{gap:8px}.post-card img{height:105px}.post-card h3{font-size:14px}}
