/*
Theme Name: Electric Dunia
Theme URI: https://electricdunia.com/
Author: Electric Dunia
Description: Responsive Hindi electric vehicle magazine theme with homepage hero, category cards, latest articles, sidebar and footer links.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: electric-dunia
*/
:root{--ed-green:#07863d;--ed-green-dark:#056b30;--ed-navy:#123b59;--ed-text:#263445;--ed-muted:#64748b;--ed-bg:#f6faf8;--ed-border:#e3eaf0;--ed-radius:12px;--ed-shadow:0 8px 28px rgba(18,59,89,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ed-text);font-family:system-ui,-apple-system,"Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;font-size:16px;line-height:1.75}a{color:var(--ed-green-dark);text-decoration:none}a:hover{color:var(--ed-navy)}img{max-width:100%;height:auto;display:block}button,input{font:inherit}.site-wrap{width:min(1200px,calc(100% - 36px));margin-inline:auto}.topbar{background:var(--ed-navy);color:#fff;font-size:13px}.topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar a{color:#fff}.site-header{background:#fff;border-bottom:1px solid var(--ed-border);position:relative;z-index:5}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:15px 0}.brand{display:flex;align-items:center;gap:10px;min-width:205px}.brand-mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#0b9b48,#123b59);color:#fff;font-size:25px;font-weight:900}.brand-name{font-size:26px;font-weight:850;line-height:1.15;color:var(--ed-navy);letter-spacing:-.7px}.brand-name span{color:var(--ed-green)}.brand-tagline{font-size:12px;color:var(--ed-muted);line-height:1.4}.main-nav ul{display:flex;flex-wrap:wrap;align-items:center;gap:5px;list-style:none;padding:0;margin:0}.main-nav a{display:block;padding:9px 10px;color:var(--ed-navy);font-size:14px;font-weight:700;border-radius:7px}.main-nav a:hover,.main-nav .current-menu-item>a{background:#eaf7ef;color:var(--ed-green-dark)}.mobile-menu-toggle{display:none;border:1px solid var(--ed-border);background:#fff;border-radius:8px;padding:8px 12px;color:var(--ed-navy)}.hero{margin:24px auto 22px;border-radius:18px;overflow:hidden;background:linear-gradient(110deg,#e8f7ff 0%,#f4fbff 48%,#dff5e6 100%);position:relative}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;min-height:330px}.hero-copy{padding:38px 12px 38px 38px}.eyebrow{font-size:14px;color:var(--ed-green);font-weight:800;margin:0 0 8px}.hero h1{font-size:clamp(28px,3.2vw,44px);line-height:1.2;letter-spacing:-1px;color:var(--ed-navy);margin:0 0 14px}.hero h1 span{color:var(--ed-green)}.hero p{font-size:17px;line-height:1.75;margin:0 0 20px;max-width:600px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--ed-green);color:#fff;padding:11px 20px;font-weight:750;font-size:14px}.button:hover,.wp-block-button__link:hover{background:var(--ed-green-dark);color:#fff}.button-outline{background:#fff;border:1px solid #c8d6e1;color:var(--ed-navy)}.button-outline:hover{background:var(--ed-navy);color:#fff}.hero-art{height:100%;min-height:300px;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at 60% 60%,rgba(7,134,61,.13),transparent 58%)}.hero-art img{width:100%;max-height:320px;object-fit:contain;border-radius:12px}.hero-placeholder{width:100%;height:250px;display:grid;place-items:center;text-align:center;color:var(--ed-green-dark);font-size:70px}.hero-placeholder small{display:block;font-size:14px;color:var(--ed-muted)}.section{margin:28px auto}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.section-heading h2{font-size:25px;line-height:1.3;color:var(--ed-navy);margin:0;padding-left:12px;border-left:4px solid var(--ed-green)}.section-heading a{font-size:13px;font-weight:750}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.category-card,.post-card{border:1px solid var(--ed-border);border-radius:var(--ed-radius);overflow:hidden;background:#fff;box-shadow:0 2px 8px rgba(18,59,89,.025);transition:transform .2s,box-shadow .2s}.category-card:hover,.post-card:hover{transform:translateY(-2px);box-shadow:var(--ed-shadow)}.category-card a{color:inherit;display:block;height:100%}.category-image{height:115px;background:linear-gradient(135deg,#e5f5ff,#e8f8ed);display:grid;place-items:center;overflow:hidden}.category-image img{width:100%;height:100%;object-fit:cover}.category-icon{font-size:46px}.category-info{padding:12px 13px}.category-info h3{font-size:16px;line-height:1.4;margin:0 0 3px;color:var(--ed-navy)}.category-info p{font-size:12px;color:var(--ed-muted);margin:0}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:22px;align-items:start}.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.post-thumb{display:block;aspect-ratio:16/10;background:#e8f2f5;overflow:hidden}.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.post-card:hover .post-thumb img{transform:scale(1.035)}.thumb-placeholder{height:100%;min-height:130px;display:grid;place-items:center;font-size:42px;color:var(--ed-green)}.post-info{padding:13px}.post-category{font-size:11px;font-weight:800;color:var(--ed-green);text-transform:uppercase}.post-info h3{font-size:16px;line-height:1.5;margin:4px 0 8px;color:var(--ed-navy)}.post-info h3 a{color:inherit}.post-excerpt{font-size:13px;color:var(--ed-muted);line-height:1.65;margin:0 0 10px}.post-meta{font-size:11px;color:var(--ed-muted);display:flex;gap:8px;flex-wrap:wrap}.sidebar-box{border:1px solid var(--ed-border);border-radius:var(--ed-radius);padding:17px;margin-bottom:16px;background:#fff}.sidebar-box h2,.sidebar-box h3{font-size:18px;line-height:1.35;margin:0 0 12px;color:var(--ed-navy)}.sidebar-box ul{list-style:none;margin:0;padding:0}.sidebar-box li{padding:9px 0;border-bottom:1px solid #edf1f4;font-size:13px;line-height:1.5}.sidebar-box li:last-child{border-bottom:0}.sidebar-box a{color:var(--ed-text);font-weight:650}.newsletter{background:#eefaf2;border-color:#d8f0df}.newsletter p{font-size:13px;color:var(--ed-muted)}.newsletter input[type=email]{width:100%;padding:10px;border:1px solid #d2dfe0;border-radius:7px;margin-bottom:8px}.newsletter button{width:100%;border:0;border-radius:7px;padding:10px;background:var(--ed-green);color:#fff;font-weight:750}.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:#f0faf3;border-radius:12px;padding:18px;margin:28px auto}.trust-item{display:flex;align-items:center;gap:10px}.trust-icon{width:40px;height:40px;flex:0 0 40px;border-radius:50%;display:grid;place-items:center;background:var(--ed-green);color:#fff;font-size:19px}.trust-item strong{display:block;color:var(--ed-navy);font-size:13px}.trust-item span{display:block;color:var(--ed-muted);font-size:11px;line-height:1.5}.site-footer{margin-top:36px;background:#082d49;color:#fff;padding:28px 0 16px}.footer-main{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:28px}.site-footer .brand-name,.site-footer .brand-tagline{color:#fff}.site-footer p{font-size:13px;color:#d7e5ef}.site-footer h3{font-size:15px;margin:0 0 10px;color:#fff}.footer-links{display:flex;flex-wrap:wrap;gap:9px 14px}.footer-links a,.site-footer a{color:#e4eef5;font-size:13px}.copyright{border-top:1px solid rgba(255,255,255,.15);margin-top:20px;padding-top:13px;font-size:11px;color:#c6d7e4;display:flex;justify-content:space-between;gap:12px}.page-content{padding:30px 0 42px}.page-content h1,.archive-title{font-size:32px;line-height:1.3;color:var(--ed-navy)}.entry-content{max-width:850px}.entry-content h2,.entry-content h3{color:var(--ed-navy);line-height:1.4}.entry-content a{text-decoration:underline}.entry-content img{border-radius:8px}.pagination{margin:25px 0}.pagination .page-numbers{display:inline-block;padding:8px 12px;border:1px solid var(--ed-border);border-radius:7px;margin-right:5px}.pagination .current{background:var(--ed-green);color:#fff}.search-form{display:flex;gap:6px}.search-form input[type=search]{min-width:0;flex:1;border:1px solid var(--ed-border);border-radius:7px;padding:9px}.search-form button{border:0;border-radius:7px;padding:9px 12px;background:var(--ed-green);color:#fff}.no-results{padding:20px;background:var(--ed-bg);border-radius:10px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}.alignfull{width:100%;max-width:100%;margin-left:0;margin-right:0}.wp-block-image img{height:auto}.wp-block-table{overflow-x:auto}
@media(max-width:1000px){.header-inner{gap:12px}.brand{min-width:180px}.brand-name{font-size:23px}.main-nav a{padding:8px 6px;font-size:12px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content-layout{grid-template-columns:minmax(0,1fr) 235px}.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.site-wrap{width:min(100% - 24px,600px)}.topbar-inner{min-height:32px}.topbar-inner span{font-size:11px}.header-inner{padding:12px 0;flex-wrap:wrap}.brand{min-width:0}.brand-mark{width:42px;height:42px;font-size:22px}.brand-name{font-size:22px}.brand-tagline{font-size:11px}.mobile-menu-toggle{display:block;margin-left:auto}.main-nav{display:none;width:100%;order:3}.main-nav.is-open{display:block}.main-nav ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.main-nav a{background:#f5f9fb;padding:10px;font-size:13px}.hero{margin-top:14px;border-radius:12px}.hero-grid{grid-template-columns:1fr;min-height:0}.hero-copy{padding:25px 20px 8px}.hero h1{font-size:30px;letter-spacing:-.5px}.hero p{font-size:15px}.hero-art{min-height:170px;padding:8px 18px 18px}.hero-art img{max-height:205px}.hero-placeholder{height:150px;font-size:50px}.section{margin:22px auto}.section-heading h2{font-size:21px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-image{height:105px}.category-info{padding:10px}.category-info h3{font-size:14px}.content-layout{grid-template-columns:1fr}.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.post-info{padding:10px}.post-info h3{font-size:14px}.post-excerpt{font-size:12px}.sidebar{display:grid;grid-template-columns:1fr;gap:0}.trust-strip{grid-template-columns:repeat(2,1fr);padding:14px;gap:14px}.trust-item{align-items:flex-start}.trust-icon{width:34px;height:34px;flex-basis:34px}.footer-main{grid-template-columns:1fr;gap:18px}.copyright{display:block}.copyright span{display:block;margin-top:5px}.page-content{padding-top:20px}.page-content h1,.archive-title{font-size:27px}}
@media(max-width:380px){.posts-grid{grid-template-columns:1fr}.hero h1{font-size:27px}.category-grid{gap:8px}.category-image{height:90px}}

/* ---- v1.1: hero illustration + author, footer columns, social ---- */
.hero-illustration{width:100%;max-height:330px;height:auto}
.hero-author{display:inline-flex;align-items:center;gap:12px;margin-top:18px;padding:7px 18px 7px 7px;background:#fff;border:1px solid var(--ed-border);border-radius:999px;box-shadow:0 2px 10px rgba(18,59,89,.06)}
.hero-author img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--ed-green);flex:0 0 52px}
.hero-author-label{display:block;font-size:11px;line-height:1.3;color:var(--ed-muted);text-transform:uppercase;letter-spacing:.6px}
.hero-author-name{display:block;font-size:16px;line-height:1.3;color:var(--ed-navy)}
.footer-main{grid-template-columns:1.5fr .8fr 1fr 1.4fr}
.footer-list{list-style:none;margin:0;padding:0}
.footer-list li{padding:4px 0}
.footer-list a{display:inline-block}
.footer-list a:hover,.footer-trending a:hover{color:#7fe3a6}
.footer-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.site-footer .footer-social a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);color:#fff;transition:background .2s,transform .2s}
.site-footer .footer-social a:hover{background:var(--ed-green);color:#fff;transform:translateY(-2px)}
.footer-trending{list-style:none;margin:0;padding:0}
.footer-trending li{display:flex;gap:11px;align-items:center;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.footer-trending li:last-child{border-bottom:0}
.footer-trending .ft-thumb{flex:0 0 58px;width:58px;height:46px;border-radius:7px;overflow:hidden;background:rgba(255,255,255,.1);display:block}
.footer-trending .ft-thumb img{width:100%;height:100%;object-fit:cover}
.footer-trending .thumb-placeholder{min-height:0;height:100%;font-size:20px;color:#7fe3a6}
.footer-trending li>div a{display:block;font-size:13px;line-height:1.45;font-weight:650}
.footer-trending time{display:block;font-size:11px;color:#9fb8ca;margin-top:2px}
.footer-trending .ft-empty{font-size:13px;color:#d7e5ef}
@media(max-width:1000px){.footer-main{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.hero-author{margin-top:14px}.hero-illustration{max-height:210px}.footer-main{grid-template-columns:1fr;gap:22px}}
.brand-name,.brand-tagline{display:block}

/* ---- v1.2: author box, byline, contact form ---- */
.author-box{display:flex;align-items:center;gap:16px;margin-top:34px;padding:18px 22px;background:#f0faf3;border:1px solid #d8f0df;border-radius:14px}
.author-box img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid var(--ed-green);flex:0 0 72px}
.author-box-label{display:block;font-size:11px;line-height:1.3;color:var(--ed-muted);text-transform:uppercase;letter-spacing:.6px}
.author-box-name{display:block;font-size:18px;line-height:1.3;color:var(--ed-navy)}
.author-box p{margin:2px 0 0;font-size:13px;color:var(--ed-muted);line-height:1.6}
.site-footer{margin-top:28px}
.byline{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:var(--ed-navy)}
.byline img{width:22px;height:22px;border-radius:50%;object-fit:cover;display:inline-block}
.ed-contact-form{max-width:620px}
.ed-contact-form label{display:block;font-weight:700;color:var(--ed-navy);margin-bottom:4px;font-size:14px}
.ed-contact-form input[type=text],.ed-contact-form input[type=email],.ed-contact-form textarea{width:100%;padding:11px;border:1px solid var(--ed-border);border-radius:8px}
.ed-notice{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px}
.ed-notice-ok{background:#eefaf2;border:1px solid #bfe6cb;color:#0a5c2c}
.ed-notice-err{background:#fff1f0;border:1px solid #f3c1bb;color:#9b2c1f}
@media(max-width:760px){.author-box{padding:14px;gap:12px}.author-box img{width:56px;height:56px;flex-basis:56px}}

/* ---- v1.5: author social + read more ---- */
.author-social{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.author-social a{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--ed-navy);color:#fff}
.author-social a:hover{background:var(--ed-green);color:#fff}
.author-social svg{width:16px;height:16px}
.hero-author .author-social{margin:0 0 0 6px}
.hero-author .author-social a{width:28px;height:28px}
.read-more{margin:30px 0 10px;padding-top:6px}
.read-more-title{font-size:22px;color:var(--ed-navy);margin:0 0 14px;padding-left:12px;border-left:4px solid var(--ed-green)}
.read-more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.read-more .post-info h3{font-size:15px;line-height:1.5;margin:0}
