/**
 * Team Page Styles — Najmat Al-Sitteen
 * Replicating the exact homepage card section formatting in a responsive grid without carousel.
 */

body.page-template-template-team,
body.page-slug-team,
body.page-slug-our-team,
.team-page-main {
	/* Previous site font: font-family: "Alexandria", system-ui, -apple-system, sans-serif; */
	font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	color: var(--text, #111827);
	background:
		radial-gradient(circle at 0% 0%, rgba(37, 111, 220, 0.08), transparent 30%),
		radial-gradient(circle at 100% 0%, rgba(199, 154, 60, 0.08), transparent 25%),
		linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%);
	overflow-x: hidden;
}

.team-page-main .container {
	width: min(1280px, calc(100% - 48px));
	margin-inline: auto;
}

/* ==========================================
   FULL WIDTH HERO SECTION (like other pages)
   ========================================== */
.team-page-main .services-hero-wrapper {
	padding-top: 8px;
}

.team-page-main .services-hero-wrapper > .container {
	width: calc(100% - 16px);
	max-width: none;
}

.team-page-main .services-hero-card {
	border-radius: 18px;
	min-height: min(760px, calc(100vh - 16px));
}

/* ==========================================
   TEAM SECTION & GRID
   ========================================== */
.team-page-main #team-section {
	padding: 95px 0 110px;
	position: relative;
	background: transparent;
}

/* ==========================================
   TEAM GRID & CARDS (Home Card Section Formatting)
   ========================================== */
.team-page-main .team-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
	grid-auto-flow: row;
}

/* Replicating .team-carousel-card styling exactly */
.team-page-main .team-card {
	background: #fff;
	border: 1px solid #e7ecf4;
	border-radius: 24px;
	padding: 12px;
	box-shadow: 0 18px 48px rgba(16, 43, 70, 0.08);
	direction: rtl;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
	height: 100%;
}

.team-page-main .team-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 60px rgba(16, 43, 70, 0.15);
	border-color: rgba(199, 154, 60, 0.35);
}

.team-page-main .team-card .team-card-img {
	height: 310px;
	border-radius: 18px;
	overflow: hidden;
	background: #102b46;
	position: relative;
}

.team-page-main .team-card .team-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-page-main .team-card:hover .team-card-img img {
	transform: scale(1.06);
}

.team-page-main .team-card .team-card-body {
	padding: 18px 8px 10px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.team-page-main .team-card h3 {
	margin: 0 0 8px;
	color: #102b46;
	font-size: 1.35rem;
	line-height: 1.35;
	font-weight: 800;
}

.team-page-main .team-card .team-role {
	display: block;
	color: #a8751f;
	font-weight: 900;
	font-size: 0.86rem;
	margin-bottom: 10px;
	direction: rtl;
	text-align: right;
}

.team-page-main .team-card p {
	margin: 0;
	color: #6b7280;
	line-height: 1.85;
	font-size: 0.93rem;
}

/* ==========================================
   RESPONSIVE LAYOUT
   ========================================== */
@media (max-width: 992px) {
	.team-page-main .team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
	.team-page-main .team-card .team-card-img {
		height: 290px;
	}
}

@media (max-width: 768px) {
	.team-page-main .services-hero-wrapper > .container {
		width: calc(100% - 12px);
	}

	.team-page-main .services-hero-card {
		border-radius: 16px;
		min-height: 680px;
	}
}

@media (max-width: 640px) {
	.team-page-main .team-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.team-page-main .team-card .team-card-img {
		height: 280px;
	}
}
