/* ==========================================================================
   Panha Home Discovery Hub Styles
   Prefix: panha-
   Theme Palette: Theravāda Gold (#c59b27), Forest Green (#173a2f), Warm Cream (#fbf9f5)
   ========================================================================== */

.panha-home-discovery {
	--panha-heading-font: var(--serif, var(--cbd-font-serif, "Lora", Cambria, "Times New Roman", serif));
	--panha-body-font: var(--sans, var(--cbd-font-sans, "Be Vietnam Pro", system-ui, -apple-system, sans-serif));
	padding: 48px 0;
	background: #fbf9f5;
	border-top: 1px solid #dcd2bf;
	border-bottom: 1px solid #dcd2bf;
	font-family: var(--panha-body-font);
	color: #173a2f;
}

.panha-discovery-header {
	text-align: center;
	margin-bottom: 36px;
	padding: 0 16px;
}

.panha-discovery-kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c59b27;
	margin-bottom: 8px;
}

.panha-discovery-main-title {
	font-family: var(--panha-heading-font);
	font-size: 2.2rem;
	font-weight: 700;
	color: #173a2f;
	margin: 0 0 12px;
	line-height: 1.25;
}

.panha-discovery-sub-desc {
	max-width: 680px;
	margin: 0 auto;
	font-size: 0.95rem;
	color: #55625c;
	line-height: 1.6;
}

/* Section Containers */
.panha-section {
	margin-bottom: 40px;
	padding: 0 16px;
}

.panha-section:last-child {
	margin-bottom: 0;
}

.panha-section-title-wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 2px solid #e7dfcf;
	padding-bottom: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.panha-section-title-left h3 {
	font-family: var(--panha-heading-font);
	font-size: 1.5rem;
	font-weight: 600;
	margin: 6px 0 4px;
	color: #173a2f;
}

.panha-section-title-left p {
	font-size: 0.88rem;
	color: #6c7872;
	margin: 0;
}

.panha-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
}

.panha-badge-gold {
	background: #fdf5e2;
	color: #9c6e00;
	border: 1px solid #edd59b;
}

.panha-badge-forest {
	background: #eef5f2;
	color: #1b5340;
	border: 1px solid #c2dbd1;
}

.panha-badge-ochre {
	background: #fcf1e8;
	color: #a45318;
	border: 1px solid #eed0be;
}

.panha-link-archive {
	font-size: 0.85rem;
	font-weight: 600;
	color: #c59b27;
	text-decoration: none;
	transition: color 0.2s;
}

.panha-link-archive:hover {
	color: #9c6e00;
	text-decoration: underline;
}

/* ==========================================================================
   Ceremony Cards (Section 1) - Whole Poster Contain & Balanced 2-Column
   ========================================================================== */
.panha-ceremony-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.panha-card-ceremony {
	display: grid;
	grid-template-columns: 44% 56%;
	background: #ffffff;
	border: 1px solid #dcd2bf;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(23, 58, 47, 0.06);
	transition: transform 0.2s, box-shadow 0.2s;
}

.panha-card-ceremony:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(23, 58, 47, 0.12);
}

.panha-card-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5eedf;
	overflow: hidden;
	min-height: 320px;
	max-height: 480px;
	text-decoration: none;
}

.panha-card-media img {
	width: 100%;
	height: 100%;
	max-height: 480px;
	object-fit: contain;
	display: block;
	transition: transform 0.25s ease;
}

.panha-card-media:hover img {
	transform: scale(1.015);
}

.panha-status-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	z-index: 2;
}

.status-upcoming {
	background: #173a2f;
	color: #f7d57f;
	border: 1px solid #c59b27;
}

.status-ongoing {
	background: #1e7e34;
	color: #ffffff;
}

.status-ended {
	background: #6c757d;
	color: #ffffff;
}

.status-canceled, .status-postponed {
	background: #c82333;
	color: #ffffff;
}

.panha-card-content {
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.panha-card-meta-line {
	margin-bottom: 10px;
}

.panha-meta-time {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #c59b27;
}

.panha-meta-time svg {
	flex-shrink: 0;
	color: #c59b27;
}

.panha-card-title {
	font-family: var(--panha-heading-font);
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 12px;
}

.panha-card-title a {
	color: #173a2f;
	text-decoration: none;
	transition: color 0.2s;
}

.panha-card-title a:hover {
	color: #c59b27;
}

.panha-card-location {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.88rem;
	color: #55625c;
	margin-bottom: 12px;
	line-height: 1.45;
}

.panha-card-location svg {
	flex-shrink: 0;
	margin-top: 3px;
	color: #c59b27;
}

.panha-card-excerpt {
	font-size: 0.92rem;
	color: #55625c;
	line-height: 1.6;
	margin-bottom: 20px;
}

.panha-card-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-top: 16px;
	border-top: 1px solid #f0ebe1;
}

