/*
Theme Name:   Odisha Careers
Theme URI:    https://www.odishacareers.com
Description:  GeneratePress child theme for Odisha Careers, a modern recruitment and career updates portal.
Author:       Odisha Careers
Template:     generatepress
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  odisha-careers
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Brand */
	--oc-primary: #1746a2;
	--oc-primary-dark: #123a85;
	--oc-navy: #0b1f3a;
	--oc-blue: #2563eb;
	--oc-blue-soft: #eaf1ff;
	--oc-accent: #f97316;          /* decorative only: low contrast with white text */
	--oc-accent-strong: #c2410c;   /* use for text/buttons with white text */
	--oc-accent-soft: #fff1e6;

	/* Surfaces and text */
	--oc-bg: #f7f9fc;
	--oc-white: #ffffff;
	--oc-border: #e2e8f0;
	--oc-border-strong: #cbd5e1;
	--oc-text: #172033;
	--oc-muted: #5b6b82;

	/* Status */
	--oc-success: #16803c;
	--oc-success-soft: #e7f6ec;
	--oc-danger: #b91c1c;
	--oc-danger-soft: #fee2e2;
	--oc-violet: #5b21b6;
	--oc-violet-soft: #ede9fe;

	/* Typography */
	--oc-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Oriya", Kalinga, sans-serif;

	/* Shape and elevation */
	--oc-radius-sm: 6px;
	--oc-radius: 10px;
	--oc-radius-lg: 14px;
	--oc-shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
	--oc-shadow: 0 2px 10px rgba(11, 31, 58, 0.08);
	--oc-shadow-hover: 0 8px 24px rgba(11, 31, 58, 0.14);

	/* Layout */
	--oc-container: 1360px;
	--oc-gutter: clamp(12px, 2.5vw, 24px);
	--oc-gap: 14px;
	--oc-header-h: 64px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--oc-header-h) + 16px);
}

@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;
	}
}

body.oc-theme {
	margin: 0;
	background: var(--oc-bg);
	color: var(--oc-text);
	font-family: var(--oc-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.oc-theme *,
.oc-theme *::before,
.oc-theme *::after { box-sizing: border-box; }

.oc-theme :is(button, input, select, textarea) { font-family: inherit; }

.oc-theme img,
.oc-theme video,
.oc-theme iframe { max-width: 100%; }
.oc-theme img,
.oc-theme video { height: auto; }

/* Links: zero-ish specificity so single component classes can override. */
:where(.oc-theme) a { color: var(--oc-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:where(.oc-theme) a:visited { color: var(--oc-primary); }
:where(.oc-theme) a:hover,
:where(.oc-theme) a:focus { color: var(--oc-primary-dark); }

/* Focus */
.oc-theme :focus-visible {
	outline: 3px solid var(--oc-blue);
	outline-offset: 2px;
	border-radius: 2px;
}
.oc-on-dark :focus-visible { outline-color: #ffffff; }

/* Skip link and screen-reader text */
.oc-skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100000;
	padding: 10px 16px;
	background: var(--oc-navy);
	color: #fff;
	font-weight: 600;
	border-radius: var(--oc-radius-sm);
	text-decoration: none;
}
.oc-skip-link:focus { top: 8px; color: #fff; }

.oc-sr-only,
.oc-theme .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
.oc-theme h1,
.oc-theme h2,
.oc-theme h3,
.oc-theme h4,
.oc-theme h5,
.oc-theme h6 {
	margin: 0 0 0.5em;
	color: var(--oc-navy);
	font-family: var(--oc-font);
	line-height: 1.25;
	text-wrap: balance;
}
.oc-theme h1 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.oc-theme h2 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); font-weight: 700; letter-spacing: -0.01em; }
.oc-theme h3 { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); font-weight: 700; }
.oc-theme h4 { font-size: 1rem; font-weight: 600; }
.oc-theme h5,
.oc-theme h6 { font-size: 0.9375rem; font-weight: 600; }

.oc-theme p { margin: 0 0 1em; }

.oc-text-muted { color: var(--oc-muted); }
.oc-meta {
	color: var(--oc-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
}

/* ==========================================================================
   4. Layout utilities
   ========================================================================== */
.oc-container {
	width: 100%;
	max-width: var(--oc-container);
	margin-inline: auto;
	padding-inline: var(--oc-gutter);
}

.oc-section { margin: 28px 0; }

.oc-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.oc-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
	font-weight: 800;
	letter-spacing: -0.01em;
}
.oc-section__title::before {
	content: "";
	flex: none;
	width: 4px;
	height: 1.15em;
	background: var(--oc-accent);
	border-radius: 2px;
}
.oc-section__link {
	flex: none;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.oc-section__link:hover { text-decoration: underline; }

/*
 * Dense responsive grid. The minimum card width is set per grid with --oc-min,
 * so 1280px+ screens fit 4 to 5 cards without making cards oversized.
 */
.oc-grid {
	display: grid;
	gap: var(--oc-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oc-min, 260px)), 1fr));
}
.oc-grid--cards   { --oc-min: 260px; }
.oc-grid--compact { --oc-min: 210px; }
.oc-grid--cats    { --oc-min: 180px; }

