/* ==========================================================================
   Faculty single template — standalone styles (plain CSS, loaded only on
   single faculty pages). Does not touch theme's compiled styles.
   Brand: navy #002147, gold #d59f0f, green #5ab05f.
   ========================================================================== */

.single-faculty {
	--faculty-navy: #002147;
	--faculty-gold: #d59f0f;
	color: #2f2f2f;
	overflow-x: hidden;
}

.single-faculty * { box-sizing: border-box; }

/* Hero flush to the (absolute, overlaying) site header — like the exempted pages */
main.single-faculty { padding-top: 0; }

.faculty-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}
.faculty-container--narrow { max-width: 900px; }

/* Shared: gold divider line */
.faculty-divider {
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--faculty-divider, #d59f0f);
	margin-top: 18px;
	margin-bottom: 18px;
}
.faculty-divider--center { margin-left: auto; margin-right: auto; }

/* Shared: centered section title with divider */
.faculty-section-title {
	text-align: center;
	color: var(--faculty-navy);
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 36px;
}
.faculty-section-title .faculty-divider { margin-top: 12px; }

/* Shared: checklist with colored ticks */
.faculty-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: start;
}
.faculty-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 16.5px;
	line-height: 1.5;
}
.faculty-checklist li::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: var(--faculty-check, #d59f0f);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Shared: read-more link with chevron */
.faculty-readmore {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--faculty-navy);
	font-weight: 700;
	font-size: 17px;
	text-decoration: none;
	margin-top: 16px;
}
/* Chevron pointing left (bidi-independent, drawn with borders) */
.faculty-readmore::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(135deg);
}
.faculty-readmore:hover { text-decoration: underline; }

