/*
Theme Name: Khargosh Premium
Theme URI: https://khargosh.pk/
Author: Khargosh
Author URI: https://khargosh.pk/
Description: A premium, responsive Gutenberg-ready WordPress theme for the Khargosh rabbit farming knowledge platform.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khargosh-premium
Tags: blog, education, news, custom-logo, custom-menu, featured-images, full-site-editing, rtl-language-support, wide-blocks
*/
:root {
  --kh-forest: #073b2d;
  --kh-emerald: #0b6248;
  --kh-leaf: #eaf2ed;
  --kh-gold: #c8a45d;
  --kh-ink: #17251f;
  --kh-muted: #63736b;
  --kh-paper: #fbfcfa;
  --kh-line: #e4ebe6;
  --kh-radius: 18px;
  --kh-shadow: 0 18px 50px rgba(8, 48, 35, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--kh-paper); color: var(--kh-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--kh-emerald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kh-forest); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--kh-line); }
.header-inner { min-height: 84px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { display:flex; align-items:center; gap:12px; min-width: 190px; text-decoration:none; color:var(--kh-forest); }
.custom-logo { max-height: 56px; width:auto; }
.brand-mark { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:var(--kh-forest); color:#fff; font-size:23px; box-shadow:0 7px 18px rgba(7,59,45,.18); }
.brand-copy strong { display:block; font-size:22px; letter-spacing:.08em; line-height:1.1; }
.brand-copy small { display:block; color:var(--kh-muted); font-size:10px; letter-spacing:.12em; text-transform:uppercase; margin-top:5px; }
.primary-nav ul { display:flex; align-items:center; gap:25px; list-style:none; padding:0; margin:0; }
.primary-nav a { color:#34473e; text-decoration:none; font-size:14px; font-weight:650; }
.primary-nav a:hover, .primary-nav .current-menu-item>a { color:var(--kh-emerald); }
.header-actions { display:flex; align-items:center; gap:12px; }
.menu-toggle { display:none; border:1px solid var(--kh-line); background:#fff; color:var(--kh-forest); padding:9px 12px; border-radius:10px; cursor:pointer; }
.button, .wp-block-button__link {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid var(--kh-emerald); border-radius:999px; padding:13px 22px;
  background:var(--kh-emerald); color:#fff !important; text-decoration:none;
  font-size:14px; font-weight:750; transition:.2s ease; box-shadow:0 8px 20px rgba(11,98,72,.14);
}
.button:hover, .wp-block-button__link:hover { background:var(--kh-forest); border-color:var(--kh-forest); transform:translateY(-1px); }
.button-outline { background:transparent; color:var(--kh-forest) !important; border-color:rgba(7,59,45,.28); box-shadow:none; }
.button-outline:hover { color:#fff !important; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color:var(--kh-emerald); font-size:11px; letter-spacing:.17em; font-weight:800; text-transform:uppercase; }
.eyebrow:before { content:""; width:25px; height:2px; background:var(--kh-gold); }
.hero { overflow:hidden; position:relative; color:#fff; background:linear-gradient(115deg, #052d23 0%, #07513b 58%, #0c684b 100%); }
.hero:before, .hero:after { content:""; position:absolute; border:1px solid rgba(255,255,255,.10); border-radius:50%; pointer-events:none; }
.hero:before { width:560px; height:560px; right:-120px; top:-210px; }
.hero:after { width:390px; height:390px; right:-30px; top:-125px; }
.hero-grid { min-height:570px; display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:50px; padding-block:76px; position:relative; z-index:1; }
.hero .eyebrow { color:#e4d1a3; }
.hero h1 { max-width:700px; margin:20px 0 20px; font-size:clamp(40px,5.3vw,68px); line-height:1.08; letter-spacing:-.045em; font-weight:800; }
.hero p { max-width:590px; color:rgba(255,255,255,.78); font-size:17px; margin:0 0 30px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero .button { background:var(--kh-gold); border-color:var(--kh-gold); color:#173328 !important; box-shadow:none; }
.hero .button:hover { background:#ddc080; border-color:#ddc080; }
.hero .button-outline { color:#fff !important; border-color:rgba(255,255,255,.42); }
.hero-art { min-height:390px; display:grid; place-items:center; position:relative; }
.hero-orbit { width:min(390px, 100%); aspect-ratio:1; border-radius:50%; border:1px solid rgba(255,255,255,.24); display:grid; place-items:center; position:relative; background:radial-gradient(circle at 50% 43%, rgba(255,255,255,.15), rgba(255,255,255,.025) 62%, transparent 63%); }
.hero-orbit:before { content:""; position:absolute; inset:25px; border:1px dashed rgba(232,207,151,.55); border-radius:50%; }
.rabbit-symbol { font-size:clamp(120px,18vw,205px); filter:drop-shadow(0 18px 22px rgba(0,0,0,.18)); transform:translateY(-7px); }
.orbit-tag { position:absolute; padding:10px 15px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(255,255,255,.10); backdrop-filter:blur(8px); color:#fff; font-size:12px; font-weight:700; }
.orbit-tag.one { top:13%; right:-3%; } .orbit-tag.two { bottom:15%; left:-6%; } .orbit-tag.three { bottom:2%; right:15%; }
.trust-strip { background:#fff; border-bottom:1px solid var(--kh-line); }
.trust-inner { display:flex; justify-content:space-between; gap:22px; padding:22px 0; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:11px; color:#52645b; font-size:13px; font-weight:650; }
.trust-icon { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; color:var(--kh-emerald); background:var(--kh-leaf); font-size:16px; }
.section { padding:88px 0; }
.section-soft { background:#f1f6f2; }
.section-dark { background:var(--kh-forest); color:#fff; }
.section-heading { max-width:700px; margin-bottom:38px; }
.section-heading h2 { margin:13px 0 12px; font-size:clamp(30px,4vw,43px); line-height:1.15; letter-spacing:-.035em; color:var(--kh-forest); }
.section-dark .section-heading h2 { color:#fff; }
.section-heading p { margin:0; color:var(--kh-muted); font-size:16px; }
.section-dark .section-heading p { color:rgba(255,255,255,.7); }
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feature-card { background:#fff; border:1px solid var(--kh-line); border-radius:var(--kh-radius); padding:27px; box-shadow:0 8px 30px rgba(8,48,35,.035); transition:.22s ease; }
.feature-card:hover { transform:translateY(-5px); box-shadow:var(--kh-shadow); border-color:#d1dfd6; }
.feature-icon { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:var(--kh-leaf); color:var(--kh-emerald); font-size:23px; margin-bottom:20px; }
.feature-card h3 { margin:0 0 9px; font-size:19px; color:var(--kh-forest); }
.feature-card p { margin:0 0 17px; color:var(--kh-muted); font-size:14px; }
.text-link { font-size:13px; font-weight:800; color:var(--kh-emerald); text-decoration:none; }
.text-link:after { content:" →"; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.visual-panel { min-height:390px; border-radius:26px; padding:34px; background:linear-gradient(145deg,#dfece3,#f7f5eb); position:relative; overflow:hidden; display:flex; align-items:flex-end; }
.visual-panel:before { content:""; position:absolute; width:310px; height:310px; border-radius:50%; background:rgba(11,98,72,.10); top:-80px; right:-55px; }
.visual-panel:after { content:""; position:absolute; width:220px; height:220px; border-radius:50%; border:1px solid rgba(11,98,72,.22); top:-35px; right:-10px; }
.visual-quote { position:relative; z-index:1; max-width:330px; padding:22px; border-radius:18px; background:rgba(255,255,255,.88); box-shadow:var(--kh-shadow); }
.visual-quote strong { display:block; color:var(--kh-forest); font-size:20px; line-height:1.3; }
.visual-quote span { display:block; margin-top:9px; color:var(--kh-muted); font-size:12px; }
.split-copy h2 { margin:13px 0 18px; color:var(--kh-forest); font-size:clamp(30px,4vw,43px); line-height:1.14; letter-spacing:-.035em; }
.split-copy p { color:var(--kh-muted); }
.check-list { list-style:none; padding:0; margin:22px 0 28px; }
.check-list li { padding:7px 0 7px 28px; position:relative; color:#43564c; }
.check-list li:before { content:"✓"; position:absolute; left:0; top:7px; color:var(--kh-emerald); font-weight:900; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:30px; }
.stat { padding:19px; border:1px solid rgba(255,255,255,.15); border-radius:15px; background:rgba(255,255,255,.06); }
.stat strong { display:block; font-size:21px; color:#e6d09d; }
.stat span { color:rgba(255,255,255,.72); font-size:12px; }
.article-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.article-card { overflow:hidden; border:1px solid var(--kh-line); border-radius:18px; background:#fff; }
.article-thumb { min-height:175px; background:linear-gradient(135deg,#dce9df,#f3edda); display:grid; place-items:center; color:var(--kh-emerald); font-size:52px; }
.article-thumb img { width:100%; height:190px; object-fit:cover; display:block; }
.article-body { padding:22px; }
.article-meta { color:#819087; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.article-body h3 { margin:9px 0; font-size:18px; line-height:1.35; }
.article-body h3 a { color:var(--kh-forest); text-decoration:none; }
.article-body p { color:var(--kh-muted); font-size:13px; margin:0 0 14px; }
.cta-band { border-radius:24px; padding:46px; display:flex; align-items:center; justify-content:space-between; gap:30px; background:linear-gradient(110deg,#073b2d,#0b6549); color:#fff; }
.cta-band h2 { margin:0 0 8px; font-size:clamp(26px,3vw,36px); line-height:1.2; }
.cta-band p { margin:0; color:rgba(255,255,255,.75); }
.cta-band .button { flex-shrink:0; background:var(--kh-gold); border-color:var(--kh-gold); color:#173328 !important; }
.site-footer { background:#052b21; color:#fff; padding:64px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:38px; }
.footer-brand p { max-width:310px; color:rgba(255,255,255,.62); font-size:13px; }
.footer-title { margin:0 0 15px; color:#e5d09e; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li { margin:8px 0; }
.footer-links a { color:rgba(255,255,255,.72); font-size:13px; text-decoration:none; }
.footer-links a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; gap:15px; margin-top:45px; padding-top:20px; border-top:1px solid rgba(255,255,255,.13); color:rgba(255,255,255,.5); font-size:11px; }
.page-hero { padding:72px 0 58px; background:linear-gradient(115deg,#073b2d,#0b6248); color:#fff; }
.page-hero h1 { margin:12px 0 10px; font-size:clamp(36px,5vw,54px); line-height:1.1; }
.page-hero p { max-width:680px; color:rgba(255,255,255,.75); margin:0; }
.content-wrap { padding:60px 0 90px; }
.content-layout { display:grid; grid-template-columns:minmax(0, 1fr) 280px; gap:48px; }
.entry-content { font-size:16px; }
.entry-content h2,.entry-content h3,.entry-content h4 { color:var(--kh-forest); line-height:1.25; }
.entry-content img { border-radius:14px; }
.entry-content blockquote { border-left:4px solid var(--kh-gold); margin:28px 0; padding:12px 22px; background:#f2f6f2; color:#4d6156; }
.sidebar-box { padding:24px; border:1px solid var(--kh-line); border-radius:16px; background:#fff; margin-bottom:20px; }
.sidebar-box h3 { margin:0 0 12px; color:var(--kh-forest); font-size:17px; }
.sidebar-box p { color:var(--kh-muted); font-size:13px; }
.post-list { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.pagination { margin-top:35px; }
.pagination .page-numbers { display:inline-block; padding:9px 14px; margin-right:5px; border:1px solid var(--kh-line); border-radius:8px; text-decoration:none; }
.pagination .current { background:var(--kh-emerald); color:#fff; }
input[type="text"],input[type="email"],input[type="url"],input[type="search"],textarea,select { width:100%; border:1px solid #dce5de; border-radius:10px; padding:12px 14px; background:#fff; color:var(--kh-ink); }
input:focus,textarea:focus,select:focus { outline:2px solid rgba(11,98,72,.18); border-color:var(--kh-emerald); }
.search-form { display:flex; gap:8px; }
.search-form label { flex:1; }
.search-submit { border:0; border-radius:10px; background:var(--kh-emerald); color:#fff; padding:0 15px; cursor:pointer; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.alignwide { max-width:1160px; margin-left:auto; margin-right:auto; }
.alignfull { width:100%; max-width:none; margin-left:0; margin-right:0; }
.wp-block-image img { border-radius:14px; }
.wp-block-quote { border-left:4px solid var(--kh-gold); padding-left:22px; }
.wp-block-separator { border-color:var(--kh-line); }
.wp-block-table { overflow-x:auto; }
.rtl .primary-nav ul { padding-right:0; }
@media (max-width: 980px) {
  .primary-nav { display:none; position:absolute; top:84px; left:0; right:0; background:#fff; border-bottom:1px solid var(--kh-line); padding:18px 22px; box-shadow:var(--kh-shadow); }
  .primary-nav.is-open { display:block; }
  .primary-nav ul { align-items:stretch; flex-direction:column; gap:0; }
  .primary-nav li { padding:10px 0; border-bottom:1px solid #edf1ee; }
  .menu-toggle { display:inline-flex; }
  .header-actions .button { display:none; }
  .hero-grid { grid-template-columns:1fr .75fr; gap:20px; }
  .card-grid,.article-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px) {
  .container { width:min(100% - 32px, 1160px); }
  .header-inner { min-height:72px; }
  .primary-nav { top:72px; }
  .hero-grid { grid-template-columns:1fr; padding-block:58px 35px; }
  .hero-art { min-height:270px; }
  .hero-orbit { width:260px; }
  .rabbit-symbol { font-size:130px; }
  .section { padding:62px 0; }
  .card-grid,.article-grid,.post-list { grid-template-columns:1fr; }
  .split { grid-template-columns:1fr; gap:30px; }
  .visual-panel { min-height:280px; }
  .stats-grid { grid-template-columns:1fr; }
  .cta-band { padding:30px 24px; align-items:flex-start; flex-direction:column; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px 18px; }
  .footer-bottom { flex-direction:column; }
  .content-layout { grid-template-columns:1fr; gap:25px; }
  .page-hero { padding:55px 0 42px; }
}


/* Official Khargosh brand assets */
.khargosh-default-logo { display:block; width:170px; height:auto; max-height:70px; object-fit:contain; border-radius:4px; }
.khargosh-footer-logo { display:block; width:210px; max-width:100%; height:auto; border-radius:4px; }
.khargosh-cover-art { min-height:0; display:block; border:1px solid rgba(220,190,130,.42); border-radius:22px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.28); background:#052b21; }
.khargosh-cover-art img { display:block; width:100%; height:auto; aspect-ratio:1376/768; object-fit:cover; }
@media (max-width:680px) {
  .khargosh-default-logo { width:138px; max-height:58px; }
  .khargosh-cover-art { max-width:520px; margin-inline:auto; }
}
