/*
Theme Name: Wednesday HR Frontend Theme
Theme URI: https://example.com/themes/wednesday-hr-frontend
Author: Your Name
Author URI: https://example.com
Description: Frontend companion theme for the Complete HRMS plugin. Provides public job listings, training showcases, and applicant tools.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wednesday-hr
Tags: hr, corporate, responsive, customizer, accessibility-ready
*/

:root {
    --whr-primary: #4c51bf;
    --whr-accent: #10b981;
    --whr-dark: #111827;
    --whr-muted: #6b7280;
    --whr-surface: #f9fafb;
    --whr-highlight: #fde68a;
    --whr-radius: 0.75rem;
    --whr-transition: all 0.25s ease;
    --whr-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    --whr-container: 1200px;
    --whr-font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--whr-font);
    color: var(--whr-dark);
    background: var(--whr-surface);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--whr-transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--whr-highlight);
    outline-offset: 3px;
}

.container {
    width: min(100%, var(--whr-container));
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.site-header {
    background: var(--whr-header-bg, #fff);
    box-shadow: var(--whr-shadow);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Circular backdrop behind the logo so it stays visible no matter what
   the header background color is set to in System Colors. */
.site-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    padding: 6px;
    overflow: hidden;
}

.site-logo-frame img,
.site-logo-frame .custom-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--whr-header-text, var(--whr-dark));
}

.site-description {
    margin: 0;
    color: var(--whr-header-muted, var(--whr-muted));
    font-size: 0.9rem;
}

.primary-nav ul,
.social-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.primary-nav a {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--whr-header-text, var(--whr-dark));
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: var(--whr-primary);
    color: #fff;
}

.social-nav a {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--whr-header-muted, var(--whr-muted));
    color: var(--whr-header-muted, var(--whr-muted));
}

.social-nav a:hover {
    background: var(--whr-primary);
    color: #fff;
    border-color: transparent;
}

/* Custom account menu (replaces the default WP admin bar "Howdy" panel) */
.whr-account-menu {
	position: relative;
	flex-shrink: 0;
}

.whr-account-toggle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--whr-surface);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	padding: 0.35rem 0.9rem 0.35rem 0.35rem;
	cursor: pointer;
	color: var(--whr-dark);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.whr-account-toggle:hover {
	background: #eef0fc;
	border-color: rgba(76, 81, 191, 0.25);
}

.whr-account-avatar {
	border-radius: 50%;
	display: block;
	width: 32px;
	height: 32px;
}

