/**
 * Dipharma Experts — Public Styles
 *
 * All selectors are prefixed with .de- to avoid conflicts with the active theme.
 *
 * @package Dipharma_Experts
 */

/* =============================================================================
   Custom properties
============================================================================= */
:root {
	--de-blue: #003F8A;
	--de-cyan: #009edd;
	--de-text: #333333;
	--de-text-muted: #666666;
	--de-border: #C8DCE8;
	--de-bg-light: #F4F8FB;
	--de-white: #ffffff;
	--de-radius: 4px;
	--de-max-width: 1200px;
	--de-gap: 2rem;
	--de-font: inherit;
}

/* =============================================================================
   Layout shell
============================================================================= */
.de-single,
.de-archive {
	font-family: var(--de-font);
	color: var(--de-text);
	line-height: 1.65;
	font-size: 1rem;
	max-width: 100%;
}

.de-container {
	max-width: var(--de-max-width);
	margin-right: auto;
	margin-left: auto;
	padding-right: 10px;
	padding-left: 10px;
}

/* =============================================================================
   Hero — two-column: photo+button left, name+quote right
============================================================================= */
.de-hero {
	padding: 2.5rem 0;
	background: var(--de-white);
	position: relative;
	overflow: visible;
}

/*
 * Vector chevron — left edge of the viewport.
 * Negative left offset pushes it so it straddles the page edge.
 * At 1440px it sits flush; on wider viewports it stays anchored to the
 * container left because the container is centred with auto margins.
 */
.de-hero__vector {
	position: absolute;
	left: -120px;
	top: 200px;
	pointer-events: none;
	z-index: 0;
}

.de-hero__vector svg {
	display: block;
}

.de-hero__inner {
	display: flex;
	align-items: stretch;
	gap: 3.5rem;
	position: relative;
	z-index: 1;
}

/* ── Left column: photo + contacts ── */
.de-hero__left {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.75rem;
}

.de-hero__photo {
	width: 431px;
	aspect-ratio: 431/498;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.de-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 431/498;
	max-width: none;
	object-fit: cover;
	object-position: center;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.de-hero__contacts {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* ── Right column: name block + molecule stamp + quote ── */
.de-hero__right {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4rem;
}

.de-hero__top-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.de-hero__name-block {
	flex: 1;
}

.de-hero__name {
	font-size: clamp(3rem, 5vw, 4.5rem);
	font-weight: 500;
	color: var(--de-text);
	margin: 0 0 .4rem;
	line-height: 1.1;
}

.de-hero__position {
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--de-cyan);
	margin: 0;
	line-height: 1.2;
}

.de-hero__molecule {
	flex-shrink: 0;
}

.de-hero__molecule svg {
	display: block;
	width: 133px;
	height: auto;
}

blockquote.de-hero__quote {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;

	font-size: 28px !important;
	font-style: italic;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	color: var(--de-cyan) !important;
	quotes: "\201C" "\201D";
	background: none !important;
}

.de-hero__quote::before {
	content: open-quote;
}

.de-hero__quote::after {
	content: close-quote;
}

/* =============================================================================
   Button
============================================================================= */
.de-btn {
	display: inline-block;
	padding: 1.3rem 4.5rem;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: unset;
	text-transform: uppercase;
	letter-spacing: 0;
	text-decoration: none;
	border: none;
	cursor: pointer;
	border-radius: var(--de-radius);
	transition: background-color .2s ease, color .2s ease;
}

.de-btn--primary {
	background-color: var(--de-cyan);
	color: var(--de-white);
	clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
}

.de-btn--primary:hover,
.de-btn--primary:focus {
	background-color: #231F20;
	color: var(--de-white);
	text-decoration: none;
}

/* =============================================================================
   Highlights + Expertise — wide hexagonal panel
============================================================================= */
.de-details {
	padding: 2rem 0 3rem;
}

/*
 * Wide hexagon: flat top & bottom, pointed left & right ends.
 * clip-path percentages (3.5 / 96.5) control how deep the points cut in.
 * The extra horizontal padding (7–8%) keeps text well clear of the points.
 */
.de-details__inner {
	background: var(--de-cyan);
	clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
	display: flex;
	/* display: grid; */
	/* grid-template-columns: 504px 430px; */
	width: 75%;
	justify-content: center;
	gap: 2.5rem;
	/* padding: 2.5rem 6.5%; */
	padding: 2.5rem 8%;
}

/* ── Base card — used in archive grid & related slider ── */
.de-card {
	border: 2px solid var(--de-border);
	border-radius: var(--de-radius);
	padding: 2rem 2rem 1.5rem;
}

/* Inside the hexagon: strip border/bg, let the hex colour show through */
.de-card--highlights,
.de-card--expertise {
	border: none;
	border-radius: 0;
	background: transparent;
	padding: 0;
}

.de-card--expertise {
	display: none;
}

/* ── Titles ── */
.de-card__title {
	font-size: 1.875rem;
	font-weight: 800;
	/* text-transform: uppercase; */
	letter-spacing: .04em;
	color: var(--de-cyan);
	margin: 0 0 1.5rem;
}

.de-card--highlights .de-card__title,
.de-card--expertise .de-card__title {
	color: #fff;
}

/* ── Lists ── */
.de-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.de-card__list-item {
	position: relative;
	padding: .55rem 0 .55rem .875rem;
	font-size: 1.25rem;
	letter-spacing: -4%;
	font-weight: 400;
	line-height: 1.5;
	color: var(--de-text);
}

.de-card__list-item:last-child {
	border-bottom: none;
}

.de-card__list-item::before {
	content: "·";
	position: absolute;
	left: 0;
	top: .5rem;
	color: var(--de-cyan);
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.4;
}

/* White items inside the hexagon */
.de-card--highlights .de-card__list-item,
.de-card--expertise .de-card__list-item {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.25);
}

