/*
Theme Name: Keyles Blog Gold Pro
Theme URI: https://keyles.ir/
Author: OpenAI
Description: قالب فارسی راست‌چین و واکنش‌گرا با بهینه‌سازی سئو، چیدمان حرفه‌ای مطالب و سازگاری با Easy Digital Downloads.
Version: 2.5.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: keyles-blog-gold-pro
*/
:root{--bg:#f5f7f5;--panel:#ffffff;--gold:#176b45;--gold2:#218653;--text:#17231b;--muted:#68766d;--line:#e0e8e1}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.9 Tahoma,Arial,sans-serif}a{color:var(--gold2);text-decoration:none}a:hover{color:white}img{max-width:100%;height:auto;display:block}.container{width:min(1160px,calc(100% - 30px));margin:auto}.site-header{position:sticky;top:0;z-index:10;background:#0b0b0cf2;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:78px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold2),#a97920);color:#17130a;font-weight:bold;font-size:21px}.brand-name{display:block;color:#fff;font-size:19px;font-weight:bold;line-height:1.4}.brand-tag{display:block;color:var(--muted);font-size:11px}.custom-logo{max-height:50px;width:auto}.main-nav{display:flex;gap:20px;align-items:center}.main-nav a{font-size:13px;color:#e9e3d6}.header-actions{display:flex;align-items:center;gap:8px}.button,button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border:0;border-radius:11px;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#17130a;font-weight:bold;cursor:pointer}.button-outline{background:transparent;border:1px solid var(--line);color:var(--gold2)}.search-toggle,.menu-toggle{background:#1b1b1e;border:1px solid var(--line);color:var(--gold2);padding:8px 12px}.menu-toggle{display:none}.hero{padding:55px 0 30px;background:radial-gradient(ellipse at 80% 0,#d7ad501e,transparent 45%)}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}.eyebrow{display:inline-block;border:1px solid var(--line);border-radius:99px;padding:4px 12px;color:var(--gold2);font-size:12px;background:#d7ad5010}.hero h1{font-size:clamp(28px,4vw,46px);line-height:1.5;margin:15px 0}.hero h1 span{color:var(--gold2)}.hero p,.section-head p{color:var(--muted)}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-visual{min-height:260px;border:1px solid var(--line);border-radius:25px;padding:24px;display:flex;align-items:end;background:radial-gradient(circle at 70% 20%,#d7ad5030,transparent 38%),linear-gradient(145deg,#222226,#111113);box-shadow:0 15px 40px #0005}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}.stat{padding:14px;border:1px solid var(--line);border-radius:14px;background:#0b0b0cd9}.stat strong{display:block;color:var(--gold2);font-size:22px}.stat span{color:var(--muted);font-size:11px}.section{padding:32px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.section-head h2{font-size:23px;margin:0}.section-head p{font-size:13px;margin:3px 0 0}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#1b1b1e,#111113);transition:.2s}.category-card:hover,.post-card:hover{transform:translateY(-3px);border-color:#d7ad5080}.category-icon{width:38px;height:38px;display:grid;place-items:center;background:#d7ad5018;color:var(--gold2);border-radius:12px;font-size:20px;margin-bottom:8px}.category-card strong{display:block}.category-card span:last-child{font-size:12px;color:var(--muted)}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:25px}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.post-card,.widget,.article-panel,.featured-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;overflow:hidden}.post-thumb{display:block;aspect-ratio:16/10;background:#1a1916}.post-thumb img{width:100%;height:100%;object-fit:cover}.thumb-placeholder{height:100%;min-height:130px;display:grid;place-items:center;color:var(--gold);font-size:42px;background:radial-gradient(circle,#d7ad5025,transparent 60%),#151517}.post-card-body{padding:14px}.post-meta{font-size:11px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}.post-card h3{font-size:15px;line-height:1.8;margin:8px 0}.post-card h3 a{color:var(--text)}.post-card p{font-size:12px;color:var(--muted);margin:0 0 10px}.read-more{font-size:12px;font-weight:bold}.featured-wrap{display:grid;grid-template-columns:1fr 1fr;gap:15px}.featured-card{display:grid;grid-template-columns:40% 1fr}.featured-card .post-thumb{height:100%;aspect-ratio:auto}.sidebar{display:grid;gap:15px;align-content:start}.widget{padding:17px}.widget-title{font-size:16px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}.widget ul{list-style:none;margin:0;padding:0}.widget li{padding:7px 0;border-bottom:1px solid #ffffff0b;font-size:13px}.widget li:last-child{border:0}.widget li a{color:#e6e0d5}.search-form{display:flex;gap:6px}.search-form label{flex:1}input[type=search],input[type=text],input[type=email],input[type=url],textarea,select{width:100%;background:#0c0c0e;color:#fff;border:1px solid #403522;border-radius:9px;padding:10px}.search-form button{padding:8px 12px}.site-footer{margin-top:45px;padding:35px 0 18px;border-top:1px solid var(--line);background:#080809}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:25px}.footer-grid p,.footer-grid li{font-size:12px;color:var(--muted)}.footer-grid ul{list-style:none;padding:0}.footer-bottom{border-top:1px solid #ffffff12;margin-top:20px;padding-top:14px;color:#777;font-size:11px;display:flex;justify-content:space-between}.page-heading{padding:32px 0 15px}.page-heading h1{margin:0}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:12px}.article-panel{padding:clamp(18px,3vw,34px)}.article-header h1{font-size:clamp(25px,3.5vw,38px);line-height:1.6;margin:12px 0}.article-featured-image{margin:20px 0;border-radius:13px;overflow:hidden}.entry-content{font-size:16px;line-height:2.2;color:#e4dfd6}.entry-content h2,.entry-content h3{color:var(--gold2)}.entry-content blockquote{border-right:3px solid var(--gold);padding:12px 18px;background:#d7ad500c}.post-tags{margin-top:20px}.post-tags a{border:1px solid var(--line);border-radius:99px;padding:4px 10px;font-size:12px}.author-box{margin-top:20px;padding:15px;border:1px solid var(--line);border-radius:12px;color:var(--muted)}.pagination{margin-top:22px}.page-numbers{display:inline-block;border:1px solid var(--line);border-radius:8px;padding:5px 10px;margin:3px}.page-numbers.current{background:var(--gold);color:#111}.comments-area{margin-top:25px}.comment-body{padding:12px;border:1px solid var(--line);border-radius:10px;margin:10px 0}.comment-form label{display:block;margin:8px 0}.comment-form input[type=submit]{background:var(--gold);color:#111;border:0;border-radius:9px;padding:10px 15px}.not-found{text-align:center;padding:65px 10px}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:var(--panel);border:1px solid var(--line);padding:13px;border-radius:15px}.woocommerce ul.products li.product img{border-radius:10px}.woocommerce-message,.woocommerce-info{background:var(--panel);color:var(--text);border-top-color:var(--gold)!important}.woocommerce table.shop_table{color:var(--text);border-color:var(--line)}.admin-bar .site-header{top:32px}
@media(max-width:950px){.category-grid{grid-template-columns:repeat(2,1fr)}.content-layout{grid-template-columns:minmax(0,1fr) 240px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-nav{gap:12px}}
@media(max-width:740px){.header-inner{min-height:68px}.main-nav{display:none;position:absolute;top:67px;left:15px;right:15px;background:#151517;border:1px solid var(--line);border-radius:14px;padding:12px;flex-direction:column;align-items:stretch;gap:0}.main-nav.is-open{display:flex}.main-nav a{padding:9px;border-bottom:1px solid #ffffff0d}.menu-toggle{display:inline-flex}.hero{padding:32px 0 18px}.hero-grid{grid-template-columns:1fr}.hero-visual{min-height:190px}.content-layout{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-wrap{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.admin-bar .site-header{top:46px}}
@media(max-width:480px){.container{width:calc(100% - 24px)}.brand-mark{width:36px;height:36px}.brand-name{font-size:16px}.brand-tag{font-size:10px}.header-actions .button{font-size:11px;padding:7px 9px}.hero h1{font-size:27px}.hero p{font-size:13px}.section{padding:24px 0}.section-head h2{font-size:20px}.category-grid{gap:9px}.category-card{padding:13px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.post-card-body{padding:10px}.post-card h3{font-size:13px}.post-card p{font-size:11px}.sidebar{grid-template-columns:1fr}.featured-card{grid-template-columns:1fr}.featured-card .post-thumb{aspect-ratio:16/8}.footer-grid{grid-template-columns:1fr}.footer-grid>div:first-child{grid-column:auto}.footer-bottom{flex-direction:column}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Pro refresh: compact editorial layout, light surfaces and green accents */
:root{--bg:#f5f7f5;--panel:#fff;--gold:#176b45;--gold2:#218653;--text:#17231b;--muted:#68766d;--line:#e0e8e1;--soft:#edf5ef;--shadow:0 12px 30px rgba(22,54,35,.07)}
body{background:var(--bg);color:var(--text);font-size:14px;line-height:1.85}
a{color:var(--gold)}a:hover{color:#0e4f31}
.site-header{background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(20,60,36,.035)}
.header-inner{min-height:70px;gap:15px}.brand{gap:9px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#26935b,#145b3b);color:#fff;box-shadow:none}.brand-name{color:#17231b;font-size:18px}.brand-tag{color:#78847c}.main-nav a{color:#34443a;font-weight:600}.main-nav a:hover{color:var(--gold)}
.header-actions .button{padding:9px 13px;border-radius:10px;background:var(--gold);color:white;box-shadow:0 5px 12px rgba(23,107,69,.13)}.search-toggle,.menu-toggle{background:#f0f5f1;color:var(--gold);border:1px solid var(--line);border-radius:10px}
.hero{padding:38px 0 25px;background:radial-gradient(ellipse at 80% 0,rgba(33,134,83,.10),transparent 48%),linear-gradient(180deg,#fff,#f5f8f5)}.hero-grid{gap:24px}.eyebrow{border-color:#cfe4d4;color:#176b45;background:#eaf5ed}.hero h1{font-size:clamp(27px,3.4vw,40px);line-height:1.42;color:#17231b;margin:12px 0}.hero h1 span{color:#218653}.hero p{color:#66766b;font-size:14px;max-width:590px}.hero-actions{gap:8px}.button,.wp-block-button__link,button{padding:9px 14px;border-radius:10px;background:var(--gold);color:white}.button:hover,.wp-block-button__link:hover,button:hover{color:white;filter:brightness(.95)}.button-outline{background:#fff;border:1px solid #cfe0d2;color:#176b45}.button-outline:hover{color:#145b3b;background:#edf6ef}
.hero-visual{min-height:210px;border-color:#d9e8dc;border-radius:20px;padding:18px;background:radial-gradient(circle at 70% 15%,#b9dfc655,transparent 42%),linear-gradient(145deg,#eaf5ed,#fff);box-shadow:var(--shadow)}.stat{background:#ffffffdd;border-color:#dbe9de;border-radius:12px}.stat strong{color:#176b45;font-size:20px}.stat span{color:#6a796f}
.section{padding:26px 0}.section-head{margin-bottom:14px}.section-head h2{font-size:21px;color:#17231b}.section-head p{color:#718076}.category-grid{gap:11px}.category-card{padding:15px;min-height:112px;border-color:#e0e8e1;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(22,54,35,.025)}.category-card:hover,.post-card:hover{transform:translateY(-2px);border-color:#b5d8bf;box-shadow:var(--shadow)}.category-icon{width:34px;height:34px;border-radius:10px;background:#e9f5ec;color:#176b45;font-size:17px}.category-card strong{color:#24372a}.category-card span:last-child{color:#7b887f}
.post-grid{gap:13px}.post-card,.featured-card,.widget,.article-panel{background:#fff;border-color:#e0e8e1;border-radius:14px;box-shadow:0 5px 18px rgba(22,54,35,.025)}.post-thumb{aspect-ratio:16/9;background:#e9f1eb;overflow:hidden}.post-thumb img{width:100%;height:100%;object-fit:cover}.thumb-placeholder{min-height:130px;color:#218653;background:radial-gradient(circle,#21865318,transparent 60%),#edf5ef}.post-card-body{padding:13px}.post-meta{color:#819087;font-size:10px}.post-card h3{font-size:14px;line-height:1.75;margin:6px 0}.post-card h3 a{color:#203127}.post-card h3 a:hover{color:#176b45}.post-card p{font-size:12px;color:#6c7a71;line-height:1.8}.read-more{color:#176b45}.featured-wrap{gap:13px}.featured-card{min-height:150px}.widget{padding:15px}.widget-title{font-size:15px;color:#203127;border-bottom-color:#e4ece5}.widget li{border-bottom-color:#edf1ed}.widget li a{color:#34483a}.widget li a:hover{color:#176b45}
input[type=search],input[type=text],input[type=email],input[type=url],textarea,select{background:#fff;color:#1d2b21;border-color:#d9e4dc;border-radius:9px}.search-form button{background:#176b45;color:#fff}.site-footer{margin-top:35px;padding:30px 0 0;background:#edf4ee;border-top:1px solid #dbe7dd;color:#26382b}.footer-grid{gap:24px;padding-bottom:22px}.footer-grid h4{color:#203127;font-size:14px}.footer-grid p,.footer-grid li{color:#69796e}.footer-grid a{color:#405748}.footer-grid a:hover{color:#176b45}.footer-bottom{background:#e4eee6;border-top:1px solid #d5e3d8;margin-top:0;padding:13px 0;color:#65766a}.site-footer .brand-name{color:#17231b}.site-footer .brand-tag{color:#6e7e72}.site-footer .brand-mark{background:linear-gradient(135deg,#26935b,#145b3b);color:#fff}
.page-heading h1{color:#17231b}.breadcrumbs{color:#718076}.article-panel{padding:clamp(16px,2.5vw,28px)}.article-header h1{color:#17231b;font-size:clamp(24px,3vw,35px)}.entry-content{color:#34443a;font-size:15px}.entry-content h2,.entry-content h3{color:#176b45}.entry-content blockquote{border-right-color:#218653;background:#edf6ef;color:#405748}.post-tags a{border-color:#d9e7dc}.author-box{background:#f5f8f5;border-color:#e0e8e1;color:#64736a}.page-numbers{border-color:#d7e4d9}.page-numbers.current{background:#176b45;color:#fff}.comment-body{border-color:#e0e8e1}.woocommerce ul.products li.product{background:#fff;border-color:#e0e8e1}.woocommerce-message,.woocommerce-info{background:#fff;color:#26382b}
@media(max-width:740px){.header-inner{min-height:64px}.main-nav{top:63px;background:#fff;border-color:#dce8de;box-shadow:var(--shadow)}.main-nav a{color:#304336;border-bottom-color:#edf2ee}.hero{padding:26px 0 14px}.hero-grid{gap:14px}.hero h1{font-size:27px}.hero-visual{min-height:150px;padding:13px}.stat{padding:10px}.stat strong{font-size:18px}.section{padding:20px 0}.section-head h2{font-size:19px}.category-card{min-height:100px;padding:12px}.post-grid{gap:10px}.post-card-body{padding:10px}.featured-card{grid-template-columns:38% 1fr}.footer-grid{gap:18px}.admin-bar .site-header{top:46px}}
@media(max-width:480px){.container{width:calc(100% - 22px)}.header-actions .button{font-size:11px;padding:7px 9px}.brand-name{font-size:15px}.brand-tag{font-size:9px}.hero h1{font-size:25px}.hero p{font-size:12px}.hero-actions .button{font-size:12px;padding:8px 10px}.section-head h2{font-size:18px}.post-card h3{font-size:12px}.post-card p{font-size:11px}.post-meta{font-size:9px}.post-thumb{aspect-ratio:4/3}.featured-card{grid-template-columns:1fr}.featured-card .post-thumb{aspect-ratio:16/8}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{font-size:10px;gap:4px}}


/* Version 2.2 — compact blue & white redesign */
:root{--bg:#f4f8fd;--panel:#fff;--gold:#1769aa;--gold2:#247fc4;--text:#172b40;--muted:#687f94;--line:#dce8f3;--soft:#eaf4fc;--shadow:0 8px 24px rgba(25,85,135,.08)}
body{background:var(--bg);color:var(--text);font-size:13.5px;line-height:1.85}
a{color:#247fc4}a:hover{color:#125b98}
.container{width:min(1100px,calc(100% - 28px))}
.site-header{background:rgba(255,255,255,.96);border-bottom:1px solid #dce8f3;box-shadow:0 3px 16px rgba(26,78,120,.05)}
.header-inner{min-height:66px;gap:12px}.brand-mark{background:linear-gradient(135deg,#2f91d4,#155b9b);color:#fff;width:38px;height:38px;border-radius:11px}.brand-name{color:#172b40;font-size:18px}.brand-tag{color:#71879b}.main-nav{gap:15px}.main-nav a{color:#35536d;font-size:12px}.main-nav a:hover{color:#1769aa}
.button,.wp-block-button__link,button{background:linear-gradient(135deg,#2d8bd0,#1769aa);color:#fff;border-radius:9px;padding:8px 13px;box-shadow:0 3px 8px #1769aa14}.button:hover,.wp-block-button__link:hover,button:hover{color:#fff;filter:brightness(.96)}.button-outline{background:#fff;border:1px solid #c9dff0;color:#1769aa;box-shadow:none}.search-toggle,.menu-toggle{background:#eef6fd;border:1px solid #d7e7f5;color:#1769aa}
.hero{padding:35px 0 22px;background:radial-gradient(ellipse at 80% 0,#5eace91c,transparent 48%)}.hero-grid{gap:22px}.hero h1{font-size:clamp(25px,3.3vw,39px);line-height:1.5;margin:10px 0}.hero-visual{min-height:205px;border-color:#d6e6f4;background:radial-gradient(circle at 70% 20%,#62b5f333,transparent 40%),linear-gradient(145deg,#edf7ff,#dceefa);box-shadow:0 12px 28px rgba(25,85,135,.09)}.stat{background:#ffffffed;border-color:#d9e9f6}.stat strong{color:#1769aa}.stat span{color:#6e8498}.eyebrow{background:#edf7ff;border-color:#d4e8f7;color:#1769aa}
.section{padding:25px 0}.section-head{margin-bottom:14px}.section-head h2{font-size:21px}.section-head p{font-size:12px}.category-grid{gap:11px}.category-card{padding:14px;border-color:#deebf5;background:#fff;box-shadow:0 4px 14px rgba(30,85,130,.035)}.category-card:hover,.post-card:hover{transform:translateY(-2px);border-color:#9bc9eb;box-shadow:0 8px 20px rgba(30,85,130,.08)}.category-icon{background:#eaf5fd;color:#1769aa}
.content-layout{grid-template-columns:minmax(0,1fr) 225px;gap:18px;align-items:start}.post-grid{gap:12px}.post-card,.widget,.article-panel,.featured-card{border-color:#deebf5;border-radius:13px;box-shadow:0 4px 14px rgba(30,85,130,.035)}.post-thumb{background:#eaf4fc}.thumb-placeholder{color:#247fc4;background:radial-gradient(circle,#247fc41c,transparent 60%),#edf7ff}.post-card-body{padding:11px}.post-card h3{font-size:13px;line-height:1.7}.post-card p{font-size:11.5px;line-height:1.75}.post-meta{font-size:10px}.featured-wrap{gap:11px}.featured-card{min-height:135px}.widget{padding:13px}.widget-title{font-size:14px;color:#183b5a;margin-bottom:9px;padding-bottom:7px}.widget li{font-size:12px;padding:6px 0;border-bottom-color:#edf3f8}.widget li a{color:#365873}.widget li a:hover{color:#1769aa}
input[type=search],input[type=text],input[type=email],input[type=url],textarea,select{background:#fff;color:#20394f;border-color:#d5e5f2;padding:9px}.search-form button{background:#1769aa;color:#fff}
/* Sidebar stays compact on desktop; on phones it becomes a useful horizontal block above the article grid. */
.sidebar{gap:11px;position:sticky;top:82px}.sidebar .widget-title{font-size:13px}.sidebar .widget ul{max-height:none}.sidebar .button{font-size:11px;padding:7px 10px}
.site-footer{margin-top:28px;padding:0;background:#eaf4fc;border-top:1px solid #d2e5f5;color:#213d56}.footer-grid{grid-template-columns:1.25fr .8fr 1fr;gap:22px;padding:25px 0 18px}.footer-grid>div{min-width:0}.footer-grid h4{margin:0 0 9px;color:#173e60;font-size:13px}.footer-grid p,.footer-grid li{font-size:11.5px;line-height:1.9;color:#617b91}.footer-grid ul{margin:0}.footer-grid li{padding:3px 0}.footer-grid a{color:#315e80}.footer-grid a:hover{color:#1769aa}.site-footer .brand{margin-bottom:8px}.site-footer .brand-name{color:#17334c;font-size:16px}.site-footer .brand-tag{color:#71899d}.site-footer .brand-mark{background:linear-gradient(135deg,#2d8bd0,#1769aa);color:#fff}.footer-bottom{background:#dcecf9;border-top:1px solid #cbdff0;margin-top:0;padding:11px 0;color:#5b7890;font-size:10.5px;gap:10px}.footer-bottom a{color:#245d88}.footer-bottom .container{display:flex;justify-content:space-between;gap:12px}
.page-heading{padding:24px 0 12px}.page-heading h1{font-size:25px;color:#17334c}.article-panel{padding:clamp(15px,2vw,25px)}.article-header h1{color:#17334c;font-size:clamp(22px,3vw,32px)}.entry-content{color:#344f67;font-size:14px;line-height:2.1}.entry-content h2,.entry-content h3{color:#1769aa}.entry-content blockquote{border-right-color:#247fc4;background:#edf7ff;color:#3d607b}.post-tags a{border-color:#d5e6f3}.author-box{background:#f4f9fd;border-color:#dce8f3;color:#61788d}.page-numbers{border-color:#d5e6f3}.page-numbers.current{background:#1769aa;color:#fff}.comment-body{border-color:#dce8f3}.comment-form input[type=submit]{background:#1769aa;color:#fff}.woocommerce ul.products li.product{background:#fff;border-color:#dce8f3}.woocommerce-message,.woocommerce-info{background:#fff;color:#263f55;border-top-color:#1769aa!important}
@media(max-width:900px){.content-layout{grid-template-columns:minmax(0,1fr) 205px;gap:14px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{gap:16px}}
@media(max-width:740px){.header-inner{min-height:60px}.main-nav{top:59px;background:#fff;border-color:#d8e8f5;box-shadow:var(--shadow)}.main-nav a{color:#294a65;border-bottom-color:#edf3f8}.hero{padding:23px 0 12px}.hero-grid{gap:12px}.hero h1{font-size:25px}.hero-visual{min-height:125px;padding:12px}.stat{padding:9px}.stat strong{font-size:17px}.section{padding:18px 0}.section-head h2{font-size:18px}.category-card{min-height:88px;padding:11px}.content-layout{display:flex;flex-direction:column;gap:14px}.content-layout>main{width:100%;order:2}.content-layout>.sidebar{width:100%;order:1;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.content-layout>.sidebar .widget{padding:11px}.content-layout>.sidebar .widget:first-child{grid-column:1/-1}.content-layout>.sidebar .widget-title{margin-bottom:7px}.content-layout>.sidebar .widget li{padding:4px 0}.footer-grid{grid-template-columns:1.1fr .9fr;gap:16px;padding:20px 0 15px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{padding:10px 0}.admin-bar .site-header{top:46px}}
@media(max-width:480px){.container{width:calc(100% - 20px)}.brand-mark{width:34px;height:34px}.brand-name{font-size:15px}.brand-tag{font-size:9px}.header-actions .button{font-size:10px;padding:6px 8px}.hero h1{font-size:23px}.hero p{font-size:12px}.hero-actions .button{font-size:11px;padding:7px 9px}.section-head h2{font-size:17px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.post-card-body{padding:9px}.post-card h3{font-size:12px;line-height:1.65}.post-card p{font-size:10.5px}.post-meta{font-size:9px}.post-thumb{aspect-ratio:4/3}.featured-card{grid-template-columns:1fr}.featured-card .post-thumb{aspect-ratio:16/7}.content-layout>.sidebar{grid-template-columns:1fr 1fr}.content-layout>.sidebar .widget:first-child{grid-column:1/-1}.footer-grid{grid-template-columns:1fr 1fr;gap:13px}.footer-grid>div:first-child{grid-column:1/-1}.footer-grid p,.footer-grid li{font-size:11px}.footer-bottom .container{flex-direction:column;gap:4px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* v2.3 refinements: cleaner header navigation, logo alignment, home without sidebars, polished footer */
.site-header{background:rgba(255,255,255,.97);border-bottom:1px solid #d8e8f5;box-shadow:0 4px 18px rgba(20,78,125,.06)}
.header-inner{min-height:64px;gap:14px}
.header-brand{flex:0 0 auto;gap:9px;direction:rtl;white-space:nowrap}
.header-brand .custom-logo-link{display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:4px;border-radius:10px;background:#f0f7fd;border:1px solid #dcebf7}
.header-brand .custom-logo{display:block;width:auto;max-width:58px;max-height:46px;object-fit:contain}
.header-brand .brand-mark{width:39px;height:39px;border-radius:11px;background:linear-gradient(145deg,#3699df,#155b9b);color:#fff;box-shadow:0 4px 10px #1769aa24}
.header-brand .brand-name{color:#173b59;font-size:17px;line-height:1.35}
.header-brand .brand-tag{color:#71889c;font-size:10px;line-height:1.5}
.main-nav{gap:5px;padding:5px;background:#f3f8fc;border:1px solid #e1edf7;border-radius:13px}
.main-nav a{display:inline-flex;align-items:center;min-height:34px;padding:5px 11px;border-radius:8px;color:#31536f;font-size:12px;font-weight:700;transition:background .18s,color .18s}
.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:#1769aa;color:#fff}
.header-actions{gap:7px;flex:0 0 auto}.header-actions .button{white-space:nowrap;font-size:11px;padding:8px 11px}
.search-toggle,.menu-toggle{border-radius:10px;min-width:36px;min-height:36px}
.homepage-layout{display:block!important}.homepage-layout>main{width:100%;min-width:0}.homepage-layout .post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.site-footer{margin-top:34px;padding:0;background:linear-gradient(145deg,#f4f9fe,#e6f2fb);border-top:1px solid #d2e6f6;color:#24435d;overflow:hidden;position:relative}
.site-footer:before{content:"";display:block;height:4px;background:linear-gradient(90deg,#64b4eb,#1769aa,#8bc9f2)}
.footer-grid{grid-template-columns:1.25fr .8fr 1fr;gap:clamp(16px,3vw,34px);padding:27px 0 23px}
.footer-grid>div{min-width:0;padding:15px;border:1px solid #d9e9f6;border-radius:15px;background:rgba(255,255,255,.72);box-shadow:0 5px 18px rgba(25,88,137,.035)}
.footer-grid h4{font-size:14px;margin-bottom:10px;color:#164b76;padding-bottom:8px;border-bottom:1px solid #e3eff8}
.footer-grid p,.footer-grid li{font-size:11.5px;line-height:1.95;color:#607d95}
.footer-grid ul{padding:0;margin:0;list-style:none}.footer-grid li{padding:4px 0;border-bottom:1px dashed #e0edf7}.footer-grid li:last-child{border-bottom:0}
.footer-grid a{color:#315f82}.footer-grid a:hover{color:#0c70bd}
.site-footer .brand{gap:9px;margin-bottom:10px}.site-footer .brand-mark{background:linear-gradient(145deg,#3699df,#155b9b);color:#fff}.site-footer .brand-name{font-size:16px;color:#173b59}.site-footer .brand-tag{font-size:10px;color:#71889c}
.footer-cta{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:8px 12px;border-radius:10px;background:#1769aa;color:#fff!important;font-size:11px;font-weight:bold;box-shadow:0 5px 12px #1769aa20}.footer-cta:hover{background:#105789;color:#fff!important}
.footer-bottom{background:#dcecf9;border-top:1px solid #c9e0f2;margin:0;padding:12px 0;color:#5b7890;font-size:10.5px}
.footer-bottom .container{display:flex;align-items:center;justify-content:space-between;gap:14px}
.back-to-top{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 7px;border:1px solid #bad9ef;border-radius:999px;background:#fff;color:#1769aa!important;font-size:11px;font-weight:bold;box-shadow:0 4px 12px rgba(23,105,170,.09);transition:transform .18s,box-shadow .18s,background .18s}
.back-to-top:hover{transform:translateY(-2px);background:#1769aa;color:#fff!important;box-shadow:0 7px 16px rgba(23,105,170,.2)}
.back-to-top span:first-child{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#eaf5fd;color:#1769aa;font-size:17px;line-height:1}.back-to-top:hover span:first-child{background:#fff;color:#1769aa}
@media(max-width:950px){.main-nav{gap:3px}.main-nav a{padding:5px 8px;font-size:11px}.header-inner{gap:9px}.homepage-layout .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.header-inner{min-height:59px;gap:8px}.header-brand .custom-logo{max-width:42px;max-height:38px}.header-brand .brand-name{font-size:14px}.header-brand .brand-tag{font-size:9px}.header-brand .brand-mark{width:33px;height:33px;font-size:17px}.main-nav{top:57px;left:10px;right:10px;display:none;padding:8px;gap:4px;border-radius:12px}.main-nav.is-open{display:flex}.main-nav a{width:100%;min-height:39px;padding:8px 10px;border-radius:8px;font-size:12px}.homepage-layout .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:18px 0 15px}.footer-grid>div{padding:12px;border-radius:12px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom .container{flex-direction:row;align-items:center}.site-footer{margin-top:25px}}
@media(max-width:480px){.container{width:calc(100% - 20px)}.header-brand{gap:6px}.header-brand .custom-logo-link{padding:3px}.header-brand .custom-logo{max-width:35px;max-height:34px}.header-brand .brand-name{font-size:12px}.header-brand .brand-tag{font-size:8px}.header-actions{gap:5px}.header-actions .button{font-size:9px;padding:6px 7px}.search-toggle,.menu-toggle{min-width:32px;min-height:32px;padding:5px 8px}.homepage-layout .post-grid{gap:8px}.footer-grid{gap:8px}.footer-grid>div{padding:10px}.footer-grid h4{font-size:12px}.footer-grid p,.footer-grid li{font-size:10.5px}.footer-bottom .container{flex-direction:column;align-items:stretch;text-align:center;gap:8px}.back-to-top{align-self:center}.footer-bottom{padding:10px 0}}

/* Homepage content polish v2.4 */
.section-kicker{display:inline-flex;align-items:center;gap:6px;margin-bottom:5px;color:#1877b9;font-size:10px;font-weight:800;letter-spacing:.1px}
.section-kicker:before{content:"";display:inline-block;width:17px;height:2px;border-radius:2px;background:#48a3df}
.section-head{align-items:center;margin-bottom:17px}
.section-head h2{font-size:23px;letter-spacing:-.25px}
.section-head p{max-width:560px}
.section-link{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #cfe4f5;background:#fff;color:#1769aa;border-radius:10px;padding:7px 11px;font-size:11px;font-weight:700;box-shadow:0 4px 12px rgba(25,88,137,.04)}
.section-link:hover{background:#1769aa;color:#fff;border-color:#1769aa}
.categories-section{position:relative}
.categories-section .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.categories-section .category-card{position:relative;min-height:120px;padding:15px 16px 13px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;overflow:hidden;border-radius:15px;background:linear-gradient(145deg,#fff 0%,#f5faff 100%);box-shadow:0 7px 20px rgba(26,91,139,.055)}
.categories-section .category-card:after{content:"";position:absolute;left:-22px;bottom:-28px;width:78px;height:78px;border-radius:50%;background:#e3f2fd;opacity:.75;transition:transform .2s}
.categories-section .category-card:hover:after{transform:scale(1.35)}
.categories-section .category-icon{position:relative;z-index:1;width:36px;height:36px;margin-bottom:8px;border:1px solid #d7ebfa;border-radius:11px;background:#eaf6ff;font-size:18px}
.categories-section .category-card strong,.categories-section .category-card span:last-child{position:relative;z-index:1}
.categories-section .category-card strong{font-size:13px;color:#234967}
.categories-section .category-card span:last-child{margin-top:2px;color:#718ba0}
.featured-wrap{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.featured-card{display:flex;flex-direction:column;min-width:0;border-radius:15px;background:#fff;box-shadow:0 6px 22px rgba(26,91,139,.055);transition:transform .2s,box-shadow .2s}
.featured-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(26,91,139,.1)}
.featured-card .post-thumb{width:100%;height:auto;aspect-ratio:16/9;flex:0 0 auto}
.featured-card .post-card-body{padding:14px}
.featured-card h3{font-size:14px;line-height:1.85;margin:8px 0}
.featured-card p{font-size:11.5px;line-height:1.9;color:#617b91}
.featured-card .read-more{display:inline-flex;margin-top:3px;padding:5px 0}
#latest{padding-top:30px}
#latest .section-head{padding:15px 17px;margin-bottom:15px;border:1px solid #deebf5;border-radius:14px;background:linear-gradient(100deg,#f5faff,#fff)}
.homepage-layout .post-card{background:#fff;box-shadow:0 5px 17px rgba(26,91,139,.045)}
.homepage-layout .post-card h3 a{color:#244761}
.homepage-layout .post-card h3 a:hover{color:#1769aa}
@media(max-width:900px){.categories-section .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.categories-section .category-card{padding:12px;min-height:108px}.featured-wrap{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.featured-card .post-card-body{padding:10px}}
@media(max-width:740px){.section-head{align-items:flex-start}.section-head h2{font-size:20px}.categories-section .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.categories-section .category-card{min-height:100px;padding:12px}.featured-wrap{grid-template-columns:1fr;gap:11px}.featured-card{display:grid;grid-template-columns:36% minmax(0,1fr);flex-direction:initial}.featured-card .post-thumb{height:100%;aspect-ratio:auto;min-height:145px}.featured-card .post-card-body{padding:11px}.featured-card h3{font-size:13px;margin:5px 0}.featured-card p{font-size:11px;margin-bottom:6px}.section-link{font-size:10px;padding:6px 8px}#latest .section-head{padding:12px;margin-bottom:12px}}
@media(max-width:480px){.section-head{gap:8px}.section-head h2{font-size:18px}.section-head p{font-size:11px}.section-kicker{font-size:9px}.categories-section .category-card strong{font-size:12px}.categories-section .category-card span:last-child{font-size:10px}.featured-card{grid-template-columns:1fr}.featured-card .post-thumb{aspect-ratio:16/7;min-height:0}.featured-card .post-card-body{padding:11px}.featured-card h3{font-size:13px}.featured-card p{font-size:11px}.featured-wrap{gap:10px}.section-link{align-self:center}.footer-cta{padding:9px 12px}}


/* ===== v2.5.1 refinements ===== */
/* A clear, polished home header and hero */
.site-header{box-shadow:0 5px 22px rgba(20,78,125,.075);border-bottom-color:#d7e8f5}
.header-inner{min-height:70px}
.header-brand{gap:10px}
.header-primary-cta{box-shadow:0 5px 14px rgba(23,105,170,.18)}
.hero{position:relative;overflow:hidden;padding:48px 0 34px;background:radial-gradient(ellipse at 12% 18%,rgba(56,151,218,.12),transparent 35%),linear-gradient(120deg,#f7fbff 0%,#eaf5fd 55%,#fff 100%);border-bottom:1px solid #e0edf7}
.hero:after{content:"";position:absolute;left:-90px;bottom:-160px;width:330px;height:330px;border:1px solid rgba(23,105,170,.09);border-radius:50%;box-shadow:0 0 0 28px rgba(23,105,170,.025),0 0 0 58px rgba(23,105,170,.02);pointer-events:none}
.hero-grid{position:relative;z-index:1;gap:34px}
.hero h1{color:#153d5d;font-weight:900;letter-spacing:-.6px}
.hero p{max-width:590px;color:#59758d;font-size:14px;line-height:2.1}
.hero-visual{background:linear-gradient(145deg,#1769aa,#0d416d);border:1px solid #2b80bd;box-shadow:0 18px 42px rgba(23,105,170,.2);position:relative}
.hero-visual:before{content:"✦";position:absolute;top:18px;right:22px;color:#bfe4ff;font-size:40px;opacity:.65}
.hero-visual .stat{border-color:#ffffff35;background:#ffffff13;backdrop-filter:blur(8px)}
.hero-visual .stat strong{color:#fff}.hero-visual .stat span{color:#d8edfc}
.eyebrow{font-weight:800;box-shadow:0 3px 12px rgba(23,105,170,.05)}
/* Latest posts and featured posts share one consistent card grid */
.featured-post-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.featured-post-grid .post-card{min-width:0}
.featured-post-grid .post-thumb{aspect-ratio:16/9}
.featured-post-grid .post-card-body{padding:12px}
.single-content{display:block;width:100%;max-width:100%}
.single-content>main{width:100%;min-width:0}
.article-panel{width:100%}
.related-posts{margin-top:25px;padding:20px;border:1px solid #dceaf5;border-radius:17px;background:linear-gradient(145deg,#f8fcff,#fff)}
.related-posts .section-head{margin-bottom:13px}
.related-post-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.related-post-grid .post-card{min-width:0}
.related-post-grid .post-thumb{aspect-ratio:16/9}
.related-post-grid .post-card-body{padding:11px}
/* Easy Digital Downloads cart / checkout visual system */
.edd-header-cart{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:6px 10px;border:1px solid #cfe3f3;border-radius:11px;background:#f4faff;color:#1769aa;font-size:11px;font-weight:800;white-space:nowrap;transition:.2s}
.edd-header-cart:hover{background:#1769aa;border-color:#1769aa;color:#fff}
.edd-cart-icon{font-size:15px;line-height:1}
.edd-cart-count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:#1769aa;color:#fff;font-size:10px}
.edd-header-cart:hover .edd-cart-count{background:#fff;color:#1769aa}
.edd_download,.edd_download_purchase_form,.edd-cart,.edd_checkout_cart,.edd-checkout,.edd-blocks-form{border:1px solid #dceaf5;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(24,82,126,.055);padding:16px}
.edd_download{overflow:hidden}
.edd_download_title,.edd_download_title a{color:#173e60;font-size:16px;font-weight:800}
.edd_price,.edd_download .edd_price{color:#1769aa;font-weight:900}
.edd-submit,.edd-submit.button,.edd-add-to-cart,.edd-blocks-form button,.edd_checkout a.edd_cart_remove_item_btn{border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#2788c9,#1769aa)!important;color:#fff!important;font-weight:800!important;padding:10px 16px!important;box-shadow:0 5px 13px rgba(23,105,170,.16)}
.edd-submit:hover,.edd-add-to-cart:hover,.edd-blocks-form button:hover{filter:brightness(.94)}
#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap select,.edd-blocks-form input,.edd-blocks-form select{width:100%;min-height:43px;border:1px solid #d4e4f1;border-radius:9px;background:#fbfdff;padding:9px 11px;color:#24445e}
#edd_checkout_form_wrap label,.edd-blocks-form label{color:#294d69;font-weight:700;font-size:12px}
#edd_checkout_form_wrap fieldset,#edd_checkout_form_wrap #edd_checkout_user_info,#edd_checkout_form_wrap #edd_purchase_submit{border-color:#e0edf7}
#edd_checkout_cart th,#edd_checkout_cart td,.edd_cart th,.edd_cart td{padding:11px;border-color:#e5eef6}
#edd_checkout_cart th,.edd_cart th{background:#f0f7fd;color:#244b6b}
.edd_cart_total,.edd_cart_footer_row{font-weight:800;color:#173e60}
.edd-alert,.edd_success{border-radius:10px}
@media(max-width:740px){
 .header-inner{min-height:62px}
 .hero{padding:24px 0 18px}
 .hero-grid{grid-template-columns:1fr;gap:12px}
 .hero-visual{min-height:115px}
 .featured-post-grid,.related-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .related-posts{padding:12px}
 .edd-cart-label{display:none}
 .edd-header-cart{padding:6px 8px}
}
@media(max-width:480px){
 .hero h1{font-size:22px}
 .hero p{font-size:11.5px}
 .featured-post-grid,.related-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .featured-post-grid .post-card-body,.related-post-grid .post-card-body{padding:8px}
 .edd_download,.edd_download_purchase_form,.edd-cart,.edd_checkout_cart,.edd-checkout,.edd-blocks-form{padding:10px}
}

/* ===== v2.5.2 EDD layout updates ===== */
.single-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}
.single-layout>main{min-width:0}
.single-layout>.sidebar{display:block;position:sticky;top:90px}
.edd-related-posts{margin-top:25px;padding:18px;border:1px solid #dceaf5;border-radius:17px;background:#f8fcff}
.edd-related-posts .related-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.edd-related-card .edd-related-price{margin:8px 0;color:#1769aa;font-weight:900}
.single-post .edd-submit,.single-post .edd-add-to-cart,.single-post .edd_purchase_submit_wrapper,.single-post .edd_download_purchase_form,.single-post .edd-blocks-form__purchase-button{display:flex;justify-content:center;text-align:center;margin-left:auto;margin-right:auto}
.single-post .edd_download_purchase_form .edd-submit,.single-post .edd_purchase_submit_wrapper .edd-submit{min-width:180px}
@media(max-width:900px){.single-layout{grid-template-columns:minmax(0,1fr) 230px;gap:16px}}
@media(max-width:740px){.single-layout{display:block}.single-layout>.sidebar{display:none}.edd-related-posts .related-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v2.5.4: EDD product archive sidebar */
.edd-archive-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}
.edd-archive-main{min-width:0}
.edd-archive-sidebar{display:block;position:sticky;top:90px}
.edd-archive-sidebar .widget{margin-bottom:16px}
.edd-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.edd-archive-card{min-width:0}
.edd-archive-card .post-thumb{aspect-ratio:16/9}
.edd-header-cart{display:inline-flex;align-items:center;gap:7px;text-decoration:none}
@media(max-width:900px){.edd-archive-layout{grid-template-columns:minmax(0,1fr) 230px;gap:16px}}
@media(max-width:740px){.edd-archive-layout{display:block}.edd-archive-sidebar{display:none}.edd-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}
