/* Form Banner */
#c-form-banner__container {
		  position: relative;
		}	
	#c-background-parallax-image-banner {
		  position: fixed;
		  display: block;
		  top: 0;
		  left: 0;
		  z-index: -1;
		  width: 100%;
		  height: 100%;
		  object-fit: cover;
		  object-position: center;
		}
	#c-form-banner-inner__container {
		  width: 100%;
		  height: 100%;
		  display: flex;
		  justify-content: end;
		  position: relative;
		  z-index: 2;
		  background-color: #ffffff17;
		  padding: 45px;
		  -webkit-box-shadow: inset 1px 1px 28px rgba(0,0,0,.55);
          box-shadow: inset 1px 1px 28px rgba(0,0,0,.55);
		}
	#c-form-area {
		  width: 50%;
		  min-width: 255px;
		  background-color: #ffffffc9;
		  padding: 35px; 
		}
	#c-form-area h2 {
		  margin-bottom: 20px;
		  color: #444;
		  font-size: 1.4rem;
		  text-transform: uppercase;
		  letter-spacing: 1px;
		}

/* Primary Flex Cards :: COMPONENT */

#flex-cards-section__container {
  padding: 20px 0 20px !important;
  max-width: 1200px;
  margin: 0 auto;
}

#inner-flex-cards-section__container {
	display: block;
	width: 90%;
	margin: 0 auto;
}

.inner-flex-card__container {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}
.flex-card {
    width: 20%;
    height: 335px;
    padding: 10px;
    transition: .6s;
    flex-shrink: 1;
    transition: .6s;
}

.flex-card:focus {
	outline-color: #CEDEF0 !important;			
}			
			