.whr-account-name {
	font-weight: 600;
	font-size: 0.9rem;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.whr-account-chevron {
	color: var(--whr-muted);
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.whr-account-toggle[aria-expanded="true"] .whr-account-chevron {
	transform: rotate(180deg);
}

/* Small "Log In" button shown in the header for logged-out visitors */
.whr-header-login {
	flex-shrink: 0;
	background: linear-gradient(180deg, #3b78ea, #2f6fed);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.55rem 1.35rem;
	box-shadow: 0 8px 18px -8px rgba(47, 111, 237, 0.5);
}

.whr-header-login:hover {
	background: linear-gradient(180deg, #2f6fed, #2555c7);
	transform: translateY(-1px);
}

.whr-account-dropdown {
	position: absolute;
	top: calc(100% + 0.6rem);
	right: 0;
	min-width: 260px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 0.9rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -10px rgba(15, 23, 42, 0.22);
	padding: 0.6rem;
	display: none;
	flex-direction: column;
	gap: 0.15rem;
	z-index: 30;
}

.whr-account-dropdown.is-open {
	display: flex;
}

.whr-account-dropdown-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.6rem 0.75rem;
	margin-bottom: 0.35rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.whr-account-avatar-lg {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.whr-account-dropdown-name {
	margin: 0;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--whr-dark);
}

.whr-account-dropdown-email {
	margin: 0.1rem 0 0;
	font-size: 0.8rem;
	color: var(--whr-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 170px;
}

/* Lets any logged-in user change their own profile photo from the
   account dropdown: a small camera badge overlaid on their avatar. */
.whr-avatar-upload {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
}

.whr-avatar-upload-trigger {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--whr-primary);
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease, background 0.15s ease;
}

.whr-avatar-upload-trigger:hover {
	background: var(--whr-dark);
	transform: scale(1.08);
}

.whr-avatar-upload-trigger.is-uploading {
	opacity: 0.6;
	pointer-events: none;
}

.whr-avatar-upload-trigger.is-uploading .whr-icon {
	animation: whr-avatar-pulse 1s ease-in-out infinite;
}

@keyframes whr-avatar-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.whr-avatar-upload-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
}

.whr-avatar-upload-status {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	color: #b91c1c;
	max-width: 170px;
}

.whr-avatar-upload-status:empty {
	display: none;
}

.whr-account-dropdown-link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 0.6rem;
	border-radius: 0.6rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--whr-dark);
}

.whr-account-dropdown-link .whr-icon {
	color: var(--whr-muted);
	flex-shrink: 0;
}

.whr-account-dropdown-link:hover {
	background: var(--whr-surface);
}

.whr-account-logout {
	color: #b91c1c;
}

.whr-account-logout .whr-icon {
	color: #b91c1c;
}

.whr-account-logout:hover {
	background: #fee2e2;
}

@media (max-width: 640px) {
	.whr-account-name {
		display: none;
	}

	.whr-account-toggle {
		padding: 0.35rem;
	}
}

.hero {
    background: var(--whr-hero-bg, var(--whr-primary));
    color: #fff;
    padding-block: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin: 0;
}

.hero p {
    margin: 0 auto;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--whr-transition);
}

.button-primary {
    background: #fff;
    color: var(--whr-primary);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--whr-shadow);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero "Apply Job" / "Apply Training" toggle buttons: only the currently
   active one (matching the section shown below) is highlighted in solid
   white; the other stays in a plain, non-highlighted state. */
.hero-ctas .button {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-ctas .button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-ctas .button.is-active {
    background: #fff;
    color: var(--whr-hero-bg, var(--whr-primary));
    border-color: transparent;
}

.hero-ctas .button.is-active:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--whr-shadow);
}

.section {
    padding-block: 4rem;
}

body.is-focus-mode .section.is-hidden-focus {
    display: none;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(76, 81, 191, 0.25);
    background: transparent;
    color: var(--whr-color-primary, #4c51bf);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.back-to-home:hover {
    background: rgba(76, 81, 191, 0.08);
}

.page-thumbnail img {
    width: 100%;
    border-radius: 0.85rem;
    display: block;
}

.page-content {
    color: var(--whr-dark, #111827);
    line-height: 1.7;
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content > *:last-child {
    margin-bottom: 0;
}

.page-content p {
    margin: 0 0 1.1rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 1.75rem 0 0.75rem;
    line-height: 1.3;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.page-content li {
    margin-bottom: 0.4rem;
}

.page-content a {
    color: var(--whr-color-primary, #4c51bf);
    text-decoration: underline;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0;
}

.section-subtitle {
    margin: 0;
    color: var(--whr-muted);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    justify-content: start;
}

.card {
    --card-accent: var(--whr-primary);
    --card-accent-soft: rgba(76, 81, 191, 0.1);
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -12px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--card-accent);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 24px 40px -16px rgba(15, 23, 42, 0.25);
}

#open-jobs .card {
    --card-accent: var(--whr-accent);
    --card-accent-soft: rgba(16, 185, 129, 0.1);
}

#active-trainings .card {
    --card-accent: var(--whr-primary);
    --card-accent-soft: rgba(76, 81, 191, 0.1);
}

.card-heading {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--whr-dark);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--whr-dark);
    background: var(--card-accent-soft);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    line-height: 1;
}

.meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-accent);
    flex-shrink: 0;
}

