/*
Theme Name:   Kadence Child
Theme URI:    https://yoursite.com
Description:  Custom Kadence child theme
Author:       Your Name
Author URI:   https://yoursite.com
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  kadence-child
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   All values below are overridden by the Customizer via
   inline styles injected in wp_head. These are the defaults.
   ============================================================ */

:root {
	--kc-page-bg:            #f7f7f7;
	--kc-content-bg:         #ffffff;
	--kc-header-bg:          #ffffff;
	--kc-header-border:      #e8e8e8;
	--kc-footer-bg:          #2b2b2b;
	--kc-footer-text:        #666666;
	--kc-footer-heading:     #ffffff;
	--kc-footer-link:        #777777;
	--kc-footer-link-hover:  #bbbbbb;
	--kc-footer-border:      #3a3a3a;
	--kc-footer-height:      300px;

	/* Content widths */
	--kc-content-width:      1100px;
	--kc-cat-width:          1200px;
	--kc-sidebar-width:      300px;
	--kc-content-padding-x:  68px;
	--kc-content-padding-y:  50px;

	/* Category cards */
	--kc-cat-gap:            30px;
	--kc-cat-cols:           3;
	--kc-cat-label-size:     14px;
	--kc-cat-bg:             #ffffff;
	--kc-cat-border:         #e8e8e8;

	/* Article list */
	--kc-art-title-size:     17px;
	--kc-art-title-color:    #222222;
	--kc-art-hover-color:    #aaaaaa;

	/* Links */
	--kc-link-color:         #333333;
	--kc-link-hover:         #aaaaaa;

	/* Sidebar */
	--kc-sb-bg:              #ffffff;
	--kc-sb-border:          #ebebeb;

	/* Breadcrumbs */
	--kc-crumb-color:        #aaaaaa;
	--kc-crumb-hover:        #555555;
	--kc-crumb-sep:          #dddddd;

	/* Body text */
	--kc-body-size:          15px;
	--kc-body-color:         #333333;
	--kc-body-line-height:   1.8;
}


/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

/* ============================================================
   HARDCODED BACKGROUND — #f7f7f7 everywhere, no customizer.
   Targets every selector Kadence uses across all versions.
   ============================================================ */
html,
body,
body.home,
body.blog,
body.single,
body.page,
body.archive,
body.search,
body.category,
body.content-style-boxed,
body.wp-theme-kadence,
#page,
#page.site,
.site,
.hfeed {
	background-color: #f7f7f7 !important;
}

/* Content area stays white */
#content,
#content.site-content,
.site-content {
	background-color: #ffffff !important;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-size: var(--kc-body-size);
	color: var(--kc-body-color);
	line-height: var(--kc-body-line-height);
}


a {
	color: var(--kc-link-color);
	text-decoration: none;
	font-weight: 700;
	transition: color 0.18s ease;
}

a:hover {
	color: var(--kc-link-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}


/* ============================================================
   LAYOUT SHELL
   ============================================================ */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	background: var(--kc-content-bg);
}

.kc-container {
	max-width: var(--kc-content-width);
	margin: 0 auto;
	padding: var(--kc-content-padding-y) var(--kc-content-padding-x);
	width: 100%;
}

.kc-container--wide {
	max-width: var(--kc-cat-width);
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
	background: var(--kc-header-bg);
	border-bottom: 1px solid var(--kc-header-border);
	width: 100%;
	position: relative;
	z-index: 100;
}

.kc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	height: 56px;
	max-width: 100%;
}

/* Logo / Site title */
.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-branding a {
	font-weight: 500;
	font-size: 19px;
	color: var(--kc-body-color);
	text-decoration: none;
}

.site-branding img {
	height: 36px;
	width: auto;
}

/* Search bar */
.kc-header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	padding: 6px 12px;
	width: 280px;
	background: #fff;
}

.kc-header-search input[type="search"] {
	background: none;
	border: none;
	outline: none;
	font-size: 13px;
	color: var(--kc-body-color);
	width: 100%;
}

.kc-header-search input[type="search"]::placeholder {
	color: #bbb;
}

.kc-header-search svg,
.kc-header-search i {
	font-size: 14px;
	color: #999;
	flex-shrink: 0;
}

/* Nav */
.kc-main-nav {
	display: flex;
	align-items: center;
	gap: 22px;
}

/* Flatten wp_nav_menu output — Kadence adds ul/li wrappers */
.kc-main-nav ul,
.kc-main-nav ul li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kc-main-nav ul {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-direction: row;
	flex-wrap: nowrap;
}

/* Hide any nested sub-menus at top level (depth=2 available but hidden until hover) */
.kc-main-nav ul ul {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 8px 0;
	min-width: 180px;
	z-index: 200;
	gap: 0;
	flex-direction: column;
	top: 100%;
	left: 0;
}

