/*
 Theme Name:   Labora Acadevo
 Description:  Labora child theme based on the Penn academic sites (IBI as the primary reference).
 Author:       Pendari
 Author URI:   https://pendari.com/
 Template:     labora
 Version:      1.0.4
 Text Domain:  labora-acadevo
*/


/* =Child-Theme customization starts here
-------------------------------------------------------------- */

/*--------------------------------------------------------------
# Header
Layout, colors, logo size, and row heights come from theme settings.
This only adds a divider between items on double-row menus.
--------------------------------------------------------------*/

@media (min-width: 992px) {
	.header-layout-double-left .primary-menu,
	.header-layout-double-centered .primary-menu {
		gap: 0;
	}

	.header-layout-double-left .primary-menu > .menu-item > a,
	.header-layout-double-centered .primary-menu > .menu-item > a {
		padding-left: 1.15rem;
		padding-right: 1.15rem;
	}

	.header-layout-double-left .primary-menu > .menu-item + .menu-item > a,
	.header-layout-double-centered .primary-menu > .menu-item + .menu-item > a {
		border-left: 1px solid #e4e6ea;
	}
}

/* Custom logo lockup: Perelman mark, divider, institute name.
   Name size and color match ibi.med.upenn.edu (.site-description). */
.logo-wrapper .logo-row-mark {
	gap: 0;
}

.logo-wrapper .vert-div {
	display: block;
	flex: 0 0 1px;
	align-self: center;
	width: 1px;
	height: 80%;
	background: #eee;
	margin-left: 1rem;
	margin-right: 1rem;
}

.logo-row-name {
	max-width: 500px;
	color: #2A3980;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.8rem;
	font-weight: 400;
	line-height: 1;
}

/*--------------------------------------------------------------
# Title bar
Size and alignment follow H1 size and title bar alignment settings.
--------------------------------------------------------------*/

.title-bar h1 {
	font-weight: 700;
	font-size: var(--h1-size, 2.5rem);
	line-height: 1.15;
	text-align: var(--title-bar-text-align, left);
}

/*--------------------------------------------------------------
# Headings
--------------------------------------------------------------*/

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
	font-weight: 700;
}

/* In-content headings stay plain. Size comes from the H2 / H3 settings. */
.wpb_text_column h2,
.wpb_text_column h3 {
	font-weight: 700;
	text-transform: none;
	line-height: 1.2;
	margin-bottom: 2.5rem;
}

/*
 * Section titles. WPBakery puts vc_custom_heading on the heading element
 * itself (h2.vc_custom_heading), not on a wrapper.
 * Blue 31px bar, 6px gap, gray 31px bar. Centered when the heading is centered.
 */
h2.vc_custom_heading {
	position: relative;
	font-weight: 700;
	line-height: 1.2;
	padding-bottom: 14px;
	margin-bottom: 3rem;
}

h2.vc_custom_heading::before,
h2.vc_custom_heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	height: 4px;
	width: 31px;
	pointer-events: none;
}