@media (max-width: 599px) {
	/* Two-up on phones only for compact content (categories, small cards). */
	.oc-grid--two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   5. Icons
   ========================================================================== */
.oc-icon { flex: none; vertical-align: -0.15em; }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.oc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: var(--oc-radius-sm);
	background: var(--oc-primary);
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.oc-btn:hover,
.oc-btn:focus { background: var(--oc-primary-dark); color: #fff; text-decoration: none; }
.oc-btn:visited { color: #fff; }

.oc-btn--secondary { background: #fff; color: var(--oc-primary); border-color: var(--oc-border-strong); }
.oc-btn--secondary:hover,
.oc-btn--secondary:focus { background: var(--oc-blue-soft); color: var(--oc-primary-dark); border-color: var(--oc-primary); }
.oc-btn--secondary:visited { color: var(--oc-primary); }

.oc-btn--accent { background: var(--oc-accent-strong); color: #fff; }
.oc-btn--accent:hover,
.oc-btn--accent:focus { background: #9a3412; color: #fff; }

.oc-btn--ghost { background: transparent; color: var(--oc-primary); }
.oc-btn--ghost:hover,
.oc-btn--ghost:focus { background: var(--oc-blue-soft); color: var(--oc-primary-dark); }

.oc-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 0.8125rem; }
.oc-btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.oc-btn--block { display: flex; width: 100%; }

.oc-btn[disabled],
.oc-btn.is-disabled {
	background: #e2e8f0;
	border-color: #e2e8f0;
	color: #64748b;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==========================================================================
   7. Badges
   ========================================================================== */
.oc-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--oc-blue-soft);
	color: var(--oc-primary);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.6;
	text-transform: uppercase;
	white-space: nowrap;
}
.oc-badge--job         { background: var(--oc-blue-soft);    color: var(--oc-primary); }
.oc-badge--admit-card  { background: var(--oc-accent-soft);  color: #9a3412; }
.oc-badge--result      { background: var(--oc-success-soft); color: #14532d; }
.oc-badge--syllabus    { background: #e2e8f0;                color: var(--oc-navy); }
.oc-badge--answer-key  { background: var(--oc-violet-soft);  color: var(--oc-violet); }
.oc-badge--exam        { background: #e0f2fe;                color: #075985; }
.oc-badge--update      { background: #f1f5f9;                color: #334155; }
.oc-badge--active      { background: var(--oc-success-soft); color: #14532d; }
.oc-badge--closing     { background: var(--oc-accent-soft);  color: #9a3412; }
.oc-badge--expired     { background: var(--oc-danger-soft);  color: #991b1b; }

/* ==========================================================================
   8. Forms
   ========================================================================== */
.oc-input {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius-sm);
	background: #fff;
	color: var(--oc-text);
	font-size: 1rem;
	line-height: 1.3;
}
.oc-input::placeholder { color: #7a8aa0; }
.oc-input:focus { border-color: var(--oc-blue); outline: 3px solid rgba(37, 99, 235, 0.25); outline-offset: 0; }
.oc-input[aria-invalid="true"] { border-color: var(--oc-danger); }

.oc-form-message { margin: 8px 0 0; font-size: 0.875rem; font-weight: 500; }
.oc-form-message.is-success { color: var(--oc-success); }
.oc-form-message.is-error { color: var(--oc-danger); }