.kc-main-nav ul li {
	position: relative;
}

.kc-main-nav ul li:hover > ul {
	display: flex;
}

.kc-main-nav ul ul li a {
	padding: 8px 16px;
	display: block;
}

.kc-main-nav a,
.kc-main-nav ul li a {
	font-size: 13px;
	color: #777;
	text-decoration: none;
	font-weight: 400;
	transition: color 0.2s;
	white-space: nowrap;
}

.kc-main-nav a:hover,
.kc-main-nav ul li a:hover {
	color: #333;
}


/* ============================================================
   BREADCRUMBS
   ============================================================ */

.kc-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.kc-breadcrumbs a {
	font-size: 12px;
	color: var(--kc-crumb-color);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s;
}

.kc-breadcrumbs a:hover {
	color: var(--kc-crumb-hover);
}

.kc-breadcrumbs .sep {
	font-size: 12px;
	color: var(--kc-crumb-sep);
}

.kc-breadcrumbs .current {
	font-size: 12px;
	color: #ccc;
	font-weight: 400;
}


/* ============================================================
   HOMEPAGE — CATEGORY GRID
   ============================================================ */

.kc-cat-grid {
	display: grid;
	grid-template-columns: repeat(var(--kc-cat-cols), 1fr);
	gap: var(--kc-cat-gap);
	margin-bottom: 40px;
}

.kc-cat-card {
	background: var(--kc-cat-bg);
	border: 1px solid var(--kc-cat-border);
	border-radius: 0;
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease;
	text-decoration: none;
}

.kc-cat-card:hover {
	border-color: #ccc;
}

.kc-cat-card__thumb {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.kc-cat-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kc-cat-card__label {
	padding: 11px 14px;
	font-size: var(--kc-cat-label-size);
	font-weight: 700;
	color: #444;
	border-top: 1px solid var(--kc-cat-border);
	text-align: center;
	letter-spacing: 0.02em;
}

/* Image-only card — no label, thumb fills the full square */
.kc-cat-card--image-only .kc-cat-card__thumb {
	flex: 1 1 100%;
	height: 100%;
}

.kc-cat-card--image-only {
	position: relative;
}

/* Optional: subtle category name overlay on hover for accessibility */
.kc-cat-card--image-only::after {
	content: attr(aria-label);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	padding: 8px 10px;
	opacity: 0;
	transition: opacity 0.2s ease;
	border-radius: 0;
	pointer-events: none;
}

.kc-cat-card--image-only:hover::after {
	opacity: 1;
}

.kc-section-divider {
	border: none;
	border-top: 1px solid #e8e8e8;
	margin: 0 0 26px;
}

.kc-section-label {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.kc-section-label::before {
	content: attr(data-label);
	background: #222;
	color: #fff;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
	display: block;
}

.kc-section-label::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	background: #222;
}


/* ============================================================
   HOMEPAGE — RECENT ARTICLES
   ============================================================ */

.kc-article-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.kc-article-card {
	display: flex;
	gap: 20px;
	cursor: pointer;
	padding: 20px 0;
	text-decoration: none;
	align-items: flex-start;
}

.kc-article-card:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.kc-article-card__thumb {
	background: #e8e8e8;
	width: 200px;
	min-width: 200px;
	height: 133px;
	border-radius: 0;
	overflow: hidden;
	flex-shrink: 0;
}

.kc-article-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kc-article-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

.kc-article-card__title {
	font-size: var(--kc-art-title-size);
	font-weight: 700;
	color: #111;
	line-height: 1.3;
	transition: color 0.18s ease;
	margin: 0 0 8px 0;
}

.kc-article-card:hover .kc-article-card__title {
	color: var(--kc-art-hover-color);
}

.kc-article-card__footer {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.kc-article-card__cat {
	font-size: 13px;
	font-weight: 700;
	color: var(--kc-art-hover-color);
}

.kc-article-card__sep {
	font-size: 13px;
	font-weight: 400;
	color: #999;
}

.kc-article-card__date {
	font-size: 13px;
	font-weight: 400;
	color: #999;
}

.kc-article-card__excerpt {
	font-size: 14px;
	font-weight: 400;
	color: #555;
	line-height: 1.6;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}


/* ============================================================
   HOMEPAGE — LAYOUT (content + sidebar)
   ============================================================ */

.kc-home-layout {
	display: grid;
	grid-template-columns: 1fr var(--kc-sidebar-width);
	gap: 32px;
}


/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */

.kc-sidebar-widget {
	background: var(--kc-sb-bg);
	border: 1px solid var(--kc-sb-border);
	border-radius: 12px;
	padding: 10px 10px 5px;
	margin-bottom: 16px;
}

.kc-sidebar-widget__title {
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 9px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.kc-sidebar-widget__title::before {
	content: attr(data-label);
	background: #222;
	color: #fff;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
	display: block;
}

.kc-sidebar-widget__title::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	background: #f0f0f0;
}

.kc-sidebar-item {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 7px 0;
	border-bottom: 1px solid var(--kc-sb-border);
	cursor: pointer;
	text-decoration: none;
}

.kc-sidebar-item:last-child {
	border-bottom: none;
}

.kc-sidebar-item:hover .kc-sidebar-item__text {
	color: var(--kc-art-hover-color);
}

.kc-sidebar-item__thumb {
	background: #e8e8e8;
	width: 42px;
	min-width: 42px;
	height: 36px;
	border-radius: 0;
	overflow: hidden;
	flex-shrink: 0;
}

.kc-sidebar-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kc-sidebar-item__text {
	font-size: 12px;
	color: #222;
	line-height: 1.4;
	transition: color 0.18s ease;
}

/* Ad slot */
.kc-ad-slot {
	margin-top: 14px;
}

.kc-ad-slot:empty {
	display: none;
}


/* ============================================================
   SINGLE POST / PAGE — SHARED
   ============================================================ */

.kc-entry-header {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e8e8e8;
}

.kc-entry-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
	margin-bottom: 12px;
}

.kc-entry-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.kc-entry-meta__item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #bbb;
}

