/* KD Prime Publishers - blog (archive + single). Matches the main site: Poppins, #ef6420 accent, dark brown hero. */
.kd-hero{background:linear-gradient(300deg,#633510 0%,#000 100%);padding:190px 0 70px;color:#fff;position:relative}
.kd-hero h1{font-size:46px;font-weight:800;line-height:1.2;margin:14px 0 12px;color:#fff;max-width:900px}
.kd-hero p{font-size:18px;color:#ffffffcc;max-width:720px;margin:0}
.kd-hero .highlight{color:#fff;background:#ef6420;padding:0 10px;border-radius:4px;line-height:1.5}
.kd-hero-post{padding-bottom:56px}
.kd-hero-post h1{font-size:40px}
.kd-crumbs{font-size:14px;color:#ffffffb3;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.kd-crumbs a{color:#ffffffb3;text-decoration:none}.kd-crumbs a:hover{color:#ef6420}
.kd-crumbs .cur{color:#fff}

.kd-wrap{padding:60px 0 80px;background:#fff;font-family:'Poppins',sans-serif}
.kd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.kd-grid-3{grid-template-columns:repeat(3,1fr)}
.kd-card{background:#fff;border:1px solid #eee;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}
.kd-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.10)}
.kd-card-media{display:block;aspect-ratio:16/10;background:#f4efe9;overflow:hidden}
.kd-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.kd-card:hover .kd-card-media img{transform:scale(1.05)}
.kd-card-ph{display:flex;align-items:center;justify-content:center;height:100%;font-size:42px;color:#ef6420}
.kd-card-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.kd-chip{align-self:flex-start;background:#fdeee6;color:#ef6420;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:4px 12px;border-radius:20px;text-decoration:none}
.kd-card-title{font-size:20px;line-height:1.35;font-weight:700;margin:0}
.kd-card-title a{color:#111;text-decoration:none}.kd-card-title a:hover{color:#ef6420}
.kd-card-excerpt{color:#555;font-size:15px;line-height:1.7;margin:0;flex:1}
.kd-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:#888}
.kd-meta i{color:#ef6420;margin-right:4px}
.kd-meta-hero{color:#ffffffcc;font-size:14px}

.kd-pager{display:flex;gap:8px;justify-content:center;margin-top:44px;flex-wrap:wrap}
.kd-pg{min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e5e5;border-radius:6px;color:#222;text-decoration:none;font-weight:500;padding:0 12px}
a.kd-pg:hover{border-color:#ef6420;color:#ef6420}
.kd-pg.active{background:#ef6420;border-color:#ef6420;color:#fff}.kd-pg.disabled{opacity:.4}

.kd-side{display:flex;flex-direction:column;gap:24px;position:sticky;top:110px}
.kd-box{border:1px solid #eee;border-radius:10px;padding:22px;background:#fff}
.kd-box h4{font-size:17px;font-weight:700;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid #ef6420;display:inline-block}
.kd-search-row{display:flex}
.kd-search-row input{flex:1;min-width:0;border:1px solid #ddd;border-right:0;border-radius:6px 0 0 6px;padding:10px 14px;font-size:14px}
.kd-search-row button{background:#ef6420;color:#fff;border:0;padding:0 16px;border-radius:0 6px 6px 0}
.kd-cats{list-style:none;margin:0;padding:0}
.kd-cats li a{display:block;padding:9px 0;border-bottom:1px dashed #eee;color:#333;text-decoration:none;font-size:15px}
.kd-cats li a:hover{color:#ef6420;padding-left:4px}
.kd-cta{background:linear-gradient(300deg,#633510 0%,#000 100%);color:#fff;border:0}
.kd-cta h4{color:#fff;border-color:#ef6420}.kd-cta p{color:#ffffffcc;font-size:14px}

.kd-empty{text-align:center;padding:70px 20px;border:1px dashed #ddd;border-radius:10px}
.kd-empty i{font-size:46px;color:#ef6420}

/* single post */
.kd-post-img{width:100%;border-radius:10px;margin-bottom:28px}
.kd-prose{font-size:17px;line-height:1.85;color:#333}
.kd-prose h2,.kd-prose h3,.kd-prose h4{color:#111;font-weight:700;margin:34px 0 14px}
.kd-prose h2{font-size:28px}.kd-prose h3{font-size:22px}
.kd-prose a{color:#ef6420}
.kd-prose img{max-width:100%;height:auto;border-radius:8px;margin:18px 0}
.kd-prose blockquote{border-left:4px solid #ef6420;background:#fdf6f1;margin:24px 0;padding:16px 22px;font-style:italic}
.kd-prose ul,.kd-prose ol{padding-left:22px;margin:0 0 18px}
.kd-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}
.kd-tags a{background:#f5f5f5;border-radius:20px;padding:5px 14px;font-size:13px;color:#555;text-decoration:none}.kd-tags a:hover{background:#ef6420;color:#fff}
.kd-share{display:flex;align-items:center;gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid #eee}
.kd-share a{width:38px;height:38px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.kd-share a:hover{background:#ef6420}
.kd-author{display:flex;align-items:center;gap:16px;margin-top:34px;padding:22px;border-radius:10px;background:#faf5f0}
.kd-avatar{width:54px;height:54px;border-radius:50%;background:#ef6420;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:22px}
.kd-author small{display:block;color:#888}
.kd-prevnext{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:30px}
.kd-pn{border:1px solid #eee;border-radius:10px;padding:16px 20px;text-decoration:none;color:#111;display:block}
.kd-pn:hover{border-color:#ef6420}.kd-pn small{display:block;color:#ef6420;font-weight:600;margin-bottom:4px}
.kd-pn-next{text-align:right;grid-column:2}
.kd-related{margin-top:70px}.kd-related h2{font-size:30px;font-weight:800;margin-bottom:28px}
.kd-related .highlight{color:#ef6420}

@media(max-width:991px){.kd-hero{padding:150px 0 50px}.kd-hero h1{font-size:34px}.kd-side{position:static}.kd-grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.kd-hero h1,.kd-hero-post h1{font-size:28px}.kd-grid,.kd-grid-3{grid-template-columns:1fr}.kd-prevnext{grid-template-columns:1fr}.kd-pn-next{grid-column:auto}}

/* ---- blog tables ---- */
.kd-prose .kd-table-wrap{overflow-x:auto;margin:26px 0;border:1px solid #eadfd6;border-radius:10px;-webkit-overflow-scrolling:touch}
.kd-prose table{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.55;margin:26px 0;background:#fff}
.kd-prose .kd-table-wrap table{margin:0}
.kd-prose table caption{caption-side:top;text-align:left;font-weight:700;color:#111;padding:0 0 10px}
.kd-prose thead th{background:linear-gradient(300deg,#633510 0%,#000 100%);color:#fff;font-weight:600;text-align:left;padding:13px 16px;border:0;white-space:nowrap}
.kd-prose tbody td,.kd-prose tbody th{padding:12px 16px;border-bottom:1px solid #f0e6dd;vertical-align:top;color:#333;text-align:left}
.kd-prose tbody th{font-weight:700;color:#111}
.kd-prose tbody tr:nth-child(even){background:#faf5f0}
.kd-prose tbody tr:hover{background:#fdeee4}
.kd-prose tbody tr:last-child td,.kd-prose tbody tr:last-child th{border-bottom:0}
.kd-prose table td:first-child{font-weight:600;color:#111}
@media(max-width:600px){.kd-prose table{font-size:14px}.kd-prose thead th,.kd-prose tbody td,.kd-prose tbody th{padding:10px 12px}}

/* ---- blog FAQ accordion (light, matches the post) ---- */
.kd-prose .kd-faq{margin:40px 0 10px;padding:26px 26px 14px;background:#faf5f0;border-radius:12px;border-top:4px solid #ef6420}
.kd-prose .kd-faq>h2{margin:0 0 6px;font-size:26px}
.kd-prose .kd-faq>p.kd-faq-intro{margin:0 0 18px;color:#555;font-size:15.5px}
.kd-prose .kd-faq .accordion-item{border:1px solid #eadfd6!important;border-radius:8px!important;margin-bottom:10px;overflow:hidden;background:#fff}
.kd-prose .kd-faq .accordion-header{margin:0;font-size:inherit}
.kd-prose .kd-faq button.accordion-button{background:#fff!important;color:#111!important;font-size:17px!important;font-weight:600!important;padding:16px 18px!important;line-height:1.4;border-radius:0}
.kd-prose .kd-faq button.accordion-button:not(.collapsed){background:#fdeee4!important;color:#ef6420!important;box-shadow:none}
.kd-prose .kd-faq button.accordion-button::after,.kd-prose .kd-faq button.accordion-button:not(.collapsed)::after{filter:none}
.kd-prose .kd-faq .accordion-body{background:#fff;padding:6px 18px 18px;font-size:16px;line-height:1.75;color:#333}
.kd-prose .kd-faq .accordion-body p:last-child{margin-bottom:0}
@media(max-width:600px){.kd-prose .kd-faq{padding:18px 14px 8px}.kd-prose .kd-faq button.accordion-button{font-size:16px!important}}

/* sticky sidebar: the global ".row{align-items:center}" shrank and centred the sidebar column, leaving sticky no room to travel */
.kd-wrap>.container>.row{align-items:stretch;justify-content:flex-start}
.kd-side{top:120px}
@media(min-width:992px){.kd-side{max-height:calc(100vh - 140px);overflow-y:auto;scrollbar-width:thin}}

/* tables pasted without the kd-table-wrap div: let them scroll sideways on small screens */
@media(max-width:767px){.kd-prose table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.kd-prose .kd-table-wrap table{display:table}.kd-prose thead th{white-space:normal}}

/* ---- author box and author archive ---- */
.kd-author{align-items:flex-start}
.kd-author-body{flex:1;min-width:0}
.kd-author-body strong{font-size:19px;color:#111}
.kd-author-body strong a{color:inherit;text-decoration:none}.kd-author-body strong a:hover{color:#ef6420}
.kd-author-body p{margin:8px 0 0;color:#444;font-size:15.5px;line-height:1.7}
.kd-author-more{display:inline-block;margin-top:10px;font-weight:600;font-size:14.5px;color:#ef6420;text-decoration:none}.kd-author-more:hover{text-decoration:underline}
.kd-author-social{list-style:none;display:flex;gap:8px;padding:0;margin:10px 0 0}
.kd-author-social a{width:32px;height:32px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:14px}.kd-author-social a:hover{background:#ef6420}
.kd-meta-hero a{color:inherit;text-decoration:none}.kd-meta-hero a:hover{color:#ef6420}
.kd-hero-author{display:flex;align-items:flex-start;gap:22px;max-width:880px}
.kd-avatar-lg{width:84px;height:84px;font-size:36px;flex:0 0 84px}
.kd-hero-author h1{margin-bottom:10px}
.kd-hero-author p{margin:0;max-width:720px}
.kd-hero-author .kd-author-social a{background:#ffffff22}
@media(max-width:600px){.kd-hero-author{flex-direction:column;gap:14px}.kd-avatar-lg{width:64px;height:64px;flex-basis:64px;font-size:28px}}
.kd-author-sub{margin-right:16px}

/* ---- 404 page ---- */
.kd-404{background:linear-gradient(300deg,#633510 0%,#000 100%);color:#fff;text-align:center;padding:200px 0 90px;font-family:'Poppins',sans-serif}
.kd-404-code{font-size:clamp(96px,16vw,170px);font-weight:800;line-height:1;color:#ef6420;letter-spacing:4px;text-shadow:0 8px 40px rgba(239,100,32,.35)}
.kd-404-title{font-size:clamp(22px,3vw,32px);font-weight:700;margin:14px auto 12px;max-width:760px;color:#fff}
.kd-404-sub{color:#d8cfc7;max-width:620px;margin:0 auto 28px;font-size:16px}
.kd-404-search{display:flex;max-width:520px;margin:0 auto 26px;background:#fff;border-radius:8px;overflow:hidden}
.kd-404-search input{flex:1;border:0;padding:14px 18px;font-size:15px;outline:0;min-width:0;color:#111}
.kd-404-search button{border:0;background:#ef6420;color:#fff;padding:0 22px;font-size:16px;cursor:pointer}
.kd-404-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:46px}
.kd-404-ghost{display:inline-block;padding:12px 26px;border:1px solid #ffffff55;border-radius:6px;color:#fff;text-decoration:none;font-weight:600}
.kd-404-ghost:hover{background:#ffffff1f;color:#fff}
.kd-404-latest{max-width:640px;margin:0 auto;padding-top:30px;border-top:1px solid #ffffff22;text-align:left}
.kd-404-latest h2{font-size:18px;color:#fff;margin:0 0 12px;text-align:center}
.kd-404-latest ul{list-style:none;margin:0;padding:0}
.kd-404-latest li{padding:9px 0;border-bottom:1px solid #ffffff14}
.kd-404-latest a{color:#ffb98c;text-decoration:none}.kd-404-latest a:hover{color:#fff;text-decoration:underline}
@media(max-width:991px){.kd-404{padding:150px 0 60px}}

/* ---- RSS box in the blog sidebar ---- */
.kd-rss p{margin:0 0 12px;color:#555;font-size:14.5px}
.kd-rss-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:6px;background:#111;color:#fff;text-decoration:none;font-weight:600;font-size:14.5px}
.kd-rss-btn:hover{background:#ef6420;color:#fff}
.kd-rss .kd-social{margin:0 0 14px}

/* ---- related articles strip on service pages ---- */
.kd-related-wrap{padding:60px 0 70px;background:#faf5f0}
.kd-related-wrap .kd-related{margin:0}
.kd-related-wrap .kd-related h2{text-align:center;margin-bottom:28px}
.kd-related-more{text-align:center;margin:26px 0 0}.kd-related-more a{font-weight:600;color:#ef6420;text-decoration:none}.kd-related-more a:hover{text-decoration:underline}

/* "Last updated" line under page content (date comes from App\Helper\Lastmod, same as sitemap + schema) */
.kd-lastupdated{padding:6px 0 26px}
.kd-lastupdated p{margin:0;text-align:center;font-size:13px;color:#777}
