/* =========================================================
   MAB | HOMEPAGE COLLABORATORS
   Premium Professional Cards
   Version: 1.1.0
   ========================================================= */

.mab-home-collaborators {
	--mab-hc-navy: #142b46;
	--mab-hc-blue: #285b85;
	--mab-hc-orange: #e58b43;
	--mab-hc-text: #263445;
	--mab-hc-muted: #758294;
	--mab-hc-border: #e8edf2;
	--mab-hc-soft: #f5f7fa;

	width: 100%;
	margin: 18px 0 35px;
	color: var(--mab-hc-text);
	font-family: inherit;
}

.mab-home-collaborators *,
.mab-home-collaborators *::before,
.mab-home-collaborators *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.mab-home-collaborators__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.mab-home-collaborators__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;

	border: 1px solid var(--mab-hc-border);
	border-radius: 17px;
	background: #ffffff;

	box-shadow: 0 5px 20px rgba(19, 42, 68, .035);

	transition:
		transform .22s ease,
		border-color .22s ease,
		box-shadow .22s ease;
}

.mab-home-collaborators__card:hover {
	transform: translateY(-4px);
	border-color: #d6e1eb;
	box-shadow: 0 14px 30px rgba(19, 42, 68, .09);
}

/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

.mab-home-collaborators__image-link {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;

	background: var(--mab-hc-soft);
	text-decoration: none !important;
}

.mab-home-collaborators__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;

	transition: transform .35s ease;
}

.mab-home-collaborators__card:hover
.mab-home-collaborators__image {
	transform: scale(1.045);
}

.mab-home-collaborators__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;

	background:
		linear-gradient(145deg, #edf2f7, #f8fafc);

	color: #9aabba;
}

/* ---------------------------------------------------------
   CARD BODY
   --------------------------------------------------------- */

.mab-home-collaborators__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 17px 17px;
}

.mab-home-collaborators__position {
	display: inline-block;
	max-width: 100%;
	margin: 0 0 9px !important;
	padding: 5px 10px;

	border-radius: 6px;
	background: #f0f4f8;
	color: var(--mab-hc-blue);

	font-size: 10px;
	font-weight: 750;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.mab-home-collaborators__name {
	width: 100%;
	margin: 0 0 9px !important;

	color: var(--mab-hc-navy) !important;
	font-size: 15px !important;
	font-weight: 850 !important;
	line-height: 1.9 !important;
}

.mab-home-collaborators__name a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color .2s ease;
}

.mab-home-collaborators__name a:hover {
	color: var(--mab-hc-blue) !important;
}

.mab-home-collaborators__excerpt {
	display: -webkit-box;
	width: 100%;
	margin: 0 0 15px !important;
	overflow: hidden;

	color: var(--mab-hc-muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 2;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* ---------------------------------------------------------
   PROFILE LINK
   --------------------------------------------------------- */

.mab-home-collaborators__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;

	border-top: 1px solid var(--mab-hc-border);
	width: 100%;

	color: var(--mab-hc-blue) !important;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.8;
	text-decoration: none !important;

	transition: color .2s ease;
}

.mab-home-collaborators__link span {
	display: inline-block;
	transition: transform .2s ease;
}

.mab-home-collaborators__link:hover {
	color: var(--mab-hc-orange) !important;
}

.mab-home-collaborators__link:hover span {
	transform: translateX(-3px);
}

/* ---------------------------------------------------------
   FOCUS ACCESSIBILITY
   --------------------------------------------------------- */

.mab-home-collaborators__image-link:focus-visible,
.mab-home-collaborators__name a:focus-visible,
.mab-home-collaborators__link:focus-visible {
	outline: 3px solid rgba(229, 139, 67, .65);
	outline-offset: 3px;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1024px) {

	.mab-home-collaborators__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

	.mab-home-collaborators {
    	margin: 18px 0 25px;
	}

	.mab-home-collaborators__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.mab-home-collaborators__card {
		border-radius: 13px;
	}

	.mab-home-collaborators__body {
		padding: 13px 12px;
	}

	.mab-home-collaborators__name {
		font-size: 13px !important;
	}

	.mab-home-collaborators__position {
		font-size: 9px;
		padding: 4px 7px;
	}

	.mab-home-collaborators__excerpt {
		font-size: 10px;
		line-height: 1.9;
	}
}

@media (max-width: 380px) {

	.mab-home-collaborators__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mab-home-collaborators__image-link {
		aspect-ratio: 16 / 9;
	}
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	.mab-home-collaborators *,
	.mab-home-collaborators *::before,
	.mab-home-collaborators *::after {
		transition: none !important;
		transform: none !important;
	}
}


/* =========================================================
   MAB | HOMEPAGE COLLABORATORS
   Shared Section Design
   Version: 1.1.0
   ========================================================= */

.mab-home-collaborators {
    --mab-hc-navy: #142b46;
    --mab-hc-blue: #285b85;
    --mab-hc-orange: #e58b43;
    --mab-hc-text: #263445;
    --mab-hc-muted: #758294;
    --mab-hc-border: #e8edf2;
    --mab-hc-soft: #f5f7fa;

    width: 100%;
    margin: 18px 0 35px;
    color: var(--mab-hc-text);
    font-family: inherit;
}

.mab-home-collaborators *,
.mab-home-collaborators *::before,
.mab-home-collaborators *::after {
    box-sizing: border-box;
}


/* =========================================================
   MAB | HOMEPAGE COLLABORATORS
   All Devices - Horizontal Scroll
   ========================================================= */

.mab-home-collaborators__grid {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 18px;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 4px 2px 14px;

    direction: rtl;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

/* Desktop */
.mab-home-collaborators__card {
    flex: 0 0 250px;
    width: 250px;
    min-width: 250px;
    max-width: 250px;

    scroll-snap-align: start;
}

/* Tablet */
@media (max-width: 1024px) {
    .mab-home-collaborators__grid {
        gap: 16px;
    }

    .mab-home-collaborators__card {
        flex-basis: 245px;
        width: 245px;
        min-width: 245px;
        max-width: 245px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mab-home-collaborators__grid {
        gap: 12px;
        padding-bottom: 10px;
    }

    .mab-home-collaborators__card {
        flex-basis: 225px;
        width: 225px;
        min-width: 225px;
        max-width: 225px;
        border-radius: 13px;
    }

    .mab-home-collaborators__body {
        padding: 13px 12px;
    }

    .mab-home-collaborators__name {
        font-size: 13px !important;
    }

    .mab-home-collaborators__position {
        font-size: 9px;
        padding: 4px 7px;
    }

    .mab-home-collaborators__excerpt {
        font-size: 10px;
        line-height: 1.9;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .mab-home-collaborators__card {
        flex-basis: 210px;
        width: 210px;
        min-width: 210px;
        max-width: 210px;
    }
}
