/* Theme Name:   Cornell Thought Summits
 Description:    A custom theme for the Cornell Artificial Intelligence Materials Institute website, based on the Divi theme.
 Author:         AWP
 Author URI:     https://awpny.com
 Template:       Divi
 Version:        1.0.0
*/

/*---------------------*/
/* SCREEN READERS ONLY */
/*---------------------*/
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/*---------------*/
/* CORNELL FONTS */
/*---------------*/
p {
	font-family: freight-sans-pro, sans-serif;
	font-weight: 400;
	font-style: normal;
}
.p-semi p {
	font-weight: 600 !important;
}
.p-bold p {
	font-weight: 700 !important;
}
h1, h2 {
	font-family: freight-text-pro, serif !important;
	font-weight: 500;
	font-style: normal;
}
h3 {
	font-family: freight-text-pro, serif;
	font-weight: 400 !important;
	font-style: normal;
	font-size: 32px !important;
}
.et_pb_button {
	font-family: freight-sans-pro, sans-serif;
	font-weight: 900; 
}
span.published {
    font-weight: 700;
}


/*-------------*/
/* LINK STYLES */
/*-------------*/
:root {
  --aimi-link-color: #006699;
}
body:not(.et_pb_pagebuilder_layout) .entry-content a,
.et_pb_tab a,
.et_pb_text a,
.post-meta a,
.expert-details a,
.dsm_icon_list .dsm_icon_list_text,
.pagination a {
	border-bottom: 1px solid #ccc; 
	color: var(--aimi-link-color);
}
footer .dsm_icon_list .dsm_icon_list_text {
	color: #fff;
}
body:not(.et_pb_pagebuilder_layout) .entry-content a:hover,
.et_pb_tab a:hover,
.et_pb_text a:hover,
.post-meta a:hover,
.expert-details a:hover,
.et_pb_blurb_content a:hover,
.entry-title a:hover,
.pagination a:hover {
	border-bottom: 1px solid #31789b;
}
.dsm_icon_list .dsm_icon_list_text:hover {
	border-bottom: 1px solid #31789b;
}
.home-navbar a, .main-header a, footer .dsm_icon_list .dsm_icon_list_text, footer .footer-ai-links a {
    border-bottom: none;
}
.home-navbar a:hover, .main-header a:hover {
	border-bottom: none;
}
.et_pb_bg_layout_light  .et_pb_post .post-meta a {
	color: var(--aimi-link-color);
}
a.more-link:hover {
    background-color: #f7f7f7;
}

/*----------------------*/
/* TOP-LEVEL NAV STYLES */
/*----------------------*/

/* no pointer for empty top-level links */
.menu-item-has-children>a {
    cursor: default;
}

/* Center-align the dropdown */
.ai-menu ul.nav > li > ul.sub-menu {
    transform:translateX(-50%) !important;
    left:50% !important;
    transition: all .3s ease-in-out !important;
}

/* Change the width of the dropdown container */
.ai-menu ul.sub-menu {
    width: 200px !important;
}

/* Change the width of the links inside the dropdown */
.ai-menu ul.sub-menu li,
.ai-menu ul.sub-menu li a {
    width: 100% !important;
	text-align: center !important;
}

/* Position the second level dropdown correctly */
.ai-menu .nav li li ul {
    left: 200px !important;
}
.ai-menu .nav li.et-reverse-direction-nav li ul {
    left:auto !important;
    right:200px !important;
}

/* Remove the down arrow from divi primary menu */
.ai-menu .et-menu .menu-item-has-children>a:first-child:after {display:none;}
‪.ai-menu .et-menu .menu-item-has-children>a {
    margin-right: -20px !important;
}
.ai-menu .nav ul li a:hover {
	background-color: rgba(0,0,0) !important;
}

/* fix line height for menu items that wrap */
.et_pb_menu_0_tb_header.et_pb_menu .nav li ul.sub-menu li {
	display: block !important;
	padding: 0 12px !important;
}

/* Remove the dropdown border and inner spacing */
.ai-menu.et_pb_menu .et-menu-nav ul.sub-menu {
    padding: 10px !important;
    border-top: 0 !important;
	border-bottom: 0 !important;
}

/* Remove the dropdown shadow */
.ai-menu.et_pb_menu .et-menu-nav ul.sub-menu {
    box-shadow: none !important;
}

/*-------------------*/
/* MOBILE NAV STYLES */
/*-------------------*/

@media (max-width: 980px) {
	/* right align text */
	.et_pb_menu .et_mobile_menu, .et_pb_menu .et_mobile_menu ul {
		text-align: right !important;
	}
	/* Fix mobile menu not being full-width */
	.home-navbar .et_pb_column,
	.home-navbar .et_pb_menu,
	.home-navbar .et_pb_menu_inner_container,
	header .et_pb_column,
	header .et_pb_menu,
	header .et_pb_menu_inner_container {
		position: static !important;
	}
	.ai-menu ul.sub-menu li a {
    	text-align: right !important;
	}
	.ai-menu ul.sub-menu {
    	width: 100% !important;
	}
	.ai-menu .sub-menu li a::after {
    	content: ' +';
	}
	.ai-menu ul.sub-menu li a {
		padding-right: 20px;
	}
	.ai-menu .et_mobile_menu {
		border-top: 0px !important;
	}
	.ai-menu .et_mobile_menu .menu-item-has-children>a {
		background-color: transparent !important;
	}
	.ai-menu .et_mobile_menu li a:not(.ai-menu .et_mobile_menu .sub-menu li a) {
    	font-size: 17px !important;
	}
}

/* mobile menu scroll */
.et_mobile_menu {
	max-height: calc(100vh - 280px);
	overflow-y: auto;
}

/* Shrink mobile menu column so logo can be bigger */
@media (max-width: 980px) {
	.et-l--header .et_pb_column--with-menu.et-last-child {
		width: auto !important;
		margin-left: 20px;
	}
}



/*---------------------------------------*/
/* DIVI SLIDER ACCESSIBILITY ADJUSTMENTS */
/*---------------------------------------*/
.et-pb-arrow-next.keyboard-outline {
       opacity: 1;
       right: 22px;
}
.et-pb-arrow-prev.keyboard-outline {
       opacity: 1;
       left: 22px;
}


/*---------------------------------------*/
/* PASSWORD PROTECTED PAGE LOGIN STYLES  */
/*---------------------------------------*/
.et_password_protected_form {
    max-width: 500px;
    margin: auto;
    margin-top: 60px;
}
.et_password_protected_form .et_submit_button:hover {
    padding: .3em 2em .3em 1em;
}
.et_password_protected_form p input {
	font-size: 20px;
}