.de-card--highlights .de-card__list-item::before,
.de-card--expertise .de-card__list-item::before {
	color: #fff;
}

/* ── Expertise taxonomy links ── */
.de-card__term-link {
	color: var(--de-text);
	text-decoration: none;
}

.de-card__term-link:hover,
.de-card__term-link:focus {
	color: var(--de-cyan);
	text-decoration: underline;
}

.de-card--expertise .de-card__term-link {
	color: #fff;
}

.de-card--expertise .de-card__term-link:hover,
.de-card--expertise .de-card__term-link:focus {
	color: rgba(255, 255, 255, .75);
	text-decoration: underline;
}

/* =============================================================================
   About section
============================================================================= */
.de-about {
	padding: 2.5rem 0 3rem;
}

.de-about__heading {
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--de-cyan);
	margin: 0 0 1rem;
}

.de-about__intro {
	font-size: 1.5rem;
	font-weight: 600;
	font-style: italic;
	color: var(--de-cyan);
	margin: 0 0 1.5rem;
	line-height: 1.2;
}

/* Two-column layout for the main about content.
   Text flows freely across both columns; break-inside is intentionally omitted
   so a single-paragraph body is split correctly by the browser. */
.de-two-col {
	column-count: 2;
	column-gap: 3rem;
}

.de-two-col p {
	margin-top: 0;
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--de-text);
	line-height: 1.2;
}

/* =============================================================================
   Related experts slider
============================================================================= */
.de-related {}

.de-related__heading {
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--de-cyan);
	margin: 0 0 2rem;
}

/* =============================================================================
   Swiper — container + wrapper + slide
   Swiper's bundled CSS targets .swiper-wrapper/.swiper-slide only.
   Since we use custom class names we must declare the equivalent rules
   ourselves so the layout works even if Avada overrides Swiper's inline styles.
============================================================================= */
.de-slider {
	overflow: hidden;
	position: relative;
}

/* Wrapper: must be a horizontal flex row — mirrors .swiper-wrapper */
.de-slider__track {
	display: flex !important;
	flex-wrap: nowrap;
	box-sizing: content-box;
	align-items: stretch;
}

