/* ==========================================================================
   BRANDALAY SINGLE TEAM MEMBER PROFILE STYLES
   Editorial Himalayan Mountain Leader Profile Layout
   ========================================================================== */

.team-single-page {
	width: 100%;
	background-color: #f8fafc;
}

/* Main Content Section */
.team-single-main-section {
	padding: 3.5rem 0 5rem;
}

.team-single-grid-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 3.5rem;
	align-items: flex-start;
}

@media (max-width: 1024px) {
	.team-single-grid-layout {
		display: flex;
		flex-direction: column;
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.team-single-sidebar {
		position: static;
		top: auto;
		width: 100%;
		max-width: 100%;
		z-index: 1;
	}

	.team-single-content-area {
		width: 100%;
		min-width: 0;
	}
}

/* Sidebar positioning: Static by default on mobile/tablets, sticky ONLY on large desktop >= 1025px */
.team-single-sidebar {
	position: static;
	top: auto;
	z-index: 1;
}

@media (min-width: 1025px) {
	.team-single-sidebar {
		position: sticky;
		top: 96px;
		z-index: 10;
	}
}

.team-profile-card {
	background: linear-gradient(180deg, #e6f4f1 0, #e6f4f1 96px, #ffffff 96px);
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(11, 41, 56, 0.06);
	text-align: center;
	padding: 2rem 1.5rem 1.5rem;
}

/* Round portrait sitting on the teal band */
.team-profile-media {
	width: 136px;
	height: 136px;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: #0b2938;
	border: 4px solid #ffffff;
	box-shadow: 0 0 0 2px #99d5cb, 0 8px 20px rgba(11, 41, 56, 0.15);
}

.team-profile-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

.team-profile-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0b2938, #0f5f73);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 3rem;
	font-weight: 700;
}

.team-profile-info {
	padding: 1.1rem 0 0;
}

.team-profile-name {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0b2938;
	margin: 0 0 0.25rem;
	line-height: 1.25;
}

.team-profile-role {
	font-size: 0.88rem;
	font-weight: 500;
	color: #0f5f73;
	margin: 0 0 0.75rem;
	line-height: 1.4;
}

.team-profile-category-tag {
	display: inline-block;
	background: #f0fdfa;
	color: #0E464E;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	border: 1px solid #ccfbf1;
}

.team-profile-info .team-profile-action {
	margin-top: 1.35rem;
	padding-top: 1.35rem;
	border-top: 1px solid #f1f5f9;
}

.team-trust-badges {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.1rem 0;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 1.35rem;
}

.team-trust-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #334155;
	line-height: 1.35;
}

.team-trust-item svg {
	flex-shrink: 0;
}

.team-trust-item--languages {
	color: #0f5f73;
	font-weight: 600;
	background: #f0fdfa;
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	border: 1px solid #ccfbf1;
	font-size: 0.78rem;
}

/* Sidebar Action Buttons */
.team-profile-action {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.team-inquire-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.85rem 1rem;
	background: #0f5f73;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	border-radius: 9px;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 3px 6px rgba(15, 95, 115, 0.2);
}

.team-inquire-btn:hover {
	background: #0a4352;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 12px rgba(15, 95, 115, 0.3);
}

.team-whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.8rem 1rem;
	background: #25D366;
	color: #ffffff;
	font-size: 0.88rem;
	font-weight: 700;
	border-radius: 9px;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.team-whatsapp-btn:hover {
	background: #1eb956;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(37, 211, 102, 0.35);
}

/* Right Content Area: Bio & Stories */
.team-bio-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 2px 8px rgba(11, 41, 56, 0.04);
	margin-bottom: 2.75rem;
}

.team-bio-head {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #f1f5f9;
}

.team-bio-eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #059669;
	margin-bottom: 0.35rem;
}

.team-bio-heading {
	font-size: 1.85rem;
	font-weight: 700;
	color: #0b2938;
	margin: 0;
	line-height: 1.25;
}

/* Credentials Grid */
.team-credentials-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid #f1f5f9;
}

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

