.section-team-member {
	--shell-gutter: 4rem;
	--shell-max-width: 105.8rem;
	--headings-color: currentColor;
  
	@media (max-width: 1023px) {
		& {
			--shell-gutter: 2.4rem;
		}
	}

	@media (max-width: 767px) {
		& {
			--shell-gutter: 1.6rem;
		}
	}

	& .section__bar {
		margin-bottom: 3rem;
		padding-left: 0.2rem;
    padding-top: 7rem;

		@media (max-width: 1199px) {
			& {
				margin-bottom: 3.2rem;
				padding-left: 0;
			}
		}

		@media (max-width: 1023px) {
			& {
				margin-bottom: 2.4rem;
			}
		}

		@media (max-width: 767px) {
			& {
				margin-bottom: 1.6rem;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	& .section__back {
		display: inline-flex;
		gap: 0.5556em;
		color: var(--primary);
		font-family: var(--ff-base);
		font-weight: 400;
		font-size: 1.8rem;
		line-height: 1.1111;
		letter-spacing: -0.02em;
		text-decoration: underline;
		text-decoration-color: transparent;
		transition: text-decoration-color 0.2s linear;

		@media (max-width: 1023px) {
			& {
				font-size: 1.6rem;
			}
		}

		@media (max-width: 767px) {
			& {
				font-size: 1.4rem;
			}
		}

		&:hover {
			text-decoration-color: currentColor;
		}

		& .icon-arrow-left {
			--icon-size: 1em;

			@media (max-width: 767px) {
				& {
					--icon-size: 0.8571em;
				}
			}
		}
	}

	& .section__entry {
		display: flex;
		flex-wrap: wrap;
		gap: 4rem;
		justify-content: flex-start;
		margin-bottom: 8rem;
		padding-inline: 0.1rem 1.6rem;

		@media (max-width: 1199px) {
			& {
				gap: 3.2rem;
				margin-bottom: 6rem;
				padding-inline: 0;
			}
		}

		@media (max-width: 1023px) {
			& {
				gap: 2.4rem;
				margin-bottom: 5rem;
			}
		}

		@media (max-width: 767px) {
			& {
				gap: 1.6rem;
				margin-bottom: 4.2rem;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	& .section__image {
		flex: 1;
		position: relative;
		isolation: isolate;
		min-width: min(26rem, 100%);
		max-width: 30rem;
		height: fit-content;
		margin-top: 0rem;

		@media (max-width: 1023px) {
			& {
				margin-top: 0.8rem;
			}
		}

		@media (max-width: 767px) {
			& {
				max-width: 30rem;
				margin-top: 0;
			}
		}

		&:before {
			content: '';
			position: absolute;
			inset: 0;
			z-index: -1;
			background-color: #060606;
			opacity: 0.04;
		}

		@media (max-width: 1023px) {
			& {
			}
		}

		@media (max-width: 767px) {
			& {
			}
		}

		& img {
			width: 100%;
			height: auto;
			object-fit: cover;
			object-position: center;
		}
	}

	& .section__info {
		flex: 1;
		min-width: min(38rem, 100%);
		max-width: 54rem;
	}

	& .section__head {
		--headings-color: var(--primary);

		margin-bottom: 3.1rem;
		color: #3e3e3e;
		font-weight: 500;
		font-size: 1.6rem;
		line-height: 1.625;

		@media (max-width: 1199px) {
			& {
				margin-bottom: 2.6rem;
			}
		}

		@media (max-width: 1023px) {
			& {
				margin-bottom: 2rem;
				font-size: 1.4rem;
				line-height: 1.5;
			}
		}

		& h1 {
			margin-bottom: 0.9rem;
			font-family: var(--ff-third);
			font-weight: 700;
			font-size: 3.6rem;
			line-height: 1.0278;
			letter-spacing: -0.026em;

			@media (max-width: 1199px) {
				& {
					font-size: 3.4rem;
				}
			}

			@media (max-width: 1023px) {
				& {
					margin-bottom: 0.7rem;
					font-size: 2.8rem;
					line-height: 1.05;
				}
			}

			@media (max-width: 767px) {
				& {
					font-size: 2.4rem;
				}
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}
  
  & .module__title {
			margin-bottom: 0;
			padding-bottom: 0;
		}
  
  & h2 {
			margin-bottom: 2.5rem;
			font-family: var(--ff-third);
			font-weight: 700;
			font-size: 3.2rem; /* Slightly smaller than h1 (3.6rem) */
			line-height: 1.0278;
			letter-spacing: -0.026em;
    color: var(--primary);

			@media (max-width: 1199px) {
				& {
					font-size: 3.0rem; /* Slightly smaller than h1 (3.4rem) */
				}
			}

			@media (max-width: 1023px) {
				& {
					margin-bottom: 1rem;
					font-size: 2.4rem; /* Slightly smaller than h1 (2.8rem) */
					line-height: 1.05;
				}
			}

			@media (max-width: 767px) {
				& {
					font-size: 2.1rem; /* Slightly smaller than h1 (2.4rem) */
				}
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

 & h5 {
			margin-bottom: 3.2rem;
			letter-spacing: -0.0175em;

			@media (max-width: 1023px) {
				& {
					margin-bottom: 1.6rem;
				}
			}

			@media (max-width: 767px) {
				& {
					margin-bottom: 1.2rem;
				}
			}

			& strong {
				font-weight: 900;
			}

			&:last-child {
				margin-bottom: 0;
			}
		}
		&:last-child {
			margin-bottom: 0;
		}
	}

	& .section__socials {
		display: flex;
		flex-wrap: wrap;
		gap: 1.6rem;
		margin-bottom: 5.2rem;
		padding-left: 0.3rem;
		color: #2d2926;
		font-family: 'Helvetica Neue';
		font-size: 1.4rem;
		line-height: 1.1429;
		text-transform: uppercase;
		list-style: none;
    
    & figure {
			width: 2.8rem; /* Increase or decrease this value to resize icons */
			height: 2.8rem;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		& img {
			width: 100%;
			height: 100%;
			object-fit: contain;
		}

		@media (max-width: 1199px) {
			& {
				margin-bottom: 4.2rem;
				padding-left: 0;
			}
		}

		@media (max-width: 1023px) {
			& {
				margin-bottom: 3.2rem;
			}
		}

		@media (max-width: 767px) {
			& {
				margin-bottom: 2.4rem;
				font-size: 1.2rem;
			}
		}

		& a {
			display: flex;
			align-items: center;
			gap: 0.2857em;
			text-decoration: none;
			transition:
				color 0.2s linear,
				opacity 0.2s linear;

			&:hover {
				color: #000000;
				opacity: 1;
			}

			& [class^='icon-'] {
				--icon-size: 1em;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	& .section__quote {
		margin: 0 0 2.4rem -0.3rem;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		padding-top: 2.4rem;

		@media (max-width: 1199px) {
			& {
				margin: 0 0 1.8rem 0;
				padding-top: 2rem;
			}
		}

		@media (max-width: 1023px) {
			& {
				margin-bottom: 1.6rem;
				padding-top: 1.6rem;
			}
		}

		@media (max-width: 767px) {
			& {
				margin-bottom: 1.2rem;
				padding-top: 1.2rem;
			}
		}

		& q {
			margin-bottom: 0.9524em;
			display: inline-block;
			color: var(--black);
			font-family: var(--ff-secondary);
			font-weight: 300;
			font-size: 2.31rem;
			line-height: 1.53;

			@media (max-width: 1199px) {
				& {
					font-size: 2.2rem;
				}
			}

			@media (max-width: 1023px) {
				& {
					font-size: 2rem;
				}
			}

			@media (max-width: 767px) {
				& {
					font-size: 1.8rem;
				}
			}

			& strong {
				font-weight: 800;
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	& .section__signature {
		& .signature__handwritten {
      display: block;
			font-family: 'Meow Script';
			line-height: 1;
			letter-spacing: -0.02em;
			margin-bottom: 0.4rem;
			font-size: 3.55rem;

			@media (max-width: 1199px) {
				& {
					font-size: 3.5rem;
				}
			}

			@media (max-width: 1023px) {
				& {
					font-size: 3rem;
				}
			}

			@media (max-width: 767px) {
				& {
					font-size: 2.6rem;
				}
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		& .signature__role {
			font-size: 1.33rem;

			@media (max-width: 1199px) {
				& {
					font-size: 1.3rem;
				}
			}

			@media (max-width: 1023px) {
				& {
					font-size: 1.2rem;
				}
			}
		}
	}

	& .section__content {
		margin-bottom: 3.1667em;
		color: #3e3e3e;
		font-family: var(--ff-base);
		font-weight: 500;
		font-size: 1.8rem;
		line-height: 1.6667;

		@media (max-width: 1023px) {
			& {
				font-size: 1.6rem;
				line-height: 1.575;
			}
		}

		@media (max-width: 767px) {
			& {
				font-size: 1.4rem;
			}
		}

		& p {
			margin-bottom: 1.55em;

			@media (max-width: 1023px) {
				& {
					margin-bottom: 1.15em;
				}
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	& .section__actions {
		display: flex;
		flex-wrap: wrap;
		gap: 1.6rem;
	}

	& .section__btn {
		--padding: 1rem 3.7rem 1.1rem 2.2rem;
		--fsize: 1.49rem;

		@media (max-width: 1199px) {
			& {
				--padding: 1rem 2rem;
				--fsize: 1.4rem;
			}
		}

		@media (max-width: 1023px) {
			& {
				--padding: 0.8rem 1.6rem;
			}
		}

		@media (max-width: 767px) {
			& {
				--padding: 0.6rem 1.2rem;
			}
		}

		&.btn--arrow {
			@media (max-width: 767px) {
				& {
					--btn-icon-size: 1em;

					gap: 1em;
				}
			}
		}
	}
}

/* Responsive Video Wrapper */
.video-block {
    width: 100%;
}

.video-block__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.video-block__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Force the philosophy section into a two-column grid on desktop */
.philosophy-section .section__cols {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping on desktop */
    gap: 4rem;
    align-items: flex-start; /* Aligns items to the top */
}

/* Ensure the text side takes up a balanced amount of space */
.philosophy-section .section__col--md {
    flex: 1;
    min-width: 50%;
}

/* Ensure the video side doesn't grow too large */
.philosophy-section .section__col--fit {
    flex: 1;
    max-width: 50rem;
    width: 100%;
}

/* Mobile responsive styles */
@media (max-width: 1023px) {
    .philosophy-section .section__cols {
        flex-direction: column;
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
        gap: 2.4rem;
    }
    .philosophy-section .section__col--md,
    .philosophy-section .section__col--fit {
        min-width: 100%;
        max-width: 100%;
    }
    .video-block__wrapper {
        border-radius: 12px;
    }
}

@media (max-width: 767px) {
    .video-block__wrapper {
        border-radius: 10px;
    }
}

/* Awards Row Styles */
.awards-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Vertically centers logos of different proportions */
    gap: 3.2rem; /* Spacing between logos */
    margin-top: 3.6rem;
}

.award-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.award-item img {
    height: 80px; /* Forces all logos to identical height */
    width: auto; /* Preserves natural aspect ratio */
    max-width: 100%;
    object-fit: contain;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .awards-row {
        gap: 2rem;
    }
    
    .award-item img {
        height: 40px; /* Slightly smaller for mobile screens */
    }
}

.section__content ul{
  margin-left: 30px;
}


/* Testimonials Two-Column Flex Layout */
.testimonials-section .testimonial-item.has-video .section__cols {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4rem !important;
    align-items: flex-start !important;
}

/* Force left side (text) to take up flex space */
.testimonials-section .section__col--md {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

/* Force right side (video) to lock at maximum width */
.testimonials-section .section__col--fit {
    flex: 0 0 40rem !important;
    width: 100% !important;
    max-width: 50rem !important;
}

/* Alternating rows (video on left, text on right) */
.testimonials-section .testimonial-item.has-video.testimonial-item--reverse .section__cols {
    flex-direction: row-reverse !important;
}

/* Mobile responsiveness */
@media (max-width: 1023px) {
    .testimonials-section .testimonial-item.has-video .section__cols,
    .testimonials-section .testimonial-item.has-video.testimonial-item--reverse .section__cols {
        flex-direction: column !important;
        gap: 2.4rem !important;
    }

    .testimonials-section .section__col--fit {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Divider line and spacing between testimonial items */
.testimonials-section .testimonial-item {
    margin-bottom: 4rem; /* 40px gap */
    padding-bottom: 4rem; /* 40px space above divider line */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Thin light gray line */
}

/* Remove border and bottom margin from the last testimonial */
.testimonials-section .testimonial-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Testimonial Quote Styling */
.testimonials-section .testimonial-quote p,
.testimonials-section .testimonial-quote {
    font-size: 1.5rem; /* Slightly smaller than default body text */
    font-style: italic; /* Makes the quote text italics */
    line-height: 1.6;
}

/* Testimonial Person Styling */
.testimonials-section .testimonial-person {
    font-size: 1.3rem; /* Slightly smaller than the quote text */
    font-style: normal; /* Keeps the name upright */
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
    color: #2d2926;
}