/*
Theme Name: Terpancar Kasih
Theme URI: https://terpancarkasih.com
Author: Yayasan Panti Asuhan Terpancar Kasih Indonesia
Author URI: https://terpancarkasih.com
Description: Tema WordPress resmi Yayasan Panti Asuhan Terpancar Kasih Indonesia. Menampilkan beranda galang dana, kartu kampanye, kabar terbaru, statistik transparansi, profil yayasan, dan modal donasi transfer bank manual. Tema ini dirancang berpasangan dengan plugin "Terpancar Kasih - Crowdfunding & Donasi".
Version: 1.2.3
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terpancar-kasih
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog, one-column
*/

/* =========================================================
   1. Gaya dasar (mengikuti desain prototipe asli)
   ========================================================= */
body {
	font-family: 'Inter', sans-serif;
	background-color: #F1F5F9;
}

.gradient-header { background: linear-gradient(135deg, #103080 0%, #b07050 50%, #d9a97c 100%); }
.gradient-card { background: linear-gradient(135deg, #e8edf6 0%, #f6eee6 100%); }
.custom-shadow { box-shadow: 0 10px 25px -5px rgba(16, 48, 128, 0.08); }

.tab-active { border-bottom: 3px solid #b07050; color: #b07050; font-weight: 700; }

.campaign-detail-tab { color: #334155; border-bottom: 3px solid transparent; background: transparent; }
.campaign-detail-tab.active {
	background: #b07050;
	color: #fff;
	border-bottom-color: #b07050;
	border-radius: 10px 10px 0 0;
}

/* Kartu galang dana di beranda. */
.tk-campaign-card {
	border-radius: 20px;
	border-color: #e2e8f0;
	box-shadow: 0 5px 18px rgba(15, 23, 42, .055);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tk-campaign-card:hover {
	transform: translateY(-4px);
	border-color: #d9a97c;
	box-shadow: 0 16px 32px rgba(107, 66, 38, .12);
}

.tk-campaign-card .tk-campaign-image {
	height: 210px;
	overflow: hidden;
	background: linear-gradient(135deg, #e8edf6, #faf6f1);
}

.tk-campaign-card .tk-campaign-image::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 58px;
	background: linear-gradient(transparent, rgba(15, 23, 42, .22));
	content: "";
	pointer-events: none;
}

.tk-campaign-card .tk-campaign-image-photo {
	transition: transform .45s ease;
}

.tk-campaign-card .tk-campaign-category,
.tk-campaign-card .tk-campaign-ending {
	z-index: 1;
}

.tk-campaign-card .tk-campaign-card-content {
	padding: 18px 18px 14px;
}

.tk-campaign-card .tk-campaign-title {
	min-height: 44px;
	font-size: 15px;
}

.tk-campaign-card .tk-campaign-summary {
	min-height: 34px;
	line-height: 1.55;
}

.tk-campaign-card .tk-campaign-progress-track {
	height: 9px;
}

.tk-campaign-card .tk-campaign-card-actions {
	padding: 0 18px 18px;
}

.tk-campaign-card .tk-campaign-donate-button,
.tk-detail-donate-button:not(:disabled),
.tk-single-campaign .tk-detail-donate-button:not(:disabled) {
	background: linear-gradient(105deg, #103080 0%, #b07050 68%, #c9946a 100%);
	box-shadow: 0 8px 16px rgba(138, 85, 56, .2);
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.tk-campaign-card .tk-campaign-donate-button:hover,
.tk-detail-donate-button:not(:disabled):hover,
.tk-single-campaign .tk-detail-donate-button:not(:disabled):hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 11px 20px rgba(138, 85, 56, .26);
}

/* Rangkuman detail kampanye: foto dan informasi berdampingan di layar lebar. */
.tk-detail-overview {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
	align-items: stretch;
	background: #fff;
}

.tk-detail-cover {
	position: relative;
	min-height: 390px;
	overflow: hidden;
	background: linear-gradient(135deg, #e4eaf5, #faf1ea);
}

.tk-detail-hero-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 390px;
	object-fit: cover;
}

.tk-detail-hero-image[hidden] {
	display: none !important;
}

.tk-detail-image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e4eaf5, #faf1ea);
	color: #b07050;
	font-size: 64px;
}

.tk-detail-summary {
	align-self: center;
	padding: 32px;
}

.tk-detail-category {
	background: #f6eee6;
	color: #8a5538;
	letter-spacing: .04em;
}

.tk-detail-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.tk-detail-stat .fa-solid,
.tk-detail-stat .fa-regular {
	font-size: 12px;
}

.tk-detail-progress-track {
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.tk-detail-target-row {
	gap: 12px;
}

.tk-detail-organizer,
.tk-detail-information {
	border: 1px solid #e8edf5;
	border-radius: 16px;
	box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.tk-detail-organizer h3 {
	margin-bottom: 14px;
	font-size: 15px;
}

.tk-detail-information [role="tablist"] {
	gap: 8px;
	padding-bottom: 8px;
}

.tk-detail-information .campaign-detail-tab {
	border: 0;
	border-radius: 10px;
	padding: 10px 14px;
	color: #64748b;
	transition: color .15s ease, background .15s ease;
}

.tk-detail-information .campaign-detail-tab.active {
	background: #f6eee6;
	color: #8a5538;
}

.tk-single-campaign [data-tk-panel="description"] img {
	background: #f1f5f9;
	transition: transform .2s ease, box-shadow .2s ease;
}

.tk-single-campaign [data-tk-panel="description"] img:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.tk-single-campaign {
	box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.tk-campaign-breadcrumb a {
	transition: color .15s ease;
}

@media screen and (max-width: 767px) {
	.tk-campaign-card .tk-campaign-image {
		height: 205px;
	}

	.tk-detail-overview {
		grid-template-columns: 1fr;
	}

	.tk-detail-cover,
	.tk-detail-hero-image {
		min-height: 0;
		height: 250px;
	}

	.tk-detail-summary {
		padding: 23px 20px;
	}

	.tk-detail-organizer,
	.tk-detail-information {
		border-radius: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tk-campaign-card,
	.tk-campaign-card .tk-campaign-image-photo,
	.tk-campaign-card .tk-campaign-donate-button,
	.tk-detail-donate-button {
		transition: none;
	}
}

/* Batas baris teks (pengganti plugin line-clamp Tailwind) */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =========================================================
   2. Hero slider
   ========================================================= */
.tk-hero-slide {
	transition: opacity .7s ease;
}
.tk-hero-slide[aria-hidden="true"] {
	opacity: 0;
	pointer-events: none;
}
.tk-hero-slide[aria-hidden="false"] {
	opacity: 1;
}

/* =========================================================
   3. Navigasi (header + menu WordPress)
   ========================================================= */
.tk-nav-links {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.tk-nav-links > a { display: block; }

.tk-nav-menu {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tk-nav-menu li { list-style: none; margin: 0; }
.tk-nav-menu li a {
	display: block;
	padding: .55rem .8rem;
	border-radius: .5rem;
	font-weight: 700;
	font-size: .8125rem;
	color: #334155;
	text-decoration: none;
}
.tk-nav-menu li a:hover { background: #f1f5f9; }
.tk-nav-menu li.current-menu-item a,
.tk-nav-menu li.current_page_item a { background: #eff6ff; color: #103080; }

@media (min-width: 768px) {
	.tk-nav-links {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.tk-nav-links > a { display: inline-flex; align-items: center; }
	.tk-nav-menu {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.tk-nav-menu li a { display: inline-block; }
}

/* Anchor tidak tertutup header lengket saat menggulir. */
#home,
#campaigns-section,
#public-updates,
#articles,
#transparency,
#about,
#contact { scroll-margin-top: 130px; }

/* =========================================================
   5. Konten artikel (WordPress editor)
   ========================================================= */
.entry-content { color: #334155; line-height: 1.8; font-size: .9rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.entry-content h2 { font-size: 1.25rem; font-weight: 800; margin: .9rem 0 .4rem; }
.entry-content h3 { font-size: 1.05rem; font-weight: 700; margin: .7rem 0 .3rem; }
.entry-content p { margin: .5rem 0; }
.entry-content ul { list-style: disc; padding-left: 1.4rem; margin: .5rem 0; }
.entry-content ol { list-style: decimal; padding-left: 1.4rem; margin: .5rem 0; }
.entry-content blockquote {
	border-left: 3px solid #b07050;
	padding-left: .75rem;
	color: #64748b;
	margin: .6rem 0;
	font-style: italic;
}
.entry-content a { color: #b07050; text-decoration: underline; }

/* =========================================================
   6. Penyesuaian WordPress core
   ========================================================= */
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .75rem; color: #64748b; text-align: center; }
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	background: #fff;
	clip: auto;
	clip-path: none;
	color: #103080;
	display: block;
	font-weight: 700;
	height: auto;
	left: 6px;
	padding: 10px 16px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* =========================================================
   7. Area widget di footer
   ========================================================= */
.tk-footer-widgets { color: #cbd5e1; }
.tk-footer-widgets .widget { margin-bottom: 1.25rem; }
.tk-footer-widgets .widget-title {
	color: #fff;
	font-size: .8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: .5rem;
}
.tk-footer-widgets a { color: #e0c9a6; text-decoration: none; }
.tk-footer-widgets a:hover { color: #fff; text-decoration: underline; }
.tk-footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.tk-footer-widgets ul li { margin: .25rem 0; font-size: .8125rem; }
.tk-footer-widgets select,
.tk-footer-widgets input[type="text"],
.tk-footer-widgets input[type="search"] {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid #334155;
	border-radius: .75rem;
	background: #1e293b;
	color: #e2e8f0;
	font-size: .8125rem;
}

/* =========================================================
   8. Komentar
   ========================================================= */
.comments-area .comment-list { list-style: none; margin: 0; padding: 0; }
.comments-area .comment-list .children { list-style: none; margin: 0; padding-left: 1.25rem; }
.comments-area .comment-body {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: .875rem 1rem;
}
.comments-area .comment-meta { font-size: .6875rem; color: #64748b; margin-bottom: .35rem; }
.comments-area .comment-author img { border-radius: 9999px; margin-right: .5rem; vertical-align: middle; }
.comments-area .comment-content { font-size: .875rem; color: #334155; line-height: 1.7; }
.comments-area .reply a { font-size: .75rem; font-weight: 700; color: #b07050; }
.comments-area .comment-form p { margin-bottom: .75rem; }
.comments-area .comment-form label { display: block; font-size: .75rem; font-weight: 700; color: #334155; margin-bottom: .25rem; }
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid #e2e8f0;
	border-radius: .75rem;
	font-size: .875rem;
	color: #1e293b;
}
.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus { outline: none; border-color: #b07050; }
.comments-area .comment-form .form-submit { margin-top: .5rem; }
.comments-area .comment-form input[type="submit"] {
	padding: .65rem 1.25rem;
	border: 0;
	border-radius: .75rem;
	background: #103080;
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	cursor: pointer;
}
.comments-area .comment-form input[type="submit"]:hover { background: #0b2260; }
