/* ==================================================================
 * Bharti Hive — main.css
 * Phase 1: design tokens, reset, base typography only.
 * Section-level styles (header, marquee, homepage grids, single-job)
 * are added in their respective phases.
 * ================================================================== */

/* ------------------------------------------------------------------
 * 1. Design Tokens (CSS Custom Properties)
 * ------------------------------------------------------------------ */
:root {
	/* Brand palette */
	--primary:       #0a3a8a;   /* Royal Navy */
	--primary-dark:  #072a66;
	--accent:        #f59e0b;   /* Honey Gold */
	--accent-dark:   #d97706;
	--dark:          #0a1933;   /* Deep Navy */
	--alert:         #dc2626;   /* Alert Red */
	--cream:         #fffbf0;   /* Honeycomb Cream */

	/* Surfaces */
	--bg:            #f4f4f4;
	--card:          #ffffff;
	--text:          #222222;
	--muted:         #666666;
	--border:        #cfcfcf;

	/* Section accent colours (for color-coded section headers in dense mockup) */
	--maroon:        #7a1f1f;
	--green:         #1b5e20;
	--teal:          #00695c;
	--purple:        #4a148c;
	--orange:        #e65100;

	/* Status badges */
	--new:           #d32f2f;
	--hot:           #ff6f00;
	--hl:            #fff9c4;   /* Highlight yellow */

	/* Typography stacks */
	--font-heading:  'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-body:     'Inter',   system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-hindi:    'Noto Sans Devanagari', 'Mukta', 'Hind', sans-serif;
	--font-mono:     'JetBrains Mono', 'Courier New', monospace;

	/* Radii + shadow */
	--radius-sm:     4px;
	--radius:        8px;
	--shadow:        0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);

	/* Layout */
	--container:     1280px;
	--gutter:        12px;
}

/* ------------------------------------------------------------------
 * 2. Minimal reset (mobile-first)
 * ------------------------------------------------------------------ */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.45;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--primary-dark);
	text-decoration: underline;
}

button {
	font: inherit;
	cursor: pointer;
}

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

ul, ol {
	margin: 0;
	padding-left: 1.25em;
}

/* ------------------------------------------------------------------
 * 3. Typography
 * ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--dark);
	margin: 0 0 .5em;
}

h1 { font-size: 1.6rem;  font-weight: 800; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.9rem;  text-transform: uppercase; letter-spacing: .03em; }

p {
	margin: 0 0 1em;
}

small {
	font-size: 0.85em;
	color: var(--muted);
}

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

/* Devanagari content — apply via lang="hi" attribute on element or wrapper. */
[lang="hi"],
.is-hindi,
.hindi {
	font-family: var(--font-hindi);
	line-height: 1.55;
}

