/* =================================================================================================
	INJECTOR: legacy-cdi-edi (live name: cdi_temporary_blocks)

	LOADS ON: /node/43236  CDI Resources
	          /node/43346  CDI
	          /node/43251  CDI Student Organizations
	          /node/43471  Equity, Diversity & Inclusion
	================================================================================================= */


/* =================================================================================================
	SHARED RULES
	================================================================================================= */

/*------------------------------------------------------------------------------
	Global: iframes (all pages)
	----------------------------------------------------------------------------*/
iframe {
	aspect-ratio: 16 / 9;
	height: 100%;
	width: 100%;
}

/*------------------------------------------------------------------------------
	Icon Link Card Block (all pages)
	----------------------------------------------------------------------------*/
.block--type-icon-link-card-block {
	background-image: url(/modules/custom/osu_custom_blocks/dist/arrow-right-red.c4e9b645.svg);
	background-position: 95%;
	background-repeat: no-repeat;
	background-size: 40px;
	background-color: white;
	border: 3px solid #d73f09;
	border-radius: 5px;
	padding: 25px;
	padding-right: 90px;
	box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.12);
	max-width: 550px;
	margin-bottom: 1rem;
	transition: background 0.4s ease-in;
	position: relative;
}

/* Stretched link: whole card is clickable */
.block--type-icon-link-card-block a:after {
	content: "";
	position: absolute;
	inset: 0;
}

.block-inline-blockicon-link-card-block {
	cursor: pointer;
}

.block--type-icon-link-card-block:hover,
.block--type-icon-link-card-block:focus {
	color: #fff;
	background-color: #d73f09;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="41" height="33" viewBox="0 0 41 33" fill="none"><path d="M2 16.5H33.5" stroke="%23FFFFFF" stroke-width="4" stroke-linecap="square" stroke-linejoin="round"/><path d="M24.5 30L38 16.5L24.5 3" stroke="%23FFFFFF" stroke-width="4" stroke-linecap="square"/></svg>') !important;
	box-shadow: none;
}

.block--type-icon-link-card-block:hover a,
.block--type-icon-link-card-block:focus a {
	color: #fff;
}

.block--type-icon-link-card-block:active {
	background-color: #BE3706;
}

/* Card title */
.field--name-field-link-card-block-title a {
	border-bottom: none !important;
	text-decoration: none !important;
}

