/* ------  Style updates for college department refresh - Spring 2022 - EB ----- */

/* update link hover color to match brand guide */
a:active, a:hover {
    color: #067ed4;
}

/* Increase line height to comply with accessibility standards */
p {
	line-height: 1.5rem;
}

.wp-block-uagb-column h3.has-text-color::after {
	content: "";
	display: inline-block;
	width: 1.1rem;
	height: 1.1rem;
	margin-left: .3em;
	border: 4px solid #FFE404;
	border-width: 0 4px 4px 0;
	position: relative;
	top: -.2rem;
	left: -.2rem;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg)
}

.wp-block-uagb-column h3.has-text-color {
	white-space: nowrap
}

.wp-block-uagb-column h3.has-text-color::after {
	margin-left: 0
}

.full-width-content .alignfull {
	width: auto
}

.site-header,
.site-header .wrap.is-at-top {
	background-color: transparent
}

.site-header .site-title {
	text-align: left
}

.site-header .site-title img {
	width: auto
}

.site-header .title-area {
	padding-left: 1.5rem
}

/* fix college link so it's legible */

.site-header .college-dept-title {
	background-color: #500000;
	text-align: right;
	padding: .2rem 0;
	font-family: "Open Sans", sans-serif;
	font-size: .9rem
}
.site-header .college-dept-title a {
    color: #fff;
		text-decoration: none;
}
.site-header .college-dept-title a:hover,  .site-header .college-dept-title a:focus {
    text-decoration: underline;
}

/* Add a hidden text class just in case */
.sr-only {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

/* navigation style updates */
.nav-primary {
	background-color: #500000;
}
.nav-primary .menu .is-active>a,
.nav-primary .dropdown.menu>li.is-active>a,
.nav-primary .top-bar .submenu a[href="#"]:hover {
	background-color: #500000;
}
.nav-primary .top-bar .submenu,
.nav-primary .top-bar .submenu ul {
	background-color: #500000;
}
.nav-primary .top-bar a:hover {
	text-decoration: underline;
}
.nav-primary .top-bar .submenu a:hover {
	background-color: #500000;
	text-decoration: underline;
}

.nav-primary a,
.nav-primary a:hover,
.nav-primary li:hover a,
.nav-primary li:hover .menu-depth-1 a,
.nav-primary .menu-depth-1 a {
	color: #F8F8F8;
	background-color: transparent;
}

#nav-menu-primary .accordion-menu li {
	width: 100%;
	text-align: left !important;
}

@media screen and (max-width: 39.94em) {
	.nav-primary .top-bar,
	.nav-primary .top-bar ul {
		background-color: transparent
	}
	.nav-primary .menu a {
		-webkit-transition: none;
		transition: none
	}
	.nav-primary .menu a:hover {
		background-color: transparent
	}
}

@media print,
screen and (min-width: 40em) {
	.nav-primary,
	.nav-primary .top-bar,
	.nav-primary .top-bar ul {
		background-color: #060606;
	}
	.nav-primary .menu-primary>li>a:hover,
	.nav-primary .menu-primary>li.is-active>a {
		background-color: #560000;
	}
}

.submenu li.linked>a:hover,
.submenu li.linked>a:focus {
	background-color: #500000;
}

.title-bar.title-bar-navigation .menu-icon::after,
.title-bar.title-bar-navigation .menu-icon:hover::after {
	background-color: #000;
	-webkit-box-shadow: 0 8px 0 #000, 0 16px 0 #000;
	box-shadow: 0 8px 0 #000, 0 16px 0 #000;
}


/* Student features need breathing room regardless of screen size */
#student-feature {
	margin-top: 3rem;
	margin-bottom: 3rem;
}



/* add maroon to headers and footers */
.nav-primary, .nav-primary .top-bar, .nav-primary .top-bar ul {
    background-color: #500000;
}
.site-footer, .site-footer .footer-container {
    background-color: #410000;
}
/*Add padding above social icons */
#a2a_follow_widget-2 {
	padding-top: 1rem;
}
#a2a_follow_widget-2 .addtoany_list .a2a_label {
	overflow: auto;
	display: none;
}