/* Numbers / dates — heavier, monospaced for readability in tables. */
.num,
.mono {
	font-family: var(--font-mono);
	font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------------------------
 * 4. Accessibility helpers
 * ------------------------------------------------------------------ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	-webkit-clip-path: none;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * 5. Layout primitives
 * ------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* Print niceties (full print stylesheet ships in Phase 8). */
@media print {
	body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------------
 * 6. Responsive base
 * ------------------------------------------------------------------ */
@media (min-width: 768px) {
	body { font-size: 14px; }
	h1   { font-size: 1.9rem; }
	h2   { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
	body { font-size: 14px; line-height: 1.5; }
}

/* End of Phase 1 styles. Phase 2 (header / footer) appends below. */

/* ==================================================================
 * PHASE 2 — Header & Footer
 * ================================================================== */

/* ------------------------------------------------------------------
 * Skip link
 * ------------------------------------------------------------------ */
.skip-link:focus {
	left: 8px; top: 8px;
}

/* ------------------------------------------------------------------
 * Top utility strip
 * ------------------------------------------------------------------ */
.top-strip {
	background: var(--dark);
	color: #e2e8f0;
	font-size: 11.5px;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.top-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding-top: 6px;
	padding-bottom: 6px;
	justify-content: space-between;
}

.top-strip__icon {
	font-size: 12px;
	margin-right: 4px;
	opacity: .9;
}

.top-strip__date,
.top-strip__visitors,
.top-strip__lang,
.top-strip__telegram {
	display: inline-flex;
	align-items: center;
}

.top-strip__visitors-count {
	color: var(--accent);
	font-weight: 600;
	margin-left: 4px;
	letter-spacing: .02em;
}

.top-strip__lang {
	gap: 4px;
}

.lang-btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .25);
	color: #e2e8f0;
	font-size: 10.5px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: .04em;
	line-height: 1.4;
	transition: background-color .15s, color .15s, border-color .15s;
}

.lang-btn:hover,
.lang-btn:focus-visible {
	background: rgba(245, 158, 11, .15);
	border-color: var(--accent);
	color: var(--accent);
}

.lang-btn.is-active {
	background: var(--accent);
	color: var(--dark);
	border-color: var(--accent);
}

.top-strip__telegram {
	background: linear-gradient(135deg, #229ed9, #0088cc);
	color: #fff;
	padding: 3px 10px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .02em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.top-strip__telegram:hover,
.top-strip__telegram:focus-visible {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.05);
}

@media (max-width: 600px) {
	.top-strip__visitors-label { display: none; }
	.top-strip__telegram-label { display: none; }
	.top-strip__telegram { padding: 4px 8px; }
}

/* ------------------------------------------------------------------
 * Site branding banner
 * ------------------------------------------------------------------ */
.site-branding {
	background:
		radial-gradient(1200px 280px at 50% -40%, rgba(245, 158, 11, .18), transparent 60%),
		linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--dark) 100%);
	color: #fff;
	border-bottom: 4px solid var(--accent);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.site-branding__inner {
	padding: 18px 16px 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.site-branding__logo {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.site-branding__logo:hover,
.site-branding__logo:focus-visible {
	filter: brightness(1.08);
	text-decoration: none;
}

.site-logo {
	width: 220px;
	height: auto;
	max-width: 90vw;
	display: block;
}

.site-branding__tagline {
	margin: 4px 0 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	letter-spacing: .01em;
}

.site-branding__sub-tagline {
	margin: 2px 0 0;
	font-family: var(--font-hindi);
	font-weight: 400;
	font-size: 13px;
	color: rgba(255, 255, 255, .85);
}

@media (min-width: 768px) {
	.site-branding__inner { padding: 26px 24px 30px; }
	.site-logo            { width: 260px; }
	.site-branding__tagline     { font-size: 16px; }
	.site-branding__sub-tagline { font-size: 14px; }
}

/* ------------------------------------------------------------------
 * Ad slot placeholder
 * ------------------------------------------------------------------ */
.ad-slot {
	width: var(--ad-w, 728px);
	max-width: 100%;
	height: var(--ad-h, 90px);
	margin: 10px auto;
	background: #fafafa;
	border: 1px dashed var(--border);
	border-radius: var(--radius-sm);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ad-slot__label {
	position: absolute;
	top: 4px;
	left: 8px;
	font-size: 9px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.ad-slot__placeholder {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	letter-spacing: .04em;
}

/* Hide the 728×90 header ad on narrow phones to avoid horizontal scroll;
   replaced by a responsive ad slot in Phase 7. */
@media (max-width: 760px) {
	.ad-slot--header-728x90 { display: none; }
}

/* ------------------------------------------------------------------
 * Marquee (breaking news ticker)
 * ------------------------------------------------------------------ */
.marquee-wrap {
	background: #fff176;
	border-top: 1px solid #f9d447;
	border-bottom: 1px solid #f9d447;
}

.marquee {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	min-height: 32px;
	overflow: hidden;
}

.marquee__label {
	background: var(--alert);
	color: #fff;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .12em;
	padding: 8px 12px;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-family: var(--font-heading);
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	padding-right: 22px;
}

.marquee__track {
	flex: 1;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
}

.marquee__content {
	display: inline-flex;
	white-space: nowrap;
	gap: 14px;
	padding-left: 100%;
	animation: bh-marquee 38s linear infinite;
	align-items: center;
}

.marquee__item {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	color: #5d3a00;
}

.marquee__sep {
	color: var(--alert);
	font-size: 10px;
}

.marquee__track:hover .marquee__content,
.marquee__track:focus-visible .marquee__content {
	animation-play-state: paused;
}

@keyframes bh-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Honour user preference for reduced motion — pause the marquee. */
@media (prefers-reduced-motion: reduce) {
	.marquee__content {
		animation: none;
		padding-left: 12px;
		white-space: normal;
	}
}

/* ------------------------------------------------------------------
 * Primary navigation (sticky maroon bar)
 * ------------------------------------------------------------------ */
.nav-main {
	background: var(--maroon);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.nav-main__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 0;
	padding-bottom: 0;
}

.nav-main__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	flex: 1;
}

.nav-main__menu li {
	position: relative;
}

.nav-main__menu a {
	display: block;
	padding: 12px 14px;
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: background-color .15s, border-color .15s, color .15s;
}

.nav-main__menu a:hover,
.nav-main__menu a:focus-visible,
.nav-main__menu .current-menu-item > a,
.nav-main__menu .current-menu-parent > a {
	background: rgba(0, 0, 0, .18);
	border-bottom-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

/* Sub-menu (depth=2 — used later for state / qualification drop-downs). */
.nav-main__menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #5d1717;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	z-index: 21;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.nav-main__menu li:hover > .sub-menu,
.nav-main__menu li:focus-within > .sub-menu {
	display: block;
}

.nav-main__menu .sub-menu a {
	padding: 8px 14px;
	font-size: 12px;
	border-bottom: 0;
	text-transform: none;
	letter-spacing: 0;
}

/* Hamburger toggle */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 12px 6px;
}

.nav-toggle__bars {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	width: 22px;
}

.nav-toggle__bars span {
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

/* Mobile menu behaviour */
@media (max-width: 767px) {
	.nav-main__inner { flex-wrap: nowrap; }

	.nav-main__menu {
		display: none;
		width: 100%;
		flex-direction: column;
		flex-basis: 100%;
		background: #5d1717;
		border-top: 1px solid rgba(255, 255, 255, .1);
		max-height: calc(100vh - 56px);
		overflow-y: auto;
	}

	.nav-main__menu.is-open {
		display: flex;
	}

	.nav-main__menu a {
		padding: 12px 16px;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
	}

	.nav-main__menu .sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 16px;
		background: rgba(0, 0, 0, .15);
	}
}

@media (min-width: 768px) {
	.nav-toggle { display: none; }
}

/* ------------------------------------------------------------------
 * Site footer
 * ------------------------------------------------------------------ */
.site-footer {
	background: var(--dark);
	color: #cbd5e1;
	margin-top: 32px;
}

.site-footer__columns {
	padding: 28px 0 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-footer__columns-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

@media (min-width: 600px) {
	.site-footer__columns-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.site-footer__columns-inner {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}
}

.footer-col .widget {
	margin-bottom: 16px;
}

.footer-col .widget-title {
	color: #fff;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 6px;
	display: inline-block;
}

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

.footer-col li {
	margin: 0 0 6px;
}

.footer-col a {
	color: #cbd5e1;
	font-size: 13px;
	text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--accent);
	text-decoration: underline;
}

.footer-col p {
	font-size: 13px;
	color: #cbd5e1;
	line-height: 1.55;
	margin: 0 0 8px;
}

/* Footer secondary nav (optional) */
.site-footer__nav {
	background: rgba(255, 255, 255, .02);
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: center;
}

.footer-menu a {
	color: #94a3b8;
	font-size: 12px;
	text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
	color: var(--accent);
}

/* Bottom strip — copyright + disclaimer */
.site-footer__bottom {
	background: #050d1d;
	padding: 14px 0;
}

.site-footer__bottom-inner {
	text-align: center;
}

.site-footer__copyright {
	margin: 0 0 6px;
	font-size: 12px;
	color: #94a3b8;
}

.site-footer__disclaimer {
	margin: 0;
	font-size: 11px;
	color: #cbd5e1;
	line-height: 1.5;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	background: rgba(245, 158, 11, .08);
	border: 1px solid rgba(245, 158, 11, .25);
	border-radius: var(--radius-sm);
	padding: 8px 14px;
}

/* End of Phase 2 styles — Phase 3 (homepage grids) appends below this line. */

