/*
Theme Name: R&S Jobs
Theme URI: https://rs-jobs.com/
Author: R&S Jobs
Description: Tema del blog R&S Jobs sin Elementor. Replica la cabecera, el pie, la portada del blog y la ficha de artículo.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: rsjobs
*/

:root {
	--navy: #0b2a52;
	--navy-deep: #0c1428;
	--pink: #f0386b;
	--ink: #000000;
	--heading: #1a355c;
	--muted: #6b7280;
	--line: rgba(33, 37, 41, 0.33);
	--wrap: 1140px;
	--header-offset: 90px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--navy);
}

button,
input {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: var(--navy);
}

.skip-link:focus {
	outline: 2px solid var(--pink);
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 4px 40px;
	gap: 16px;
}

.brand {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.brand img {
	/* max-width: 200px; */
	width: 80%;
	height: auto;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle-box,
.menu-toggle-box::before,
.menu-toggle-box::after {
	display: block;
	width: 22px;
	height: 2px;
	background: #858585;
	position: relative;
	transition: top 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.menu-toggle-box::before,
.menu-toggle-box::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle-box::before {
	top: -7px;
}

.menu-toggle-box::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box::after {
	top: 0;
	transform: rotate(-45deg);
}

.menu-toggle:hover .menu-toggle-box,
.menu-toggle:hover .menu-toggle-box::before,
.menu-toggle:hover .menu-toggle-box::after,
.menu-toggle[aria-expanded="true"] .menu-toggle-box,
.menu-toggle[aria-expanded="true"] .menu-toggle-box::before,
.menu-toggle[aria-expanded="true"] .menu-toggle-box::after {
	background: var(--pink);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box {
	background: transparent;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu a {
	display: block;
	padding: 13px 10px;
	color: var(--navy);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a {
	color: var(--pink);
}

/* Hero */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: var(--header-offset);
	color: #fff;
	background-color: transparent;
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(11, 42, 82, 0.7);
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: min(900px, 100%);
	padding: 0 20px;
	text-align: center;
}

.hero-blog,
.hero-single {
	height: 550px;
	margin-top: calc(var(--header-offset) * -1);
}

.hero-blog {
	background-image: url("https://assets.rs-jobs.com/site/home/header.webp");
}

.hero-blog h1,
.hero-single h1 {
	margin: 0;
	color: #fff;
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.hero-blog h1 {
	font-family: Poppins, sans-serif;
	font-size: 80px;
	font-weight: 600;
	line-height: 1;
}

.hero-single::after {
	background: #0b2a52b3;
}

.hero-single h1 {
	font-family: Montserrat, sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 50px;
	text-transform: uppercase;
}

/* Layout */

.wrap {
	width: min(var(--wrap), calc(100% - 32px));
	margin: 0 auto;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
	gap: 20px;
	padding: 30px 0 40px;
}

.layout > * {
	min-width: 0;
}

.breadcrumbs {
	margin: 18px 0 0;
	color: #009bb7;
	font-size: 14px;
}

.breadcrumbs a {
	color: var(--pink);
	text-decoration: none;
}

.breadcrumbs .breadcrumb_last {
	color: #009bb7;
}

.breadcrumbs a:hover {
	color: var(--navy-deep);
}

/* Cards */

.post-grid,
.related-grid {
	display: grid;
	gap: 35px 30px;
}

.post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 10px;
}

.related-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-bottom: 48px;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.25s ease;
	border-radius: 3px;
	overflow: hidden;
}

.card:hover {
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.card-media {
	position: relative;
	display: block;
	padding-bottom: 66%;
	overflow: hidden;
}

.card-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 75%);
	transition: opacity 0.3s ease;
}

.card:hover .card-media::after {
	opacity: 0.5;
}

.card-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	padding: 6px 12px;
	background: var(--pink);
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	border-radius: 999px;
	text-transform: uppercase;
}

.card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 30px 30px 8px;
}

.card-body h3,
.card-body h4 {
	margin: 0 0 10px;
	font-family: Poppins, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}

.card-body h3 a,
.card-body h4 a {
	color: var(--pink);
	text-decoration: none;
}

.card-excerpt {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.6;
}

.card-more {
	margin-top: auto;
	color: var(--navy);
	font-size: 12px;
	text-decoration: none;
}

.card-date {
	margin-top: 12px;
	padding: 12px 20px 16px;
	border-top: 1px solid #eee;
	color: var(--muted);
	font-size: 13px;
}

.empty-state {
	margin: 10px 0 30px;
	color: var(--pink);
	font-size: 25px;
	font-weight: 600;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	margin-top: 30px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: 4px 6px;
	color: var(--navy);
	font-size: 15px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	color: var(--pink);
	font-weight: 700;
}

.pagination-compact {
	display: none;
}

/* Sidebar */
.sidebar {
	padding: 10px;
}

.sidebar-card {
	padding: 18px 20px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.39);
}

