/*
  File: styles.css
  Organized CSS for improved maintainability
*/

html,
body {
	overflow-x: hidden;
	width: 100%;
	scroll-behavior: smooth;
}

/* Base Styles and Typography */
:root {
	font-family: Inter, sans-serif;
	font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
	:root {
		font-family: InterVariable, sans-serif;
	}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-size: 62.5%; /* Base font size for rem calculations */
}

/* Layout and Container */
.container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

/* Media Queries - Responsive Design */
@media (min-width: 375px) {
	.container {
		max-width: 375px;
	}
}

@media (min-width: 576px) {
	.container {
		max-width: 576px;
	}
}

@media (max-width: 768px) {
	/* Adjust max-width to 768px */
	.container {
		max-width: 768px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 992px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1200px;
	}
}

@media (min-width: 1400px) {
	.container {
		max-width: 1400px;
	}
}

/* Hero Section Styles */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.overlay-text {
	color: white;
	font-size: 8rem;
	text-align: center;
	z-index: 3;
}

.overlay-subtext {
	color: white;
	font-size: 3rem;
	width: 50%;
	text-align: center;
	z-index: 3;
}

/* Lift the existing homepage copy over the photography with minimal decoration. */
.home-hero .overlay {background:linear-gradient(180deg,rgba(0,0,0,.38),rgba(0,0,0,.60) 45%,rgba(0,0,0,.48));}
.home-hero .hero-copy {width:calc(100% - 4rem);max-width:90rem;text-align:center;transform:translateY(-6vh);text-shadow:0 2px 18px rgba(0,0,0,.65);}
.home-hero .hero-copy::before {content:"";display:block;width:4.8rem;height:3px;background:#b34b60;margin:0 auto 2.5rem;}
.home-hero .hero-copy .overlay-text {font-size:clamp(4.6rem,6.4vw,8rem);font-weight:500;letter-spacing:-.035em;line-height:1.1;margin:0 0 2.4rem;text-wrap:balance;}
.home-hero .hero-copy .overlay-subtext {font-size:clamp(2rem,2.4vw,3rem);width:100%;max-width:82rem;margin:0 auto;line-height:1.5;text-wrap:balance;}
@media (max-width:600px) {
 .home-hero .hero-copy {transform:translateY(-3vh);width:calc(100% - 4.8rem);}
 .home-hero .hero-copy::before {margin-bottom:2rem;}
 .home-hero .hero-copy .overlay-text {margin-bottom:2rem;}
}

/* Content Section One Styles */
.content-section-one {
	padding: 6rem; /* Shorthand for all four padding sides */
}

.sct-title {
	font-size: 4rem;
}

.sct-hr {
	margin-top: 4rem;
	width: 30rem;
}

.sct-text {
	font-size: 2rem;
	margin-top: 3rem;
	font-weight: 300;
}

.sct-text-two {
	margin-top: 2rem;
	font-weight: 300;
	font-size: 2rem;
}

.sct-text-two-bold {
	font-weight: 500;
	font-size: 2rem;
}

.bullet-list {
	list-style: none;
	margin-top: 2rem;
	padding-left: 2rem;
}

.bullet-item {
	position: relative;
	font-size: 2rem;
	margin-bottom: 1.5rem;
	padding-left: 2rem;
	font-weight: 500;
}

.bullet-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 4px;
	background-color: #500000;
}

.button-container {
	display: flex;
	justify-content: center;
	margin-top: 4rem;
	margin-bottom: 4rem;
}

.view-more-button-container {
	display: flex;
	justify-content: center;
	margin-top: 4rem;
}

.meet-lab-button {
	background-color: #500000;
	color: white;
	border: none;
	padding: 2rem 6rem;
	font-size: 2.5rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: inline-block;
}

.meet-lab-button:visited {
	color: white;
}

.meet-lab-button:hover {
	background-color: #3c001c;
}

/* Content Section Two Styles */
.content-section-two {
	background-color: #535353;
}

.sct-two-title {
	font-size: 5rem;
	display: flex;
	justify-content: center;
	color: white;
	padding-top: 3.5rem;
}

.sct-two-hr {
	color: white;
	width: 20rem;
	margin-bottom: 3rem;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.research-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin: 0 auto;
	padding: 4rem;
}

.grid-item {
	font-size: 1.7rem;
	font-weight: 500;
	padding: 3rem;
	background-color: #d1d1d1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 25rem;
	text-align: center;
	position: relative;
	width: 30rem;
}

.grid-item::after {
	content: '';
	position: absolute;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 20px;
	background-color: #500000;
	margin-bottom: 2rem;
}

/* Content Section Three Styles */
.content-section-three {
	padding: 6rem; /* Shorthand */
	background-color: #eaeaea;
	width: 100vw; /* or 100% if you want it to take container's width */
}

.news-title {
	margin-bottom: 2rem;
}

.news-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2rem;
}

.news-grid-item {
	position: relative;
	width: 30rem;
	background-color: white;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out;
}

.news-grid-item:hover {
	transform: scale(1.03);
}

.news-img {
	width: 100%;
	height: 20rem;
	object-fit: contain;
	object-position: center;
	background-color: rgb(243, 243, 243);
}

.news-grid-item-content {
	padding: 1rem; /* Shorthand */
	padding-bottom: 4rem;
}

.news-grid-item-title {
	margin-top: 1rem;
	font-size: 1.5rem;
	font-weight: bold;
}

.news-grid-item-text {
	margin-top: 1rem;
	font-size: 1.5rem;
	font-weight: 300;
}

.news-grid-item-date {
	font-size: 1.5rem;
	font-weight: 300;
	padding-bottom: 1rem;
	position: absolute;
	bottom: 0;
	color: rgb(87, 87, 87);
}

/* Content Section Four Styles */
.content-section-four {
	padding: 2rem;
}

.img-container {
	display: flex;
	justify-content: center;
	flex-direction: column;
}

.partners-img {
	height: 135px;
	width: 100%;
	object-fit: contain;
	margin-left: auto;
	margin-right: auto;
	scale: 0.98;
}

.partners-img-caption {
	font-size: 1.5rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.partners-img-caption-inline {
	font-size: 1.5rem;
}

.red-underline {
	/* moved down, with section it's related to */
	text-decoration: underline;
	text-decoration-color: #500000;
	cursor: pointer;
}

/* Link Styles */
a {
	color: inherit;
	text-decoration: none;
}

a:visited {
	color: inherit;
}

/* Utility Classes - Consider moving these to a separate file if you have many */
.medium-text-bold {
	/* Consider a more descriptive name */
	font-size: 1.8rem;
	font-weight: bold;
}

.background-image {
	width: 100%;
	height: 100%;
	position: absolute;
	object-fit: cover;
	object-position: center center;
	left: 0;
	z-index: 1;
	transform: scale(1);
	transform-origin: center center;
}

.slideshow-container {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.slideshow-container img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slideshow-container img.active {
	opacity: 1;
}
