/* C2P Speakers Grid — ported 1:1 from the original Elementor card values.
   Colour + type come from the site's existing Elementor global variables,
   so the kit stays the single source of truth. */

.c2p-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px 30px;
}

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

@media (max-width: 767px) {
	.c2p-grid { grid-template-columns: 1fr; }
}

/* ---- card ------------------------------------------------------------- */

.c2p-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 648px;
	/* The plate is a normal flex item pushed down by the spacer, never by a
	   transform. It therefore always sits inside the card's box, so the photo
	   always covers it, at every width and every name length. */
	padding-bottom: 26px;
}

/* Radius + clipping live on the media wrapper, so a long name that pushes
   the plate past the card edge is never cut off. */
.c2p-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: 20px;
	overflow: hidden;
	background-color: rgba(0, 0, 0, .04); /* placeholder while lazy-loading */
}

/* Elementor ships `.elementor img { height: auto }` at specificity (0,1,1),
   which beats a single class. Without the extra class here the photo is sized
   by its own 2:3 aspect ratio instead of filling the card, leaving a strip at
   the bottom with no photo behind the plate — worse the narrower the card. */
.c2p-card__media .c2p-card__photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center; /* matches background-position: top center */
}

.c2p-card__spacer {
	flex: 1 1 auto;      /* takes up the slack, pushing the plate to the bottom */
	min-height: 250px;   /* but never less than this much visible photo */
}

.c2p-card__shift {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px;
	border-radius: 20px;
}

.c2p-card__plate {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	padding: 40px;
	border-radius: 20px;
	background-color: var(--e-global-color-accent, #FFFFFF);
}

/* ---- name ------------------------------------------------------------- */

.c2p-card__name {
	margin: 0;
	font-family: var(--e-global-typography-accent-font-family), Sans-serif;
	font-size: var(--e-global-typography-accent-font-size, 24px);
	font-weight: var(--e-global-typography-accent-font-weight, 500);
	text-transform: var(--e-global-typography-accent-text-transform, uppercase);
	text-decoration: var(--e-global-typography-accent-text-decoration, none);
	line-height: var(--e-global-typography-accent-line-height, 1.2em);
	color: var(--e-global-color-41ac439, #000224);
}

/* Explicit, not inherited: the site's link reset doesn't reliably reach here,
   and --e-global-typography-accent-text-decoration is not defined in the kit. */
.c2p-card__name a,
.c2p-card__name a:link,
.c2p-card__name a:visited,
.c2p-card__name a:hover,
.c2p-card__name a:focus {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

/* ---- button ----------------------------------------------------------- */

.c2p-card__btnwrap {
	padding-top: 15px;
	text-align: left;
}

.c2p-btn,
.c2p-btn:link,
.c2p-btn:visited,
.c2p-btn:hover,
.c2p-btn:focus {
	text-decoration: none;
}

.c2p-btn {
	position: relative;
	display: inline-block;
	overflow: hidden;
	padding: 20px 30px;
	border: none;
	border-radius: 50px;
	background-color: #9178FB;
	color: var(--e-global-color-accent, #FFFFFF);
	text-decoration: none;
	white-space: nowrap;
	font-family: var(--e-global-typography-e3e554c-font-family), Sans-serif;
	font-size: var(--e-global-typography-e3e554c-font-size, 14px);
	font-weight: var(--e-global-typography-e3e554c-font-weight, 600);
	text-transform: var(--e-global-typography-e3e554c-text-transform, uppercase);
	line-height: var(--e-global-typography-e3e554c-line-height, 1.2em);
	letter-spacing: var(--e-global-typography-e3e554c-letter-spacing, 3.5px);
	word-spacing: var(--e-global-typography-e3e554c-word-spacing, normal);
}

.c2p-btn span {
	position: relative;
	z-index: 1;
}

.c2p-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	transition: opacity .3s ease;
	background-image: linear-gradient(60deg, var(--e-global-color-41ac439) 50%, var(--e-global-color-41ac439) 100%);
}

.c2p-btn:hover {
	color: var(--e-global-color-accent, #FFFFFF);
}

.c2p-btn:hover::before {
	opacity: 1;
}