/*update site title department name on homepage */

/* homepage title */
.home #landing-page-title .wp-block-cover__inner-container {
	position: absolute;
	bottom:1rem;
	left: 10vw;
}
.home #landing-page-title .department-of {
	font-size: 3.5rem !important;
  font-weight: 400;
}
.home #landing-page-title .home-title-text {
	font-size: 4rem!important;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 3.5rem;
	text-shadow: 0px 0px 15px rgb(0 0 0 / 50%);
}

/* home quote spacing */
#home-quote {
	margin-top: 4rem;
}
#home-quote h3 {
	padding-top: 3rem;
}

/* more attempts to kill the sidebar */
.single-post aside, .page-template-default aside, .archive aside {
	display: none;
}


/* hide byline info on agribusiness entreprenuership update posts */
.uagb-post-grid-byline {
	display: none;
}

/* Remove padding for the top of pages with covers or background blocks at the top */ 
#landing-page-title, #interior-page-heading-block, #interior-page-cover{
	margin-top: -2rem;
} 
/* Align page titles with the rest of the page content */
#landing-page-title .wp-block-cover__inner-container {
	width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
/* Make sure the bottom footer covers any overlap from the AgriLife A */
.site-footer {
	z-index: 2;
}
/* Align footer content left */
.site-footer .footer-container p {
    text-align: left;
    padding-left: 0.94rem;
    padding-right: 0.94rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 74rem;
}
.site-footer .footer-container ul {
	text-align: left;
}
.site-footer .req-links li:first-child {
    padding-left: 0.65rem !important;
}
/* make button border and hover brand-approved red */
body .wp-block-file .wp-block-file__button, body .wp-block-button .wp-block-button__link, .ab-button-shape-circular, .ab-block-cta .ab-button-shape-circular{
	border-left-color: #e4002b !important;
}
a.wp-block-button__link:hover {
	box-shadow: none !important;
	background-color: #e4002b !important;
}
/* give white buttons a maroon hover state */
a.uagb-infobox-cta-link:hover, .entry .entry-content a.uagb-infobox-cta-link:hover, a.uagb-infobox-link-wrap:hover, .entry .entry-content a.uagb-infobox-link-wrap:hover .entry .entry-content a.uagb-infobox-cta-link:hover {
    color: #fff;
    background-color: #500000;
}


/* set a max width for paragraph text for legibility */
p {
	max-width: 900px;
}
.has-text-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ...and max width for list items */
ul li {
	max-width: 900px;
}

/* ...except for people list blocks */
li.people-listing-item {
	max-width: 100%;
}

/* remove borders on tables and replace with drop shadows. */
.wp-block-table.is-style-stripes {
    border: 1px solid #f0f0f0;
    box-shadow: 0 0 10px rgb(112 112 112 / 20%);
    -webkit-box-shadow: 0 0 10px rgb(112 112 112 / 20%);
    -moz-box-shadow: 0 0 10px rgba(112, 112, 112, 0.2);
}
.wp-block-table .table {
    border: 0 !important;
}
/* Table interior borders */

table {
    border: 1px solid #f0f0f0;
    margin-bottom: 0;
}
thead tr {
    background-color: #d1d1d1 !important;
}
th {
    padding: 1rem 0.75rem;
    border: 1px solid #fff !important;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    border: 1px solid #fff;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
    border: 1px solid #f0f0f0;
}

/*improve readability of buttons on photo cover elements */
.wp-block-cover .wp-block-button a {
	background-color: #500000 !important;
	font-size: 1rem;
	text-decoration: none;
	border: 1px solid #fff !important;
}
.wp-block-cover .wp-block-button a:hover {
	background-color: #e4002b !important;
	text-decoration: underline;
	border: 1px solid #fff !important;
}