.kc-featured-image {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 32px;
}

.kc-featured-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Entry body typography */
.kc-entry-content {
	font-size: var(--kc-body-size);
	color: var(--kc-body-color);
	line-height: var(--kc-body-line-height);
	max-width: 720px;
}

.kc-entry-content p {
	margin-bottom: 18px;
}

.kc-entry-content h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 36px 0 14px;
	line-height: 1.3;
}

.kc-entry-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	margin: 28px 0 10px;
}

.kc-entry-content blockquote {
	border-left: 3px solid #e8e8e8;
	margin: 28px 0;
	padding: 4px 20px;
	color: #888;
	font-style: italic;
	line-height: 1.7;
}

.kc-entry-content ul,
.kc-entry-content ol {
	margin: 0 0 18px 22px;
}

.kc-entry-content li {
	margin-bottom: 7px;
	line-height: 1.7;
}

.kc-entry-content a {
	color: var(--kc-link-color);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.18s;
}

.kc-entry-content a:hover {
	color: var(--kc-link-hover);
}


/* ============================================================
   SINGLE POST — TWO-COLUMN LAYOUT
   ============================================================ */

.kc-post-layout {
	display: grid;
	grid-template-columns: 1fr var(--kc-sidebar-width);
	gap: 48px;
}

/* Post sidebar search */
.kc-post-search {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	padding: 7px 12px;
	width: 100%;
	background: #fff;
	margin-bottom: 16px;
}

.kc-post-search input {
	background: none;
	border: none;
	outline: none;
	font-size: 13px;
	width: 100%;
	color: var(--kc-body-color);
}

/* Table of contents */
.kc-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kc-toc-item {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	padding: 5px 0;
	border-bottom: 1px solid #f5f5f5;
}

.kc-toc-item:last-child {
	border-bottom: none;
}

.kc-toc-item a {
	font-size: 12px;
	color: #666;
	font-weight: 700;
	line-height: 1.4;
	transition: color 0.18s;
}

.kc-toc-item a:hover {
	color: var(--kc-link-hover);
}

.kc-toc-item--h3 {
	padding-left: 14px;
}

.kc-toc-item--h3 a {
	font-weight: 400;
	color: #999;
}

/* You may also like */
.kc-you-may {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid #e8e8e8;
}

.kc-you-may__title {
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.kc-you-may__title::before {
	content: attr(data-label);
	background: #222;
	color: #fff;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
	display: block;
}

.kc-you-may__title::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	background: #222;
}

.kc-you-may-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.kc-you-may-card {
	cursor: pointer;
	text-decoration: none;
}

.kc-you-may-card:hover .kc-you-may-card__title {
	color: var(--kc-art-hover-color);
}

.kc-you-may-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
	background: #e8e8e8;
}

.kc-you-may-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kc-you-may-card__title {
	font-size: 13px;
	font-weight: 700;
	color: #222;
	line-height: 1.35;
	transition: color 0.18s;
}

.kc-you-may-card__date {
	font-size: 11px;
	color: #ccc;
	margin-top: 4px;
}


/* ============================================================
   PAGE TEMPLATE
   ============================================================ */

.kc-page-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
	margin-bottom: 12px;
}

.kc-page-content {
	max-width: 720px;
}


/* ============================================================
   CATEGORY / SEARCH ARCHIVE
   ============================================================ */

