/* Core Values Section Layout */
.core-values-wrapper {
  max-width: 1250px;
  margin: 4rem auto;
  padding: 3rem 2rem 5rem;
  text-align: center;
}

.core-values-title {

  margin-bottom: 2rem;
  text-transform: uppercase;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
	width: fit-content;
    margin: auto;
}

@media (max-width: 900px) {
  .core-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .core-values-grid {
    grid-template-columns: 1fr;
  }
	.core-container {
  position: relative;
  width: 300px !important;
		height: 265px!important;}
}

/* Flip Card Container */
.core-container {
  position: relative;
  width: 330px;
  height: 295px; /* <- Add this */
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
}

/* Front & Back Shared Styles */
.core-front,
.core-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 265px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  text-align: center;
  color: #fff;
  font-family: 'proxima-nova', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  overflow: hidden;
}

/* Front Overlay */
.core-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.1;
  border-radius: 5px;
  z-index: 1;
}

/* Inner content wrapper */
.core-inner-front {
  position: absolute;
  top: 80%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  padding: 1rem;
  box-sizing: border-box;
  z-index: 2;
  perspective: inherit;
  text-align: center;
}
.core-inner-back {
  position: absolute;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	height:100%;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  padding: 1.5rem 2rem;
  box-sizing: border-box;
  z-index: 2;
  perspective: inherit;
  text-align: center;
}
.core-inner-back h4 {
  margin-bottom: 0rem !important;
	text-transform:uppercase;
	font-family:'proxima-nova', sans-serif;
}

.core-inner-back p {
  flex-grow: 1;
  margin-bottom: 1rem;
}
.core-inner {
  position: absolute;
  top: 80%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  padding: 1rem;
  box-sizing: border-box;
  z-index: 2;
  perspective: inherit;
}

.core-inner-front h4 {
  margin-top: 1rem;
	font-size: clamp(1.75rem, 4vw, 2rem);
	position:relative;
	font-family:'proxima-nova', sans-serif;
	text-transform:uppercase;
  color: #fff;
  display: inline-block;
  border-radius: 4px;
	z-index:1;
}

.core-inner p {
  font-size: 1.1rem;
  color: inherit;
  margin-top: 1rem;
}

.core-illustration {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  z-index: 0;
}

.core-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Back side */
.core-back {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  transform: rotateY(180deg);
  background: #fff;
  color: #000;
  border-radius: 5px;
}

/* Flipping Behavior */
.core-container:hover .core-front {
  transform: rotateY(-180deg);
}

.core-container:hover .core-back {
  transform: rotateY(0deg);
}

/* Preserve 3D for both sides */
.core-container .core-front,
.core-container .core-back {
  transform-style: preserve-3d;
}

/* Video Link Styling */
.video-link {
 margin-top: auto;
  font-weight: bold;
  color: inherit;
 text-transform:uppercase;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  align-self: center;
  transition: background 0.3s ease;
}

.video-link:hover {
  background: #d41c5a;
}
.cv-gradient-text {
	font-size: clamp(1.65rem, 4vw, 1.85rem);
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent;
  -webkit-text-fill-color: transparent;
}