/* remove negative top margin for first child images */
.wp-block-cover:first-child, .wp-block-image:first-child {
    margin-top: 0;
}

/* Prettifying stat row */
#stat-row .uagb-columns__inner-wrap {
	width: 75%;
}
#stat-row .uagb-ifb-title-prefix {
	font-family: 'Oswald', sans-serif;
	font-weight: 200;
	font-size: 3.5rem;
}

/* Research Cards - Nov 2022*/
.research-card-row .research-card {
	padding: 1.5rem;
	margin: .5rem;
	box-shadow: 0 0 10px rgb(112 112 112 / 20%);
    -webkit-box-shadow: 0 0 10px rgb(112 112 112 / 20%);
    -moz-box-shadow: 0 0 10px rgba(112, 112, 112, 0.2);
}
.research-card p {
	margin-bottom: 1rem;
}

/* contact row with multiple boxes - Mar 2023*/
#contact-block {
	margin-bottom: -2rem;
    padding-bottom: 3rem;
} 
#contact-block .grey-bg-contact-columns {
	max-width: 70rem;
    margin: 0 auto;
}
#contact-block .contact-box {
	padding-top: 2rem;
	padding-bottom: 2rem;
}
#contact-block .contact-box p {
	margin-bottom: 1rem;
	color: #fff;
	font-weight: 500;
}
#contact-block .contact-box .wp-block-button {
	margin: 0;
}
#contact-block .contact-box .wp-block-button .wp-block-button__link {
	background-color: #fff !important;
	font-weight: 600;
	color: #500000;
	border: 2px solid #fff !important;
	text-align: center;
}
#contact-block .contact-box .wp-block-button .wp-block-button__link:hover {
	background-color: #500000 !important;
	font-weight: 600;
	color: #fff;
	border: 2px solid #e4002b;
	text-align: center;
}

/* Blog post and query loop styles - Mar 2023 */
#home-updates .wp-block-post-date {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: right;
    font-weight: 500;
    font-size: .9rem;
    padding-right: 0.5rem;
    background-color: #f6f6f6;
}
#home-updates .wp-block-post-title a {
	text-decoration: none;
}
#home-updates .wp-block-post-title a:hover {
	text-decoration: underline;
}
#home-updates .wp-block-post-excerpt__more-text {
	text-align: right;
}
#blog-posts {
	margin-top: 3rem;
}
#blog-posts .post-details {
	margin-top: 3rem;
}
#blog-posts .post-image {
	flex-basis: 25%;
}
#blog-posts .post-content {
	flex-basis: 70%;
}
#blog-posts .post-content p.blog-date {
	margin-bottom: 1rem;
}
#blog-posts h2.blog-post-title {
	font-size: 2rem;
}
#blog-posts h2.blog-post-title a {
	text-decoration: none;
}
#blog-posts h2.blog-post-title a:hover {
	text-decoration: underline;
}
#post-page-cover {
	min-height: 250px;
}
.post .entry-footer {
	border-top: 2px solid #f6f6f6;
    padding-top: 1rem;
    margin-top: 3rem;
}
.post .entry-footer p.entry-meta {
	margin-bottom: 0;
	font-style: italic;
}

