/**
 * Child Pondok base frontend tokens and utility styles.
 * Kept lightweight to avoid interfering with Astra & Elementor layouts.
 */

.pondok-bg-soft {
	background-color: var(--pondok-soft);
}

.pondok-bg-dark {
	background-color: var(--pondok-dark);
	color: #ffffff;
}

.pondok-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem;
	border-radius: 0.5rem;
	background-color: var(--pondok-primary);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.pondok-btn-primary:hover,
.pondok-btn-primary:focus {
	background-color: var(--pondok-dark);
	color: #ffffff;
}

.pondok-btn-accent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem;
	border-radius: 0.5rem;
	background-color: var(--pondok-accent);
	color: #111827;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.pondok-btn-accent:hover,
.pondok-btn-accent:focus {
	background-color: var(--pondok-accent-hover);
	color: #111827;
}

/* Top Bar */
.pondok-topbar {
	background-color: var(--pondok-dark);
	color: #ecfdf5;
	font-size: 13px;
	padding: 7px 0;
}

.pondok-topbar-inner {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.pondok-topbar-contacts {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.pondok-topbar-contacts a,
.pondok-topbar-contacts span {
	color: #ecfdf5;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pondok-topbar-contacts .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: var(--pondok-accent);
}

.pondok-topbar-social {
	display: flex;
	gap: 6px;
}

.pondok-topbar-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--pondok-accent, #f59e0b);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pondok-topbar-social a:hover {
	background: var(--pondok-accent, #f59e0b);
	color: #111827;
}

/* Astra Header Enhancement */
.site-header .main-header-bar {
	border-bottom: 2px solid var(--pondok-soft-alt);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.ast-primary-header-bar .site-branding {
	padding-top: 6px;
	padding-bottom: 6px;
}

.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
	padding-top: 6px;
	padding-bottom: 6px;
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
	color: var(--pondok-primary) !important;
}

.pondok-nav-cta-item {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
}

.pondok-nav-cta-btn {
	display: inline-block !important;
	padding: 8px 16px !important;
	line-height: 1.2 !important;
	border-radius: 999px;
	background-color: var(--pondok-primary) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-decoration: none !important;
}

.pondok-nav-cta-btn:hover {
	background-color: var(--pondok-dark) !important;
	color: #ffffff !important;
}

/* Modern Rounded Submenu Dropdown */
.ast-desktop .main-header-menu .sub-menu {
	background: #ffffff !important;
	border: 1px solid var(--pondok-border) !important;
	border-top: 3px solid var(--pondok-primary) !important;
	border-radius: 12px !important;
	padding: 8px !important;
	box-shadow: 0 14px 34px rgba(6, 95, 44, 0.14) !important;
	min-width: 230px;
}

.ast-desktop .main-header-menu .sub-menu .menu-item > .menu-link {
	color: var(--pondok-text) !important;
	background: transparent !important;
	border-radius: 8px !important;
	padding: 9px 14px !important;
	font-size: 13.5px;
	font-weight: 500;
	border-bottom: 0 !important;
	transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.ast-desktop .main-header-menu .sub-menu .menu-item > .menu-link:hover,
.ast-desktop .main-header-menu .sub-menu .current-menu-item > .menu-link {
	background: var(--pondok-soft) !important;
	color: var(--pondok-primary) !important;
	font-weight: 600;
	padding-left: 18px !important;
}

/* Custom 3-Column Pondok Footer */
.pondok-site-footer {
	background-color: var(--pondok-dark);
	color: #e2e8f0;
	padding-top: 48px;
	font-size: 14px;
}

.pondok-site-footer .pondok-footer-grid {
	display: grid !important;
	grid-template-columns: 1.2fr 1fr 1.1fr !important;
	gap: 32px;
	padding-bottom: 36px;
}

.pondok-footer-logo {
	max-height: 54px;
	width: auto;
	margin-bottom: 12px;
	background: #ffffff;
	padding: 6px 10px;
	border-radius: 6px;
}

.pondok-footer-title,
.pondok-footer-heading {
	color: #ffffff;
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
}

.pondok-footer-col p {
	margin: 0 0 8px;
	color: #d1fae5;
	line-height: 1.6;
}

.pondok-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pondok-footer-links a {
	color: #d1fae5;
	text-decoration: none;
}

.pondok-footer-links a:hover {
	color: var(--pondok-accent);
}

.pondok-footer-bottom {
	background-color: rgba(0, 0, 0, 0.22);
	padding: 14px 0;
	text-align: center;
	font-size: 13px;
	color: #a7f3d0;
}

.pondok-footer-bottom p {
	margin: 0;
}

@media (max-width: 768px) {
	.pondok-topbar.is-hide-mobile {
		display: none !important;
	}

	.elementor-section.elementor-section-boxed > .elementor-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.ast-mobile-header-content,
	.ast-builder-menu-mobile .main-header-menu {
		background-color: #ffffff !important;
		border-top: 2px solid var(--pondok-primary);
		box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
	}

	.pondok-site-footer .pondok-footer-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Single Post, Archive & Sidebar Modern Rounded Style */
.single-post .ast-article-single,
.blog .ast-article-post .ast-blog-featured-section,
.archive .ast-article-post,
.single-post .comments-area,
.widget-area.secondary .widget {
	border-radius: 14px !important;
	border: 1px solid var(--pondok-border) !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.single-post .ast-single-post-order .post-thumb-img-content img {
	border-radius: 10px;
}

.single-post .entry-title {
	color: var(--pondok-dark);
}

.single-post .entry-meta,
.single-post .entry-meta a {
	color: var(--pondok-primary);
	font-weight: 500;
}

.widget-area.secondary .widget-title,
.widget-area.secondary .wp-block-heading {
	font-size: 17px;
	font-weight: 700;
	color: var(--pondok-dark);
	border-left: 4px solid var(--pondok-primary);
	padding-left: 10px;
	margin-bottom: 14px;
}

.widget-area.secondary .wp-block-search__input,
.widget-area.secondary .search-field,
.single-post .comments-area input[type="text"],
.single-post .comments-area input[type="email"],
.single-post .comments-area input[type="url"],
.single-post .comments-area textarea {
	border-radius: 8px !important;
	border: 1px solid #cbd5e1 !important;
}

.widget-area.secondary .wp-block-search__button,
.widget-area.secondary .search-submit,
.single-post .comments-area .submit,
.ast-pagination .page-numbers.current {
	background-color: var(--pondok-primary) !important;
	border-color: var(--pondok-primary) !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	font-weight: 600;
}

.widget-area.secondary .wp-block-search__button:hover,
.widget-area.secondary .search-submit:hover,
.single-post .comments-area .submit:hover {
	background-color: var(--pondok-dark) !important;
	border-color: var(--pondok-dark) !important;
}

.single-post .post-navigation .nav-links a {
	display: inline-block;
	background: #ffffff;
	border: 1px solid var(--pondok-border);
	border-radius: 10px;
	padding: 12px 16px;
	color: var(--pondok-dark);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.single-post .post-navigation .nav-links a:hover {
	border-color: var(--pondok-primary);
	background: var(--pondok-soft);
}

/* Pondok CPT Archive Pages */
.pondok-archive-main {
	width: 100%;
	padding: 32px 0 60px;
}

.pondok-archive-inner {
	width: 100%;
	display: block;
}

.pondok-archive-banner {
	background: linear-gradient(135deg, var(--pondok-dark) 0%, var(--pondok-primary) 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 36px 36px;
	margin-bottom: 30px;
	box-shadow: 0 8px 24px rgba(6, 95, 44, 0.14);
}

.pondok-archive-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fef08a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.pondok-archive-banner h1 {
	margin: 0 0 8px;
	color: #ffffff;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
}

.pondok-archive-banner p {
	margin: 0;
	color: #ecfdf5;
	max-width: 660px;
}

.pondok-archive-pagination {
	margin-top: 32px;
	text-align: center;
}

.pondok-archive-pagination .nav-links {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pondok-archive-pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid var(--pondok-border);
	color: var(--pondok-dark);
	text-decoration: none;
	font-weight: 600;
}

.pondok-archive-pagination .page-numbers.current {
	background: var(--pondok-primary);
	border-color: var(--pondok-primary);
	color: #ffffff;
}

/* Floating WhatsApp Button (Bottom Left) */
.pondok-wa-float {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 9998;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.pondok-wa-float:hover,
.pondok-wa-float:focus {
	background: #1ebe5b;
	color: #ffffff !important;
	transform: translateY(-3px) scale(1.04);
}

@media print {
	.pondok-wa-float {
		display: none !important;
	}
}
