/* ==========================================================================
   Careers page (/en/crane-recruitment/) — page-scoped styles.
   Linked only from that page so shared styles.css stays untouched.
   ========================================================================== */

/* Accent red used throughout this page (firebrick, as per the design).
   To switch to the brand link red, replace #B22222 with #D81820 throughout. */

/* Unfloat the global h1/h3/p { float:left; width:100% } rules inside this page
   (same escape hatch as the existing #ccc-content block in styles.css) */
#careers-content {
	padding-bottom: 60px;
}

#careers-content h1,
#careers-content h2,
#careers-content h3,
#careers-content p {
	float: none;
	width: auto;
}

#careers-content hr {
	border: 0;
	border-top: 2px solid #B22222;
	margin: 35px 0;
	clear: both;
}

#careers-content .careers-subhead {
	font-size: 18px;
	color: #333333;
}

/* --- "Life at Crane" section headings ------------------------------------ */

#careers-content .story-eyebrow {
	font-size: 19px;
	font-weight: bold;
	color: #444444;
	margin-bottom: 5px;
}

#careers-content .story-eyebrow .red-txt {
	color: #B22222;
}

#careers-content .story-heading {
	font-size: 30px;
	font-weight: 600;
	color: #555555;
	line-height: 1.25em;
	margin: 0 0 20px 0;
}

/* --- Associate profile cards --------------------------------------------- */

.associate-cards {
	display: flex;
	gap: 26px;
	margin: 30px 0 10px 0;
}

.associate-card {
	width: 236px;
	flex: 1 1 0;
	min-width: 0;
}

.associate-card .story-link {
	display: block;
	text-decoration: none;
	border: 0;
}

.associate-card .photo {
	display: block;
	position: relative;
	height: 210px;
	overflow: hidden;
	border-bottom: 4px solid #B22222;
}

.associate-card .photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.associate-card .photo .overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #B22222;
	opacity: 0;
	-webkit-transition: opacity 0.25s ease;
	transition: opacity 0.25s ease;
}

.associate-card:hover .photo .overlay {
	opacity: 0.55;
}

.associate-card .photo .plus {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 34px;
	height: 34px;
	background: #B22222;
	color: #FFFFFF;
	font-size: 26px;
	font-weight: normal;
	line-height: 32px;
	text-align: center;
	z-index: 2;
}

#careers-content .associate-name {
	font-size: 18px;
	color: #555555;
	margin: 16px 0 2px 0;
	line-height: 1.3em;
}

#careers-content .associate-role {
	font-size: 16px;
	font-weight: bold;
	color: #B22222;
	margin: 0 0 14px 0;
	line-height: 1.3em;
}

#careers-content .associate-quote {
	font-style: italic;
	color: #666666;
	font-size: 15px;
	line-height: 1.5em;
}

/* --- Founder quote / talent section --------------------------------------- */

#careers-content blockquote {
	font-family: georgia, serif;
	color: #555555;
	margin: 20px 0 20px 30px;
}

/* --- Associate story popup (opened via colorbox inline) ------------------- */

.associate-story {
	display: flex;
	background: #FFFFFF;
	align-items: stretch;
	height: 100%;
}

/* Colorbox moves the story div outside #careers-content when it opens,
   so the popup needs its own unfloat rules for the global p float */
.associate-story p {
	float: none;
	width: auto;
}

.associate-story .story-left {
	width: 280px;
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
}

.associate-story .story-photo {
	position: relative;
}

.associate-story .story-photo img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}

.associate-story .story-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.4em;
	text-align: center;
}

.associate-story .story-words {
	flex: 1 1 auto;
	background: #B22222;
	color: #FFFFFF;
	padding: 28px 26px;
}

.associate-story .story-words-q {
	font-size: 19px;
	line-height: 1.35em;
	margin: 0 0 18px 0;
	color: #FFFFFF;
}

.associate-story .story-word {
	font-size: 20px;
	font-weight: bold;
	color: #FFFFFF;
	margin: 0 0 16px 0;
}

.associate-story .story-main {
	flex: 1 1 auto;
	min-width: 0;
	padding: 30px 35px;
	font-size: 16px;
	line-height: 1.6em;
	color: #666666;
	overflow-y: auto;
}

.associate-story .story-main p {
	margin: 0 0 18px 0;
}

.associate-story .story-main .associate-name {
	font-size: 21px;
	color: #555555;
	margin: 0 0 2px 0;
}

.associate-story .story-main .associate-role {
	font-size: 16px;
	font-weight: bold;
	color: #B22222;
	margin: 0 0 22px 0;
}

/* --- Colorbox chrome overrides (safe: this file loads on this page only) -- */

#cboxContent {
	margin-top: 0;
	background: #FFFFFF;
}

#cboxLoadedContent {
	border: 0;
	background: #FFFFFF;
}

#cboxClose {
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
	background: #B22222;
	text-indent: -9999px;
	border: 0;
	padding: 0;
}

#cboxClose:after {
	content: "\00D7";
	position: absolute;
	top: 0;
	left: 0;
	width: 42px;
	height: 42px;
	line-height: 40px;
	text-align: center;
	color: #FFFFFF;
	font-size: 30px;
	text-indent: 0;
}

#cboxClose.hover,
#cboxClose:hover {
	background: #9A1D1D;
	background-position: 0 0;
}