.flex-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.inner-flex-card {
    position: relative;
    border: 1px solid #CEDEF0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}
.active-flex {
    width: 60%;
}

.flex-card .flex-card-bg-color {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    background-color: #002971;
    opacity: .55;
}
.active-flex .flex-card-info__container {
    opacity: 1;	
}
.active-flex .flex-icon__container {
     display: none;
}

.flex-icon__container img {
    height: 100%;
    max-height: 38px;
    height: auto;
	object-fit: contain;
}

.flex-card-info__container {
    opacity: 0;
    transition: .2s;
	transition-delay: .6s;
	transition-timing-function: ease-in;
	position: absolute;
    color: white;
    z-index: 5;
    width: 100%;
	height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.inner-flex-card h3 {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    z-index: 3;
    color: #FEFDFA;
    text-wrap: nowrap;			
}
.flex-card-info__container p {
	transition-delay: .2s;
    width: 100%;
    max-width: 475px;
    margin: 0 auto;
    display: block;			
}
.flex-card-info__container a {
	color: white;
	text-decoration: none;
	font-family: var(--main-header-font);
	font-size: 1.25rem;
	border-bottom: 1px solid var(--prospect-hill-blue);
    width: 110px;
	transition: .6s;
}
.flex-card-info__container a:hover {
	color: var(--prospect-hill-blue);		
}
.flex-card-info__container a:focus {
	color: var(--prospect-hill-blue);		
}

/* === Primary Flex Cards — mobile + tablet === */

  /* Tablet: 2 per row */
  @media (max-width: 991px) {
    .inner-flex-card__container {
      flex-wrap: wrap;
      gap: 16px;
      justify-content: center;
    }
    .flex-card {
      width: 45%;
      height: 280px;
    }
    .inner-flex-card h3 {
      text-wrap: wrap;
      white-space: normal;
      text-align: center;
      bottom: 20px;
      padding: 0 10px;
    }
  }

  /* Phone: 1 per row, always-visible description, no title/text collision */
  @media (max-width: 600px) {
    .flex-card {
      width: 90%;
      height: 220px;
      padding: 0;
    }

    /* Show the body text without needing hover */
    .flex-card-info__container {
      opacity: 1;
      justify-content: flex-end;   /* description anchored to bottom */
      padding: 16px;
    }
    .flex-card .flex-card-bg-color {
      opacity: .7;                 /* dark overlay so white text reads */
    }
    .flex-card-info__container p {
      font-size: 0.9rem;
      line-height: 1.4;
      max-width: 100%;
    }

    /* Move h3 to the top so it can't collide with the description below */
    .inner-flex-card h3 {
      top: 16px;
      bottom: auto;
      font-size: 1.5rem;
    }
  }

  /* Smallest phones: tighten the type a touch */
  @media (max-width: 480px) {
    .inner-flex-card h3 { font-size: 1.2rem; }
    .flex-card-info__container p { font-size: 0.85rem; }
  }

.flex-icon__container {
    position: absolute;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    bottom: 8px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 15px;
    z-index: 1;
}

.inner-flex-icon__container {
    background-color: #FEFDFA;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 2px black;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Events and News :: COMPONENT */

.short-description {
	width: 100%;
    height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.show-events {
	display: none; 
	visibility: hidden;
}

/* Alumni and Student Highlights :: COMPONENT */

#inner-card-section__container {
				display: flex;
    			flex-direction: row;
    			flex-wrap: wrap;
    			justify-content: space-around;
    			width: 100%;
    			max-width: 1200px;
    			margin: 0 auto;
			}
			.primary-card {width: 33%;}
			@media (max-width: 991px) {
				.primary-card { width: 50%; }   /* tablet: 2 per row */
			}
			@media (max-width: 600px) {
				.primary-card { width: 100%; }  /* phone: 1 per row */
				.inner-primary-card { padding: 24px 16px; }
			}
			.inner-primary-card {padding: 12px;}
			.card-content__container {
				border-radius: 4px;
    			aspect-ratio: 1 / 1;
    			position: relative;
    			box-shadow: 0 0 4px var(--prospect-hill-blue);
				overflow: hidden;
				display: block;
				transition: var(--slow-animation-speed);
			}
			.card-visual {
   				width: 100%;
    			height: 100%;
    			object-fit: cover;
    			object-position: center;
				border-radius: 4px;
			}
			.card-content__container h3 {
    			position: absolute;
    			bottom: 0;
    			text-align: center;
    			margin: 0;
    			padding: 20px 0;
    			color: var(--new-haven-warm-white);
    			font-size: 1.4rem;
				z-index: 2;
			}
			.shield-clip {
				position: absolute;
   				width: 100%;
    			height: 100%;
    			z-index: 1;
    			opacity: .98;
    			left: 0;
    			top: 0;
				transition: var(--fast-animation-speed);
				transform: scale(1);
				border-radius: 4px;
			}
			.card-content__container:hover .shield-clip {
				opacity: 0;
				transform: scale(2);
			}
			.card-content__container:hover {
				box-shadow: 0 0 8px var(--prospect-hill-blue);
			}
			.alum-card ,
			.card-animate {
				opacity: 0;
				margin-top: 50px;
			}
			
			
			.card-animate-move {
				opacity: 1 !important;
				margin-top: 0 !important;
			}
			
			.primary-card:nth-child(1) .card-animate {
				transition-delay: .2;
			}
			.primary-card:nth-child(2) .card-animate {
				transition-delay: .4;
			}
			.primary-card:nth-child(3) .card-animate {
				transition-delay: .6;
			}
			
			.inverted-shield {
    			position: absolute;
    			top: 0;
    			left: 0;
    			width: 100%;
    			height: 100%;
				opacity: 1;
				transition: var(--slow-animation-speed);
			}
			.card-content__container:hover .inverted-shield {
				top: -60%;
				opacity: .8;
			}
			.card-content__container:focus .inverted-shield {
				top: -60%;
				opacity: .8;
			}
			.card-text-content {
				position: absolute;
    			top: 35%;
    			left: 50%;
    			transform: translate(-50%, -35%);
    			width: 100%;
				max-width: 200px;
				opacity: 1;
				transition: var(--fast-animation-speed);
			}
			.card-text-content h3 {
				position: relative;
				color: var(--classic-blue);
    			font-size: 1.3rem;
				transition: var(--fast-animation-speed);
			}
			.card-text-content p {
				color: var(--classic-blue);
    			text-align: center;
    			line-height: 1.3 !important;
    			font-family: var(--main-header-font);
    			max-width: 200px;
    			display: block;
    			margin: 0 auto;
			}
			.card-text-content p span {
				font-size: small;
			}
			.alum-background-cover {
    			position: absolute;
    			width: 100%;
    			height: 100%;
    			top: 0;
    			left: 0;
    			background-color: #fefdfa;
    			opacity: .9;
				transition: var(--slow-animation-speed);
			}
			.card-content__container:focus .alum-background-cover,
			.card-content__container:hover .alum-background-cover {
				opacity: 0;
			}
			.card-content__container:focus .card-text-content,
			.card-content__container:hover .card-text-content {
				top: 5%;
			}
			.card-content__container:focus h3,
			.card-content__container:hover h3 {
				font-size: .8rem;
			}
			.card-content__container:focus p,
			.card-content__container:hover p {
				display: none;
			}

/* Slide Carousel :: COMPONENT */

.btn {
  display: table;
color: #fff;
text-decoration: none;
position: relative;
letter-spacing: 4px;
text-transform: uppercase;
transition: color 0.1s linear 0.05s;
text-align: left;
}
/*.btn::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e1e1e1;
  z-index: 1;
  opacity: 0;
  transition: height 0.2s ease, top 0.2s ease, opacity 0s linear 0.2s;
}
.btn::after {
  transition: border 0.1s linear 0.05s;
}*/
.btn .btn-inner {
  position: relative;
  z-index: 2;
}
.btn:hover {
  /*color: #373737;*/
  transition: color 0.1s linear 0s;
}
/*.btn:hover::before {
  top: 0;
  height: 100%;
  opacity: 1;
  transition: height 0.2s ease, top 0.2s ease, opacity 0s linear 0s;
}
.btn:hover::after {
  border-color: #373737;
  transition: border 0.1s linear 0s;
}*/

.slideshow {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Lock the box to a 16:9 ratio at every screen size instead of viewport
     height, so the crop and caption position stay consistent. Centered via
     auto margins so max-width doesn't pin it left. */
  aspect-ratio: 16 / 9;
  margin: -25px auto 0;
  z-index: 1;
}
.slideshow .slideshow-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slideshow .slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.slideshow .slide {
  display: none;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.slideshow .slide.is-active {
  display: block;
}
.slideshow .slide.is-loaded {
  opacity: 1;
}
.slideshow .slide .caption {
  padding: 0 5% !important;
} 
.slideshow .slide .caption {
  padding: 0;
  max-width: 75%;
}
.slideshow .slide .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  z-index: 1;
  background-size: cover;
  image-rendering: optimizeQuality;
}
.slideshow .slide .image-container::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}
.slideshow .slide .image {
  width: 100%;
  width: 100%;
  object-fit: cover;
  height: 100%;
}
.slideshow .slide-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0 !important;
  margin: auto;
  display: block;
  width: 100%;
  /*height: 100%;*/
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 15px;
  /*display: flex;
  justify-content: center;
  align-items: center;*/
}
/* .slideshow .slide:first-child .slide-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  z-index: 2;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
} */
/* .slideshow .slide:first-child .slide-content h1 {
	text-align: center;
	color: #FFF;
	font-size:  calc(40px + (110 - 40) * ((100vw - 300px) / (1920 - 300)));
	font-variant: small-caps;
	letter-spacing: 1.5px;
	display: block;
	line-height: calc(24px + (35 - 24) * ((100vw - 300px)/(1600 - 300)));
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-family: var(--main-header-font);
}
.slideshow .slide:first-child .slide-content h1 span {
	font-size:  calc(16px + (22 - 16) * ((100vw - 300px) / (1920 - 300)));
	letter-spacing: 3px;
	display: block;
	font-family: "Arial";
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
} */
.slideshow .slide .title h1, .slideshow .slide .title h2 {
  margin: 0 0 15px;
  max-width: 1000px;
  letter-spacing: 1px;
  text-align: left;
  font-size: calc(16px + (45 - 16) * ((100vw - 300px) / (1920 - 300)));
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-family: var(--main-header-font);
  color: #FFF;
  line-height: 1.2;
}
.slideshow .slide .slider-text {
  margin: 0 0 15px;
  font-size: calc(12px + (24 - 12) * ((100vw - 300px) / (1920 - 300)));
  line-height: 1.4;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.slideshow .slide .btn {
  margin: 30px 0 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  padding: 0;
  -webkit-transition: var(--transition-speed);
  -moz-transition: var(--transition-speed);
  -ms-transition: var(--transition-speed);
  -o-transition: var(--transition-speed);
  transition: var(--transition-speed);
	    float: left;
    display: inline-block;
}
.slideshow .slide a.btn:nth-child(2n):before {
	content: ' | ';
	padding: 0 2px 0 10px;
}
.slideshow .slide .btn:hover {
  color: var(--light-blue);
}
.slideshow .pagination {
  position: absolute;
  bottom: 35px;
  left: 0;
  width: 100%;
  height: 12px;
  cursor: default;
  z-index: 2;
  text-align: center;
}
.slideshow .pagination .item {
  display: inline-block;
  padding: 15px 5px;
  position: relative;
  width: 46px;
  height: 32px;
  cursor: pointer;
  text-indent: -999em;
  z-index: 1;
}
.slideshow .pagination .item + .page {
  margin-left: -2px;
}
.slideshow .pagination .item::before {
  content: "";
  display: block;
  position: absolute;
  top: 15px;
  left: 5px;
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease;
}
.slideshow .pagination .item::after {
  width: 0;
  background: #fff;
  z-index: 2;
  transition: width 0.2s ease;
}
.slideshow .pagination .item:hover::before, .slideshow .pagination .item.is-active::before {
  background-color: #fff;
}
.slideshow .arrows .arrow {
  margin: -33px 0 0;
  padding: 20px;
  position: absolute;
  top: 50%;
  cursor: pointer;
  z-index: 3;
}
.slideshow .arrows .prev {
  left: 0;
}
.slideshow .arrows .prev:hover .svg {
  left: 0;
}
.slideshow .arrows .next {
  right: 0;
}
.slideshow .arrows .next:hover .svg {
  left: 0;
}
.slideshow .arrows .svg {
  position: relative;
  left: 0;
  width: 14px;
  height: 26px;
  fill: #fff;
  transition: left 0.2s ease;
}

@media screen and (max-width: 1199px) {
  .slideshow .slide .caption {
    max-width: 85%;
  }
}

@media screen and (max-width: 1023px) {
  .slideshow .slide .caption {
    max-width: 100%;
  }
  .slideshow .slide .caption {
    padding: 0 50px;
  }
}

@media screen and (max-width: 767px) {
  .slideshow {margin-top: -15px;}
  .slideshow .slide .caption a {margin: 0 auto;width: 100%;display: block;position: relative;}
  .slideshow .slide .caption a, .slideshow .slide .caption h2,  .slideshow .slide .caption p {
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .slideshow .slide .caption p, .slideshow .arrows {
    display: none;
  }

	.slider-text {
    display: none;
}

  .slideshow .slide .btn {
    margin: 0;
  }
  .slideshow .slide .caption {
    padding: 0 15px;
  }
  .slideshow .slide .image-container::before {
    background: linear-gradient(rgba(0, 0, 0, 0.15),rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
  }
	
	svg#svg5-Layer_1 {
    width: 50px;
    height: 50px;
}

svg#svg4-Layer_1 {

    width: 50px;
    height: 50px;
}
	
}

@media screen and (max-width: 480px) {
  .slideshow {
    height: 30vh;
    margin-top: 0;
  }
  .slideshow .slide .btn {
    font-size: 14px;
  }
	svg#svg5-Layer_1 {
    width: 30px;
    height: 30px;
	}
	svg#svg4-Layer_1 {

    width: 30px;
    height: 30px;
	}
}