.card > p {
    margin: 0;
    color: var(--whr-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-open {
    background: rgba(16, 185, 129, 0.15);
    color: var(--whr-accent);
}

.badge-open::before {
    background: var(--whr-accent);
}

.badge-training {
    background: rgba(76, 81, 191, 0.15);
    color: var(--whr-primary);
}

.badge-training::before {
    background: var(--whr-primary);
}

.card-footer {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-footer .button {
    flex: 1 1 0;
    width: auto;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* Footer buttons were designed for the dark hero background; give them
   proper contrast when used inside a white card. */
.card-footer .button-primary {
    background: var(--card-accent, var(--whr-primary));
    color: #fff;
}

.card-footer .button-primary:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px var(--card-accent-soft, rgba(76, 81, 191, 0.35));
}

.card-footer .button-secondary {
    background: transparent;
    color: var(--card-accent, var(--whr-primary));
    border: 1.5px solid var(--card-accent, var(--whr-primary));
}

.card-footer .button-secondary:hover {
    background: var(--card-accent, var(--whr-primary));
    color: #fff;
}

/* Neutral "Details" button that sits alongside Apply inside a card footer */
.card-footer .button-ghost {
    background: transparent;
    color: var(--whr-dark);
    border: 1.5px solid rgba(15, 23, 42, 0.15);
}

.card-footer .button-ghost:hover {
    background: var(--whr-surface);
    border-color: rgba(15, 23, 42, 0.28);
    transform: translateY(-2px);
}

/* Compact layout for the Open Positions / Active Trainings listing cards */
#open-jobs .card,
#active-trainings .card {
    padding: 1.25rem;
    gap: 0.75rem;
}

#open-jobs .card-heading,
#active-trainings .card-heading {
    font-size: 1.1rem;
}

#open-jobs .meta,
#active-trainings .meta {
    gap: 0.4rem;
}

#open-jobs .meta span,
#active-trainings .meta span {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
}

#open-jobs .card > p,
#active-trainings .card > p {
    font-size: 0.85rem;
}

#open-jobs .card-footer,
#active-trainings .card-footer {
    padding-top: 0.75rem;
    margin-top: 0.35rem;
}

#open-jobs .card-footer .button,
#active-trainings .card-footer .button {
    width: auto;
    padding: 0.55rem 1.5rem;
    font-size: 0.85rem;
    margin-left: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    border: 2px dashed rgba(107, 114, 128, 0.4);
    border-radius: var(--whr-radius);
    color: var(--whr-muted);
    font-style: italic;
}

.auth-panel {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 50;
}

.auth-panel.is-open {
    display: flex;
}

.auth-card {
    background: #fff;
    border-radius: 1.75rem;
    max-width: 400px;
    width: 100%;
    padding: 2.25rem 2rem 2rem;
    position: relative;
    box-shadow: 0 30px 60px -20px rgba(30, 64, 175, 0.35), 0 10px 24px -12px rgba(30, 64, 175, 0.18);
}