.team-credential-box {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.team-credential-icon {
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.team-credential-text {
	display: flex;
	flex-direction: column;
}

.team-credential-val {
	font-size: 1rem;
	font-weight: 800;
	color: #0b2938;
	line-height: 1.2;
}

.team-credential-lbl {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
	line-height: 1.35;
	margin-top: 0.2rem;
}

.team-bio-body {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #334155;
}

.team-bio-body p {
	margin-bottom: 1.25rem;
}

.team-bio-body p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   VERIFIED TREKKER REVIEWS SECTION FOR GUIDE (Matching Trip Page Review Style on Grey Background)
   ========================================================================== */

.team-reviews-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 2px 8px rgba(11, 41, 56, 0.03);
	margin-bottom: 2.75rem;
}

@media (max-width: 640px) {
	.team-reviews-section {
		padding: 1.5rem 1.15rem;
		border-radius: 12px;
	}
}

.trip-reviews-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.trip-reviews-titles {
	flex: 1;
	min-width: 260px;
}

.trip-reviews-title {
	font-family: var(--heading-font, "Playfair Display", Georgia, serif);
	font-size: 1.85rem;
	font-weight: 700;
	color: #0E464E;
	line-height: 1.25;
	margin: 0;
	letter-spacing: -0.015em;
}

.trip-reviews-desc {
	font-size: 0.925rem;
	color: #64748b;
	line-height: 1.6;
	margin: 0.4rem 0 0 0;
	max-width: 650px;
}

.trip-reviews-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.itin-reviews-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #ffffff;
	background-color: #0E464E;
	border-radius: 0.625rem;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(14, 70, 78, 0.2);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

.itin-reviews-cta-btn:hover {
	background-color: #047857;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(14, 70, 78, 0.3);
}

/* Rating Summary & External Trust Strip */
.itin-reviews-summary-bar {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.75rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.itin-reviews-summary-left {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.875rem;
}

.itin-reviews-summary-stars {
	color: #f59e0b;
	font-size: 1rem;
	letter-spacing: 2px;
	display: inline-flex;
	line-height: 1;
}

.itin-reviews-summary-score {
	font-weight: 700;
	color: #0f172a;
}

.itin-reviews-summary-dot {
	color: #cbd5e1;
	margin: 0 0.25rem;
}

.itin-reviews-summary-count {
	color: #475569;
	font-weight: 500;
}

.itin-reviews-summary-right {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.itin-reviews-verified-label {
	font-size: 0.8125rem;
	color: #64748b;
	font-weight: 500;
}

.itin-reviews-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.85rem;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	font-size: 0.8125rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a.itin-reviews-badge-pill {
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.itin-reviews-badge-pill:hover,
a.itin-reviews-badge-pill:hover {
	border-color: #94a3b8;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.itin-reviews-badge-logo {
	width: 15px;
	height: 15px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.itin-card-source-logo {
	height: 13px;
	width: auto;
	max-width: 48px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.itin-reviews-badge-pill .badge-score {
	font-weight: 700;
	color: #0f172a;
}

.itin-reviews-badge-pill .badge-count {
	color: #94a3b8;
	font-weight: 400;
}

/* Review Cards List */
.team-reviews-cards-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.itin-review-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 1.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.itin-review-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px rgba(11, 41, 56, 0.06);
}

/* Card Header */
.itin-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.itin-card-user {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.itin-card-avatar {
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.itin-card-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.itin-card-user-info {
	display: flex;
	flex-direction: column;
}

.itin-card-user-name {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
	margin: 0;
}

.itin-card-location-row {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.775rem;
	color: #64748b;
	margin-top: 0.2rem;
}

.itin-pin-icon {
	color: #94a3b8;
	flex-shrink: 0;
}

.itin-card-platform-icon {
	display: inline-flex;
	align-items: center;
	margin-left: 0.25rem;
	flex-shrink: 0;
}

.itin-card-stars {
	color: #f59e0b;
	font-size: 0.95rem;
	letter-spacing: 1.5px;
	display: inline-flex;
	line-height: 1;
	flex-shrink: 0;
}

.itin-star.is-empty {
	color: #e2e8f0;
}

/* Route / Guide Meta */
.itin-card-guide-meta {
	font-size: 0.8125rem;
	color: #64748b;
	margin-bottom: 0.75rem;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.itin-card-guide-meta .guide-name {
	color: #0E464E;
	font-weight: 700;
	transition: color 0.15s ease;
}

.itin-card-guide-meta a.itin-guide-link {
	color: inherit;
	text-decoration: none;
}

.itin-card-guide-meta a.itin-guide-link:hover .guide-name {
	color: #047857;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.itin-card-guide-meta .guide-meta-dot {
	color: #cbd5e1;
	margin: 0 0.15rem;
}

.itin-card-guide-meta .guide-date {
	color: #64748b;
}

/* Review Headline */
.itin-card-headline {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0b2938;
	line-height: 1.35;
	margin: 0 0 0.65rem 0;
	font-style: italic;
}

/* Review Body Text */
.itin-card-body-text {
	font-size: 0.925rem;
	color: #334155;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.itin-card-body-text p {
	margin: 0 0 0.65rem 0;
}

.itin-card-body-text p:last-child {
	margin-bottom: 0;
}

/* Trail Photos */
.itin-card-photos-wrap {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid #f1f5f9;
}

.itin-card-photos-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.775rem;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 0.65rem;
}

.itin-card-photos-label svg {
	color: #94a3b8;
}

.itin-card-photos-list {
	display: flex;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.itin-card-photo-link {
	display: block;
	width: 68px;
	height: 68px;
	border-radius: 8px;
	overflow: hidden;
	border: 1.5px solid #e2e8f0;
	transition: transform 0.2s ease, border-color 0.2s ease;
	flex-shrink: 0;
}

.itin-card-photo-link:hover {
	transform: translateY(-2px);
	border-color: #0E464E;
}

.itin-card-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.team-review-photo-item {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	border: 1px solid #cbd5e1;
	background: #0b2938;
	display: block;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-review-photo-item:hover {
	transform: scale(1.05);
	border-color: #0f5f73;
}

.team-review-photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.team-review-photo-zoom {
	position: absolute;
	inset: 0;
	background: rgba(11, 41, 56, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.team-review-photo-item:hover .team-review-photo-zoom {
	opacity: 1;
}

/* Photo Galleries Section */
.team-galleries-section {
	margin-top: 1rem;
}

.team-gallery-block {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 2.25rem;
	box-shadow: 0 2px 8px rgba(11, 41, 56, 0.04);
	margin-bottom: 2.5rem;
}

.team-gallery-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f1f5f9;
}

.team-gallery-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0b2938;
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
}

.gallery-count-badge {
	font-size: 0.75rem;
	font-weight: 600;
	color: #0f5f73;
	background: #f0fdfa;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	border: 1px solid #ccfbf1;
}

.team-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

@media (max-width: 900px) {
	.team-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

.team-gallery-thumb-link {
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	border: 1px solid #e2e8f0;
	display: block;
	background: #0b2938;
}

.team-gallery-thumb-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.team-gallery-thumb-link:hover img {
	transform: scale(1.06);
}

.thumb-zoom-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 41, 56, 0.5);
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.team-gallery-thumb-link:hover .thumb-zoom-overlay {
	opacity: 1;
}

/* ==========================================================================
   RELATED TEAM SECTION & CARDS GRID (Included for /team/member-slug/)
   ========================================================================== */

.related-team-section {
	padding: 4.5rem 0 5.5rem;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
}

.related-team-head {
	margin-bottom: 2.5rem;
}

.related-team-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f5f73;
	margin-bottom: 0.35rem;
}

.related-team-head h3 {
	font-size: 1.85rem;
	font-weight: 700;
	color: #0b2938;
	margin: 0 0 0.5rem;
	letter-spacing: -0.01em;
}

.related-team-head p {
	font-size: 0.95rem;
	color: #64748b;
	margin: 0;
	max-width: 680px;
	line-height: 1.6;
}

/* Related Guides Grid */
.related-team-section .team-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

@media (max-width: 1024px) {
	.related-team-section .team-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 640px) {
	.related-team-section .team-cards-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* Card Structure */

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERRIDES (< 900px & < 640px)
   Fixes: Sticky overlap, oversized photo, unaligned review cards
   ========================================================================== */

@media (max-width: 900px) {
	.team-single-main-section {
		padding: 2rem 0 3.5rem;
	}

	.team-single-grid-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	/* CRITICAL: Sidebar must NOT be sticky on mobile */
	.team-single-sidebar {
		position: static;
		top: auto;
		z-index: 1;
	}

	/* Keep the compact card centred and narrow on tablets/phones */
	.team-profile-card {
		max-width: 420px;
		margin: 0 auto;
	}

	.team-profile-action {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
	}

	.team-inquire-btn {
		min-height: 48px;
		padding: 0.85rem 1rem;
		font-size: 0.92rem;
		font-weight: 700;
		justify-content: center;
		background: #0E464E;
	}

	.team-whatsapp-btn {
		min-height: 48px;
		padding: 0.8rem 1rem;
		font-size: 0.9rem;
		font-weight: 700;
		justify-content: center;
		background: #25D366;
	}
}

@media (max-width: 640px) {
	.team-bio-wrapper,
	.team-reviews-section,
	.team-gallery-block {
		padding: 1.25rem 1.15rem;
		border-radius: 14px;
		margin-bottom: 2rem;
	}

	.team-bio-heading {
		font-size: 1.45rem;
	}

	/* Verified Reviews styling on mobile (Trip Page Style) */
	.trip-reviews-title {
		font-size: 1.35rem;
		line-height: 1.25;
	}

	.trip-reviews-desc {
		font-size: 0.85rem;
	}

	.itin-reviews-summary-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		padding: 0.95rem 1rem;
		border-radius: 12px;
	}

	.itin-reviews-summary-left {
		gap: 0.35rem;
		font-size: 0.82rem;
	}

	.itin-reviews-summary-right {
		width: 100%;
		justify-content: flex-start;
		gap: 0.5rem;
	}

	.itin-reviews-badge-pill {
		padding: 0.3rem 0.65rem;
		font-size: 0.75rem;
	}

	.itin-review-card {
		padding: 1.25rem 1.15rem;
		border-radius: 14px;
	}

	.itin-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.itin-card-stars {
		font-size: 0.92rem;
	}

	.itin-card-headline {
		font-size: 1rem;
		line-height: 1.35;
	}

	.itin-card-body-text {
		font-size: 0.9rem;
		line-height: 1.6;
	}

	.itin-card-photos-list {
		display: flex;
		gap: 0.5rem;
		flex-wrap: wrap;
	}

	.itin-card-photo-link {
		width: 64px;
		height: 64px;
		border-radius: 8px;
		flex-shrink: 0;
	}

	/* Photo Gallery Repeater on Mobile */
	.team-gallery-title {
		font-size: 1.15rem;
	}

	.team-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.65rem;
	}

	/* Related Team Cards Grid on mobile */
	.related-team-section {
		padding: 3rem 0 4rem;
	}

	.related-team-section .team-cards-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

}

/* --- Team Single Extra Styles --- */
.team-authored-blogs-section {
				padding: 4.5rem 0;
				background-color: #f8fafc;
				border-top: 1px solid #e2e8f0;
				border-bottom: 1px solid #e2e8f0;
			}

			.team-authored-blogs-header {
				text-align: center;
				max-width: 680px;
				margin: 0 auto 3rem auto;
			}

			.team-authored-blogs-eyebrow {
				display: block;
				font-size: 0.75rem;
				font-weight: 700;
				letter-spacing: 0.08em;
				color: #059669;
				text-transform: uppercase;
				margin-bottom: 0.5rem;
			}

			.team-authored-blogs-title {
				font-size: clamp(1.75rem, 2.5vw, 2.25rem);
				font-weight: 700;
				color: #0E464E;
				letter-spacing: -0.02em;
				margin: 0 0 0.75rem 0;
				line-height: 1.25;
			}

			.team-authored-blogs-desc {
				font-size: 0.95rem;
				color: #64748b;
				line-height: 1.6;
				margin: 0;
			}

			.team-authored-blogs-grid {
				display: grid;
				/* Up to 3 cards, centred when there are fewer */
				grid-template-columns: repeat(auto-fit, minmax(260px, 370px));
				justify-content: center;
				gap: 1.75rem;
				align-items: stretch;
			}

			@media (max-width: 1024px) {
				.team-authored-blogs-grid {
					grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
					gap: 1.25rem;
				}
			}

			@media (max-width: 640px) {
				.team-authored-blogs-section {
					padding: 3rem 0;
				}
				.team-authored-blogs-header {
					margin-bottom: 2rem;
				}
				.team-authored-blogs-grid {
					grid-template-columns: minmax(0, 1fr);
					gap: 1.25rem;
				}
			}