/* Seminar Custom Post Type - EB Dec 2023 */
.single-bcbp-seminars h2.speaker {
	margin-bottom: 0.5rem;
    font-weight: 600;
	font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
}
.single-bcbp-seminars .speaker-title {
	font-size: 1.2rem;
    font-style: italic;
}
.single-bcbp-seminars .date {
	font-size: 1.1rem;
}
.single-bcbp-seminars .seminar-host, .single-bcbp-seminars .seminar-time {
	margin-bottom: 0;
	line-height: 1.75rem;
}
.single-bcbp-seminars h2.abstract {
	margin-top: 2rem;
}
.post-type-archive-bcbp-seminars #upcoming-seminars {
	margin-bottom: 5rem;
} 
.post-type-archive-bcbp-seminars #past-seminars {
	margin-bottom: 2rem;
}
.post-type-archive-bcbp-seminars .seminar-listing {
	margin-top: 1.5rem;
	padding-bottom: 1rem;
    border-width: 2px;
    border-style: solid;
}
.post-type-archive-bcbp-seminars #upcoming-seminars .seminar-listing {
    border-image: linear-gradient( to right, #ffffff 0%, #f6f6f6 100% ) 0 0 100% 0;
}
.post-type-archive-bcbp-seminars #past-seminars .seminar-listing {
    border-image: linear-gradient( to right, #e0e0e0 0%, #ffffff 100% ) 0 0 100% 0;
}
.post-type-archive-bcbp-seminars .seminar-date {
    text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 0;
}
.post-type-archive-bcbp-seminars p.speaker-name {
	font-weight: 500;
    font-size: 1rem;
	margin-bottom: 0;
}
.post-type-archive-bcbp-seminars p.speaker-title {
	font-style: italic;
	margin-bottom: .5rem;
}
.post-type-archive-bcbp-seminars p.no-seminars {
	font-size: 1.15rem;
    margin-top: 2rem;
}

    

/*@media (max-width: 781px) {
	.post-type-archive-bcbp-seminars #upcoming-seminars .post-image {
		display: none;
	}
}
*/

/* updates to the single post template in anticipation of AT content imports */
.single-post .site-inner>.grid-container, .single-department-updates .site-inner>.grid-container, .single-bcbp-seminars .site-inner>.grid-container, .post-type-archive-department-updates .site-inner>.grid-container, .post-type-archive-bcbp-seminars .site-inner>.grid-container {
	padding-top: 0;
}
.single-post .post-header, .single-department-updates .post-header, .post-type-archive-department-updates .archive-header, .single-bcbp-seminars .post-header, .post-type-archive-bcbp-seminars .archive-header {
    background-image: linear-gradient(150deg,rgb(246,246,246) 30%,rgba(255,255,255,0) 100%);
    padding-top: 3rem;
    padding-bottom: 3rem;
	margin-bottom: 3rem;
}
.single-post .post-header .header-content, .single-department-updates .post-header .header-content, .post-type-archive-department-updates .archive-header-content, .single-bcbp-seminars .post-header .header-content, .post-type-archive-bcbp-seminars .archive-header-content {
	max-width: 82vw;
    margin-left: auto;
    margin-right: auto;
}
.single-post .post-header .header-content h1, .single-department-updates .post-header .header-content h1, .single-bcbp-seminars .post-header .header-content h1 {
	max-width: 900px;
}
.single-post .post-header .header-content h2.subheading, .single-department-updates .post-header .header-content h2.subheading, .single-bcbp-seminars .post-header .header-content h2.subheading {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
	max-width: 900px;
}
/*.single-post .post-header .header-content .date-author {
    text-transform: uppercase;
} */
/* Change to special AT Kitchen Sink styles to keep them simple. It's not the prettiest CSS. */
.pullquote-topo-maroon .wp-block-cover__background, .pullquote-topo-grey .wp-block-cover__background, .pullquote-duotone-maroon .wp-block-cover__background, .pullquote-duotone-maroon {
	background-color: #f6f6f6 !important;
}
.pullquote-topo-maroon, .pullquote-topo-grey, .pullquote-duotone-maroon, .pullquote-offset-image {
	min-height: 200px;
	margin-bottom: 2rem !important;
}
.pullquote-topo-maroon .wp-block-cover__inner-container, .pullquote-topo-grey .wp-block-cover__inner-container, .pullquote-duotone-maroon .wp-block-cover__inner-container, .pullquote-offset-image .gb-container-content {
	width: 75rem !important;
	padding: 3rem 2rem 2rem 2rem;
}
.pullquote-topo-maroon p, .pullquote-topo-grey p, .pullquote-duotone-maroon p {
	color: #000 !important;
	font-size: 1.25rem !important;
}
.pullquote-offset-image .wp-block-image, .pullquote-duotone-maroon .wp-block-cover__image-background {
	display: none !important;
}
.single .wp-block-gallery {
	margin-bottom: 3rem;
}
/* hide CTAs if we can't strip them */
.cta-topo-maroon, .cta-topo-grey, .cta-offset-image-right, .cta-offset-image-left {
	display: none;
}

