/**
Theme Name: CVU Astra
Author: City Vision University (Evan Donovan)
Author URI: https://www.cityvision.edu
Description: Based on WPAstra.com Pro version.
Version: 1.0.2
License: Proprietary to City Vision University
Text Domain: cvu-astra
Template: astra
*/

/*
 * Table of Contents (UPDATE)
 * =================
 *
 * # Homepage customizations
 * # ActiveCampaign
 * # Typography
 * # Colors
 * # Degree page customizations
 * # Course page customizations
 * # Core Wordpress overrides
 * # Rendering bug fixes
 */

/* LearnDash customizations */

/* for breadcrumbs */
.learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span a {
  color: black !important;
}

/* course progress */
.learndash-wrapper .ld-table-list .ld-table-list-header {
  padding: 5px 22px;
}

/* learndash course grid item */
.ld_course_grid .entry-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/*
 * Homepage customizations
 */

/* For title */
.bg-opacity {
  /* Fallback */
  background-color: #000;
  /* Opacity for spans */
  background-color: rgba(0,0,0,0.6);
  /* Make the spacing right (at least on desktop) */
  line-height: 124%;
}

/* For spans in title */
.extra-bold { font-weight: 900; }

/* media query - prevent above the fold from being too tall on extremely large screens */
/* https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries */
/* only do this on homepage because of the negative margin on degree pages */
@media(min-width: 1280px) {
  .home #above-fold { 
    max-height: 480px;
  }
}

@media(max-width: 1027px) {
	/* cancel out negative margins when degree pages get smaller */
	.single-lp .elementor-element.elementor-element-40e7156 {
		margin-top: 0px;
	}
}

/* width of main heading container column - shrunk slightly to try to make it stay on same row if possible */
#above-fold .elementor-element-d36faef {
  width: 90%;
 }
 
/* media query - for monitors or landscape-oriented tablets don't break the form down to the next line */
 @media(max-width:1024px) and (min-width:900px) {
  #above-fold .elementor-row {
	  flex-wrap: nowrap;
  }
 }

/* styles for the main heading */

/* this is to make it scale - there is a media query and an em-based fallback in Elementor */
/* this is also wrapped in a media query so it doesn't impact enormous screens */
/* https://stackoverflow.com/a/46586836/263877 */
 @media(max-width:1920px) {
  #above-fold h1 {
	font-size: calc(1rem + 1vw);
  }
 }

/* styles for form box */

/* select the form box specifically (2nd div) - https://www.w3schools.com/cssref/sel_nth-of-type.asp */
#above-fold .elementor-container .elementor-row div.elementor-column:nth-of-type(2) {
	width: 380px;
	
}

#above-fold .elementor-container .elementor-row div.elementor-column:nth-of-type(2) section div.elementor-column-wrap {
  border: 3px solid #fff;
  padding-top: 15px;
  padding-bottom: 15px;
}

#above-fold .elementor-container .elementor-row div.elementor-column:nth-of-type(2) .elementor-heading-title {
	text-shadow: none;
	font-weight: 900;
	font-size: 1.5rem;
}

/*
 * Styles to fix the ActiveCampaign form
 */
._marketing-by { display: none; }

._form-title { display: none; }

._form-label { 
  font-weight: bolder; 
  font-size: 1rem;
}

/* more spacing between the form fields on the modal version */
.dialog-lightbox-widget ._full_width {
	margin-top: 6px;
}

._form-content { color: white; padding-left: 20px; padding-right: 20px; }

._full_width input, ._full_width button { width: 100%; }

.g-recaptcha {
	padding-top: 15px;
	transform: scale(0.75);
}

/* Styles for button - on AC and generally */
/* Using the #content id to make the selector specific enough */
#content button {
	margin-top: 10px; 
	font-weight: 600;
	color: #fff;
	border-width: 1px;
	border-color: black;
	background: linear-gradient(#e03035,#ae0c0e);
	background-color: #ae0c0e;
	border-radius: 10px 10px 10px 10px;
	padding: 4px;
}

/* keep the words readable on hover */
#content button:hover {
	color: #fff;
}

/* Styles for header */

/* style the links in the top part of the header except the last one */
header .elementor-icon-list-item a{
  color: white;
  text-decoration: underline;
}