.auth-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-switch {
    font-size: 0.9rem;
    color: var(--whr-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.auth-avatar {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: #eaf2ff;
    border: 3px solid #2f6fed;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%232f6fed%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c0-4.42%203.58-7%208-7s8%202.58%208%207v1H4v-1z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

/* When the site has a custom logo (set in Appearance > Customize), the
   avatar circle shows that logo instead of the generic placeholder icon,
   matching the branded wp-login.php screen. */
.auth-avatar.has-logo {
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.auth-card .form-group label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.auth-card .form-group {
    position: relative;
    margin-bottom: 1.1rem;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    border-radius: 999px;
    border: 1px solid rgba(47, 111, 237, 0.2);
    background-color: #f5f9ff;
    padding: 0.85rem 1.15rem 0.85rem 2.85rem;
    color: #1d2b4f;
}

.auth-card input[type="text"]::placeholder,
.auth-card input[type="email"]::placeholder,
.auth-card input[type="password"]::placeholder {
    color: rgba(47, 111, 237, 0.6);
}

.auth-card input#whr-login-username,
.auth-card input#whr-register-username {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%232f6fed%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c0-4.42%203.58-7%208-7s8%202.58%208%207v1H4v-1z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1.05rem center;
    background-size: 18px 18px;
}

.auth-card input#whr-register-email {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%232f6fed%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c0-4.42%203.58-7%208-7s8%202.58%208%207v1H4v-1z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1.05rem center;
    background-size: 18px 18px;
}

.auth-card .whr-pwd-wrap {
    position: relative;
}

.auth-card input#whr-login-password,
.auth-card input#whr-register-password {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%232f6fed%22%3E%3Cpath%20d%3D%22M12%202a4.5%204.5%200%200%200-4.5%204.5V9H7a1%201%200%200%200-1%201v10a2%202%200%200%200%202%202h8a2%202%200%200%200%202-2V10a1%201%200%200%200-1-1h-.5V6.5A4.5%204.5%200%200%200%2012%202zm0%202a2.5%202.5%200%200%201%202.5%202.5V9h-5V6.5A2.5%202.5%200%200%201%2012%204z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1.05rem center;
    background-size: 16px 16px;
    padding-right: 3.6rem;
    width: 100%;
    box-sizing: border-box;
}

.auth-card .whr-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #2f6fed;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23ffffff%22%3E%3Cpath%20d%3D%22M12%205c-6.5%200-10.5%206-10.9%206.6a1%201%200%200%200%200%201.05C1.5%2013.25%205.5%2019%2012%2019s10.5-5.75%2010.9-6.35a1%201%200%200%200%200-1.05C22.5%2011%2018.5%205%2012%205zm0%2011.5A4.5%204.5%200%201%201%2012%207.5a4.5%204.5%200%200%201%200%209zm0-7a2.5%202.5%200%201%200%200%205%202.5%202.5%200%200%200%200-5z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.auth-card .whr-pwd-toggle.is-visible {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23ffffff%22%3E%3Cpath%20d%3D%22M3.28%202.22%202.22%203.28l3.4%203.4C3.9%208.1%202.4%2010%201.1%2011.65a1%201%200%200%200%200%201.05C1.5%2013.25%205.5%2019%2012%2019c1.85%200%203.5-.47%204.93-1.15l3.79%203.79%201.06-1.06L3.28%202.22zM12%2016.5a4.47%204.47%200%200%201-3.32-1.48l1.44-1.44a2.5%202.5%200%200%200%203.36-3.36l1.44-1.44A4.5%204.5%200%200%201%2012%2016.5zm9.9-3.8c-.53.72-1.7%202.2-3.32%203.47l-1.44-1.44c.24-.4.39-.86.44-1.34l-.02-.2%203.34-3.35c.4.55.75%201.07%201%201.5a1%201%200%200%201%200%201.36z%22/%3E%3C/svg%3E");
}

.auth-card .whr-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
}

.auth-card .whr-remember-row label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2f6fed;
    font-weight: 500;
}

.auth-card .whr-remember-row input[type="checkbox"] {
    accent-color: #2f6fed;
    margin: 0;
}

.auth-card .whr-forgot-link {
    color: #2f6fed;
    font-weight: 500;
    text-decoration: none;
}

.auth-card .whr-forgot-link:hover {
    text-decoration: underline;
}

.auth-card .form-actions .button-primary {
    width: 100%;
    background: linear-gradient(180deg, #3b78ea, #2f6fed);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 12px 24px -8px rgba(47, 111, 237, 0.4);
    padding: 0.85rem 1.35rem;
}

.auth-card .form-actions .button-primary:hover {
    background: linear-gradient(180deg, #2f6fed, #2555c7);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.form-row .form-group {
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid rgba(17, 24, 39, 0.15);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    transition: var(--whr-transition);
    background: #fff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--whr-primary);
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.15);
}

input[type="file"].whr-file-input {
    border: 1px dashed rgba(17, 24, 39, 0.25);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--whr-surface);
    font-size: 0.9rem;
    cursor: pointer;
}