/* Configure new News block in anticipation of AT content imports */
.department-news-block {
	margin-bottom: 3rem;
	margin-top: 3rem;
}
.department-news-block h2 {
	margin-bottom: -2rem;
}
.department-news-block .news-article {
	margin-top: 3rem;
}
.department-news-block .wp-block-post-excerpt__excerpt {
	margin-bottom: 1rem;
}
.department-news-block .wp-block-post-template {
	margin-left: 0;
}
/* make read more button match other buttons */
.department-news-block .wp-block-read-more {
    background-color: #500000 !important;
    border-radius: 0px;
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: red;
    color: #FEFEFE;
	display: inline-block;
    vertical-align: middle;
    margin: 0 0 1rem;
    padding: 0.85em 1em;
    -webkit-transition: background-color .25s ease-out,color .25s ease-out;
    transition: background-color .25s ease-out,color .25s ease-out;
    font-family: inherit;
    font-size: .9rem;
    -webkit-appearance: none;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}
.department-news-block .wp-block-read-more:hover, .department-news-block .wp-block-read-more:focus { 
    box-shadow: none !important;
    background-color: #e4002b !important;
}

/* reconfigure social media table so it's easier to read on mobile */
#social-table-desktop {
	display: block;
}
#social-table-mobile {
	display: none;
}

/* Styles for new Stat Bar - SS Oct 2023 */

/* new stat bar - large screen breakpoint Oct 2023 SS */
@media (min-width: 1153px) {
    .stat-large .stat-bar-row .stat-bar {
        margin: 0.5rem;
        border-style: solid;
        border-color: #9C2F2F;
        border-width: 0.5px;
    }
    .stat-large .stat-top p {
        font-family: 'Oswald', sans-serif;
        font-weight: 200;
        font-size: 2.75rem;
        padding: 3rem 1.5rem 2rem;
    }
    .stat-large .stat-bottom p {
        font-size: 1.25rem;
        font-weight: 500;
        background-color: #9C2F2F;
        padding: 0 1.5rem 3rem;
        margin-bottom: 0;
    }
	.stat-medium {
		display: none;
	}
    .stat-small {
		display: none;
	}
}


/* display the reconfigured table when the large table starts to break */
@media (max-width: 900px) {
		#social-table-desktop {
		display: none;
	}
	#social-table-mobile {
		display: block;
	}
	#social-table-mobile td {
		padding: 1rem;
	}
}

/* new stat bar - medium screen breakpoint Oct 2023 SS */
@media (max-width: 1152px) and (min-width: 782px) {
    .stat-large {
		display: none;
	}
    .stat-medium .stat-bar-row .stat-bar {
        margin: 0.5rem;
        border-style: solid;
        border-color: #9C2F2F;
        border-width: 0.5px;
    }
    .stat-medium .stat-top p {
        font-family: 'Oswald', sans-serif;
        font-weight: 200;
        font-size: 2.75rem;
        padding: 3rem 1.5rem 2rem;
    }
    .stat-medium .stat-bottom p {
        font-size: 1.25rem;
        font-weight: 500;
        background-color: #9C2F2F;
        padding: 0 1.5rem 3rem;
        margin-bottom: 0;
    }
    .stat-small {
		display: none;
	}
}

/* Two versions of the Student Feature row - large/small screens */
@media (min-width: 783px) {
	#student-feature-columns {
		display: none;
	}
	#student-feature-cover {
		display: flex;
	}
	#student-feature-cover .wp-block-cover__inner-container {
		padding: 2rem;
	}
}

