/* ==========================================================================
   Hindi Loan Pro – main stylesheet (mobile-first)
   Colours are CSS variables, overridden from Customizer → थीम के रंग.
   ========================================================================== */

/* ---- Fonts (self-hosted Noto Sans Devanagari, SIL OFL 1.1) -------------- */
@font-face {
	font-family: "Noto Sans Devanagari";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/noto-sans-devanagari-devanagari-400-normal.woff2") format("woff2");
	unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
	font-family: "Noto Sans Devanagari";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/noto-sans-devanagari-devanagari-600-normal.woff2") format("woff2");
	unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
	font-family: "Noto Sans Devanagari";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/noto-sans-devanagari-devanagari-700-normal.woff2") format("woff2");
	unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
	font-family: "Noto Sans Devanagari";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/noto-sans-devanagari-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Noto Sans Devanagari";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/noto-sans-devanagari-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Variables ---------------------------------------------------------- */
:root {
	--hlp-navy: #10243a;
	--hlp-primary: #1769aa;
	--hlp-green: #159b78;
	--hlp-bg: #f5f8fc;
	--hlp-text: #263445;
	--hlp-white: #ffffff;
	/* Darker green for text/buttons so white text keeps AA contrast. */
	--hlp-green-dark: #0e7a5e;
	--hlp-green-dark: color-mix(in srgb, var(--hlp-green) 74%, #000);
	--hlp-muted: #5b6b7d;
	--hlp-border: #dbe3ee;
	--hlp-radius: 10px;
	--hlp-shadow: 0 1px 2px rgba(16, 36, 58, 0.06), 0 4px 14px rgba(16, 36, 58, 0.05);
	--hlp-font: "Noto Sans Devanagari", "Mukta", "Hind", "Nirmala UI", "Kohinoor Devanagari", "Mangal", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--hlp-container: 1180px;
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--hlp-white);
	color: var(--hlp-text);
	font-family: var(--hlp-font);
	font-size: 1rem;
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--hlp-primary); text-underline-offset: 0.18em; }
a:hover { color: var(--hlp-navy); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	color: var(--hlp-navy);
	font-weight: 700;
	line-height: 1.45; /* Devanagari needs extra headroom for matras. */
}
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--hlp-border); margin: 2em 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---- Accessibility ------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%); white-space: nowrap;
}
.screen-reader-text:focus, .skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto; margin: 0; padding: 12px 18px;
	clip: auto; clip-path: none;
	background: var(--hlp-navy); color: #fff;
	border-radius: 6px; text-decoration: none; font-weight: 600;
}
:focus-visible {
	outline: 3px solid var(--hlp-primary);
	outline-offset: 2px;
}
.hlp-header :focus-visible, .hlp-footer :focus-visible, .hlp-hero :focus-visible {
	outline-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Layout ------------------------------------------------------------- */
.hlp-container { width: 100%; max-width: var(--hlp-container); margin-inline: auto; padding-inline: 16px; }
.hlp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px 40px; }
.hlp-main { min-width: 0; }
.hlp-sidebar { min-width: 0; }
@media (min-width: 960px) {
	.hlp-layout--right { grid-template-columns: minmax(0, 1fr) 320px; }
	.hlp-layout--left { grid-template-columns: 320px minmax(0, 1fr); }
	.hlp-layout--left .hlp-sidebar { order: -1; }
	.hlp-layout--none { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
}

/* ---- Header ------------------------------------------------------------- */
.hlp-header { background: var(--hlp-navy); color: #fff; position: relative; z-index: 50; }
.hlp-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px; }
.hlp-brand { display: flex; flex-direction: column; min-width: 0; }
.hlp-site-title { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.4; }
.hlp-site-title a { color: #fff; text-decoration: none; }
.hlp-tagline { margin: 0; font-size: 0.85rem; line-height: 1.4; color: #c9d6e6; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { max-height: 56px; width: auto; }

.hlp-nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 8px; cursor: pointer; color: #fff; }
.hlp-nav-toggle__bars, .hlp-nav-toggle__bars::before, .hlp-nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: #fff; content: ""; position: relative; transition: transform 0.2s, top 0.2s; }
.hlp-nav-toggle__bars::before { top: -7px; position: absolute; }
.hlp-nav-toggle__bars::after { top: 7px; position: absolute; }
.hlp-nav-toggle[aria-expanded="true"] .hlp-nav-toggle__bars { background: transparent; }
.hlp-nav-toggle[aria-expanded="true"] .hlp-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.hlp-nav-toggle[aria-expanded="true"] .hlp-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.hlp-nav { width: 100%; flex-basis: 100%; padding-bottom: 8px; }
.js .hlp-nav-toggle { display: inline-flex; justify-content: center; }
.js .hlp-nav { display: none; }
.js .hlp-nav.is-open { display: block; }
.hlp-menu, .hlp-menu ul { list-style: none; margin: 0; padding: 0; }
.hlp-menu a { display: block; padding: 10px 4px; color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hlp-menu a:hover, .hlp-menu .current-menu-item > a { color: #9fe3cf; }
.hlp-menu .sub-menu a { padding-left: 20px; font-weight: 400; }
.hlp-header-search { margin-top: 12px; }

@media (min-width: 900px) {
	.hlp-header__inner { flex-wrap: nowrap; }
	.js .hlp-nav-toggle { display: none; }
	.hlp-nav, .js .hlp-nav { display: flex !important; align-items: center; justify-content: flex-end; flex: 1 1 auto; width: auto; flex-basis: auto; gap: 16px; padding: 0; }
	.hlp-menu { display: flex; flex-wrap: wrap; gap: 2px 4px; }
	.hlp-menu a { border: 0; padding: 8px 10px; border-radius: 6px; font-size: 0.95rem; }
	.hlp-menu a:hover { background: rgba(255, 255, 255, 0.1); }
	.hlp-menu li { position: relative; }
	.hlp-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--hlp-navy); border-radius: 0 0 8px 8px; box-shadow: var(--hlp-shadow); display: none; z-index: 60; padding: 6px; }
	.hlp-menu li:hover > .sub-menu, .hlp-menu li:focus-within > .sub-menu { display: block; }
	.hlp-menu .sub-menu a { padding: 8px 12px; }
	.hlp-header-search { margin: 0; width: 230px; }
}

/* ---- Search form -------------------------------------------------------- */
.hlp-search { display: flex; width: 100%; max-width: 520px; }
.hlp-search__field { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 1px solid var(--hlp-border); border-right: 0; border-radius: 8px 0 0 8px; background: #fff; color: var(--hlp-text); }
.hlp-search__btn { padding: 10px 16px; border: 1px solid var(--hlp-green-dark); background: var(--hlp-green-dark); color: #fff; font-weight: 600; border-radius: 0 8px 8px 0; cursor: pointer; }
.hlp-search__btn:hover { filter: brightness(1.1); }

/* ---- Buttons ------------------------------------------------------------ */
.hlp-btn { display: inline-block; padding: 11px 22px; border-radius: 8px; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.5; }
.hlp-btn--primary { background: var(--hlp-primary); color: #fff; }
.hlp-btn--green { background: var(--hlp-green-dark); color: #fff; }
.hlp-btn:hover { color: #fff; filter: brightness(1.1); }

/* ---- Hero & featured article ------------------------------------------- */
.hlp-hero { background: linear-gradient(135deg, var(--hlp-navy) 0%, #17406a 100%); color: #fff; padding-block: 32px 40px; }
.hlp-hero__grid { display: grid; gap: 28px; align-items: center; }
.hlp-hero__title { color: #fff; font-size: 1.75rem; margin-bottom: 0.4em; }
.hlp-hero__desc { color: #dbe6f3; font-size: 1.05rem; max-width: 60ch; }
.hlp-hero__search { margin: 18px 0; }
.hlp-hero a { color: #fff; }
.hlp-featured { background: #fff; color: var(--hlp-text); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.hlp-featured a { color: var(--hlp-navy); }
.hlp-featured__media { display: block; aspect-ratio: 16 / 9; background: var(--hlp-bg); overflow: hidden; }
.hlp-featured__media .hlp-thumb { width: 100%; height: 100%; object-fit: cover; }
.hlp-featured__body { padding: 18px 20px 20px; }
.hlp-featured__label { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; color: var(--hlp-green-dark); }
.hlp-featured__title { font-size: 1.25rem; margin-bottom: 0.4em; }
.hlp-featured__title a { text-decoration: none; }
.hlp-featured__title a:hover { text-decoration: underline; }
.hlp-featured__excerpt { color: var(--hlp-text); }
@media (min-width: 900px) {
	.hlp-hero { padding-block: 48px 56px; }
	.hlp-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
	.hlp-hero__title { font-size: 2.2rem; }
}

/* ---- Sections ----------------------------------------------------------- */
.hlp-section { padding-block: 36px; }
.hlp-section--alt { background: var(--hlp-bg); }
.hlp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hlp-section-title { font-size: 1.35rem; margin: 0 0 0.9em; padding-left: 12px; border-left: 4px solid var(--hlp-green); }
.hlp-section-head .hlp-section-title { margin: 0; }
.hlp-section-desc { margin: -0.4em 0 1.2em; color: var(--hlp-muted); }
.hlp-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.hlp-more:hover { text-decoration: underline; }

/* ---- Grids & cards ------------------------------------------------------ */
.hlp-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .hlp-grid--2, .hlp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .hlp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hlp-layout .hlp-grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .hlp-layout .hlp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hlp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hlp-border); border-radius: var(--hlp-radius); overflow: hidden; box-shadow: var(--hlp-shadow); transition: box-shadow 0.2s, transform 0.2s; }
.hlp-card:hover { box-shadow: 0 6px 22px rgba(16, 36, 58, 0.12); transform: translateY(-2px); }
.hlp-card__media { display: block; aspect-ratio: 16 / 9; background: var(--hlp-bg); overflow: hidden; }
.hlp-thumb { width: 100%; height: 100%; object-fit: cover; }
.hlp-thumb--placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e4edf7, #d3e5f5); }
.hlp-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.hlp-card__title { font-size: 1.08rem; margin: 0; }
.hlp-card__title a { color: var(--hlp-navy); text-decoration: none; }
.hlp-card__title a:hover { color: var(--hlp-primary); text-decoration: underline; }
.hlp-card__excerpt { margin: 0; color: var(--hlp-muted); font-size: 0.95rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hlp-card .hlp-meta { margin-top: auto; }

.hlp-badge { align-self: flex-start; display: inline-block; padding: 1px 10px; border-radius: 999px; background: #e6f4ef; color: var(--hlp-green-dark); font-size: 0.8rem; font-weight: 700; text-decoration: none; line-height: 1.7; }
.hlp-badge:hover { background: var(--hlp-green-dark); color: #fff; }

.hlp-meta { margin: 0 0 0.8em; font-size: 0.85rem; color: var(--hlp-muted); line-height: 1.6; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.hlp-meta a { color: var(--hlp-primary); }
.hlp-meta--compact { margin: 0; }

/* Category cards */
.hlp-catcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .hlp-catcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hlp-catcard a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--hlp-border); border-top: 3px solid var(--hlp-primary); border-radius: var(--hlp-radius); text-decoration: none; box-shadow: var(--hlp-shadow); transition: box-shadow 0.2s, transform 0.2s; }
.hlp-catcard:nth-child(even) a { border-top-color: var(--hlp-green); }
.hlp-catcard a:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(16, 36, 58, 0.12); }
.hlp-catcard__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #e8f1f9; color: var(--hlp-primary); font-weight: 700; font-size: 1.1rem; }
.hlp-catcard:nth-child(even) .hlp-catcard__icon { background: #e6f4ef; color: var(--hlp-green-dark); }
.hlp-catcard__name { font-weight: 700; color: var(--hlp-navy); line-height: 1.5; }
.hlp-catcard__count { font-size: 0.82rem; color: var(--hlp-muted); }

/* Popular list */
.hlp-popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: pop; }
@media (min-width: 720px) { .hlp-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hlp-compact { display: flex; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--hlp-border); border-radius: var(--hlp-radius); counter-increment: pop; position: relative; }
.hlp-compact::before { content: counter(pop); position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--hlp-green-dark); color: #fff; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hlp-compact__media { flex: 0 0 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--hlp-bg); display: block; }
.hlp-compact__title { font-size: 1rem; margin: 0 0 2px; }
.hlp-compact__title a { color: var(--hlp-navy); text-decoration: none; }
.hlp-compact__title a:hover { text-decoration: underline; }

/* Archive head */
.hlp-archive-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--hlp-border); }
.hlp-archive-head--author { display: flex; gap: 20px; align-items: center; }
.hlp-archive-head__title { font-size: 1.7rem; margin-bottom: 0.3em; }
.hlp-archive-head__desc { color: var(--hlp-muted); }
.hlp-archive-head__desc > :last-child { margin-bottom: 0; }
.hlp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.hlp-chips a { display: inline-block; padding: 4px 14px; border: 1px solid var(--hlp-border); border-radius: 999px; background: #fff; text-decoration: none; font-size: 0.9rem; }
.hlp-chips a:hover { border-color: var(--hlp-primary); }
.hlp-none, .hlp-404 { padding-block: 24px; }
.hlp-404 { padding-block: 48px; }

/* Pagination */
.hlp-pagination { margin-top: 32px; }
.hlp-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.hlp-pagination a, .hlp-pagination span { display: inline-block; min-width: 40px; padding: 7px 12px; text-align: center; border: 1px solid var(--hlp-border); border-radius: 8px; text-decoration: none; background: #fff; }
.hlp-pagination .current { background: var(--hlp-primary); border-color: var(--hlp-primary); color: #fff; font-weight: 700; }
.hlp-pagination a:hover { border-color: var(--hlp-primary); }

/* ---- Breadcrumbs -------------------------------------------------------- */
.hlp-breadcrumbs { margin-bottom: 14px; font-size: 0.88rem; color: var(--hlp-muted); }
.hlp-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; }
.hlp-breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: #8a97a8; }
.hlp-breadcrumbs a { text-decoration: none; }
.hlp-breadcrumbs a:hover { text-decoration: underline; }

/* ---- Article ------------------------------------------------------------ */
.hlp-entry-header { margin-bottom: 18px; }
.hlp-entry-title { font-size: 1.7rem; margin: 8px 0 10px; line-height: 1.5; }
@media (min-width: 720px) { .hlp-entry-title { font-size: 2.05rem; } }
.hlp-entry-image { margin: 0 0 24px; }
.hlp-entry-image .hlp-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--hlp-radius); }
.hlp-entry-image figcaption { font-size: 0.85rem; color: var(--hlp-muted); margin-top: 6px; }

.hlp-content { font-size: 1.0625rem; line-height: 1.9; max-width: 100%; }
.hlp-content > * { max-width: 100%; }
.hlp-content h2 { font-size: 1.5rem; margin-top: 1.8em; padding-bottom: 0.3em; border-bottom: 2px solid var(--hlp-bg); scroll-margin-top: 20px; }
.hlp-content h3 { font-size: 1.22rem; margin-top: 1.5em; scroll-margin-top: 20px; }
.hlp-content h4 { font-size: 1.08rem; margin-top: 1.3em; }
.hlp-content li { margin-bottom: 0.4em; }
.hlp-content ol { padding-left: 1.6em; }
.hlp-content ol > li::marker { color: var(--hlp-primary); font-weight: 700; }
.hlp-content ul > li::marker { color: var(--hlp-green); }
.hlp-content img { border-radius: 8px; }
.hlp-content figure { margin: 1.5em 0; }
.hlp-content figcaption { font-size: 0.85rem; color: var(--hlp-muted); text-align: center; margin-top: 6px; }
.hlp-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--hlp-primary); background: var(--hlp-bg); border-radius: 0 8px 8px 0; }
.hlp-content blockquote p:last-child { margin-bottom: 0; }
.hlp-content code { background: var(--hlp-bg); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }
.hlp-content pre { background: var(--hlp-navy); color: #e8eef6; padding: 14px 18px; border-radius: 8px; overflow-x: auto; }
.hlp-content .alignwide { max-width: 100%; }
.hlp-content .alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.hlp-content .alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.hlp-content .aligncenter { margin-inline: auto; }
.hlp-content::after { content: ""; display: block; clear: both; }

/* Responsive tables */
.hlp-table-wrap { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--hlp-border); border-radius: 8px; }
.hlp-table-wrap:focus-visible { outline-offset: -2px; }
.hlp-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.97rem; line-height: 1.6; }
.hlp-content th, .hlp-content td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hlp-border); vertical-align: top; }
.hlp-content thead th, .hlp-content tr:first-child th { background: var(--hlp-navy); color: #fff; border-bottom: 0; }
.hlp-content tbody tr:nth-child(even) td { background: #f8fafd; }
.hlp-content .wp-block-table { margin: 0; }
.hlp-content .wp-block-table table { border: 0; }

/* FAQ (core/details) */
.hlp-content details { border: 1px solid var(--hlp-border); border-radius: 8px; padding: 0 16px; margin: 0 0 10px; background: #fff; }
.hlp-content details > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--hlp-navy); list-style-position: outside; }
.hlp-content details[open] { background: var(--hlp-bg); }
.hlp-content details[open] > summary { border-bottom: 1px solid var(--hlp-border); margin-bottom: 10px; }

/* Callout boxes (block styles for core/group) */
.hlp-content .wp-block-group[class*="is-style-hlp-"] { padding: 14px 18px; border-radius: 8px; border-left: 5px solid var(--hlp-primary); background: #eaf3fb; margin: 1.5em 0; }
.hlp-content .wp-block-group[class*="is-style-hlp-"] > :last-child { margin-bottom: 0; }
.hlp-content .wp-block-group[class*="is-style-hlp-"] > :first-child { margin-top: 0; }
.hlp-content .is-style-hlp-warning { background: #fff6e5; border-left-color: #c77700; }
.hlp-content .is-style-hlp-tip { background: #e6f4ef; border-left-color: var(--hlp-green); }
.hlp-content .is-style-hlp-pros { background: #e6f4ef; border-left-color: var(--hlp-green); }
.hlp-content .is-style-hlp-cons { background: #fdecec; border-left-color: #c0392b; }
.hlp-content .is-style-hlp-pros h3, .hlp-content .is-style-hlp-cons h3 { margin-top: 0; }
.hlp-content .is-style-hlp-pros li::marker { content: "✓  "; color: var(--hlp-green-dark); }
.hlp-content .is-style-hlp-cons li::marker { content: "✗  "; color: #c0392b; }
.hlp-content .is-style-hlp-pros ul, .hlp-content .is-style-hlp-cons ul { padding-left: 1.6em; }

/* Table of contents */
.hlp-toc { margin: 0 0 1.8em; border: 1px solid var(--hlp-border); border-left: 5px solid var(--hlp-primary); border-radius: 8px; background: var(--hlp-bg); padding: 0 18px; }
.hlp-toc > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--hlp-navy); font-size: 1.05rem; }
.hlp-toc[open] > summary { border-bottom: 1px solid var(--hlp-border); margin-bottom: 8px; }
.hlp-toc ol { margin: 0 0 12px; padding-left: 1.4em; }
.hlp-toc li { margin-bottom: 0.2em; line-height: 1.7; }
.hlp-toc__sub { margin: 2px 0 6px !important; list-style: lower-alpha; }
.hlp-toc a { text-decoration: none; }
.hlp-toc a:hover { text-decoration: underline; }

/* Footer boxes under the article */
.hlp-entry-footer { margin-top: 32px; display: grid; gap: 18px; }
.hlp-tags { margin: 0; font-size: 0.92rem; }
.hlp-tags span { font-weight: 700; margin-right: 6px; }
.hlp-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 1px 12px; border: 1px solid var(--hlp-border); border-radius: 999px; text-decoration: none; background: #fff; }
.hlp-box { padding: 16px 20px; border-radius: var(--hlp-radius); border: 1px solid var(--hlp-border); background: var(--hlp-bg); }
.hlp-box__title { font-size: 1.02rem; margin-bottom: 0.4em; }
.hlp-box p { margin: 0 0 0.5em; font-size: 0.95rem; line-height: 1.75; }
.hlp-box p:last-child { margin-bottom: 0; }
.hlp-box--disclaimer { background: #fff8ec; border-color: #f0dcae; }

.hlp-author { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--hlp-border); border-radius: var(--hlp-radius); background: #fff; box-shadow: var(--hlp-shadow); }
.hlp-author__avatar img { border-radius: 50%; }
.hlp-author__label { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--hlp-green-dark); }
.hlp-author__name { font-size: 1.15rem; margin: 0 0 4px; }
.hlp-author__name a { text-decoration: none; color: var(--hlp-navy); }
.hlp-author__bio { margin: 0 0 6px; font-size: 0.95rem; }
.hlp-author__link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

.post-navigation { margin: 32px 0; }
.post-navigation .nav-links { display: grid; gap: 12px; }
@media (min-width: 720px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--hlp-border); border-radius: var(--hlp-radius); text-decoration: none; background: #fff; }
.post-navigation a:hover { border-color: var(--hlp-primary); }
.post-navigation .nav-next { text-align: right; }
.hlp-postnav__label { display: block; font-size: 0.8rem; color: var(--hlp-muted); font-weight: 700; }
.hlp-postnav__title { display: block; color: var(--hlp-navy); font-weight: 600; line-height: 1.55; }

.hlp-related { margin-top: 36px; }
.hlp-page-links { margin: 1.5em 0; font-weight: 600; }
.hlp-page-links a, .hlp-page-links > span { display: inline-block; padding: 2px 10px; border: 1px solid var(--hlp-border); border-radius: 6px; margin-right: 4px; text-decoration: none; }

/* Comments */
.hlp-comments { margin-top: 40px; }
.hlp-comment-list { list-style: none; padding: 0; }
.hlp-comment-list .comment-body { padding: 14px 0; border-bottom: 1px solid var(--hlp-border); }
.hlp-comment-list .children { list-style: none; padding-left: 20px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--hlp-border); border-radius: 8px; }
.comment-form .submit { padding: 11px 22px; border: 0; border-radius: 8px; background: var(--hlp-primary); color: #fff; font-weight: 600; cursor: pointer; }

/* ---- Sidebar & widgets -------------------------------------------------- */
.hlp-sidebar { display: grid; gap: 22px; align-content: start; }
.hlp-widget { padding: 18px 20px; border: 1px solid var(--hlp-border); border-radius: var(--hlp-radius); background: #fff; box-shadow: var(--hlp-shadow); }
.hlp-widget__title { font-size: 1.05rem; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--hlp-green); }
.hlp-widget ul { list-style: none; padding: 0; margin: 0; }
.hlp-widget li { padding: 7px 0; border-bottom: 1px dashed var(--hlp-border); line-height: 1.6; }
.hlp-widget li:last-child { border-bottom: 0; }
.hlp-widget a { text-decoration: none; }
.hlp-widget a:hover { text-decoration: underline; }
.hlp-count { color: var(--hlp-muted); font-size: 0.85rem; }

/* ---- Ads (labelled, with reserved space to limit layout shift) ---------- */
.hlp-ad { margin: 20px 0; text-align: center; }
.hlp-ad__label { display: block; font-size: 0.72rem; color: var(--hlp-muted); letter-spacing: 0.02em; margin-bottom: 4px; }
.hlp-ad__slot { display: flex; justify-content: center; align-items: center; overflow: hidden; background: #fafbfd; border: 1px dashed var(--hlp-border); max-width: 100%; }
.hlp-ad--below_header .hlp-ad__slot, .hlp-ad--footer .hlp-ad__slot { min-height: 100px; }
.hlp-ad--home .hlp-ad__slot, .hlp-ad--content .hlp-ad__slot, .hlp-ad--before_related .hlp-ad__slot, .hlp-ad--sidebar .hlp-ad__slot { min-height: 280px; }
.hlp-ad--sidebar { margin-top: 0; }

/* ---- EMI calculator ----------------------------------------------------- */
.hlp-emi { display: grid; gap: 24px; padding: 22px; background: #fff; border: 1px solid var(--hlp-border); border-radius: 14px; box-shadow: var(--hlp-shadow); }
.hlp-content .hlp-emi { margin: 1.8em 0; }
@media (min-width: 800px) { .hlp-emi { grid-template-columns: 1fr 1fr; align-items: start; } .hlp-emi__disclaimer { grid-column: 1 / -1; } }
.hlp-field { margin-bottom: 16px; }
.hlp-field label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--hlp-navy); }
.hlp-field input, .hlp-field select { width: 100%; padding: 11px 14px; border: 1px solid #b9c6d6; border-radius: 8px; background: #fff; font-size: 1.05rem; }
.hlp-field input[aria-invalid="true"] { border-color: #c0392b; background: #fff8f7; }
.hlp-field__row { display: flex; gap: 10px; }
.hlp-field__row input { flex: 1 1 auto; min-width: 0; }
.hlp-field__row select { flex: 0 0 110px; width: 110px; }
.hlp-field__error { margin: 4px 0 0; color: #b02a1c; font-size: 0.88rem; line-height: 1.5; }
.hlp-emi__hint { margin: 12px 0 0; font-size: 0.85rem; color: var(--hlp-muted); }
.hlp-emi__result { min-height: 250px; }
.hlp-emi__stats { margin: 0; display: grid; gap: 10px; }
.hlp-emi__stat { padding: 12px 16px; border: 1px solid var(--hlp-border); border-radius: 10px; background: var(--hlp-bg); }
.hlp-emi__stat dt { margin: 0; font-size: 0.88rem; color: var(--hlp-muted); }
.hlp-emi__stat dd { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--hlp-navy); line-height: 1.5; }
.hlp-emi__stat--main { background: var(--hlp-navy); border-color: var(--hlp-navy); }
.hlp-emi__stat--main dt { color: #c9d6e6; }
.hlp-emi__stat--main dd { color: #fff; font-size: 1.7rem; }
.hlp-emi__bar { height: 12px; margin-top: 16px; border-radius: 999px; background: var(--hlp-green); overflow: hidden; }
.hlp-emi__bar-principal { display: block; height: 100%; width: 0; background: var(--hlp-primary); transition: width 0.3s; }
.hlp-emi__legend { margin: 8px 0 0; font-size: 0.85rem; color: var(--hlp-muted); }
.hlp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.hlp-dot--principal { background: var(--hlp-primary); }
.hlp-dot--interest { background: var(--hlp-green); }
.hlp-emi__disclaimer { margin: 0; padding-top: 14px; border-top: 1px solid var(--hlp-border); font-size: 0.85rem; color: var(--hlp-muted); line-height: 1.7; }

/* Newsletter */
.hlp-newsletter { padding: 26px; border-radius: 14px; background: var(--hlp-navy); color: #fff; }
.hlp-newsletter .hlp-section-title { color: #fff; }
.hlp-newsletter input[type="email"], .hlp-newsletter input[type="text"] { padding: 10px 12px; border-radius: 8px; border: 0; max-width: 100%; }
.hlp-newsletter input[type="submit"], .hlp-newsletter button { padding: 10px 18px; border: 0; border-radius: 8px; background: var(--hlp-green-dark); color: #fff; font-weight: 600; cursor: pointer; }

/* ---- Footer ------------------------------------------------------------- */
.hlp-footer { margin-top: 40px; padding-block: 36px 28px; background: var(--hlp-navy); color: #c9d6e6; font-size: 0.93rem; }
.hlp-footer a { color: #fff; }
.hlp-footer__widgets { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 720px) { .hlp-footer__widgets { grid-template-columns: repeat(3, 1fr); } }
.hlp-footer .hlp-widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.hlp-footer .hlp-widget__title { color: #fff; border-bottom-color: var(--hlp-green); }
.hlp-footer .hlp-widget li { border-bottom-color: rgba(255, 255, 255, 0.15); }
.hlp-footer__disclaimer { padding: 14px 18px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.05); line-height: 1.75; }
.hlp-footer-menu, .hlp-footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 18px 0; }
.hlp-footer__copy { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.88rem; }

/* WordPress core classes */
.alignleft { float: left; margin-right: 1.2em; }
.alignright { float: right; margin-left: 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--hlp-muted); }
.sticky .hlp-card__title::before { content: "★ "; color: var(--hlp-green-dark); }

@media print {
	.hlp-header, .hlp-footer, .hlp-sidebar, .hlp-ad, .hlp-related, .post-navigation, .hlp-comments, .hlp-nav-toggle { display: none !important; }
	.hlp-layout { display: block; }
	body { color: #000; }
}
