/**
 * Frontend styling for Pondok Core shortcodes and Elementor widgets.
 */

/* Hero Slider */
.pondok-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: var(--pondok-dark, #065f2c);
}

.pondok-slide {
	display: none;
	position: relative;
	min-height: 440px;
	background-size: cover;
	background-position: center;
	align-items: center;
	padding: 64px 84px;
}

.pondok-slide.is-active {
	display: flex;
}

.pondok-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 95, 44, 0.88) 0%, rgba(6, 95, 44, 0.55) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.pondok-slide-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	color: #ffffff;
}

.pondok-slide-title {
	margin: 0 0 12px;
	color: #ffffff;
	font-size: clamp(26px, 3.4vw, 42px);
	line-height: 1.2;
	font-weight: 800;
}

.pondok-slide-sub {
	margin: 0 0 22px;
	color: #ecfdf5;
	font-size: 16px;
	line-height: 1.6;
}

.pondok-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	line-height: 1 !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 10px !important;
	background: rgba(6, 95, 44, 0.55);
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pondok-slider-nav:hover {
	background: var(--pondok-primary, #03ac0e);
}

.pondok-slider-prev { left: 16px; }
.pondok-slider-next { right: 16px; }

.pondok-slider-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 8px;
}

.pondok-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.pondok-slider-dot.is-active {
	background: var(--pondok-accent, #f59e0b);
	width: 24px;
	border-radius: 999px;
}

/* Statistik 5-Kolom */
.pondok-stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	margin-top: 16px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(6, 95, 44, 0.14);
}