.search-form {
	position: relative;
	margin: 0 -12px 18px;
}

.search-form svg {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	fill: #666;
}

.search-form input {
	width: 100%;
	min-height: 50px;
	padding: 10px 14px 10px 42px;
	border: 0;
	border-radius: 3px;
	background: #f1f2f3;
	font-size: 15px;
}

.search-form input:focus {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

.sidebar-card h5 {
	margin: 8px 0 12px;
	color: var(--navy);
	font-family: Poppins, sans-serif;
	font-size: 26px;
	font-weight: 500;
}

.category-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.category-list li {
	margin: 0;
}

.category-list a {
	display: block;
	padding: 1px 0;
	line-height: 1.35;
	color: var(--navy);
	font-family: Poppins, sans-serif;
	text-decoration: none;
}

.category-list a:hover,
.category-list .current-cat > a {
	color: var(--pink);
}

.sidebar-rule {
	height: 1px;
	margin: 32px 0;
	border: 0;
	background: var(--line);
}

.btn {
	display: inline-block;
	padding: 15px 48px;
	border-radius: 3px;
	background: var(--navy-deep);
	color: #fff;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
	line-height: 1;
}

.btn:hover {
	background: var(--pink);
	color: #fff;
}

.sidebar-card .btn {
	display: block;
	margin: 8px auto 16px;
	width: 90%;
}

.sidebar-banner {
	display: block;
	margin: 10px 0 0;
}

.sidebar-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* Article */

.entry-content {
	min-width: 0;
	color: var(--ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	overflow-wrap: break-word;
}

body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
	color: var(--heading);
	font-weight: 700;
	line-height: 1.3;
	scroll-margin-top: 110px;
}

.entry-content h2 {
	margin: 1.6em 0 0.6em;
	font-size: 28px;
	color: var(--pink) !important;
}

.entry-content h3 {
	margin: 1.4em 0 0.5em;
	font-size: 23px;
}

.entry-content p {
	margin: 0 0 1em;
}

.entry-content a {
	color: var(--pink);
}

.entry-content img,
.entry-content video,
.entry-content iframe {
	max-width: 100%;
	height: auto;
}

.table-scroll {
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.2em;
	overflow-x: auto;
}

.entry-content table {
	width: max-content;
	min-width: 100%;
	border-collapse: collapse;
}

.entry-content td,
.entry-content th {
	padding: 8px 12px;
	border: 1px solid #d6d6d6;
	background: #fff;
	overflow-wrap: normal;
	vertical-align: top;
}

.entry-content tr:nth-child(odd) > td,
.entry-content tr:nth-child(odd) > th {
	background: #f1f2f3;
}

.entry-content .ql-table-embed-table td > p {
	display: none;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1em;
	padding-left: 2.5rem;
}

.toc {
	margin: 0 0 28px;
	background: #fff;
	border: 1px solid #d6d6d6;
}

.toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	border-bottom: 1px solid #d6d6d6;
}

.toc-header h2 {
	margin: 0;
	color: var(--heading);
	font-family: Poppins, sans-serif;
	font-size: 20px;
	font-weight: 600;
}

.toc-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.toc-toggle svg {
	width: 14px;
	height: 14px;
	fill: var(--navy);
	transition: transform 0.2s ease;
}

.toc:not(.is-collapsed) .toc-toggle svg {
	transform: rotate(180deg);
}

.toc-panel {
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.toc-list {
	margin: 0;
	padding: 0 16px 14px 18px;
	list-style: none;
}

.toc-list ol {
	margin: 4px 0 0;
	padding-left: 18px;
	list-style: none;
}

.toc-list a {
	color: var(--pink);
	font-size: 15px;
	text-decoration: none;
}

.toc-list a:hover {
	color: var(--navy);
	text-decoration: underline;
}

.toc-list li {
	margin: 6px 0;
}

.toc-empty {
	margin: 0;
	padding: 12px 16px 16px;
	color: var(--muted);
	font-size: 15px;
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 28px 0 8px;
}

.share-label {
	color: var(--pink);
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
}

.share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.share-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: #fff;
}