/* style the donate link in the header - doesn't have a specific css class in markup */
/* todo: decide whether I need to alter markup to support older browsers */
header .elementor-icon-list-item a[href$="donate"] {
	color: #fff;
	font-size: 18px;
	line-height: 22px;
	font-weight: 500;
	font-style: normal;
	border-style: solid;
	border-radius: 5px;
	border-width: 1px;
	border-color: #ffffff;
	background-color: #ae0c0e;
	text-decoration: none;
	text-decoration-color: #ae0c0e;
	text-align: center;
    padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 20px;
	padding-right: 20px;
}

/* Media query to fix the gap between phone number and menu in the header */
@media(max-width: 767px) {
	header.elementor-element-15244b68 .elementor-element.elementor-element-32239c8 > .elementor-widget-container {
		margin: -15px 0px 0px 0px;
	}
}

/* IE fix - make the header full width */
header.elementor-element-15244b68 {
		width: 100%;
}

 /* media query - for tablets to fix the menu and supporting links */
 @media(min-width: 481px) and (max-width:900px) {
  header.elementor-element-15244b68 .elementor-element.elementor-element-31fad07 {
	  width: 85%;
  }
  
  header.elementor-element-15244b68 .elementor-element.elementor-element-edb263f {
	  width: 15%;
  }
 }


/* flip the above fold background image just for tablets (the 1024 x 768 needs the original image) */
/* TODO: don't do this on the non-homepage images */
@media(max-width: 900px) {
	#above-fold {
		background-image: url("/wp-content/uploads/2019/07/unbounce-contest-ebook-header.crop_.jpg");
	}
}

/* Make the Google Chart smaller so it is readable on tablet & mobile - TODO: make it responsive  */
#chart_div { width: 400px; height: 300px; }

/* Styles for footer */

/* Set a black background to prevent the whitespace gap */
body {
	background: #000;
}

/* override for Elementor screens */

body.elementor-editor-active {
	background: #fff;
}

/* Make the footer show at the very bottom of the page - https://stackoverflow.com/a/34189203/263877, option 3 */
/* todo: fix how this works on embedded iframes */
#content {
	background: #fff; /* need to have this or the content will also be black */
	min-height: calc(100vh - 250px); /* total vh - height of footer */
	/* TODO: a responsive version for when the footer is taller */
}

/* override for the application form and the sample course page */
/* TODO: inline style of height may be wrong on application form */
.page-id-3413 #content, .postid-6603 #content, .postid-6620 #content {
	min-height: auto;
}	

/* Making bottom bar take less vertical space */	

#elementor-popup-modal-5910 .dialog-message {
	margin: 0px;
	padding: 0px;
	border: none;
	max-height: 60px; /* this was needed for smaller screens */
}

#elementor-popup-modal-5910 .elementor-section {
	margin: 0px;
	padding: 0px;
	border: none;
}

#elementor-popup-modal-5910 a.elementor-button {
	padding-top: 9px;
	padding-bottom: 9px;
}

/* Fix the media queries on width for bottom bar - needed for 1024 x 768 */

@media(max-width:1024px) and (min-width:768px) {
 #elementor-popup-modal-5910 .elementor-element.elementor-element-5a4960c3 {
  width:25%;
 }
 /* button 1 */
 #elementor-popup-modal-5910 .elementor-element.elementor-element-33192c5a {
  width:25%;
 }
 /* button 2 */
 #elementor-popup-modal-5910 .elementor-element.elementor-element-79fe297f {
  width:25%;
 }
 #elementor-popup-modal-5910 .elementor-element.elementor-element-5a4960c3 {
  width:25%;
 }
}

/*
 * Typography overrides - Astra theme customizer doesn't support rem sizing 
 */

/* Typography guide - https://www.modularscale.com/?16&px&1.125 */

/* restrict the width of post content on non-Elementor pages (for readability) */
:not(body.elementor-page) .entry-content {
	max-width: 60rem;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
	margin-top: 0.2rem;
	margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .ast-single-post h1.entry-title, h1.page-title {
	  font-size: 2rem;
	  font-weight: 600;
  }
}

.ast-single-post h1.entry-title, h1.page-title {
 font-size: 2rem;
 font-weight: 600;
}


@media (max-width: 768px) {
.entry-content h2, .entry-content h2 a {
    font-size: 1.6rem;
	font-weight: 500;
  }
}