input[type="file"].whr-file-input::file-selector-button {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    margin-right: 0.85rem;
    background: var(--whr-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--whr-transition);
}

input[type="file"].whr-file-input::file-selector-button:hover {
    background: #3f43a8;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--whr-accent);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.status-tracker {
    display: grid;
    gap: 1rem;
}

.status-card {
    border-left: 4px solid var(--whr-primary);
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--whr-radius);
    box-shadow: var(--whr-shadow);
}

.status-card h4 {
    margin: 0 0 0.25rem;
}

.status-meta {
    font-size: 0.85rem;
    color: var(--whr-muted);
}

.site-footer {
    background: var(--whr-footer-bg, var(--whr-dark));
    color: var(--whr-footer-text, rgba(255, 255, 255, 0.85));
    padding-block: 2rem;
    text-align: center;
}

.site-footer a {
    color: inherit;
    font-weight: 600;
}

@media (max-width: 768px) {
    .primary-nav ul,
    .social-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        text-align: center;
        padding-block: 2rem;
    }

    .card-footer {
        flex-direction: column;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}

/* === Complete HRMS Highlights === */
.chrms-front-shell {
	background-color: #f5f6fa;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chrms-section {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	margin: 2rem auto;
	max-width: 1200px;
	padding: 2rem;
}

.chrms-section__header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.chrms-section__header h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.chrms-section__link {
	color: #4f46e5;
	font-weight: 600;
	text-decoration: none;
}

.chrms-section__link:hover,
.chrms-section__link:focus {
	text-decoration: underline;
}

.chrms-card-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.chrms-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chrms-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.chrms-card__eyebrow {
	color: #6b7280;
	font-size: 0.85rem;
	margin-bottom: 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.chrms-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.75rem;
}

.chrms-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
	color: #374151;
	font-size: 0.95rem;
}

.chrms-card__meta strong {
	color: #111827;
	font-weight: 600;
	margin-right: 0.25rem;
}

.chrms-empty-state {
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	color: #6b7280;
	font-weight: 600;
	margin: 1rem 0 0;
	padding: 1.25rem;
	text-align: center;
}

@media (max-width: 640px) {
	.chrms-section {
		padding: 1.5rem;
		margin: 1.5rem 1rem;
	}
}

/* Submission confirmation dialog (job application / training enrollment) */
dialog.whr-confirmation-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	width: calc(100% - 3rem);
	max-width: 560px;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	padding: 0;
	border: none;
	border-radius: 1.1rem;
	background: transparent;
	box-shadow: none;
	animation: whr-modal-pop-in 0.2s ease-out;
}

dialog.whr-confirmation-dialog::backdrop {
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	animation: whr-modal-fade-in 0.18s ease-out;
}

@keyframes whr-modal-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes whr-modal-pop-in {
	from {
		opacity: 0;
		transform: translate(-50%, -46%) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.whr-modal-close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	background: var(--whr-surface);
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 50%;
	color: var(--whr-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.whr-modal-close:hover {
	background: #fee2e2;
	color: #b91c1c;
	transform: rotate(90deg);
}

.whr-confirmation-card {
	background: #fff;
	border-radius: 1.1rem;
	padding: 2rem;
	max-width: 560px;
	margin: 0 auto;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -12px rgba(15, 23, 42, 0.18);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.whr-confirmation-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--whr-primary);
}

.whr-confirmation-lead {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: var(--whr-muted);
	font-size: 0.9rem;
	margin: 0 0 1.5rem;
}

.whr-confirmation-lead .whr-icon {
	color: var(--whr-accent);
	flex-shrink: 0;
}

.whr-confirmation-icon {
	color: #d97706;
	margin-bottom: 1rem;
	display: flex;
	justify-content: center;
}

.whr-confirmation-title {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 1.25rem;
	color: var(--whr-dark);
}

.whr-status-badge {
	display: inline-block;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #b45309;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0.6rem 1.5rem;
	border-radius: 0.65rem;
	margin-bottom: 1.25rem;
}

.whr-confirmation-message {
	color: var(--whr-dark);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 0.75rem;
}

.whr-details-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: flex-start;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--whr-dark);
	margin: 1.5rem 0 0.75rem;
}