@media (max-width:782px) {
	#student-feature-cover {
		display: none;
	}

	#student-feature-columns {
		display: block;
	}
}

/* Specific break points for the ALEC Fazzino student feature, since her photo has more of a centered focal point */
@media (min-width: 1101px) {
	#fazzino-student-feature #student-feature-columns {
		display: none;
	}
	#fazzino-student-feature #student-feature-cover {
		display: flex;
	}
	#fazzino-student-feature #student-feature-cover .wp-block-cover__inner-container {
		padding: 2rem;
	}
}

@media (max-width:1100px) {
	#fazzino-student-feature #student-feature-cover {
		display: none;
	}

	#fazzino-student-feature #student-feature-columns {
		display: block;
	}
}

@media (max-width: 1000px) and (min-width: 601px) {
	.home #landing-page-title .wp-block-cover__inner-container {
		position: absolute;
		bottom: 1rem;
		left: 0;
	}
	.home #landing-page-title .home-title-text {
		font-size: 3rem!important;
		line-height: 3rem;
	}
	.home #landing-page-title .department-of {
		font-size: 2rem !important;
	}
	#landing-page-title .wp-block-cover__inner-container {
		width: 100%;
	}
	#giving-cover img {
		object-position: center !important;
		right: 0;
		left: auto;
    	width: 50%;
	}
	#giving-cover .wp-block-cover__inner-container .wp-block-spacer {
		display: none;
	}
	#giving-cover .wp-block-cover__inner-container .uagb-columns__wrap {
		width: 50%;
		padding: 0;
	}
	#giving-cover .real-div {
		width: 100%;
	}
	#giving-cover .fake-div {
		display: none;
	}
}

/* new stat bar - small screen breakpoint Oct 2023 SS */
@media (max-width: 781px) {
    .stat-large {
		display: none;
	}
    .stat-medium {
		display: none;
	}
	.stat-small .small-stat-numbers {
		margin-bottom: 5px;
		margin-top: 5px;
		font-family: 'Oswald', sans-serif;
		font-weight: 200;
		font-size: 3.5rem;
	}
	.stat-small .small-stat-numbers:after {
		border-bottom: 3px solid #9c2f2f;
		content: '';
		position: absolute;
		display: block;
		width: 30%;
		left: 35%;
		height: 40%;
	}
	.stat-small .small-stat-words {
		margin-bottom: 50px;
		margin-top: 60px;
	}
}


/* smallest screen fixes */
@media (max-width: 600px) {
	.home #landing-page-title .wp-block-cover__inner-container {
    position: absolute;
    bottom: 1rem;
    left: 0;
	}
	.home #landing-page-title .home-title-text {
		font-size: 3rem!important;
		line-height: 3rem;
	}
	.home #landing-page-title .department-of {
		font-size: 2rem !important;
	}
	#landing-page-title .wp-block-cover__inner-container {
		width: 100%;
	}
	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		margin-top: 1rem;
	}
	.site-header .site-title img {
		width: 100%;
		max-width: 20rem;
	}
	.wp-block-button .wp-block-button__link {
		text-align: left;
	}
	table {
		font-size: 15px;
	}
	#interested-in-applying-contact-us a {
		display: block;
	}
	#giving-cover {
	margin-top: 22rem;
	}
	#giving-cover .wp-block-cover__inner-container {
		margin-top: -52rem;
	}
	#giving-cover img {
		object-position: center !important;
	}
	#giving-cover .wp-block-cover__inner-container .wp-block-spacer {
		display: none;
	}
	.spacer-no-mobile {
		display: none;
	}
}

/* -- Print styles -- */
@media print,
screen and (min-width: 40em) {
	.site-header .title-area {
		padding-left: 0
	}
	.site-header .header-grid-container {
		padding-top: 1rem;
		padding-bottom: 1rem
	}
}