h2, .entry-content h2, .entry-content h2 a {
  font-size: 1.6rem;
  font-weight: 500;
}

@media (max-width: 768px) {
.entry-content h3, .entry-content h3 a {
    font-size: 1.425rem;
	font-weight: 400;
  }
}

h3, .entry-content h3, .entry-content h3 a {
  font-size: 1.425rem;
  font-weight: 400;
}

@media (max-width: 768px) {
.entry-content h4, .entry-content h4 a {
    font-size: 1.2rem;
	font-weight: 400;
  }
}

h4, .entry-content h4, .entry-content h4 a {
  font-size: 1.2rem;
  font-weight: 400;
}

@media (max-width: 768px) {
.entry-content h5, .entry-content h5 a {
    font-size: 1.1rem;
	font-style: italic;
	font-weight: 400;
  }
}

h5, .entry-content h5, .entry-content h5 a {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 768px) {
.entry-content h6, .entry-content h6 a {
    font-size: 1.1rem;
	font-style: italic;
	font-weight: 300;
  }
}

h6, .entry-content h6, .entry-content h6 a {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
}

/* Astra overrides */

/* reduce spacing at top of posts */
.ast-single-post #primary {
	margin-top: 2rem;
}

/* For headings on Archive pages */
.ast-archive-description .ast-archive-title {
  font-size: 2.2rem;
  font-weight: 400;
}

/* name of search term */
.search .ast-archive-description .ast-archive-title span {
	font-style: italic;
}

/* listed page links on archive and search results pages */
.search .entry-title a, .archive .entry-title a {
  font-size: 1.5rem;
  color: #ae0c0e;
}

/* make blockquotes stand out less by default - just indentation */
blockquote {
	font-style: normal;
	border-left: none;
	margin-top: 0rem;
	margin-bottom: 0rem;
	margin-left: 0.5rem;
	margin-right: 0rem;
	font-size: 1rem;
}

cite {
	font-style: normal;
}

/* Make hr's show up on regular posts and pages */

:not(.elementor-page) hr {
	background-color: #ccc;
}

/* Formatting for preformatted text */

#content pre {
	background: none;
}

/* bring paragraphs closer together */

#content p {
	margin-bottom: 0.75rem;
}	

/* Color overrides */

/* Links */

/* Override just standard links */
a:focus, a:hover {
	color: #df2f34;
}

a {
	color: #ae0c0e;
}

/* headings on Undergraduate menu shouldn't have hover color */
.menu-item-5868 a:hover, .menu-item-5871 a:hover, .menu-item-5869 a:hover {
	color: black !important;
}

/* Degree page customizations */

/* heading on elementor tabs */
.entry-content .emphasis-head
 {
  font-size: 1.125rem;
  font-weight: 600;
}

/* headings on degree pages */
.program-info-head { font-weight: 600; font-size: 1.25rem; }
.program-info { font-size: 1.125rem; }
	
.lg-stat .elementor-heading-title {
	font-weight: 600;
	color: #0A0603;
	font-size: 2rem;
}

.stat-caption .elementor-heading-title {
	font-weight: 500;
	color: #0A0603;
	font-size: 1.25rem;
	font-style: italic;
}

/* Make the links in the tabbed panels red */
.elementor-widget-posts .elementor-post__title a {
	color: #ae0c0e;
}

/* 
 * Course page customizations
 */
 
 /* Make the headings bold */
 .elementor-post-info__item-prefix { font-weight: bold; }
 
