:root {
	--hgs-purple: #6a1b9a;
	--hgs-purple-dark: #4d126f;
	--hgs-yellow: #fefd03;
	--hgs-ink: #1d1d1f;
	--hgs-muted: #686868;
	--hgs-surface: #ffffff;
	--hgs-border: #e7e2eb;
}

.hgs-cta {
	align-items: center;
	background-color: var(--hgs-purple);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 12px;
	color: #fff;
	display: flex;
	overflow: hidden;
	padding: clamp(28px, 5vw, 72px);
	width: 100%;
}

.hgs-cta__content { max-width: 760px; width: 100%; }
.hgs-align-center .hgs-cta__content { margin-inline: auto; text-align: center; }
.hgs-align-right .hgs-cta__content { margin-left: auto; text-align: right; }
.hgs-cta__title { color: inherit; margin: 0 0 12px; }
.hgs-cta__description { line-height: 1.7; }
.hgs-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hgs-align-center .hgs-cta__buttons { justify-content: center; }
.hgs-align-right .hgs-cta__buttons { justify-content: flex-end; }

.hgs-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 6px;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 11px 22px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.hgs-button:hover { transform: translateY(-1px); }
.hgs-button--primary { background: var(--hgs-yellow); color: #24162c; }
.hgs-button--primary:hover { background: #fff; color: var(--hgs-purple-dark); }
.hgs-button--secondary { border-color: currentColor; color: inherit; }
.hgs-button--secondary:hover { background: #fff; color: var(--hgs-purple-dark); }

.hgs-post-grid,
.hgs-gallery {
	display: grid;
	gap: clamp(16px, 2.2vw, 30px);
	grid-template-columns: repeat(var(--hgs-columns, 3), minmax(0, 1fr));
}
.hgs-post-card {
	background: var(--hgs-surface);
	border: 1px solid var(--hgs-border);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(40, 16, 52, .06);
	overflow: hidden;
}
.hgs-post-card__image { aspect-ratio: 16 / 10; display: block; overflow: hidden; }
.hgs-post-card__image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.hgs-post-card:hover .hgs-post-card__image img { transform: scale(1.035); }
.hgs-post-card__body { padding: 22px; }
.hgs-post-card__meta { color: var(--hgs-muted); font-size: .82rem; margin: 0 0 8px; }
.hgs-post-card__title { font-size: 1.22rem; margin: 0 0 10px; }
.hgs-post-card__title a { color: var(--hgs-ink); text-decoration: none; }
.hgs-post-card__excerpt { color: var(--hgs-muted); line-height: 1.65; }
.hgs-read-more { color: var(--hgs-purple); display: inline-block; font-weight: 700; margin-top: 16px; }

.hgs-gallery__item { aspect-ratio: 1 / 1; border-radius: 8px; display: block; overflow: hidden; }
.hgs-gallery__item img { height: 100%; object-fit: cover; transition: transform .3s ease; width: 100%; }
.hgs-gallery__item:hover img { transform: scale(1.04); }

.hgs-form__title { margin-bottom: 8px; }
.hgs-form__description { line-height: 1.6; margin-bottom: 16px; }
.hgs-form__fields { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; }
.hgs-form__field { display: grid; flex: 1 1 220px; gap: 7px; }
.hgs-form input,
.hgs-form textarea,
.hgs-form select {
	background: #fff;
	border: 1px solid #cfc6d5;
	border-radius: 5px;
	color: var(--hgs-ink);
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}
.hgs-form textarea { min-height: 130px; resize: vertical; }
.hgs-form-message { border-radius: 5px; margin-bottom: 14px; padding: 12px 14px; }
.hgs-form-message--success,
.hgs-form-message--saved { background: #e9f8ed; color: #175a27; }
.hgs-form-message--invalid,
.hgs-form-message--rate { background: #fff2f2; color: #8a2020; }
.hgs-honeypot { height: 0 !important; left: -9999px !important; overflow: hidden !important; position: absolute !important; width: 0 !important; }

.hgs-menu { align-items: center; display: flex; justify-content: flex-end; position: relative; width: 100%; }
.hgs-menu__list { align-items: center; display: flex; gap: clamp(16px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.hgs-menu__list li { margin: 0; position: relative; }
.hgs-menu__list a { color: inherit; display: block; font-weight: 600; padding: 8px 0; text-decoration: none; }
.hgs-menu__list .sub-menu { background: #fff; border-radius: 7px; box-shadow: 0 12px 32px rgba(0,0,0,.14); display: none; left: 0; list-style: none; min-width: 220px; padding: 10px 16px; position: absolute; top: 100%; z-index: 999; }
.hgs-menu__list li:hover > .sub-menu,
.hgs-menu__list li:focus-within > .sub-menu { display: block; }
.hgs-menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; padding: 8px; }
.hgs-menu-toggle > span:not(.screen-reader-text) { background: currentColor; display: block; height: 2px; margin: 5px 0; width: 26px; }

.hgs-highlighted-heading span { color: var(--hgs-purple); position: relative; }
.hgs-highlighted-heading span::after { background: var(--hgs-yellow); bottom: -.12em; content: ""; height: .18em; left: 0; position: absolute; transform: rotate(-1deg); width: 100%; z-index: -1; }
.hgs-countdown { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.hgs-countdown > span { color: var(--hgs-purple); font-size: clamp(1.6rem, 4vw, 3.2rem); font-weight: 800; }
.hgs-countdown > small { color: var(--hgs-muted); margin-right: 10px; }
.hgs-countdown__expired { display: none; width: 100%; }
.hgs-countdown.is-expired > span,
.hgs-countdown.is-expired > small { display: none; }
.hgs-countdown.is-expired .hgs-countdown__expired { display: block; }

.hgs-dynamic-title a { color: inherit; text-decoration: none; }
.hgs-featured-image { display: block; }
.hgs-featured-image img { border-radius: 10px; height: auto; width: 100%; }
.hgs-post-content { line-height: 1.75; }
.hgs-post-info,
.hgs-share { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hgs-post-info { color: var(--hgs-muted); font-size: .9rem; }
.hgs-share a { background: var(--hgs-purple); border-radius: 4px; color: #fff; padding: 8px 12px; text-decoration: none; }

.hgs-slides { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hgs-slide { background-color: #eee; background-position: center; background-size: cover; border-radius: 8px; min-height: 180px; padding: 24px; }
.hgs-testimonials { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hgs-testimonials blockquote { background: #fff; border-left: 4px solid var(--hgs-purple); box-shadow: 0 8px 24px rgba(0,0,0,.06); margin: 0; padding: 24px; }
.hgs-testimonial__image { border-radius: 50%; height: 64px; object-fit: cover; width: 64px; }
.hgs-testimonials cite { display: grid; font-style: normal; font-weight: 700; gap: 2px; }
.hgs-testimonials cite small { color: var(--hgs-muted); font-weight: 400; }
.hgs-editor-note { background: #fff8d9; border: 1px solid #e6ca56; padding: 16px; }
.hgs-template-main { margin-inline: auto; max-width: 1200px; padding: clamp(28px, 5vw, 64px) 20px; }

@media (max-width: 767px) {
	.hgs-post-grid,
	.hgs-gallery { grid-template-columns: 1fr; }
	.hgs-cta { border-radius: 8px; }
	.hgs-cta__buttons { align-items: stretch; flex-direction: column; }
	.hgs-cta__buttons .hgs-button { width: 100%; }
	.hgs-menu-toggle { display: block; }
	.hgs-menu__list { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14); display: none; left: 0; padding: 16px; position: absolute; right: 0; top: 100%; z-index: 999; }
	.hgs-menu.is-open .hgs-menu__list { display: block; }
	.hgs-menu__list .sub-menu { box-shadow: none; display: block; padding: 4px 0 4px 16px; position: static; }
}