/* Slide: must not shrink — mirrors .swiper-slide */
.de-slider__slide {
	flex-shrink: 0;
	box-sizing: border-box;
	height: auto;
}

/* Make the expert card fill the slide */
.de-slider__slide .de-expert-card {
	height: 628px;
}

/* Navigation bar (prev · dots · next) */
.de-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	margin-top: 1.75rem;
	max-width: fit-content;
	margin: 40px auto;
}

/* Prev / Next buttons — plain angle-bracket style, no circle */
.de-slider__btn {
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: var(--de-cyan);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 .65rem;
	display: flex;
	align-items: center;
	transition: color .2s;
}

.de-slider__btn:hover,
.de-slider__btn:focus {
	color: var(--de-blue);
}

/* Swiper renders <span> bullets inside .de-slider__dots */
.de-slider__dots {
	display: flex;
	gap: .5rem;
	align-items: center;
	margin-top: 4px;
}

.de-slider__dot {
	display: block;
	width: .625rem;
	height: .625rem;
	border-radius: 50%;
	background-color: #9DD4EC;
	cursor: pointer;
	transition: background-color .2s;
	opacity: 1;
}

.de-slider__dot.is-active {
	background-color: var(--de-cyan);
}

/* =============================================================================
   Expert card (used in slider + archive)
============================================================================= */
.de-expert-card {
	background: var(--de-white);
	border: 3px solid var(--de-cyan);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 628px;
	background-color: var(--de-cyan);
}

.de-expert-card__photo {
	overflow: hidden;
	flex-shrink: 0;

}

.de-expert-card__img {
	display: block;
	width: 72.37%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	object-position: center top;
	transition: transform .35s ease;
	text-align: center;
	margin: 24px auto;
	border-radius: 16px;
}

.de-expert-card:hover .de-expert-card__img {
	transform: scale(1.04);
}

.de-expert-card__body {
	padding: 1.5rem 1.75rem 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	align-items: center;
	text-align: center;
	border-radius: 16px;
	background-color: var(--de-white);
}

.de-expert-card__name {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 .5rem;
	line-height: 1.25;
}

.de-expert-card__name a {
	color: #231F20;
	text-decoration: none;
}

.de-expert-card__name a:hover,
.de-expert-card__name a:focus {
	color: var(--de-cyan);
}

.de-expert-card__position {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--de-cyan);
	margin: 0 0 1rem;
	line-height: 1.35;
}

.de-expert-card__desc {
	font-size: 1rem;
	color: var(--de-text-muted);
	line-height: 1.2;
	margin: 0 0 1.25rem;
	flex: 1;

	/* Clamp to 3 visible lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.de-expert-card__cta {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: 1rem;
	font-weight: 500;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--de-cyan);
	text-decoration: none;
	margin-top: auto;
	align-self: flex-end;
}

.de-expert-card__cta:hover,
.de-expert-card__cta:focus {
	color: #231F20;
}

.de-expert-card__arrow {
	font-style: normal;
	font-size: 1.2rem;
	line-height: 1;
}

/* =============================================================================
   Archive hero — full-width cyan banner with SVG hexagon pattern
============================================================================= */
/*
 * Break out of any theme container so the hero spans 100vw.
 * margin-left/right pull the element to the viewport edges regardless of
 * what ancestor has padding or max-width set.
 */
.de-archive-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--de-cyan);
	min-height: 337px;
	display: flex;
	align-items: center;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.de-archive-hero__content {
	position: relative;
	z-index: 1;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.de-archive-hero__title {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 800;
	color: var(--de-white);
	margin: 0 0 1rem;
	line-height: 1.1;
	max-width: 55%;
}

.de-archive-hero__desc {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--de-white);
	line-height: 1.65;
	margin: 0;
	max-width: 55%;
}

.de-archive-hero__desc p {
	margin: 0 0 .75rem;
}

.de-archive-hero__desc p:last-child {
	margin-bottom: 0;
}

