/*Main content and other sections outside header/footer*/
.main-flex-container, .main-flex-container2 {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 70%;
	margin: auto;
}
.blue {
	background-color: #7fabbf;
}
.pink {
	background-color: #ed9ea5;
}
.main-flex-container > div, .main-flex-container2 > div {
	position: relative;
	top: -20px;
	flex-basis: 26%;
	border-radius: 4%;
	box-shadow: 0 0 20px 6px #545454;
}
.mfcont, .mfcont2, .mfcont3 {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: solid white 2px;
	opacity: .9;
	text-align: center;
	padding: 0 2vw 0 2vw;
	transition: transform 0.3s ease, opacity 0.3s ease;
	box-sizing: content-box;
}
.mimg {
	position: relative;
	top: -2.5vw;
	height: 5vw;
	width: 5vw;
	background: #e9e7ed;
	padding: 0;
	min-width: 35px;
	min-height: 35px;
	aspect-ratio: 1/1;
	border-radius: 50%;
	border: solid 2px #545454;
}
.mfcont > p:nth-of-type(1), .mfcont2 > p:nth-of-type(1), .mfcont3 > p:nth-of-type(1) {
	position: relative;
	top: -20px;
	color: black;
}
.push-down {
	margin-top: 7vw;
}
.mfcont > hr, .mfcont2 > hr, .mfcont3 > hr {
	position: relative;
	top: -20px;
	border: solid 1px #545454;
	width: 50%;
}
.mfcont > p:nth-of-type(2), .mfcont2 > p:nth-of-type(2), .mfcont3 > p:nth-of-type(2) {
	position: relative;
	top: -20px;
}
.mfcont button, .mfcont2 button, .mfcont3 button {
	margin-bottom: 10px;
	background-color: black;
	border: solid 1px #e9e7ed;
	font-size: 1.5vw;
	color: #e9e7ed;
	padding: 6px;
	font-weight: 900;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Hover state for feature card buttons */
.mfcont button:hover, .mfcont2 button:hover, .mfcont3 button:hover {
  transform: scale(1.05) rotate(-2deg);              /* Slightly larger and tilted */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);          /* Subtle shadow on hover */
}
#nflb {
	font-size: 5vw;
	font-weight: bold;
	margin: 6vw auto 0 auto;
	text-align: center;
}
.carousel-container {
	width: 50vw;
	aspect-ratio: 8/5;
	margin: 5px auto 0 auto;
	box-shadow: 0 0 20px 6px #545454;
	border-radius: 1%;
	padding: 0;
	border: solid 2px;
	overflow: hidden;
	position: relative;
}
.carousel {
	position: relative;
	display: flex;
	width: 500%;
	height: 100%;
	margin: 0;
	padding: 0;
	left: 0;
}
.slide {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: white;
}
.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	font-size: 24px;
	padding: 10px;
	cursor: pointer;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.carousel-container:hover .arrow {
	opacity: 1;
	pointer-events: auto;
}
.arrow.left {
	left: 10px;
}
.arrow.right {
	right: 10px;
}
.thumbnail-wrapper {
	display: flex;
	width: 50%;
	justify-content: space-between;
	margin: 15px auto 15px auto;
}
.thumbnail {
	width: 15%;
	object-fit: cover;
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.2s ease;
	aspect-ratio: 8/5;
}
.thumbnail:hover {
	opacity: 1;
}
.thumbnail.active-thumb {
	border-color: #7fabbf;
	opacity: 1;
	transform: scale(1.05);
}
/* Testimonials section */
#testdiv {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100vw;
	background-color: #e9e7ed;
	margin: 20px auto 0;
}
#testdiv > p {
	padding: 3vw auto;
	color: black;
	font-size: 3vw;
	font-weight: bold;
}
#testwrapper {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}
.testcontainer {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 26%;
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 1.5vw;
	transition: transform 0.3s;
	margin-bottom: 15px;
	
}
.testcontainer img {
	width: 8vw;
	height: 8vw;
	object-fit: cover;
	border-radius: 50%;
	margin: 2vw auto 0 auto;
}
.testcontainer hr {
	border: solid black 1px;
	width: 80%;
	margin: 1px;
}
.testcontainer p:nth-of-type(1) {
	text-align: center;
	color: black;
	font-size: 2vw;
	text-align: center;
	font-weight: bold;
}
.testcontainer p:nth-of-type(2) {
	text-align: center;
	color: black;
	font-size: 1vm;
	text-align: center;
}