.block--type-icon-link-card-block .field--name-field-link-card-block-title a {
	font-family: "Stratum2Web", serif;
	color: #212529;
	font-feature-settings: 'liga' off, 'clig' off;
	font-size: 24px;
	font-style: normal;
	font-weight: 900;
	line-height: 130%; /* 31.2px */
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.block--type-icon-link-card-block .field--name-field-link-card-block-title:hover a,
.block--type-icon-link-card-block .field--name-field-link-card-block-title:focus a,
.block--type-icon-link-card-block .field--name-field-link-card-block-title:active a {
	color: white !important;
	background: none !important;
}

@media only screen and (max-width: 605px) {
	.block--type-icon-link-card-block {
		padding-top: 15px;
	}
}

/*------------------------------------------------------------------------------
	Yellow icon cards on Star Canvas sections (/node/43236, /node/43346, /node/43251)
	Section uses COE Brand coe-bg-star-canvas; heading uses yellow-text.
	----------------------------------------------------------------------------*/
.coe-bg-star-canvas .block--type-icon-link-card-block {
	border-color: #FFB500 !important;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="41" height="33" viewBox="0 0 41 33" fill="none"><path d="M2 16.5H33.5" stroke="%23FFB500" stroke-width="4" stroke-linecap="square" stroke-linejoin="round"/><path d="M24.5 30L38 16.5L24.5 3" stroke="%23FFB500" stroke-width="4" stroke-linecap="square"/></svg>') !important;
}

.coe-bg-star-canvas .block--type-icon-link-card-block:hover,
.coe-bg-star-canvas .block--type-icon-link-card-block:active {
	border-color: transparent !important;
	background-color: #FFB500 !important;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="41" height="33" viewBox="0 0 41 33" fill="none"><path d="M2 16.5H33.5" stroke="%23000000" stroke-width="4" stroke-linecap="square" stroke-linejoin="round"/><path d="M24.5 30L38 16.5L24.5 3" stroke="%23000000" stroke-width="4" stroke-linecap="square"/></svg>') !important;
}

/* Must stay after the hover/active rule above */
.coe-bg-star-canvas .block--type-icon-link-card-block:active {
	background-color: #D3832B !important;
}

.coe-bg-star-canvas .block--type-icon-link-card-block a,
.coe-bg-star-canvas .block--type-icon-link-card-block:hover a,
.coe-bg-star-canvas .block--type-icon-link-card-block:focus a,
.coe-bg-star-canvas .block--type-icon-link-card-block:active a {
	color: #212529 !important;
}

/*------------------------------------------------------------------------------
	Content Cards view (/node/43236, /node/43251)
	----------------------------------------------------------------------------*/
.eng-content-card-view .row {
	--bs-gutter-y: 1.5rem;
}

.eng-content-card-view .col-12 > .views-field-nothing {
	height: 100%;
}

.eng-content-card-view .col-12 > .views-field-nothing > .field-content {
	height: 100%;
	display: flex;
}

.eng-content-card {
	border: 3px solid #d73f09;
	border-radius: 5px;
	padding: 50px;
	box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	background: #fff;
	flex-grow: 1;
	position: relative;
}

.eng-content-card header {
	font-family: "Stratum2Web", serif;
	color: #212529;
	font-feature-settings: 'liga' off, 'clig' off;
	font-size: 24px;
	font-style: normal;
	font-weight: 900;
	line-height: 130%; /* 31.2px */
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 24px;
}

.eng-content-card--body {
	line-height: 150%;
}

.eng-content-card--footer {
	margin-top: auto;
	padding-top: 15px;
}

.eng-content-card--social {
	margin-left: -10px;
}

.eng-content-card .orange-arrow-link {
	margin-right: 30px !important;
}

/*------------------------------------------------------------------------------
	Story Cards (/node/43236, /node/43251)
	----------------------------------------------------------------------------*/
.story-card {
	margin-top: 32px !important;
	width: 100% !important;
}

@media only screen and (max-width: 881px) and (min-width: 768px) {
	.story-card {
		height: 433px;
	}
}

/*------------------------------------------------------------------------------
	Social Media Icons (/node/43236, /node/43346, /node/43251)
	----------------------------------------------------------------------------*/
.social-media-icons {
	gap: 0 !important;
}

.social-media-icons .fa-2x {
	font-size: 32px !important;
	height: 58px !important;
	width: 58px !important;
}

.social-media-icons .yellow {
	color: #FFB500 !important;
}

.social-media-icons .yellow:hover {
	color: #003B5C !important;
	background-color: #FFB500 !important;
}

.social-media-icons .yellow:active {
	color: #003B5C !important;
	background-color: #D3832B !important;
}

main .social-media-icons a:active:not(.button):not(#osu-logo-wide):not(#osu-logo-crest),
main .social-media-icons a:focus:not(.button):not(#osu-logo-wide):not(#osu-logo-crest) {
	background: transparent !important;
}


/* =================================================================================================
	PAGE: /node/43471  Equity, Diversity & Inclusion
	================================================================================================= */

/*------------------------------------------------------------------------------
	Content With Image block
	----------------------------------------------------------------------------*/
.block-inline-blockcontent-with-image {
	border-radius: 5px;
	border: 1px solid #F8F9FA;
	background: #FFF;
	box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.08);
	width: 100%;
}

.block-inline-blockcontent-with-image .block__content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.block-inline-blockcontent-with-image .field--name-field-media-image {
	text-align: center;
}

.field--name-field-content-with-image-title {
	font-family: "Open Sans" !important;
	font-size: 20px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: normal;
	text-transform: capitalize;
	padding-top: 20px;
	padding-bottom: 10px;
	padding-left: 30px;
	padding-right: 30px;
}

.field--name-field-content-with-image-content {
	font-size: 18px !important;
	padding-left: 30px;
	padding-right: 30px;
}

/* Call to action link */
.field--name-field-content-with-image-cta {
	padding-left: 30px;
	padding-right: 30px;
	padding-bottom: 40px;
	padding-top: 20px;
	display: inline-block;
	background-position: 100%;
}

.field--name-field-content-with-image-cta a {
	font-family: Stratum2Web;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #D73F09 !important;
	text-decoration: none !important;
	background-image: url(/modules/custom/osu_custom_blocks/dist/arrow-right-red.c4e9b645.svg);
	background-position: 100%;
	background-repeat: no-repeat;
	background-size: 20px;
	padding-right: 25px;
	margin-right: 10px;
	margin-top: 18px;
	transition: 0.2s ease;
	border-bottom: none;
}

.field--name-field-content-with-image-cta a:hover {
	padding-right: 35px;
	margin-right: 0px;
	border-bottom: none;
}

.field--name-field-content-with-image-cta a:active,
.field--name-field-content-with-image-cta a:focus {
	background-color: transparent !important;
	color: #BE3706 !important;
	padding-right: 35px !important;
	border-bottom: none !important;
}

/* Image-left view mode */
@media (min-width: 300px) {
	.block--type-content-with-image.block--view-mode-image-left {
		margin-bottom: 30px;
	}
	.block--type-content-with-image.block--view-mode-image-left .field--name-field-content-with-image-title {
		color: #000;
	}
	.block--type-content-with-image.block--view-mode-image-left .block__content {
		gap: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.block--type-content-with-image.block--view-mode-image-left .field--name-field-content-with-image-image {
		margin: 0 !important;
	}
}

/*------------------------------------------------------------------------------
	Wide Story Card (content with image, image left)
	----------------------------------------------------------------------------*/
.story-card-wide {
	position: relative;
}

/* Stretched link: whole card is clickable */
.story-card-wide a::before {
	content: "";
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
}

@media screen and (max-width: 991px) {
	.story-card-wide.block--type-content-with-image.block--view-mode-image-left .block__content {
		gap: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		flex-direction: column !important;
	}
}

/*------------------------------------------------------------------------------
	Black Icon Cards
	----------------------------------------------------------------------------*/
.block--type-icon-link-card-block.osu-bg-page-alt-2 {
	border: none;
	color: #fff;
	background-color: #000 !important; /** necessary because an !important is used in the theme to set it to the dark gray color **/
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="41" height="33" viewBox="0 0 41 33" fill="none"><path d="M2 16.5H33.5" stroke="%23FFFFFF" stroke-width="4" stroke-linecap="square" stroke-linejoin="round"/><path d="M24.5 30L38 16.5L24.5 3" stroke="%23FFFFFF" stroke-width="4" stroke-linecap="square"/></svg>') !important;
}

.block--type-icon-link-card-block.osu-bg-page-alt-2 a {
	color: var(--Primary-Bucktooth-White, #FFF);
	font-feature-settings: 'liga' off, 'clig' off;
	font-family: "Stratum2Web";
	font-size: 24px;
	font-style: normal;
	font-weight: 900;
	line-height: 130%; /* 31.2px */
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.block--type-icon-link-card-block.osu-bg-page-alt-2 .field--name-field-link-card-block-title a {
	color: #fff;
}

.block--type-icon-link-card-block.osu-bg-page-alt-2:hover,
.block--type-icon-link-card-block.osu-bg-page-alt-2:focus {
	background-color: #d73f09 !important;
}

.block--type-icon-link-card-block.osu-bg-page-alt-2:active {
	background-color: #BE3706 !important;
}

/*------------------------------------------------------------------------------
	Misc
	----------------------------------------------------------------------------*/
.edi-undergraduate-student img {
	width: 100% !important;
}

.bottom-banner {
	background-position: left 200px bottom 0px !important;
}

@media screen and (max-width: 768px) {
	.bottom-banner {
		background-size: cover !important;
		background-position: left -20em bottom 0px !important;
	}
}


/* =================================================================================================
	PAGE: /node/43251  CDI Student Organizations
	================================================================================================= */

/* Content card social icons */
.eng-content-card--social .fa-regular {
	color: #d73f09;
}

/* Sits above the card's stretched link */
.eng-content-card--social a {
	padding: 10px;
	position: relative;
	z-index: 6;
}


/* =================================================================================================
	PAGE: /node/43236  CDI Resources
	================================================================================================= */

/* Content card stretched link: whole card is clickable */
.eng-content-card .orange-arrow-link a::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
}
