/* Section 1: Hero Banner */
@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans:wght@300;400;700&amp;display=swap');


.beConnected_hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.beConnected_heroBg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 0 30%;
}

.beConnected_heroOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.beConnected_heroText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 15vw;
    font-weight: bold;
    z-index: 3;
    margin: 0;
    text-align: center;
    width: 100%;
    font-family: "Alumni Sans";
	text-transform: uppercase;
}

/* Section 2: Blue Info Banner */
.beConnected_info {
  background-color: #002244;
  color: white;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.beConnected_infoGradient.top,
.beConnected_infoGradient.bottom {
  height: 35px;
  background: linear-gradient(to right, #022548, #38a0b2, #b7cc9a);
}

.beConnected_infoGradient.top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.beConnected_infoGradient.bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.beConnected_infoInner {
	max-width: 1080px;
        margin: 30px auto;
    position: relative;
    z-index: 1;
}

.beConnected_infoInner p {
    line-height: 2;
    text-align: left;
    font-size: 1.2rem;
    font-weight: normal;
	font-style: normal;
}

.beConnected_info a {
  color: white;
}

/* Section 3: Two Column Layout */
.beConnected_twoCol {
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background-color: white;
}

.beConnected_card {
  flex: 1 1 400px;
  max-width: 500px;
}

.beConnected_cardHeader {
  background: url('https://www.stonybrook.edu/commcms/beconnected/_images/page/column-banner.png') center/cover no-repeat;
  color: white;
  font-weight: bold;
  font-size: 1.4rem;
  text-align: center;
  padding: 15px 20px;
  margin-bottom: 0;
}

.beConnected_cardContent {
    padding: 35px 0px;
    background-color: white;
    text-align: left;
	font-size: 0.9rem;
    line-height: 1.2;
}

.beConnected_cardContent img {
  float: left;
  margin-right: 10px;
  width: 170px;
  height: auto;
}

.beConnected_cardContent p {
    font-style: italic;
	line-height: 1.2rem;
}

.beConnected_videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 15px;
}

.beConnected_videoWrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  top: 0;
  left: 0;
}

.beConnected_readMore {
    display: block;
    width: 300px;
    text-align: center;
    margin-top: 20px;
    color: #990000;
    border: 2px solid #990000;
    padding: 10px 20px;
	font-weight: bolder;
    font-size: 1.1rem;
}


/* Header */
.beConnected_header {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	background: white;
    padding-bottom: 50px;
}

.beConnected_redPrism {
	background: url('https://www.stonybrook.edu/commcms/beconnected/_images/page/red_prism.png') center/cover no-repeat;
	width: 10%;
	height: 200px; /* Adjust height as needed */
}

.beConnected_blueText {
	background: #002244;
	color: white;
	font-size: 3rem;
	font-weight: 900;
	line-height: 0.9;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40%;
	height: 200px;
	text-align: center;
	    text-transform: uppercase;
}

.beConnected_campusImage {
	background: url('https://www.stonybrook.edu/commcms/beconnected/_images/page/campus_img.png') center/cover no-repeat;
	width: 50%;
	height: 200px;
}


/* Link box snippet */
.beConnected_linkBoxContainer {
    display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 1.5% 10%;
    background-color: white;
    align-items: stretch;
}

.beConnected_linkBox {
	min-width: 340px;
    width: calc(28% - 20px);
	border: 1px solid black;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	background: white;
	overflow: hidden;
}