.pondok-stat-item {
	background: var(--pondok-primary, #03ac0e);
	color: #ffffff;
	padding: 20px 16px;
	text-align: center;
}

.pondok-stat-num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.pondok-stat-lbl {
	margin-top: 6px;
	font-size: 13px;
	color: #ecfdf5;
}

/* Sambutan Pimpinan */
.pondok-sambutan-box {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: center;
	background: #ffffff;
	padding: 28px;
	border-radius: 14px;
	border: 1px solid var(--pondok-border, #e2e8f0);
}

.pondok-sambutan-photo img {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	display: block;
}

.pondok-section-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--pondok-primary, #03ac0e);
	background: var(--pondok-soft, #f0fdf4);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.pondok-sambutan-body h3 {
	margin: 0 0 12px;
	color: var(--pondok-text, #1e293b);
	font-size: 24px;
}

.pondok-sambutan-author strong {
	display: block;
	color: var(--pondok-dark, #065f2c);
	font-size: 16px;
}

.pondok-sambutan-author span {
	font-size: 13px;
	color: var(--pondok-muted, #64748b);
}

/* Pengumuman & Agenda */
.pondok-list-stack,
.pondok-agenda-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pondok-list-item {
	background: #ffffff;
	border: 1px solid var(--pondok-border, #e2e8f0);
	border-left: 4px solid var(--pondok-primary, #03ac0e);
	border-radius: 8px;
	padding: 14px 18px;
}

.pondok-list-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--pondok-muted, #64748b);
	margin-bottom: 4px;
}

.pondok-list-item h4,
.pondok-agenda-info h4 {
	margin: 0 0 4px;
	font-size: 15px;
	color: var(--pondok-text, #1e293b);
}

.pondok-list-item p,
.pondok-agenda-meta {
	margin: 0;
	font-size: 13.5px;
	color: var(--pondok-muted, #64748b);
}

.pondok-agenda-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid var(--pondok-border, #e2e8f0);
	border-radius: 8px;
	padding: 12px 16px;
}

.pondok-agenda-date {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--pondok-primary, #03ac0e);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}

.pondok-agenda-date strong { font-size: 20px; }
.pondok-agenda-date span { font-size: 11px; text-transform: uppercase; }

/* Card Grids & Section Header */
.pondok-sec-header {
	margin-bottom: 22px;
}

.pondok-sec-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.pondok-sec-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--pondok-accent, #f59e0b);
	margin-bottom: 4px;
}

.pondok-sec-title {
	margin: 0;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 800;
	color: var(--pondok-dark, #065f2c);
	line-height: 1.2;
}

.pondok-sec-line {
	width: 140px;
	height: 3px;
	margin-top: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--pondok-accent, #f59e0b) 0%, var(--pondok-primary, #03ac0e) 65%, transparent 100%);
}

.pondok-sec-subrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 10px;
}

.pondok-sec-subtitle {
	margin: 0;
	font-size: 14.5px;
	color: var(--pondok-muted, #64748b);
	max-width: 680px;
}

.pondok-view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 8px;
	background: var(--pondok-primary, #03ac0e);
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.pondok-view-all-btn:hover {
	background: var(--pondok-dark, #065f2c);
}

.pondok-carousel-arrows {
	display: inline-flex;
	gap: 6px;
}

.pondok-car-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	line-height: 1 !important;
	border: 1px solid var(--pondok-border, #e2e8f0);
	border-radius: 8px !important;
	background: #ffffff;
	color: var(--pondok-dark, #065f2c);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.pondok-car-btn:hover {
	background: var(--pondok-primary, #03ac0e);
	border-color: var(--pondok-primary, #03ac0e);
	color: #ffffff;
}

.pondok-carousel-wrap {
	min-width: 0;
	width: 100%;
}

.pondok-carousel-track {
	display: flex;
	gap: 22px;
	width: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 6px;
}

.pondok-carousel-track::-webkit-scrollbar {
	display: none;
}

.pondok-carousel-track.pondok-cols-1 > .pondok-card { flex: 0 0 100%; min-width: 0; }
.pondok-carousel-track.pondok-cols-2 > .pondok-card { flex: 0 0 calc((100% - 22px) / 2); min-width: 0; }
.pondok-carousel-track.pondok-cols-3 > .pondok-card { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.pondok-carousel-track.pondok-cols-4 > .pondok-card { flex: 0 0 calc((100% - 66px) / 4); min-width: 0; }

.pondok-carousel-track .pondok-card {
	scroll-snap-align: start;
}

.pondok-grid {
	display: grid;
	gap: 22px;
}

.pondok-cols-1 { grid-template-columns: 1fr; }
.pondok-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pondok-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pondok-cols-4 { grid-template-columns: repeat(4, 1fr); }

.pondok-card {
	background: #ffffff;
	border: 1px solid var(--pondok-border, #e2e8f0);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pondok-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pondok-card-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.pondok-card.is-portrait .pondok-card-img img {
	aspect-ratio: 1 / 1;
	object-position: top center;
}

.pondok-card-body {
	padding: 16px 18px;
}

.pondok-card.is-portrait .pondok-card-body {
	text-align: center;
}

.pondok-card-body h4 {
	margin: 6px 0;
	font-size: 16px;
	color: var(--pondok-text, #1e293b);
}

.pondok-card-body h4 a {
	color: inherit;
	text-decoration: none;
}

.pondok-card-body p {
	margin: 0;
	font-size: 13.5px;
	color: var(--pondok-muted, #64748b);
	line-height: 1.55;
}

.pondok-card-sub {
	font-weight: 600;
	color: var(--pondok-primary, #03ac0e) !important;
	margin-bottom: 6px !important;
}

.pondok-card-date {
	font-size: 12px;
	color: var(--pondok-muted, #64748b);
}

.pondok-pill-green,
.pondok-pill-accent {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.pondok-pill-green {
	background: var(--pondok-soft, #f0fdf4);
	color: var(--pondok-dark, #065f2c);
}

.pondok-pill-accent {
	background: #fef3c7;
	color: #92400e;
}

.pondok-quote {
	font-style: italic;
	margin-bottom: 12px !important;
	color: var(--pondok-text, #1e293b) !important;
}

@media (max-width: 960px) {
	.pondok-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.pondok-cols-3 { grid-template-columns: repeat(2, 1fr); }
	.pondok-carousel-track.pondok-cols-4 > .pondok-card,
	.pondok-carousel-track.pondok-cols-3 > .pondok-card {
		flex: 0 0 calc((100% - 22px) / 2);
	}
	.pondok-sambutan-box { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.pondok-cols-4,
	.pondok-cols-3,
	.pondok-cols-2 {
		grid-template-columns: 1fr;
	}
	.pondok-carousel-track.pondok-cols-4 > .pondok-card,
	.pondok-carousel-track.pondok-cols-3 > .pondok-card,
	.pondok-carousel-track.pondok-cols-2 > .pondok-card {
		flex: 0 0 100%;
	}

	.pondok-slide {
		min-height: 340px;
		padding: 32px 24px;
	}
}

/* CTA PSB with Pop-out Santri Putra */
.pondok-cta-psb-wrap {
	padding-top: 56px;
}

.pondok-cta-psb-box {
	display: grid;
	grid-template-columns: 1.35fr 0.85fr;
	align-items: end;
	gap: 24px;
	background: linear-gradient(135deg, #ffffff 0%, var(--pondok-soft, #f0fdf4) 100%);
	border: 1px solid var(--pondok-border, #e2e8f0);
	border-radius: 16px;
	padding: 0 44px;
	overflow: visible;
	box-shadow: 0 8px 28px rgba(6, 95, 44, 0.08);
}

.pondok-cta-psb-content {
	padding: 42px 0;
}

.pondok-cta-psb-desc {
	margin: 14px 0 22px;
	color: var(--pondok-muted, #64748b);
	font-size: 15px;
	line-height: 1.65;
	max-width: 560px;
}

.pondok-cta-psb-media {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	margin-top: -68px;
}

.pondok-cta-psb-media img {
	max-height: 360px;
	width: auto;
	display: block;
	filter: drop-shadow(0 12px 20px rgba(6, 95, 44, 0.14));
}

@media (max-width: 820px) {
	.pondok-cta-psb-wrap {
		padding-top: 20px;
	}
	.pondok-cta-psb-box {
		grid-template-columns: 1fr;
		padding: 28px 24px 0;
		text-align: center;
	}
	.pondok-cta-psb-content {
		padding: 0 0 18px;
	}
	.pondok-cta-psb-content .pondok-sec-line {
		margin-left: auto;
		margin-right: auto;
	}
	.pondok-cta-psb-media {
		margin-top: 0;
		justify-content: center;
	}
	.pondok-cta-psb-media img {
		max-height: 260px;
	}
}