/*
 * SVG positioned flush to the right edge.
 * At 1440px the SVG is its natural size; on narrower screens it scales down
 * proportionally while remaining anchored to the right.
 */
.de-archive-hero__bg {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.de-archive-hero__bg svg {
	display: block;
	height: 100%;
	width: auto;
}

/* =============================================================================
   Archive — filter bar + grid
============================================================================= */
.de-archive {
	padding: 2rem 0 3rem;
}

/* ── Filter ── */
.de-archive__filter {
	/* display: flex; */
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem;
	padding: 1.5rem 1.5rem 2rem;
}

.de-archive__filter-label {
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 500;
	color: var(--de-cyan);
}

.de-archive__filter-select-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	min-width: 0;
}

/* Custom chevron via pseudo-element on the wrapper */
.de-archive__filter-select-wrap::after {
	content: "\2304";
	position: absolute;
	right: .75rem;
	top: 40%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	pointer-events: none;
	line-height: 1;
	color: var(--de-cyan);
}

.de-archive__filter-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0rem 2.5rem 0rem 1rem;
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 500;
	color: var(--de-cyan);
	background: var(--de-white);
	border: 2px solid var(--de-cyan);
	border-radius: 8px;
	cursor: pointer;
	min-width: 160px;
	max-width: 100%;
	box-sizing: border-box;
}

.de-archive__filter-select:focus {
	outline: 2px solid var(--de-cyan);
	outline-offset: 2px;
}

/* ── Grid ── */
.de-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin-bottom: 2.5rem;
}

.de-archive__pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: .5rem;
	flex-wrap: wrap;
}

.de-archive__empty {
	color: var(--de-text-muted);
}

/* =============================================================================
   Responsive
============================================================================= */
@media (max-width: 1024px) {
	.de-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*
 * Stack the two hex columns before they overflow the container.
 * Total fixed columns (504 + 430 + 2.5rem gap) need ≈ 975 px of grid space;
 * once the available width inside the hex drops below that, switch to one column.
 * The hexagon shape is preserved at all screen sizes.
 */
@media (max-width: 1150px) {
	.de-details__inner {
		grid-template-columns: 1fr;
		padding: 2.5rem 10%;

	}
}

@media (max-width: 1024px) {
	.de-details__inner {
		clip-path: none;
		border-radius: var(--de-radius);
		padding: 2.5rem 2rem;
		width: 100%;
	}
}

@media (max-width: 1439px) {
	.de-hero__vector {

		left: -60px;
	}
}

@media (max-width: 960px) {
	.de-hero__inner {
		flex-direction: column;
		align-items: center;
		position: relative;
	}

	.de-hero__left {
		width: 100%;
		max-width: 300px;
	}

	.de-hero__photo {
		width: 100%;
	}

	.de-hero__top-row {
		flex-wrap: wrap;
	}

	/*
	 * Pull the molecule out of the right column and anchor it to the
	 * top-right corner of the photo — which sits at the top of .de-hero__inner.
	 */
	.de-hero__molecule {
		position: absolute;
		top: 0;
		right: 0;
		order: 0;
		align-self: auto;
	}

	.de-details__inner {
		padding: 2rem;
	}

	.de-two-col {
		column-count: 1;
	}
}

@media (max-width: 768px) {
	.de-archive-hero__bg {
		opacity: .35;
	}

	.de-archive-hero__title,
	.de-archive-hero__desc {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.de-archive__grid {
		grid-template-columns: 1fr;
	}

	blockquote.de-hero__quote {
		font-size: 1.05rem !important;
	}

	.de-hero__vector {
		display: none;
	}

	.de-archive-hero__bg {
		display: none;
	}
}

/* =============================================================================
   Avada theme — suppress the page title bar on all Expert pages.
============================================================================= */
.single-expert .avada-page-titlebar-wrapper,
.post-type-archive-expert .avada-page-titlebar-wrapper,
.tax-expertise .avada-page-titlebar-wrapper {
	display: none !important;
}