.kc-archive-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e8e8e8;
}

.kc-archive-title-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 8px;
}

.kc-archive-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8e8e8;
}

.kc-archive-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kc-archive-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
}

.kc-archive-desc {
	font-size: 14px;
	color: #999;
	line-height: 1.6;
	max-width: 600px;
	margin-bottom: 6px;
}

.kc-archive-count {
	font-size: 12px;
	color: #ccc;
}

.kc-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.kc-results-label {
	font-size: 12px;
	color: #bbb;
}

.kc-sort-select {
	font-size: 12px;
	color: #777;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 5px 10px;
	background: #fff;
	cursor: pointer;
}

/* Card grid */
.kc-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.kc-post-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s;
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

.kc-post-card:hover {
	border-color: #ccc;
}

.kc-post-card:hover .kc-post-card__title {
	color: var(--kc-art-hover-color);
}

.kc-post-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e8e8e8;
}

.kc-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kc-post-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.kc-post-card__title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
	margin-bottom: 7px;
	transition: color 0.18s;
}

.kc-post-card__excerpt {
	font-size: 12px;
	color: #888;
	line-height: 1.55;
	margin-bottom: 10px;
	flex: 1;
}

.kc-post-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.kc-post-card__date,
.kc-post-card__read {
	font-size: 11px;
	color: #ccc;
}

/* Pagination */
.kc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.kc-pagination a,
.kc-pagination span {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	font-size: 13px;
	color: #777;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
	background: #fff;
	text-decoration: none;
	font-weight: 400;
}

.kc-pagination a:hover {
	border-color: #ccc;
	color: #333;
}

.kc-pagination .current {
	border-color: #333;
	color: #333;
	font-weight: 700;
}

.kc-pagination .dots {
	border: none;
	background: none;
	color: #ccc;
	width: auto;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
	background: var(--kc-footer-bg);
	width: 100%;
	flex-shrink: 0;
}

.kc-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 36px 32px 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.kc-footer-col__heading {
	font-size: 11px;
	font-weight: 500;
	color: var(--kc-footer-heading);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--kc-footer-border);
}

.kc-footer-col__text {
	font-size: 12px;
	color: var(--kc-footer-text);
	line-height: 1.7;
}

.kc-footer-col a,
.kc-footer-col ul li a {
	display: block;
	font-size: 12px;
	color: var(--kc-footer-link);
	text-decoration: none;
	margin-bottom: 7px;
	transition: color 0.2s;
	font-weight: 400;
}

.kc-footer-col a:hover,
.kc-footer-col ul li a:hover {
	color: var(--kc-footer-link-hover);
}

/* Flatten wp_nav_menu ul in footer */
.kc-footer-col ul,
.kc-footer-col ul li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kc-footer-copy {
	text-align: center;
	font-size: 11px;
	color: #555;
	padding: 20px 32px 18px;
	border-top: 1px solid var(--kc-footer-border);
	margin-top: 32px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet and below (≤1024px) ---- */
@media (max-width: 1024px) {

	.kc-container {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.kc-home-layout,
	.kc-post-layout {
		display: block !important;
	}

	.kc-home-layout > aside,
	.kc-post-layout > aside {
		margin-top: 32px;
		width: 100%;
	}

	.kc-cat-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.kc-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kc-you-may-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kc-footer-inner {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* ---- Mobile (≤640px) ---- */
@media (max-width: 640px) {

	.kc-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
		padding-top: 24px !important;
	}

	.kc-header-inner {
		padding: 0 16px;
		height: auto;
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.kc-header-search {
		order: 3;
		width: 100%;
	}

	.site-branding { flex: 1; }
	.kc-main-nav   { order: 2; }

	.kc-main-nav ul {
		flex-wrap: wrap;
		gap: 10px;
	}

	.kc-cat-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}

	.kc-article-card__thumb {
		width: 80px;
		min-width: 80px;
		height: 60px;
	}

	.kc-entry-title,
	.kc-page-title {
		font-size: 22px;
		line-height: 1.3;
	}

	.kc-entry-content h2 { font-size: 18px; }
	.kc-entry-content h3 { font-size: 16px; }

	.kc-you-may-grid {
		grid-template-columns: 1fr;
	}

	.kc-card-grid {
		grid-template-columns: 1fr;
	}

	.kc-footer-inner {
		grid-template-columns: 1fr !important;
		padding: 28px 16px 0;
	}

	.kc-footer-copy {
		padding: 16px 16px;
		margin-top: 24px;
	}

	.kc-breadcrumbs {
		flex-wrap: wrap;
	}
}

/* ---- Very small (≤380px) ---- */
@media (max-width: 380px) {
	.kc-cat-grid {
		grid-template-columns: 1fr !important;
	}
}