.whr-details-heading .whr-icon {
	color: var(--whr-primary);
	flex-shrink: 0;
}

.whr-details-box {
	background: var(--whr-surface);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 0.75rem;
	padding: 1.1rem 1.35rem;
	text-align: left;
	display: grid;
	gap: 0.5rem;
}

.whr-details-box p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--whr-dark);
}

.whr-details-box strong {
	font-weight: 700;
}

.whr-confirmation-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.whr-btn-outline {
	background: #fff;
	color: var(--whr-dark);
	border: 1px solid rgba(15, 23, 42, 0.15);
	padding: 0.65rem 1.25rem;
}

.whr-btn-outline:hover {
	background: var(--whr-surface);
	transform: translateY(-2px);
}

.whr-btn-outline .whr-icon {
	flex-shrink: 0;
}

@media print {
	body * {
		visibility: hidden;
	}

	dialog.whr-confirmation-dialog,
	dialog.whr-confirmation-dialog * {
		visibility: visible;
	}

	dialog.whr-confirmation-dialog {
		position: absolute;
		left: 0;
		top: 0;
		transform: none;
		width: 100%;
		max-width: 100%;
		max-height: none;
		overflow: visible;
		margin: 0;
	}

	dialog.whr-confirmation-dialog::backdrop {
		display: none;
	}

	.whr-modal-close,
	.whr-confirmation-actions {
		display: none !important;
	}
}

@media (max-width: 640px) {
	dialog.whr-confirmation-dialog {
		width: calc(100% - 2rem);
		max-height: calc(100vh - 2rem);
	}
}

/* ---------------------------------------------------------------------
   Job / Training "Details" modal
   Reuses the same <dialog> mechanics as the confirmation modal above
   (dialog.whr-confirmation-dialog::backdrop, .whr-modal-close, animations)
   but with a left-aligned content layout instead of the centered
   celebratory one used for submission confirmations.
------------------------------------------------------------------------ */

.whr-detail-card {
	background: #fff;
	border-radius: 1.1rem;
	padding: 2rem;
	max-width: 560px;
	margin: 0 auto;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -12px rgba(15, 23, 42, 0.18);
	text-align: left;
	position: relative;
	overflow: hidden;
}

.whr-detail-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--whr-detail-accent, var(--whr-primary));
}

.whr-detail-card .badge {
	margin-bottom: 0.9rem;
}

.whr-detail-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--whr-dark);
	margin: 0 0 1.1rem;
	padding-right: 1.5rem;
}

.whr-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.whr-detail-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--whr-surface);
	border: 1px solid rgba(15, 23, 42, 0.08);
	color: var(--whr-dark);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
}

.whr-detail-tag strong {
	font-weight: 700;
	color: var(--whr-detail-accent, var(--whr-primary));
}

.whr-detail-description-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--whr-dark);
	margin: 0 0 0.6rem;
}

.whr-detail-description-heading .whr-icon {
	color: var(--whr-detail-accent, var(--whr-primary));
	flex-shrink: 0;
}

.whr-detail-description {
	background: var(--whr-surface);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 0.75rem;
	padding: 1.1rem 1.35rem;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--whr-dark);
	white-space: pre-line;
}

.whr-detail-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

@media (max-width: 640px) {
	.whr-detail-card {
		padding: 1.5rem;
	}

	.whr-detail-actions {
		justify-content: stretch;
	}

	.whr-detail-actions .button {
		flex: 1 1 auto;
	}
}