.panha-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.panha-btn-primary {
	background: #173a2f;
	color: #ffffff;
	border: 1px solid #173a2f;
}

.panha-btn-primary:hover {
	background: #235444;
	color: #ffffff;
	transform: translateY(-1px);
}

.panha-btn-secondary {
	background: #fdf5e2;
	color: #9c6e00;
	border: 1px solid #edd59b;
}

.panha-btn-secondary:hover {
	background: #f7e6c0;
	color: #7a5600;
}

.panha-btn-outline {
	background: transparent;
	color: #173a2f;
	border: 1px solid #173a2f;
}

.panha-btn-outline:hover {
	background: #173a2f;
	color: #ffffff;
}

/* ==========================================================================
   Activity Cards (Section 2)
   ========================================================================== */
.panha-activity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.panha-card-activity {
	background: #ffffff;
	border: 1px solid #dcd2bf;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.panha-card-activity:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(23, 58, 47, 0.08);
}

.panha-card-content-sub {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.panha-meta-date {
	font-size: 0.78rem;
	color: #7b8882;
	margin-bottom: 8px;
}

.panha-card-title-sub {
	font-family: var(--panha-heading-font);
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.4;
}

.panha-card-title-sub a {
	color: #173a2f;
	text-decoration: none;
	transition: color 0.2s;
}

.panha-card-title-sub a:hover {
	color: #c59b27;
}

.panha-card-content-sub p {
	font-size: 0.88rem;
	color: #55625c;
	margin: 0 0 16px;
	flex-grow: 1;
	line-height: 1.55;
}

.panha-text-link {
	font-size: 0.82rem;
	font-weight: 600;
	color: #c59b27;
	text-decoration: none;
	align-self: flex-start;
}

.panha-text-link:hover {
	color: #9c6e00;
	text-decoration: underline;
}

/* ==========================================================================
   Study Grid & Classes (Section 3)
   ========================================================================== */
.panha-study-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.panha-study-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #dcd2bf;
	border-radius: 8px;
	padding: 14px;
}

.panha-study-date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: #173a2f;
	color: #ffffff;
	border-radius: 6px;
	flex-shrink: 0;
}

.panha-study-day {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

.panha-study-month {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #e2b43b;
}

.panha-study-info h4 {
	font-family: var(--panha-heading-font);
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 4px;
}

.panha-study-info h4 a {
	color: #173a2f;
	text-decoration: none;
}

.panha-study-timing {
	font-size: 0.8rem;
	color: #63716a;
	margin: 0;
}

.panha-study-classes-cbd {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.panha-study-item-cbd {
	background: #ffffff;
	border: 1px solid #dcd2bf;
	border-left: 4px solid #c59b27;
	border-radius: 6px;
	padding: 14px 18px;
}

.panha-study-item-cbd strong {
	display: block;
	font-size: 0.98rem;
	color: #173a2f;
	margin-bottom: 4px;
}

.panha-study-item-cbd span {
	font-size: 0.82rem;
	color: #63716a;
	line-height: 1.45;
}

.panha-study-classes-hp {
	background: #ffffff;
	border: 1px solid #dcd2bf;
	border-radius: 10px;
	padding: 24px 28px;
	text-align: center;
}

.panha-study-summary-hp {
	max-width: 620px;
	margin: 0 auto;
}

.panha-study-lead {
	font-size: 0.95rem;
	color: #55625c;
	line-height: 1.6;
	margin: 0 0 16px;
}

.panha-empty-box {
	background: #ffffff;
	border: 1px dashed #dcd2bf;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
}

.panha-empty-box p {
	margin: 0;
	font-size: 0.88rem;
	color: #7b8882;
}

/* ==========================================================================
   Responsive Viewports (1366, 1920, 768, 375, 390)
   ========================================================================== */
@media (max-width: 820px) {
	.panha-home-discovery {
		padding: 32px 0;
	}
	.panha-discovery-main-title {
		font-size: 1.7rem;
	}
	.panha-section-title-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.panha-card-ceremony {
		grid-template-columns: 1fr;
	}
	.panha-card-media {
		min-height: 0;
		max-height: 420px;
		width: 100%;
	}
	.panha-card-media img {
		max-height: 420px;
		object-fit: contain;
	}
	.panha-card-content {
		padding: 20px 16px;
	}
	.panha-card-title {
		font-size: 1.25rem;
	}
}

@media (max-width: 480px) {
	.panha-discovery-main-title {
		font-size: 1.45rem;
	}
	.panha-section-title-left h3 {
		font-size: 1.3rem;
	}
	.panha-card-media {
		max-height: 340px;
	}
	.panha-card-media img {
		max-height: 340px;
	}
}