.beConnected_topBar {
	height: 30px;
	background: linear-gradient(to right, #002244, #1791ad, #bccf9d);
}

.beConnected_content {
	padding: 20px 20px 35px 20px;
}

.beConnected_linkBoxHeader {
	font-size: 1.6rem;
    font-weight: bold;
    margin: 15px 5% 0 5%;
    padding-bottom: 20px;
    border-bottom: 1px solid #1791ad;
}

.beConnected_linkBox ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.beConnected_linkBox ul li {
	padding: 13px 0;
	border-bottom: 1px solid #1791ad;
	margin: 0 5%;
}

.beConnected_linkBox ul li a {
	text-decoration: none;
	color: #800000; 
	display: block;
	font-size: 1.2rem;
}

.beConnected_linkBox ul li a:hover {
	text-decoration: underline;
}

.singleBoxSection {
  justify-content: center; /* keep it centered */
}

/* banner box*/
.beConnected_bannerBox {
    width: 54.5%;
    min-width: 700px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
	gap: 30px;
}
.beConnected_banners {
  display: flex;
  gap: 30px;
  flex-wrap: wrap; 
  flex-direction:column;
  width: 100%;
  min-height: 500px;
  flex-grow: 1;
}

/* Each banner item as a flex container for image + text side by side */
.beConnected_bannerItem {
  display: flex;
  align-items: center;      /* vertically center the image and text */
  border: 1px solid black;
/*   padding: 20px; */
  text-align: left;         /* ensures text is left-aligned */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  flex: 1;                  /* so both items share the available width */
  min-width: 300px;         /* a floor to avoid collapsing too much */
	    overflow: hidden;
}

/* The image: give it a fixed width or max-width so it doesn’t dominate */
.beConnected_bannerImg {
    max-width: 48%;
/*     height: 250px; */
  flex-shrink: 0;           /* so the image doesn't shrink too small */
}

/* The text container on the right */
.beConnected_bannerText {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertically center the text within the banner */
  flex: 1;
  text-align: center;
  max-width: 50%;
}

.beConnected_bannerText p {
	width: 300px;
    margin: 30px auto 25px auto;
    font-weight: 500;
    font-family: 'effra' !important;
    font-size: 1.4rem;
}

/* Headings in each banner */
.beConnected_bannerText h3 {
    font-size: 1.8rem !important;
    margin: 10px 0 20px 0 !important;
    color: black !important;
    font-family: 'effra' !important;
    font-weight: bold !important;
}

/* “Learn More” buttons */
.beConnected_learnMoreBtn {
    display: inline-block;
    margin: 10px auto 0;
    text-decoration: none;
    color: #fff;
    background-color: #990000;
    padding: 10px 20px;
    font-weight: 500;
    text-align: center;
    width: 220px;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.beConnected_learnMoreBtn:hover {
  background-color: black;
}

/* Card Grid Section */
.beConnected_cardGridSection {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.beConnected_cardGrid {
	display: flex;
    flex-wrap: wrap;
    gap: 50px 30px;
    padding: 3% 17%;
    justify-content: center;
	background-color: white;
}

/* Each Card Box */
.beConnected_cardBox {
  background-color: white;
  border: 1px solid black;
	min-width: 540px;
  width: calc(50% - 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.verticalLayout img {
  width: 100%;
  height: auto;
}

.horizontalLayout img {
  width: 50%;
  max-width: 250px;
  margin-right: 20px;
}

.verticalLayout p {
  padding: 0 50px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin: 35px 0;
  line-height: 1.2;
  text-align: center;
}

/* .beConnected_cardBox a {
  background-color: #800000;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 15px;
  display: block;
  width: 100%;
} */

.horizontalLayout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
}

/* This part is laid out horizontally */
.beConnected_cardHorizontal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

/* Image sizing */
.beConnected_cardHorizontal img {
    width: 70%;
    max-width: 270px;
    height: 100%;
    margin-right: 20px;
    object-fit: cover;
}


/* Text beside the image */
.beConnected_cardText {
  width: 60%;
}

p.beConnected_cardHorizontal_header {
font-size: 1.25rem;
    font-weight: 600;
    padding: 0 0 10px 10px;
    margin: 0;
    line-height: 1.3;
}

p.beConnected_cardHorizontal_subheader {
font-size: 1rem;
    font-weight: 400;
    padding: 0 50px 0 10px;
    margin: 0;
    color: #333;
    line-height: 1.4;
    text-align: left;
}

/* Button at the bottom of cardBox */
.beConnected_cardBox > a {
  background-color: #800000;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  text-align: center;
  font-size: 1.3rem;
	text-transform: uppercase;
	width:100%;
}

.beConnected_cardBox > a:hover{
	background-color: #d52027;
	text-decoration:none;
}

.beConnected_learnMoreBtn:hover{
	background-color: #660000;;
	text-decoration:none;
}

.beConnected_cardBox.beConnected_cardHorizontal .verticalLayout {
  display: none;
}

/* Hide horizontal layout when card is vertical */
.beConnected_cardBox:not(.beConnected_cardHorizontal) .horizontalLayout {
  display: none;
}


/* Bottom Large Buttons */
.beConnected_cardBottomButtons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.beConnected_cardBottomButtons a {
  background-color: #c62828;
  color: white;
  font-weight: bold;
  padding: 18px 30px;
  text-align: center;
  font-size: 1.2rem;
  text-decoration: none;
  width: 300px;
}




/* Bottom two main buttons container (centered horizontally) */
.beConnected_bottomBtns {
    display: flex;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-top: auto;
    height: 100px;
}

.beConnected_bottomBtnsWrapper {
    background-color: white;
	padding: 0px 0px 50px 0px;
}

/* Style for the bottom big buttons */
.beConnected_mainBtn {
    display: flex;
    color: #fff;
    background-color: #d52027;
    padding: 5px 25px;
    font-weight: bold;
    width: 50%;
    font-size: 2rem;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
}

.beConnected_mainBtn:hover {
  background-color: #660000;
  text-decoration: none;
}



/* Red Banner */
.beConnected_sectionHeader_wrapper {
    background-color: white;
    padding: 100px 0 0 0;
    margin-bottom: 50px;
}


.beConnected_sectionHeader {
    background-color: #990000;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 20px 0;
    font-size: 3rem;
    text-transform: uppercase;
}






@media (max-width: 874px) {
/* 	.beConnected_linkBoxContainer {
	   padding-top: 20%;
	} */
}

@media (max-width: 768px) {
/* Index Page */
  .beConnected_hero {
    height: 250px;
  }

  .beConnected_heroText {
    font-size: 18vw;
    padding: 0 10px;
  }

	.beConnected_twoCol {
	  padding: 60px 20px 30px;
	}
	
  .beConnected_cardContent img {
	  min-width:250px;
    float: none;
    display: block;
    margin: 0 auto 20px auto;
  }

  .beConnected_cardContent {
    text-align: center;
  }
.beConnected_readMore {
		width:100%;
	    min-width: 300px;
}
	
/* Staff & Students	 */
	
	
	.beConnected_header,
	.beConnected_bottomBtns {
		flex-direction: column;
	}
	.beConnected_header {
		align-items: center;
		text-align: center;
	}
	
	.beConnected_redPrism, 
	.beConnected_blueText, 
	.beConnected_campusImage {
		width: 100%;
	}
	/* Red prism: Make it larger and move behind */
	.beConnected_redPrism {
		position: absolute;
		width: 100%;
		height: 380px;
		z-index: 1; /* Lower than the other elements */
	}
	.beConnected_blueText{
		z-index: 3;
		position: relative;
		height: 150px;
	}
	/* Adjust text and image */
	.beConnected_campusImage {
		z-index: 3;
		position: relative;
	}

	
	
	.beConnected_linkBoxContainer {
		flex-direction: column;
		align-items: center;
		padding: 3% 3%;
	}

	.beConnected_linkBox {
		width: 90%;
	}
	.beConnected_bannerBox {
		min-width:350px;
		width:90%;
	 }


	  .beConnected_bannerItem {
		flex-direction: column;     /* image on top, text below */
		text-align: center;         /* center text on mobile */
		align-items: center;
		width: 100%;
        margin: auto;
		padding-bottom: 30px;
	  }

	  .beConnected_bannerImg {
	    margin-right: 0;
        margin-bottom: 15px;
        max-width: unset;
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: top;           /* shrink the image to fit mobile screens better */
	  }

	  .beConnected_bannerText {
		align-items: center;
		 max-width:unset;
	  }
	
	.beConnected_cardGrid {
		padding:3% 3%;
	}
	
	  .beConnected_cardBox {
    width: 100%;
        max-width: 540px;
        min-width: unset;
  }
	  .beConnected_cardHorizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
	
	.horizontalLayout {
		flex-direction:column;
	}
	
	.beConnected_infoInner {
		    margin: 30px 15%;
	}

  .beConnected_cardHorizontal img {
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
        height: 200px;
        object-fit: cover;
  }

  .beConnected_cardText {
    width: 100%;
  }
	p.beConnected_cardHorizontal_header{
		text-align:center;
		padding: 10px 30px;
	}
	p.beConnected_cardHorizontal_subheader {
		text-align:center;
		padding: 10px 30px 30px;
	}

  .beConnected_cardBox > a {
    width: 100%;
  }

  .beConnected_cardBottomButtons a {
    width: 100%;
    max-width: 90%;
  }
	.beConnected_bottomBtns{
		margin: unset !important;
		height: unset;
	}
	.beConnected_mainBtn {
		width: 96%;
        max-width: 540px;
        padding: 15px;
        margin: 0 auto;
	}
	
	.beConnected_bottomBtnsWrapper {
		padding-top: 50px;
	}
}