/*
Theme Name: Ujala Lite
Description: A clean, fast, and accessible WordPress theme for blogs, magazines, and simple business websites. Built with system fonts and no front-end framework.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ujala-lite
Tags: blog, news, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
	--ujala-bg: #f6f7fb;
	--ujala-surface: #ffffff;
	--ujala-text: #182033;
	--ujala-muted: #687086;
	--ujala-border: #e3e6ef;
	--ujala-accent: #5b47e8;
	--ujala-accent-dark: #4230c8;
	--ujala-accent-soft: #eeebff;
	--ujala-warm: #ffcf66;
	--ujala-radius-sm: 10px;
	--ujala-radius: 18px;
	--ujala-shadow: 0 14px 40px rgba(25, 31, 50, 0.07);
	--ujala-shadow-hover: 0 20px 50px rgba(25, 31, 50, 0.12);
	--ujala-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ujala-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ujala-bg);
	color: var(--ujala-text);
	font-family: var(--ujala-font);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font-family: var(--ujala-font);
}

button,
input,
select,
textarea {
	font-size: 1rem;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: pointer;
}

a {
	color: var(--ujala-accent-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--ujala-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--ujala-warm);
	outline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--ujala-border);
}

.site-shell {
	width: min(1180px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.narrow-shell {
	width: min(780px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.site-main {
	min-height: 55vh;
}

/* Accessibility */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.8rem 1rem;
	clip: auto !important;
	background: var(--ujala-surface);
	color: var(--ujala-text);
	font-weight: 700;
	white-space: normal;
	box-shadow: var(--ujala-shadow);
}

/* Header and navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(227, 230, 239, 0.9);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 1.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 0.8rem;
}

.site-logo,
.custom-logo-link {
	flex: 0 0 auto;
}

.custom-logo {
	width: auto;
	max-height: 48px;
}

.site-identity {
	min-width: 0;
}

.site-title,
.site-description {
	margin: 0;
}

.site-title {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.site-title a {
	color: var(--ujala-text);
	text-decoration: none;
}

.site-description {
	max-width: 34ch;
	margin-top: 0.15rem;
	color: var(--ujala-muted);
	font-size: 0.76rem;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.55rem;
	padding: 0.65rem 0.8rem;
	background: transparent;
	color: var(--ujala-text);
	border: 1px solid var(--ujala-border);
	border-radius: var(--ujala-radius-sm);
	font-weight: 700;
}

.menu-toggle-icon {
	display: grid;
	width: 18px;
	gap: 3px;
}

.menu-toggle-icon span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 99px;
}

.main-navigation .menu,
.main-navigation ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.main-navigation > .menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 0.65rem 0.8rem;
	color: var(--ujala-text);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	border-radius: 8px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: var(--ujala-accent-soft);
	color: var(--ujala-accent-dark);
}

.main-navigation ul ul {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: 10;
	min-width: 210px;
	padding: 0.45rem;
	background: var(--ujala-surface);
	border: 1px solid var(--ujala-border);
	border-radius: 12px;
	box-shadow: var(--ujala-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-5px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 82% 14%, rgba(255, 207, 102, 0.48), transparent 22rem),
		radial-gradient(circle at 6% 92%, rgba(91, 71, 232, 0.14), transparent 25rem),
		var(--ujala-surface);
	border-bottom: 1px solid var(--ujala-border);
}

.hero::after {
	position: absolute;
	top: 22%;
	right: 8%;
	width: 128px;
	height: 128px;
	content: "";
	border: 24px solid rgba(91, 71, 232, 0.08);
	border-radius: 50%;
}

.hero-inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.eyebrow {
	margin: 0 0 0.9rem;
	color: var(--ujala-accent-dark);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 16ch;
	margin: 0;
	font-size: clamp(2.7rem, 8vw, 6.4rem);
	font-weight: 850;
	line-height: 0.98;
	letter-spacing: -0.06em;
}

.hero-description {
	max-width: 54ch;
	margin: 1.4rem 0 0;
	color: var(--ujala-muted);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* Content lists */
.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.content-layout.has-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
}

.posts-section,
.primary-content {
	min-width: 0;
}

.section-header,
.compact-page-header {
	margin-bottom: 1.8rem;
}

.section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
}

