/* ==========================================================================
   Single Post Template — HostOffers Intelligence
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */
.ho-single-hero {
	position: relative;
	background: var(--ho-navy, #003366);
	background-size: cover;
	background-position: center;
	padding: 80px 20px 60px;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
}

.ho-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 26, 51, 0.6) 0%, rgba(0, 51, 102, 0.92) 100%);
}

.ho-single-hero__content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
	width: 100%;
}

.ho-single-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	text-decoration: none;
	margin-bottom: 20px;
	transition: color 0.2s;
}

.ho-single-hero__back:hover {
	color: #fff;
}

.ho-single-hero__badge {
	display: inline-block;
	background: var(--ho-green, #00A859);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 9999px;
	text-decoration: none;
	margin-bottom: 12px;
}

.ho-single-hero__date {
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	margin-bottom: 12px;
}

.ho-single-hero__title {
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 24px;
}

.ho-single-hero__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ho-single-hero__avatar {
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.ho-single-hero__author-name {
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.ho-single-hero__author-role {
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

/* --- Toolbar -------------------------------------------------------------- */
.ho-single-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 32px;
	margin-bottom: 48px;
	border-bottom: 1px solid #f1f5f9;
}

.ho-single-toolbar__left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ho-single-toolbar__comments {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s;
	cursor: pointer;
}

.ho-single-toolbar__comments:hover {
	color: var(--ho-navy, #003366);
}

.ho-single-toolbar__save {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 700;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: color 0.2s;
}

.ho-single-toolbar__save:hover {
	color: var(--ho-navy, #003366);
}

.ho-single-toolbar__share {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ho-single-toolbar__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.ho-single-toolbar__share-btn--twitter:hover {
	background: #1DA1F2;
	color: #fff;
}

.ho-single-toolbar__share-btn--facebook:hover {
	background: #4267B2;
	color: #fff;
}

.ho-single-toolbar__share-btn--linkedin:hover {
	background: #0077B5;
	color: #fff;
}

.ho-single-toolbar__copy:hover {
	background: #e2e8f0;
	color: #475569;
}

/* --- Article + Sidebar Layout --------------------------------------------- */
.ho-single-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 60px;
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

.ho-single-article {
	flex: 1;
	min-width: 0;
	max-width: 768px;
}

.ho-single-sidebar {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* --- Article Content ------------------------------------------------------ */
.ho-single-content h2 {
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 24px;
	font-weight: 700;
	color: var(--ho-navy, #003366);
	margin: 32px 0 16px;
	line-height: 1.3;
}

.ho-single-content h3 {
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 20px;
	font-weight: 700;
	color: var(--ho-navy, #003366);
	margin: 28px 0 12px;
}

.ho-single-content p {
	color: #374151;
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 16px;
}

.ho-single-content a {
	color: var(--ho-green, #00A859);
}

.ho-single-content blockquote {
	border-left: 4px solid var(--ho-green, #00A859);
	background: #f0fdf4;
	margin: 24px 0;
	padding: 16px 24px;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: #374151;
}

.ho-single-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin: 24px 0;
}

.ho-single-content th {
	background: var(--ho-navy, #003366);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 16px;
	text-align: left;
}

.ho-single-content td {
	padding: 12px 16px;
	font-size: 14px;
	border-top: 1px solid #f3f4f6;
}

.ho-single-content tr:nth-child(even) td {
	background: #f9fafb;
}

.ho-single-content img {
	border-radius: 16px;
	max-width: 100%;
	height: auto;
}

.ho-single-content ul,
.ho-single-content ol {
	margin: 0 0 16px 20px;
	color: #374151;
	line-height: 1.75;
}

/* --- Related Resources ---------------------------------------------------- */
.ho-single-related-resources {
	margin: 48px 0;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.ho-single-related-resources__title {
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--ho-navy, #003366);
	margin: 0 0 20px;
}

.ho-single-related-resources__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.ho-single-resource-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	text-decoration: none;
	transition: box-shadow 0.25s, transform 0.25s;
}

.ho-single-resource-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ho-single-resource-card h3 {
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 16px;
	font-weight: 700;
	color: var(--ho-navy, #003366);
	margin: 12px 0 4px;
}

.ho-single-resource-card p {
	color: #6b7280;
	font-size: 13px;
	margin: 0;
	line-height: 1.5;
}

/* --- Comments override ---------------------------------------------------- */
.ho-single-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.ho-single-comments .comment-respond {
	margin-top: 24px;
	border-radius: 24px;
}

.ho-single-comments textarea {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px;
	width: 100%;
	font-size: 14px;
	min-height: 120px;
}

.ho-single-comments .comment-form input[type="submit"],
.ho-single-comments .form-submit input[type="submit"] {
	background: var(--ho-navy, #003366);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.ho-single-comments .comment-form input[type="submit"]:hover,
.ho-single-comments .form-submit input[type="submit"]:hover {
	background: #002244;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.ho-single-sidebar__card {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #f3f4f6;
}

.ho-single-sidebar__heading {
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 16px;
	font-weight: 700;
	color: var(--ho-navy, #003366);
	margin: 0 0 12px;
}

/* --- Author Card ---------------------------------------------------------- */
.ho-single-sidebar__author {
	background: var(--ho-navy, #003366);
	text-align: center;
}

.ho-single-sidebar__author-img {
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.2);
	margin-bottom: 12px;
}

.ho-single-sidebar__author-name {
	color: #fff;
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.ho-single-sidebar__author-bio {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 14px;
}

.ho-single-sidebar__author-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ho-green, #00A859);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.ho-single-sidebar__author-link:hover {
	text-decoration: underline;
}

/* --- Newsletter ----------------------------------------------------------- */
.ho-single-sidebar__newsletter {
	background: var(--ho-green, #00A859);
}

.ho-single-sidebar__newsletter-title {
	color: #fff;
	font-family: var(--ho-heading-font, 'Montserrat', sans-serif);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.ho-single-sidebar__newsletter-text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 16px;
}

.ho-single-sidebar__newsletter-input {
	width: 100%;
	padding: 10px 14px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 10px;
}

.ho-single-sidebar__newsletter-btn {
	width: 100%;
	padding: 10px 20px;
	background: var(--ho-navy, #003366);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.ho-single-sidebar__newsletter-btn:hover {
	background: #002244;
}

/* --- Related Posts --------------------------------------------------------- */
.ho-single-sidebar__related-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ho-single-sidebar__related-list li a {
	display: block;
	color: var(--ho-navy, #003366);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 10px;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	transition: all 0.2s;
}

.ho-single-sidebar__related-list li a:hover {
	background: #f3f4f6;
	color: var(--ho-green, #00A859);
}

/* --- Categories ----------------------------------------------------------- */
.ho-single-sidebar__cat-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ho-single-sidebar__cat-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	border-radius: 10px;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	text-decoration: none;
	color: #374151;
	font-size: 14px;
	transition: all 0.2s;
}

.ho-single-sidebar__cat-pill:hover {
	background: #f3f4f6;
	color: var(--ho-navy, #003366);
}

.ho-single-sidebar__cat-count {
	background: #e5e7eb;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 9999px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.ho-single-layout {
		flex-direction: column;
		gap: 32px;
		padding: 36px 20px 48px;
	}

	.ho-single-article {
		max-width: 100%;
	}

	.ho-single-sidebar {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.ho-single-hero {
		padding: 60px 16px 40px;
		min-height: 280px;
	}

	.ho-single-hero__title {
		font-size: 26px;
	}

	.ho-single-hero__author {
		gap: 10px;
	}

	.ho-single-layout {
		gap: 28px;
		padding: 28px 16px 40px;
	}

	.ho-single-toolbar {
		flex-wrap: wrap;
		gap: 12px;
	}

	.ho-single-toolbar__save {
		display: none;
	}

	.ho-single-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ho-single-content blockquote {
		margin: 16px 0;
		padding: 12px 16px;
	}

	.ho-single-related-resources__grid {
		grid-template-columns: 1fr;
	}

	.ho-single-related-resources {
		margin: 32px 0;
		padding-top: 24px;
	}

	.ho-single-sidebar__card {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.ho-single-hero {
		padding: 48px 12px 32px;
		min-height: 240px;
	}

	.ho-single-hero__title {
		font-size: 22px;
	}

	.ho-single-layout {
		gap: 24px;
		padding: 24px 12px 32px;
	}

	.ho-single-toolbar__share-btn {
		width: 36px;
		height: 36px;
	}

	.ho-single-content h2 {
		font-size: 20px;
		margin: 24px 0 12px;
	}

	.ho-single-content h3 {
		font-size: 17px;
		margin: 20px 0 10px;
	}

	.ho-single-content p {
		font-size: 15px;
	}
}

.comment-respond .usr_re input, .comment-respond .email_re input, .comment-respond .site_re input {
	border-radius: 8px !important;
}

.comment-respond .usr_re:after, .comment-respond .email_re:after, .comment-respond .site_re:after{
	border-radius: 8px;
}