/* Shared: faculty icon wrapper */
.faculty-icon { display: inline-flex; }
.faculty-icon svg { width: 48px; height: 48px; }
.faculty-icon--custom img { width: 48px; height: 48px; object-fit: contain; }

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.faculty-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 500px;
	padding-top: 11.4rem; /* clear the overlaying site header */
	background: var(--faculty-hero-bg, #002147);
	color: #fff;
	overflow: hidden;
}
.faculty-hero__media { position: absolute; inset: 0 auto 0 0; width: 50%; height: 100%; }
.faculty-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.faculty-hero__overlay {
	position: absolute;
	inset: 0;
	/* fully navy up to the photo's right edge (≈55%), then a smooth 100→0 fade
	   across the whole photo so there is no visible seam */
	background: linear-gradient(to left, var(--faculty-hero-bg, #002147) 50%, rgba(0,33,71,0) 100%);
}
.faculty-hero .faculty-container { position: relative; z-index: 2; }
.faculty-hero__content { max-width: 560px; padding: 50px 0; }
.faculty-hero__title { font-size: 44px; line-height: 1.15; font-weight: 700; margin: 0; color: #fff; }
.faculty-hero__subtitle { font-size: 17px; line-height: 1.6; opacity: .9; margin: 0; max-width: 520px; }

/* --------------------------------------------------------------------------
   2. CARDS
   -------------------------------------------------------------------------- */
.faculty-cards { padding: 0; margin-top: 90px; background: #fff; }
.faculty-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.faculty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 36px 28px;
	border: 1px solid #e6eaf1;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0,33,71,.05);
}
.faculty-card__icon { margin-bottom: 18px; }
.faculty-card__title { font-size: 21px; font-weight: 700; margin: 0 0 14px; }
.faculty-card__text { font-size: 16.5px; line-height: 1.6; color: #555; margin: 0; }
.faculty-card .faculty-checklist { width: 100%; }
.faculty-card .faculty-readmore { margin-top: auto; padding-top: 16px; }

/* --------------------------------------------------------------------------
   Card / dual-block watermark — the footer's topographic pattern, rendered
   tone-on-tone: `multiply` darkens each box's own background colour in the
   shape of the contour lines, so it reads as "the background colour, just
   intensified" (light-grey lines on white cards, a deeper tint on coloured
   dual blocks). Sits above the background, below the content.
   -------------------------------------------------------------------------- */
.faculty-card,
.faculty-block {
	position: relative;
	isolation: isolate;       /* keep the blend contained to this box */
	overflow: hidden;         /* clip the pattern to the rounded corners */
}
.faculty-card::before,
.faculty-block::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;              /* above the box background, below the content */
	background-image: url("../images/faculty-pattern.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	mix-blend-mode: multiply;
	opacity: .03;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. PROGRAMS — tabs
   -------------------------------------------------------------------------- */
.faculty-programs { padding: 0; margin-top: 90px; background: #fff; }
.faculty-programs__box {
	border: 1px solid #e6eaf1;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 6px 24px rgba(0,33,71,.05);
}
.faculty-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	border-bottom: 1px solid #e6eaf1;
	margin-bottom: 28px;
}
.faculty-tabs__tab {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 4px;
	font-size: 16px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	font-family: inherit;
}
.faculty-tabs__tab:hover { color: var(--faculty-navy); }
.faculty-tabs__tab.is-active { color: var(--faculty-navy); border-bottom-color: var(--faculty-gold); }
.faculty-tabs__tab:focus-visible { outline: 2px solid var(--faculty-gold); outline-offset: 2px; }

.faculty-panel { display: none; flex-direction: row-reverse; gap: 32px; align-items: center; }
.faculty-panel.is-active { display: flex; }
.faculty-panel__media { flex: 1 1 45%; }
.faculty-panel__media img { width: 100%; height: 350px; object-fit: cover; border-radius: 10px; display: block; }
.faculty-panel__body { flex: 1 1 55%; }
.faculty-panel__title { font-size: 26px; font-weight: 700; color: var(--faculty-navy); margin: 0 0 14px; }
.faculty-panel__desc { font-size: 16px; line-height: 1.7; color: #333; }

/* --------------------------------------------------------------------------
   4. EXPERIENCE / CAREER
   -------------------------------------------------------------------------- */
.faculty-dual { padding: 0; margin-top: 90px; background: #fff; }
.faculty-dual__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faculty-block { padding: 36px 32px; border-radius: 12px; }
.faculty-block__title { font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.faculty-block__subtitle { font-size: 15px; line-height: 1.6; color: #555; margin: 0 0 20px; }

/* --------------------------------------------------------------------------
   5. FAQ — accordion
   -------------------------------------------------------------------------- */
.faculty-faq { padding: 0; margin-top: 90px; background: #fff; }
.faculty-accordion { border-top: 1px solid #e6eaf1; }
.faculty-accordion__item { border-bottom: 1px solid #e6eaf1; }
.faculty-accordion__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 4px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	color: var(--faculty-navy);
	text-align: start;
	cursor: pointer;
}
.faculty-accordion__chevron {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.faculty-accordion__q.is-open .faculty-accordion__chevron { transform: rotate(-135deg); }
.faculty-accordion__a { padding: 0 4px 20px; font-size: 15px; line-height: 1.6; color: #555; }
.faculty-accordion__q:focus-visible { outline: 2px solid var(--faculty-gold); outline-offset: 2px; }
.faculty-faq__all { text-align: center; margin-top: 28px; }
.faculty-faq__all .faculty-readmore { justify-content: center; }

/* --------------------------------------------------------------------------
   6. BOTTOM BANNER
   -------------------------------------------------------------------------- */
.faculty-banner {
	position: relative;
	width: 95%;
	margin: 90px auto 2.5%;
	background: var(--faculty-navy);
	color: #fff;
	padding: 48px 0;
	border-radius: 16px;
	overflow: hidden;
}
.faculty-banner__media { position: absolute; inset: 0 auto 0 0; width: 30%; height: 100%; }
.faculty-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.faculty-banner__overlay {
	position: absolute;
	inset: 0;
	/* same treatment as hero: fully navy to the photo edge, then smooth 100→0 fade */
	background: linear-gradient(to left, var(--faculty-navy) 70%, rgba(0,33,71,0) 100%);
}
.faculty-banner .faculty-container { position: relative; z-index: 2; max-width: 1480px; }
.faculty-banner__inner { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 30px; }
.faculty-banner__cta { position: absolute; inset-inline-start: 30px; bottom: 5px; } /* aligned to the icons row (bottom of content) */
.faculty-banner__center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.faculty-banner__title { font-size: 30px; font-weight: 700; margin: 0; color: #fff; }
.faculty-banner__head { display: flex; flex-direction: column; align-items: center; }
.faculty-banner__head .faculty-divider { margin: 12px auto 0; }
.faculty-quicklinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.faculty-quicklinks__item a { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 15px; }
.faculty-quicklinks__icon svg { width: 40px; height: 40px; }
.faculty-quicklinks__item a:hover { color: var(--faculty-gold); }
.faculty-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--faculty-gold);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 30px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
}
/* Chevron pointing left (bidi-independent, drawn with borders) */
.faculty-cta-btn::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(135deg);
}
.faculty-cta-btn:hover { filter: brightness(1.05); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Banner CTA drops below the icons (in flow) under 1300px */
@media (max-width: 1299px) {
	.faculty-banner__inner { flex-direction: column; align-items: center; }
	.faculty-banner__cta { position: static; transform: none; order: 2; margin-top: 16px; }
}

@media (max-width: 900px) {
	.faculty-cards__grid { grid-template-columns: 1fr; }
	.faculty-dual__grid { grid-template-columns: 1fr; }
	.faculty-panel { flex-direction: column; align-items: stretch; }
	.faculty-panel__media img { height: 215px; }
	.faculty-hero { padding-top: 7.8rem; min-height: 0; }
	.faculty-hero__media { width: 100%; }
	.faculty-hero__overlay { background: linear-gradient(to top, var(--faculty-hero-bg, #002147) 30%, rgba(0,33,71,.55) 100%); }
	.faculty-hero__title { font-size: 34px; }
	.faculty-banner__media { width: 100%; }
	/* phones: photo at the bottom, navy fading down over it (like hero goes vertical) */
	.faculty-banner__overlay { background: linear-gradient(to bottom, var(--faculty-navy) 65%, rgba(0,33,71,0) 100%); }
}

@media (max-width: 600px) {
	.faculty-tabs { gap: 4px 18px; }
	.faculty-tabs__tab { font-size: 14px; }
	.faculty-quicklinks { gap: 18px; }
	.faculty-cta-btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Mobile swipe sliders (phones only)
   JS upgrades the card/dual grids into a Swiper at <=900px; desktop keeps the
   plain CSS grid. These rules only apply once the `.swiper` class is present.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	/* Hand layout control to Swiper (overrides the stacked 1fr grid above) */
	.faculty-cards__grid.swiper,
	.faculty-dual__grid.swiper {
		display: block;
		overflow: hidden;
		padding-bottom: 34px; /* room for the pagination dots below the slides */
	}

	/* Equal-height slides: card/block fills the (flex-stretched) slide height */
	.faculty-swiper .swiper-slide { height: auto; }

	/* Pagination dots — brand colours, centered under the slider */
	.faculty-swiper .swiper-pagination { bottom: 4px; }
	.faculty-swiper .swiper-pagination-bullet {
		width: 9px;
		height: 9px;
		background: #c2ccd9;
		opacity: 1;
		transition: background-color .2s ease, transform .2s ease;
	}
	.faculty-swiper .swiper-pagination-bullet-active {
		background: var(--faculty-gold);
		transform: scale(1.15);
	}
}