.section-header h2,
.compact-page-header h1,
.no-results h2 {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.compact-page-header .eyebrow {
	margin-bottom: 0.7rem;
}

.archive-description {
	max-width: 65ch;
	margin-top: 1rem;
	color: var(--ujala-muted);
}

.archive-description > :last-child {
	margin-bottom: 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.35rem;
}

.post-card {
	display: flex;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	flex-direction: column;
	background: var(--ujala-surface);
	border: 1px solid var(--ujala-border);
	border-radius: var(--ujala-radius);
	box-shadow: 0 8px 24px rgba(25, 31, 50, 0.04);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover {
	border-color: #d2cdec;
	box-shadow: var(--ujala-shadow-hover);
	transform: translateY(-4px);
}

.post-card-thumbnail {
	display: block;
	overflow: hidden;
	background: var(--ujala-accent-soft);
	aspect-ratio: 16 / 9;
}

.post-card-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.post-card:hover .post-card-thumbnail img {
	transform: scale(1.025);
}

.post-card-body {
	display: flex;
	height: 100%;
	padding: clamp(1.2rem, 3vw, 1.6rem);
	flex-direction: column;
}

.entry-categories {
	margin-bottom: 0.6rem;
	color: var(--ujala-accent-dark);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.entry-categories a {
	color: inherit;
	text-decoration: none;
}

.post-card .entry-title {
	margin: 0;
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.post-card .entry-title a {
	color: var(--ujala-text);
	text-decoration: none;
}

.post-card .entry-title a:hover {
	color: var(--ujala-accent-dark);
}

.entry-meta {
	display: flex;
	align-items: center;
	margin-top: 0.75rem;
	color: var(--ujala-muted);
	font-size: 0.78rem;
	line-height: 1.5;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.entry-meta a {
	color: inherit;
	font-weight: 650;
	text-decoration: none;
}

.entry-summary {
	margin-top: 0.85rem;
	color: var(--ujala-muted);
	font-size: 0.94rem;
}

.entry-summary p {
	margin: 0;
}

.read-more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1.15rem;
	color: var(--ujala-accent-dark);
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
	gap: 0.45rem;
}

.read-more span[aria-hidden="true"] {
	transition: transform 160ms ease;
}

.read-more:hover span[aria-hidden="true"] {
	transform: translateX(4px);
}

/* Single posts and pages */
.single-layout {
	padding-top: clamp(3rem, 7vw, 5.5rem);
}

.single-entry,
.page-entry {
	min-width: 0;
}

.single-header,
.page-entry > .page-header {
	margin-bottom: 2rem;
}

.single-header .entry-title,
.page-entry .entry-title {
	margin: 0;
	font-size: clamp(2.25rem, 6vw, 4.6rem);
	font-weight: 850;
	line-height: 1.03;
	letter-spacing: -0.055em;
}

.single-header .entry-meta {
	margin-top: 1.15rem;
	font-size: 0.9rem;
}

.single-thumbnail {
	overflow: hidden;
	margin: 0 0 2.2rem;
	background: var(--ujala-accent-soft);
	border-radius: var(--ujala-radius);
}

.single-thumbnail img {
	width: 100%;
}

.page-entry {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.entry-content {
	font-size: 1.075rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content pre,
.entry-content table,
.entry-content figure {
	margin-top: 0;
	margin-bottom: 1.55rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 2.25rem 0 0.8rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.entry-content h2 {
	font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.entry-content h3 {
	font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.entry-content blockquote {
	padding: 0.35rem 0 0.35rem 1.4rem;
	color: #343b50;
	font-size: 1.2rem;
	font-weight: 650;
	border-left: 4px solid var(--ujala-accent);
}

.entry-content blockquote cite {
	display: block;
	margin-top: 0.7rem;
	color: var(--ujala-muted);
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 500;
}

code,
kbd,
pre,
samp {
	font-family: var(--ujala-mono);
}

code,
kbd {
	padding: 0.15em 0.35em;
	background: var(--ujala-accent-soft);
	border-radius: 4px;
	font-size: 0.9em;
}

pre {
	max-width: 100%;
	overflow: auto;
	padding: 1.25rem;
	background: #171a27;
	color: #f6f7fb;
	border-radius: var(--ujala-radius-sm);
	font-size: 0.9rem;
}

pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.8rem;
	text-align: left;
	border: 1px solid var(--ujala-border);
}

th {
	background: var(--ujala-accent-soft);
}

.wp-caption,
.gallery-caption,
figcaption {
	margin-top: 0.55rem;
	color: var(--ujala-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.alignleft {
	float: left;
	margin: 0.4rem 1.4rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.4rem;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.no-sidebar .entry-content > .alignwide {
	width: min(1120px, calc(100vw - 2.5rem));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.no-sidebar .entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.5rem;
	margin-top: 2.5rem;
	color: var(--ujala-muted);
	font-size: 0.85rem;
	border-top: 1px solid var(--ujala-border);
	flex-wrap: wrap;
	gap: 1rem;
}

.tag-links span {
	font-weight: 800;
}

.page-links {
	display: flex;
	align-items: center;
	margin-top: 2rem;
	gap: 0.5rem;
}

.page-links a,
.page-links > span:not(:first-child) {
	display: grid;
	width: 2rem;
	height: 2rem;
	place-items: center;
	background: var(--ujala-surface);
	border: 1px solid var(--ujala-border);
	border-radius: 6px;
	text-decoration: none;
}

/* Widgets */
.widget-area {
	min-width: 0;
}

.widget {
	padding: 1.4rem;
	margin-bottom: 1.25rem;
	background: var(--ujala-surface);
	border: 1px solid var(--ujala-border);
	border-radius: var(--ujala-radius);
}

.widget-title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.widget ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.widget li + li {
	padding-top: 0.65rem;
	margin-top: 0.65rem;
	border-top: 1px solid var(--ujala-border);
}

.widget a {
	color: var(--ujala-text);
	font-size: 0.92rem;
	font-weight: 650;
	text-decoration: none;
}

.widget a:hover {
	color: var(--ujala-accent-dark);
}

.widget p:last-child,
.widget > :last-child {
	margin-bottom: 0;
}

/* Search, buttons, pagination */
.search-form {
	display: flex;
	width: 100%;
	gap: 0.55rem;
}

.search-form label {
	min-width: 0;
	flex: 1;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.72rem 0.85rem;
	background: var(--ujala-surface);
	color: var(--ujala-text);
	border: 1px solid #cfd3df;
	border-radius: 8px;
}

textarea {
	min-height: 150px;
	resize: vertical;
}

.search-submit,
input[type="submit"],
.button-link,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.05rem;
	background: var(--ujala-accent);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.search-submit:hover,
input[type="submit"]:hover,
.button-link:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--ujala-accent-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

.navigation.pagination,
.posts-navigation,
.post-navigation {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	align-items: stretch;
	gap: 0.55rem;
}

.pagination .nav-links {
	justify-content: center;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: grid;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.65rem;
	place-items: center;
	background: var(--ujala-surface);
	color: var(--ujala-text);
	border: 1px solid var(--ujala-border);
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 750;
	text-decoration: none;
}

.pagination .current,
.pagination a:hover {
	background: var(--ujala-accent);
	color: #ffffff;
	border-color: var(--ujala-accent);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1.1rem;
	background: var(--ujala-surface);
	color: var(--ujala-text);
	border: 1px solid var(--ujala-border);
	border-radius: var(--ujala-radius-sm);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--ujala-accent);
}

.nav-subtitle,
.nav-title {
	display: block;
}

.nav-subtitle {
	margin-bottom: 0.25rem;
	color: var(--ujala-muted);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nav-title {
	font-weight: 800;
	line-height: 1.3;
}

/* Comments */
.comments-area {
	padding-top: 2.5rem;
	margin-top: 3rem;
	border-top: 1px solid var(--ujala-border);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 1.5rem;
	font-size: 1.6rem;
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.comment-list,
.comment-list .children {
	padding: 0;
	margin: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 1.5rem;
}

.comment-body {
	padding: 1.25rem;
	margin-bottom: 1rem;
	background: var(--ujala-surface);
	border: 1px solid var(--ujala-border);
	border-radius: var(--ujala-radius-sm);
}

.bypostauthor > .comment-body {
	border-left: 4px solid var(--ujala-accent);
}

.comment-meta {
	margin-bottom: 0.8rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	margin: 0.35rem 0 0 3.65rem;
	font-size: 0.78rem;
}

.comment-content > :last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 0.75rem;
	font-size: 0.82rem;
	font-weight: 800;
}

.comment-respond {
	margin-top: 2.5rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.86rem;
	font-weight: 750;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

.comment-form-cookies-consent input {
	margin-top: 0.4rem;
}

.comment-form-cookies-consent label {
	font-weight: 500;
}

/* Empty and error states */
.no-results {
	padding: 2rem;
	background: var(--ujala-surface);
	border: 1px solid var(--ujala-border);
	border-radius: var(--ujala-radius);
}

.no-results .page-content {
	margin-top: 1rem;
}

.error-page {
	display: grid;
	min-height: 70vh;
	padding-block: 4rem;
	place-items: center;
	text-align: center;
}

.error-content {
	position: relative;
}

.error-code {
	margin: 0;
	color: var(--ujala-accent-soft);
	font-size: clamp(7rem, 24vw, 14rem);
	font-weight: 900;
	line-height: 0.75;
	letter-spacing: -0.08em;
}

.error-content h1 {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.8rem);
	line-height: 1.05;
	letter-spacing: -0.05em;
}

.error-content > p:not(.error-code, .eyebrow) {
	max-width: 52ch;
	margin: 1.2rem auto;
	color: var(--ujala-muted);
}

.error-content .search-form {
	max-width: 520px;
	margin: 1.5rem auto;
}

/* Footer */
.site-footer {
	background: #151827;
	color: #c5c9d5;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-block: 3.5rem;
	gap: 2rem;
}

.site-footer .widget {
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.site-footer .widget-title {
	color: #ffffff;
}

.site-footer .widget li + li {
	border-color: #2d3143;
}

.site-footer a {
	color: #e5e7ef;
}

.site-footer a:hover {
	color: #ffffff;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
	padding-block: 1.25rem;
	font-size: 0.82rem;
	border-top: 1px solid #2d3143;
	gap: 1.5rem;
}

.site-info {
	margin: 0;
}

.site-info a {
	font-weight: 750;
	text-decoration: none;
}

.footer-menu {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-menu a {
	font-weight: 650;
	text-decoration: none;
}

/* Core block refinements */
.wp-block-image img,
.wp-block-cover,
.wp-block-media-text,
.wp-block-group.has-background {
	border-radius: var(--ujala-radius-sm);
}

.wp-block-cover {
	overflow: hidden;
}

.wp-block-separator {
	border-color: var(--ujala-border);
}

.wp-block-pullquote {
	padding: 2rem 0;
	border-top: 3px solid var(--ujala-accent);
	border-bottom: 3px solid var(--ujala-accent);
}

.wp-block-quote.is-style-large {
	padding-left: 1.5rem;
}

.sticky {
	border-color: var(--ujala-warm);
}

/* Responsive layout */
@media (max-width: 860px) {
	.header-inner {
		min-height: 70px;
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		width: 100%;
		padding-bottom: 0.8rem;
	}

	.navigation-ready .main-navigation {
		display: none;
	}

	.navigation-ready .main-navigation.is-open {
		display: block;
	}

	.main-navigation > .menu {
		display: block;
		padding-top: 0.4rem;
		border-top: 1px solid var(--ujala-border);
	}

	.main-navigation a {
		padding: 0.75rem;
	}

	.main-navigation ul ul {
		position: static;
		min-width: 0;
		padding: 0 0 0 0.9rem;
		margin-left: 0.75rem;
		background: transparent;
		border: 0;
		border-left: 2px solid var(--ujala-border);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.content-layout.has-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.widget-area {
		padding-top: 2rem;
		border-top: 1px solid var(--ujala-border);
	}

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.site-shell,
	.narrow-shell {
		width: min(100% - 1.5rem, 1180px);
	}

	.admin-bar .site-header {
		top: 46px;
	}

	.site-description {
		display: none;
	}

	.menu-toggle-label {
		display: none;
	}

	.hero::after {
		right: -3rem;
		width: 100px;
		height: 100px;
	}

	.hero h1 {
		font-size: clamp(2.6rem, 15vw, 4.4rem);
	}

	.post-grid,
	.post-navigation .nav-links,
	.footer-widgets {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.single-header .entry-title,
	.page-entry .entry-title {
		font-size: clamp(2.15rem, 12vw, 3.4rem);
	}

	.entry-content {
		font-size: 1rem;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1.5rem;
	}

	.search-form {
		flex-direction: column;
	}

	.search-submit {
		width: 100%;
	}

	.comment-list .children {
		padding-left: 0.7rem;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Government updates portal â€” added in Ujala Lite 1.1.0. */
:root {
	--ujala-bg: #f2f6fc;
	--ujala-surface: #ffffff;
	--ujala-text: #10182b;
	--ujala-muted: #5f6b82;
	--ujala-border: #d5dfed;
	--ujala-accent: #2563eb;
	--ujala-accent-dark: #1749bf;
	--ujala-accent-soft: #eaf1ff;
	--ujala-warm: #f59e0b;
}

.portal-shell {
	width: min(1180px, calc(100% - 2rem));
	margin-inline: auto;
}

/* Alert and utility bar. */
.portal-alert-bar {
	background: linear-gradient(105deg, #1f5eea 0%, #1687c4 58%, #0b9c91 100%);
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
}

.portal-alert-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 1.5rem;
}

.portal-alert-news {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 0.7rem;
}

.portal-alert-news a {
	overflow: hidden;
	color: #ffffff;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-alert-news a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.portal-alert-label {
	flex: 0 0 auto;
	padding: 0.2rem 0.55rem;
	background: #f0182e;
	border-radius: 5px;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-transform: uppercase;
}

.portal-utility-menu {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none;
	gap: 1rem;
}

.portal-utility-menu a {
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 800;
	text-decoration: none;
}

.portal-utility-menu a:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Brand and primary navigation. */
.site-header {
	position: relative;
	top: auto;
	background: var(--ujala-surface);
	border: 0;
	backdrop-filter: none;
}

.admin-bar .site-header {
	top: auto;
}

.portal-brand-row {
	display: flex;
	align-items: center;
	min-height: 82px;
}

.portal-brand-row .site-branding {
	gap: 0.8rem;
}

.portal-brand-mark {
	display: grid;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	place-items: center;
	background: linear-gradient(145deg, #2864ef, #0ba49b);
	color: #ffffff;
	border-radius: 11px;
	box-shadow: 0 8px 18px rgba(24, 95, 202, 0.2);
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-decoration: none;
}

.portal-brand-mark:hover {
	color: #ffffff;
	transform: translateY(-1px);
}

.portal-brand-row .site-title {
	font-size: 1.16rem;
	font-weight: 850;
}

.portal-brand-row .site-description {
	font-size: 0.72rem;
	font-weight: 650;
}

.portal-nav-bar {
	background: linear-gradient(105deg, #2461e8 0%, #1889c0 58%, #0a9d90 100%);
}

.portal-nav-inner {
	display: flex;
	align-items: stretch;
	min-height: 44px;
	gap: 0.5rem;
}

.portal-nav-bar .main-navigation {
	min-width: 0;
	flex: 1;
}

.portal-nav-bar .main-navigation > .menu {
	min-height: 44px;
	gap: 0;
}

.portal-nav-bar .main-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	color: #ffffff;
	border-radius: 0;
	font-size: 0.86rem;
	font-weight: 800;
}

.portal-nav-bar .main-navigation a:hover,
.portal-nav-bar .main-navigation .current-menu-item > a,
.portal-nav-bar .main-navigation .current_page_item > a {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.portal-nav-bar .main-navigation ul ul {
	top: 100%;
	border-radius: 0 0 10px 10px;
}

.portal-nav-bar .main-navigation ul ul a {
	min-height: 38px;
	color: var(--ujala-text);
}

.portal-nav-bar .main-navigation ul ul a:hover {
	background: var(--ujala-accent-soft);
	color: var(--ujala-accent-dark);
}

.portal-login-link {
	display: inline-flex;
	align-items: center;
	align-self: center;
	justify-content: center;
	min-height: 34px;
	padding: 0.38rem 0.85rem;
	margin-left: auto;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.portal-login-link:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

/* Portal homepage. */
.portal-home {
	background:
		radial-gradient(circle at 80% 23%, rgba(37, 99, 235, 0.055), transparent 25rem),
		#f2f6fc;
}

.portal-home-inner {
	padding: 0 0 3.5rem;
}

.portal-search-section {
	padding-top: 14px;
}

.portal-search-card {
	width: min(760px, 100%);
	padding: 10px;
	margin-inline: auto;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--ujala-border);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(23, 49, 88, 0.06);
}

.portal-search-card .search-form {
	gap: 0.55rem;
}

.portal-search-card .search-field {
	min-height: 42px;
	padding: 0.65rem 0.8rem;
	background: #ffffff;
	border-color: #cbd8e9;
	border-radius: 7px;
	font-size: 0.9rem;
}

.portal-search-card .search-submit {
	min-height: 42px;
	padding-inline: 1rem;
	background: #2864ef;
	border-radius: 7px;
	font-size: 0.88rem;
}

.portal-quick-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 14px;
	margin-top: 16px;
	background: #ffffff;
	border: 1px solid var(--ujala-border);
	border-radius: 10px;
	box-shadow: 0 12px 34px rgba(23, 49, 88, 0.055);
	gap: 14px;
}

.portal-quick-link {
	display: grid;
	min-height: 84px;
	padding: 0.85rem;
	place-items: center;
	color: #ffffff;
	border-radius: 7px;
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.portal-quick-link:hover {
	color: #ffffff;
	filter: brightness(1.05);
	box-shadow: 0 9px 18px rgba(15, 23, 42, 0.13);
	transform: translateY(-2px);
}

.portal-quick-link.quick-jobs {
	background: #9bb400;
}

.portal-quick-link.quick-results {
	background: #2945dc;
}

.portal-quick-link.quick-admit {
	background: #ed3c00;
}

.portal-quick-link.quick-answer {
	background: #dd0000;
}

.portal-panel {
	margin-top: 20px;
	background: #ffffff;
	border: 1px solid var(--ujala-border);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(23, 49, 88, 0.07);
}

.portal-trending {
	padding: 20px 18px 18px;
	background: linear-gradient(110deg, #ffffff 52%, #edf4ff 100%);
}

.portal-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ujala-border);
	gap: 1rem;
}

.portal-section-kicker {
	margin: 0 0 0.25rem;
	color: #d90012;
	font-size: 0.69rem;
	font-weight: 900;
	letter-spacing: 0.035em;
	line-height: 1.3;
	text-transform: uppercase;
}

.portal-section-header h1 {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 1.75rem);
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.portal-section-header p:last-child {
	margin: 0.35rem 0 0;
	color: var(--ujala-muted);
	font-size: 0.88rem;
	font-weight: 650;
}

.portal-view-all,
.portal-column-header > a {
	flex: 0 0 auto;
	padding: 0.42rem 0.68rem;
	background: var(--ujala-accent-soft);
	color: #174fdd;
	border-radius: 8px;
	font-size: 0.76rem;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
}

.portal-view-all:hover,
.portal-column-header > a:hover {
	background: #dbe7ff;
	color: #123ca5;
}

.portal-trending-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 14px;
	gap: 12px;
}

.portal-trending-card {
	min-width: 0;
	min-height: 130px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid #d4e0ef;
	border-radius: 11px;
}

.portal-tag {
	display: inline-block;
	padding: 0.24rem 0.5rem;
	background: var(--ujala-accent-soft);
	color: #d4000f;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.portal-trending-card h2 {
	display: -webkit-box;
	overflow: hidden;
	margin: 0.65rem 0 0;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.portal-trending-card h2 a {
	color: var(--ujala-text);
	text-decoration: none;
}

.portal-trending-card h2 a:hover {
	color: var(--ujala-accent-dark);
}

.portal-card-date {
	margin: 0.55rem 0 0;
	color: var(--ujala-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

/* Three-column updates board. */
.portal-categories {
	padding: 14px;
}

.portal-category-heading {
	padding: 5px 3px 14px;
	border-bottom: 1px solid var(--ujala-border);
}

.portal-category-heading .portal-section-kicker {
	margin: 0;
}

.portal-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 12px;
	gap: 12px;
}

.portal-update-column {
	min-width: 0;
	overflow: hidden;
	background: #edf2f8;
	border-radius: 10px;
}

.portal-column-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
	padding: 0.6rem 0.75rem;
	background: #ffffff;
	border-bottom: 1px solid #cfdbe9;
	gap: 0.75rem;
}

.portal-column-header h2 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.portal-update-list {
	display: grid;
	padding: 9px;
	gap: 9px;
}

.portal-update-card {
	min-width: 0;
	padding: 11px;
	background: #ffffff;
	border: 1px solid #cbd7e6;
	border-radius: 9px;
	box-shadow: 0 4px 11px rgba(29, 52, 87, 0.035);
}

.portal-update-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem;
}

.portal-update-card h3 {
	margin: 0;
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.35;
}

.portal-update-card h3 a {
	color: var(--ujala-text);
	text-decoration: none;
}

.portal-update-card h3 a:hover {
	color: var(--ujala-accent-dark);
}

.portal-status-pill {
	flex: 0 0 auto;
	padding: 0.32rem 0.52rem;
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #fdba74;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 850;
	line-height: 1.1;
	white-space: nowrap;
}

.portal-update-meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-top: 0.75rem;
	gap: 0.7rem;
}

.portal-meta-date {
	display: flex;
	align-items: center;
	min-width: 0;
	color: #27344c;
	font-size: 0.69rem;
	font-weight: 650;
	line-height: 1.35;
	flex-wrap: wrap;
	gap: 0.22rem;
}

.portal-meta-icon {
	display: inline-block;
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	border: 2px solid #2563eb;
	border-radius: 2px;
}

.is-admit .portal-meta-icon {
	border-color: #08a54f;
}

.is-answer .portal-meta-icon {
	border-color: #ff6b0b;
}

.portal-action-button {
	flex: 0 0 auto;
	padding: 0.55rem 0.7rem;
	color: #ffffff;
	border-radius: 7px;
	font-size: 0.7rem;
	font-weight: 850;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.portal-action-button:hover {
	color: #ffffff;
	filter: brightness(0.94);
}

.portal-action-button.action-blue {
	background: #2864ef;
}

.portal-action-button.action-green {
	background: #13a150;
}

.portal-action-button.action-orange {
	background: #ff6b0b;
}

.portal-action-button.action-indigo {
	background: #2945dc;
}

.portal-empty-state {
	padding: 1rem;
	margin: 0;
	color: var(--ujala-muted);
	font-size: 0.82rem;
	text-align: center;
}

@media (max-width: 1000px) {
	.portal-nav-bar .main-navigation a {
		padding-inline: 0.66rem;
		font-size: 0.79rem;
	}

	.portal-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-update-column:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.portal-nav-inner {
		align-items: center;
		min-height: 50px;
		flex-wrap: wrap;
	}

	.portal-nav-bar .menu-toggle {
		display: inline-flex;
		order: 1;
		background: rgba(255, 255, 255, 0.12);
		color: #ffffff;
		border-color: rgba(255, 255, 255, 0.4);
	}

	.portal-login-link {
		order: 2;
	}

	.portal-nav-bar .main-navigation {
		width: 100%;
		padding-bottom: 0.55rem;
		order: 3;
		flex-basis: 100%;
	}

	.portal-nav-bar .main-navigation > .menu {
		min-height: 0;
		padding-top: 0.4rem;
		border-top-color: rgba(255, 255, 255, 0.25);
	}

	.portal-nav-bar .main-navigation a,
	.portal-nav-bar .main-navigation ul ul a {
		min-height: 40px;
		color: #ffffff;
		border-radius: 6px;
	}

	.portal-nav-bar .main-navigation ul ul {
		border-left-color: rgba(255, 255, 255, 0.32);
	}

	.portal-nav-bar .main-navigation ul ul a:hover {
		background: rgba(255, 255, 255, 0.12);
		color: #ffffff;
	}

	.portal-quick-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-trending-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-trending-card:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.portal-shell {
		width: min(100% - 1rem, 1180px);
	}

	.portal-utility-navigation {
		display: none;
	}

	.portal-alert-news {
		width: 100%;
	}

	.portal-brand-row {
		min-height: 74px;
	}

	.portal-brand-row .site-description {
		display: block;
		max-width: 30ch;
	}

	.portal-quick-links {
		padding: 9px;
		gap: 9px;
	}

	.portal-quick-link {
		min-height: 66px;
		font-size: 0.88rem;
	}

	.portal-trending,
	.portal-categories {
		padding: 13px 10px;
	}

	.portal-section-header {
		align-items: flex-start;
	}

	.portal-section-header p:last-child {
		font-size: 0.8rem;
	}

	.portal-trending-grid,
	.portal-category-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-trending-card:last-child,
	.portal-update-column:last-child {
		grid-column: auto;
	}
}

@media (max-width: 440px) {
	.portal-alert-label {
		display: none;
	}

	.portal-brand-mark {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.portal-brand-row .site-title {
		font-size: 1rem;
	}

	.portal-brand-row .site-description {
		font-size: 0.65rem;
	}

	.portal-login-link {
		padding-inline: 0.7rem;
	}

	.portal-update-meta {
		align-items: flex-start;
		flex-direction: column;
	}
}