h2.vc_custom_heading::before {
	left: 0;
	background: var(--color-accent, #015EA7);
}

h2.vc_custom_heading::after {
	left: 37px;
	background: #E0E1E3;
}

h2.vc_custom_heading[style*="text-align: center"]::before,
h2.vc_custom_heading[style*="text-align:center"]::before {
	left: calc(50% - 37px);
}

h2.vc_custom_heading[style*="text-align: center"]::after,
h2.vc_custom_heading[style*="text-align:center"]::after {
	left: 50%;
}

/*--------------------------------------------------------------
# Buttons
WPBakery writes the fill color inline and defaults to shape-rounded,
so these rules need !important to win.
--------------------------------------------------------------*/

.vc_general.vc_btn3.vc_btn3-style-flat,
.vc_btn3.vc_btn3-style-flat,
.motion-slider .motion-slide-button,
.motion-slider .motion-global-button,
.gform_button,
.gform_wrapper .gform_footer input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	background-color: var(--color-button-bg, #131D3B) !important;
	color: var(--color-button-text, #ffffff) !important;
	border-color: var(--color-button-bg, #131D3B) !important;
	font-weight: 700;
	font-family: var(--heading-font, "Roboto Condensed"), Arial, Helvetica, sans-serif;
}

body.square-corners .vc_general.vc_btn3.vc_btn3-style-flat,
body.square-corners .vc_btn3.vc_btn3-style-flat,
body.square-corners .motion-slider .motion-slide-button,
body.square-corners .motion-slider .motion-global-button,
body.square-corners .gform_button,
body.square-corners .gform_wrapper .gform_footer input[type="submit"],
body.square-corners .wp-element-button,
body.square-corners .wp-block-button__link {
	border-radius: 0 !important;
}

.vc_general.vc_btn3.vc_btn3-style-flat:hover,
.vc_general.vc_btn3.vc_btn3-style-flat:focus,
.vc_btn3.vc_btn3-style-flat:hover,
.vc_btn3.vc_btn3-style-flat:focus,
.motion-slider .motion-slide-button:hover,
.motion-slider .motion-slide-button:focus,
.motion-slider .motion-slide-button:focus-visible,
.motion-slider .motion-global-button:hover,
.motion-slider .motion-global-button:focus,
.motion-slider .motion-global-button:focus-visible,
.gform_button:hover,
.gform_button:focus,
.wp-element-button:hover,
.wp-element-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background-color: var(--color-button-bg-hover, #015EA7) !important;
	color: var(--color-button-text-hover, #ffffff) !important;
	border-color: var(--color-button-bg-hover, #015EA7) !important;
}

.vc_general.vc_btn3.vc_btn3-style-outline,
.vc_btn3.vc_btn3-style-outline {
	background-color: transparent !important;
	color: var(--color-heading, #131D3B) !important;
	border: 2px solid var(--color-heading, #131D3B) !important;
	font-weight: 700;
}

body.square-corners .vc_general.vc_btn3.vc_btn3-style-outline,
body.square-corners .vc_btn3.vc_btn3-style-outline {
	border-radius: 0 !important;
}

.vc_general.vc_btn3.vc_btn3-style-outline:hover,
.vc_general.vc_btn3.vc_btn3-style-outline:focus,
.vc_btn3.vc_btn3-style-outline:hover,
.vc_btn3.vc_btn3-style-outline:focus {
	background-color: var(--color-heading, #131D3B) !important;
	color: #ffffff !important;
	border-color: var(--color-heading, #131D3B) !important;
}

/*--------------------------------------------------------------
# Home rows
Background falls back to the light background setting. A row background
or padding set in WPBakery (it uses !important) replaces this.
--------------------------------------------------------------*/

body.home .vc_row.ac-hero,
body.home .vc_row.ac-band {
	background-color: var(--color-bg-light, #f3f3f3);
}

.ac-hero h1 {
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Home — center cards
--------------------------------------------------------------*/

.ac-card .wpb_wrapper {
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	height: 100%;
	border-top: 4px solid var(--color-accent, #015EA7);
}

.ac-card h4 {
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	margin: 0;
	padding: 1.35rem 1rem 1.5rem;
}

.ac-card h4 a {
	color: inherit;
	text-decoration: none;
}

.ac-card h4 a:hover,
.ac-card h4 a:focus {
	color: var(--color-accent, #015EA7);
}

/*--------------------------------------------------------------
# Home — mission band
--------------------------------------------------------------*/

.ac-band h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.6rem;
}

.ac-band .wpb_text_column ul {
	margin: 0.75rem 0 1.25rem;
	padding-left: 1.25rem;
}

.ac-band .wpb_text_column li {
	margin-bottom: 0.45rem;
}

/*--------------------------------------------------------------
# Home — events and news
--------------------------------------------------------------*/

.ac-event-kicker {
	color: var(--color-accent, #015EA7);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	margin: 0 0 0.35rem;
}

.ac-news-item {
	margin: 0 0 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e4e6ea;
}

.ac-news-item h4 {
	margin: 0 0 0.35rem;
	line-height: 1.3;
}

.ac-news-item h4 a {
	color: var(--color-heading, #131D3B);
	text-decoration: none;
}

.ac-news-item h4 a:hover,
.ac-news-item h4 a:focus {
	color: var(--color-accent, #015EA7);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer-widgets .widget-title {
	font-weight: 700;
	margin-bottom: 0.85rem;
}

.footer-widgets a {
	text-decoration: none;
}

.footer-widgets a:hover,
.footer-widgets a:focus {
	text-decoration: underline;
}

.site-footer .subfooter {
	border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 767px) {
	.ac-card {
		margin-bottom: 1.25rem;
	}
}