/* Global form/input styles (applicable outside header/footer on index page) */
form, label, input, select, textarea, fieldset, button {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 1em;
}
@media (hover: hover) {
    .mfcont:hover, .mfcont2:hover, .mfcont3:hover {
    opacity: 1;
    transform: scale(1.07);
    }
    .testcontainer:hover {
	  transform: scale(1.03) rotate(-0.3deg);
	  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	  z-index: 5;
	}
}
@media (max-width: 768px) {
  .family {
    display: none
  }
  /* Feature card image: no overlap on mobile */
  .mimg {
    position: relative;
    top: 0 !important;
    min-width: 50px;
    min-height: 50px;
    margin-top: 10px;
  }
  /* Stack feature sections vertically, full width */
  .main-flex-container, .main-flex-container2 {
    width: 100% !important;
    margin: 0 !important;
    flex-direction: column !important;   /* stack the child sections */
    align-items: stretch !important;  
    border-radius: 0%;
    box-shadow: none;
    border: none;
    padding: 0;
    overflow-x: hidden;
    justify-content: flex-start;
  }
  .mfcont, .mfcont2, .mfcont3 {
	border: none;
	opacity: .7;
	padding: 5px 0;
	will-change: transform;
	box-sizing: content-box;
  }
  .mfcont *, .mfcont2 *, .mfcont3 * {
    transition: transform 0.3s ease;
  }
  /* Mobile-only spotlight effect */
  .mfcont.active,
  .mfcont2.active,
  .mfcont3.active {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 5;
    opacity: 1;
  }

  .main-flex-container > div, .main-flex-container2 > div {
    /* Each feature box fills the full width of its parent */
    width: 100% !important;
    flex-basis: auto !important;
    /* Remove the slight upward offset that was used for desktop layout */
    top: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
  }
  .push-down {
    margin-top: 0 !important;           /* eliminate extra spacing between rows */
  }
.mfcont > p:nth-of-type(1), 
.mfcont2 > p:nth-of-type(1), 
.mfcont3 > p:nth-of-type(1),
.mfcont > hr, 
.mfcont2 > hr, 
.mfcont3 > hr,
.mfcont > p:nth-of-type(2), 
.mfcont2 > p:nth-of-type(2), 
.mfcont3 > p:nth-of-type(2) {
	top: 0;
}
.mfcont > p:nth-of-type(1), 
.mfcont2 > p:nth-of-type(1), 
.mfcont3 > p:nth-of-type(1) {
	font-weight: 900;
}
.mfcont > p:nth-of-type(2), 
.mfcont2 > p:nth-of-type(2), 
.mfcont3 > p:nth-of-type(2) {
	width: 75%;
}
.mfcont button, .mfcont2 button, .mfcont3 button {
	margin-bottom: 10px;
	border: solid 1px #e9e7ed;
	font-size: 10px;
	padding: 10px;
}
.mfcont button, 
.mfcont2 button, 
.mfcont3 button {
	font-size: clamp(15px, 1.5vw, 20px);
	overflow: hidden;
}
#testdiv {
	margin: 0;
}
#testwrapper {
  flex-direction: column !important;
  align-items: center !important;
}

.testcontainer {
  width: 90% !important;
  margin: 10px 0 !important;
}
.testcontainer.active {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
  opacity: 1;
}

.testcontainer.active * {
  transform: scale(1.05);
}
.testcontainer p:nth-of-type(1) {
	font-weight: 900;
	font-size: 16px;
}
.testcontainer p:nth-of-type(2) {
	width: 75%;
}
.testcontainer img {
	min-width: 50px;
    	min-height: 50px;
}
#testdiv > p {
	font-size: 30px;
}
}