/* Links in icon list */
.elementor-icon-list-items .elementor-icon-list-item span.elementor-post-info__terms-list a.elementor-post-info__terms-list-item { color: #ae0c0e; }

.elementor-icon-list-items .elementor-icon-list-item span.elementor-post-info__terms-list a.elementor-post-info__terms-list-item:hover { color: #df2f34; }

/* Customizations on other pages */

/* Make the additional information have no border on the Consumer Info page */
#elementor-tab-title-2001 {
	border-bottom: none;
}


/* Core WordPress overrides */

/* Disable post navigation - irrelevant to our site */

.single .post-navigation {
	display: none;
}

/* Elementor overrides */


/*
 * Rendering bug fixes
 */

/* Fix the issue with highlighted text */
::selection {
	color: black;
	background: #ccc;
}

/*
 * IE 10 specific fixes - https://www.impressivewebs.com/ie10-css-hacks/
 */
@media screen and (min-width:0\0) {
	/* uses flexboxtweener so it doesn't impact IE 9 */
	/* fix the issue with some of the content not wrapping */
   .flexboxtweener li.elementor-icon-list-item {
	   display: inline-block;
	   max-width: 500px;
   }
   
   /* hide the "per year" text because it breaks IE 10 layout */
   .flexboxtweener .elementor-price-table__after-price {
	   display: none;
   }
}

/*
 * IE 9 specific fixes - using Modernizr (https://wordpress.org/plugins/modernizr/, https://codepen.io/evandonovan/pen/bXeqBL)
 */

/* no IE's prior to 9 need to be supported anymore - not enough of the browser share on Analytics */

/* todo: figure out why this is still not working - JS issue on IE 9? */
.no-flexboxlegacy.no-flexboxtweener.no-flexwrap .elementor-element-15244b68 {
	width: 100vw;
}

/* header and footer links */
.no-flexboxlegacy.no-flexboxtweener.no-flexwrap header li,
.no-flexboxlegacy.no-flexboxtweener.no-flexwrap .elementor-element-7e125c1e li 
 {
	float: left;
	display: block;
}

.no-flexboxlegacy.no-flexboxtweener.no-flexwrap header li.menu-item {
	padding-right: 10px;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy header li.menu-item li {
	text-align: left;
	padding-right: 0px;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy header li.menu-item a:hover {
	background: none;
}

/* TODO: figure out how to get the menus to float properly */

/* menu spacing */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-32239c8.elementor-element > .elementor-widget-container {
	margin: 0px 0px 20px 0px;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-nav-menu {
	clear: left;
}

/* get the background the right size */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-3vfx5aa.elementor-element > .elementor-container {
	min-height: 480px;
}

/* tagline */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-h991bof {
	float: left;
}

/* form */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-v0kzet2 {
	float: left;
}

/* subtagline must clear */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy  #subtagline {
	clear: both;
}

/* next two styles fix the bullets */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-widget-template .elementor-icon-list-icon i {
	display: block;
	float: left;
	padding-top: 5px;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-widget-template .elementor-icon-list-text {
	margin-left: 20px;
	display: block;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy #benefits-2
 {
	min-height: 400px;
}
 
 .no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-d8d8b18 .elementor-element-b4fadf3 {
	min-height: 300px;
 }
 
 /* fixes to make the accreditation section readable */
 
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-widget-heading.elementor-element-f921ecd.elementor-element .elementor-heading-title, 
 .no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-widget-heading.elementor-element-f3945fb.elementor-element .elementor-heading-title {
	 background-color: rgba(0,0,0,0.5);
 }
 
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-global-1344.elementor-element,
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-global-2298.elementor-element {
	background-color: rgba(0,0,0,0.5);
}

/* replace all flexbox with floats */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy header .elementor-col-50,                     /* menu links */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-b50a9b2 .elementor-col-50, /* benefits 1 */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy #benefits-2 .elementor-col-50,
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy #affordability .elementor-col-50,
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-d8d8b18 .elementor-col-50, /* testimonials? */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-27fe820 .elementor-col-50, /* prior learning? */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-5ea6e606 .elementor-col-20, /* price table */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-81fbb5f .elementor-col-33, /* empathy text */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-81fbb5f .elementor-col-66 /* empathy text */
 {
	float: left;
}

/* some basic fixes to price table (doesn't fix everything) */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-price-table__after-price {
	float: right;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-price-table__after-price br {
	display: none;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-price-table__features-list {
	clear: right;
}

/* due to the floated content of the price table, this had to be removed
 .no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-1f5be98.elementor-element {
	 border: none;
 }

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-7e125c1e {
	height: 200px;
}

/* footer */
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-7e125c1e .elementor-col-66,
.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-element-7e125c1e .elementor-col-33 {
	float: left;
}

.no-flexwrap.no-flexboxtweener.no-flexboxlegacy .elementor-row {
	clear: both;
}


/* Rendering bug fixes - DEPRECATED for NOW */

/**
 * Fix fonts that render as bold in Firefox
 * https://www.lockedownseo.com/firefox-font-weight-too-bold/
 *
 * Put this near the top of your style.css
 * Before any overriding styles
 */
 
/* html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
} */