.share-links svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.share-facebook { background: #3b5998; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-email { background: #ea4335; }

.rule {
	height: 1px;
	margin: 20px 0;
	border: 0;
	background: var(--line);
}

.author-box {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	padding-top: 0;
}

.author-box img {
	width: 50px;
	height: 50px;
	border: 1px solid #b1b0b0;
	border-radius: 50%;
	object-fit: cover;
}

.author-box h4 {
	margin: 0;
	color: var(--navy);
	font-family: Poppins, sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.author-box p {
	margin: 4px 0 0;
	font-size: 16px;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.post-nav-prev,
.post-nav-next {
	flex: 1 1 0;
	min-width: 0;
	max-width: 50%;
}

.post-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
}

.post-nav a > span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.post-nav-next {
	display: flex;
	justify-content: flex-end;
	text-align: right;
}

.post-nav-next .post-nav-label,
.post-nav-next .post-nav-title {
	text-align: right;
}

.post-nav-next svg {
	transform: scaleX(-1);
}

.post-nav-next a {
	flex-direction: row-reverse;
}

.post-nav svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	fill: #999;
}

.post-nav-label,
.post-nav-title {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.post-nav-label {
	color: var(--navy);
	font-weight: 700;
}

.post-nav-title {
	color: var(--pink);
	font-size: 12px;
	font-weight: 400;
}

.post-nav a:hover .post-nav-label,
.post-nav a:hover .post-nav-title {
	color: var(--pink);
}

.page-content {
	padding: 36px 0 56px;
}

/* Footer */

.site-footer {
	background: var(--navy);
	color: #fff;
	font-weight: 200;
}

.footer-brand,
.footer-grid,
.footer-legal {
	width: min(var(--wrap), calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.footer-brand {
	padding: 28px 0 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-brand img {
	width: 240px;
	height: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1.25fr 1fr;
	gap: 20px 24px;
	padding: 20px 0 28px;
}

.site-footer h2 {
	margin: 0 0 12px;
	color: var(--pink);
	font-family: Poppins, sans-serif;
	font-size: 18px;
	font-weight: 600;
}

.site-footer ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.footer-contact li {
	font-size: 14px;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer li * {
	transition: color 0.3s;
}

.site-footer li:hover * {
	color: var(--pink);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--pink);
}

.social-links svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.partner-note {
	margin: 0 0 14px;
	color: #fff;
	font-size: 14px;
}

.partner-logo {
	width: 192px;
	height: auto;
}

.footer-bottom {
	padding-bottom: 22px;
}

.footer-bottom hr {
	width: min(var(--wrap), calc(100% - 40px));
	height: 1px;
	margin: 0 auto 14px;
	border: 0;
	background: var(--pink);
}

.footer-legal {
	color: #fff;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

.footer-legal a {
	color: #fff;
	text-decoration: none;
}

.footer-legal a:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.site-header {
		position: sticky;
	}

	.primary-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: 0;
		overflow: hidden;
		background: #fff;
		visibility: hidden;
		transition: max-height 0.35s ease, visibility 0.35s ease;
	}

	.primary-nav.is-open {
		visibility: visible;
		box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
	}

	.primary-nav .menu {
		flex-direction: column;
		padding: 0;
	}

	.primary-nav .menu li:first-child a {
		padding-top: 22px;
	}

	.primary-nav .menu li:last-child a {
		padding-bottom: 24px;
	}

	.primary-nav .menu a {
		padding: 14px 20px;
		font-family: Montserrat, sans-serif;
		font-size: 14px;
		font-weight: 700;
		text-align: center;
	}

	.primary-nav .menu .current-menu-item > a,
	.primary-nav .menu .current_page_item > a {
		background: transparent;
		color: var(--pink);
	}

	.related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-single h1 {
		font-size: 2rem;
		line-height: 1.25;
	}
}

@media (max-width: 767px) {
	.header-bar {
		min-height: 64px;
		padding: 12px 16px;
	}

	.brand img {
		width: 168px;
	}

	.hero-blog,
	.hero-single {
		height: 420px;
	}

	.hero-blog h1 {
		font-size: 52px;
	}

	.hero-single h1 {
		font-size: 26px;
		line-height: 1.5;
	}

	.layout,
	.post-grid,
	.related-grid,
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		display: none;
	}

	.card-media {
		padding-bottom: 50%;
	}

	.pagination-full {
		display: none;
	}

	.pagination-compact {
		display: flex;
	}
}
