/* AFAMS Team & Leadership Grid Widget Stylesheet */

.afam-team-grid-wrapper {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	padding: 50px 0;
	font-family: 'Montserrat', 'Open Sans', sans-serif;
	box-sizing: border-box;
}

.afam-team-grid-wrapper *,
.afam-team-grid-wrapper *::before,
.afam-team-grid-wrapper *::after {
	box-sizing: border-box;
}

.afam-team-grid-wrapper .afam-container {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* SECTION HEADER */
.afam-team-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-bottom: 40px;
	text-align: center;
}

.afam-team-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #071b38;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.2;
}

.afam-team-line {
	display: inline-block;
	width: 60px;
	height: 2px;
	background-color: #c69214;
	border-radius: 2px;
	flex-shrink: 0;
}

/* GRID LAYOUT */
.afam-team-grid {
	display: grid;
	gap: 22px;
}

/* Column Grid Definitions */
.afam-cols-d-6 { grid-template-columns: repeat(6, 1fr); }
.afam-cols-d-5 { grid-template-columns: repeat(5, 1fr); }
.afam-cols-d-4 { grid-template-columns: repeat(4, 1fr); }
.afam-cols-d-3 { grid-template-columns: repeat(3, 1fr); }
.afam-cols-d-2 { grid-template-columns: repeat(2, 1fr); }
.afam-cols-d-1 { grid-template-columns: repeat(1, 1fr); }

/* ==========================================================================
   DESIGN 1: EXECUTIVE COMMITTEE CARD (BADGE TOP + FULL PORTRAIT + BIO)
   ========================================================================== */
.afam-team-card-style1 {
	position: relative;
	background-color: #ffffff;
	border: 1px solid rgba(7, 27, 56, 0.08);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(7, 27, 56, 0.03);
	transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: column;
	text-align: center;
}

.afam-team-card-style1:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 35px rgba(7, 27, 56, 0.1);
	border-color: rgba(198, 146, 20, 0.35);
}

/* BADGE TAG TOP LEFT */
.afam-team-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	font-family: 'Montserrat', sans-serif;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #ffffff;
	padding: 5px 12px;
	border-radius: 12px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* PHOTO TOP */
.afam-team-photo-wrap-style1 {
	width: 100%;
	height: 220px;
	background: #e6ecf3;
	overflow: hidden;
	position: relative;
}

.afam-team-photo-style1 {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.45s ease;
}

.afam-team-card-style1:hover .afam-team-photo-style1 {
	transform: scale(1.05);
}

/* BODY CONTENT */
.afam-team-body-style1 {
	padding: 20px 16px 22px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.afam-team-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #071b38;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.afam-team-role {
	font-family: 'Montserrat', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #526075;
	margin: 0 0 12px 0;
}

.afam-team-bio {
	font-family: 'Open Sans', 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 1.55;
	color: #64748b;
	margin: 0 0 16px 0;
	flex: 1;
}

.afam-team-accent-line {
	width: 32px;
	height: 2.5px;
	background-color: #c69214;
	border-radius: 2px;
	margin-top: auto;
}

/* ==========================================================================
   DESIGN 2: ADVISORY COUNCIL CARD (COMPACT CIRCULAR AVATAR)
   ========================================================================== */
.afam-team-card-style2 {
	background-color: #ffffff;
	border: 1px solid rgba(7, 27, 56, 0.08);
	border-radius: 12px;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 3px 15px rgba(7, 27, 56, 0.03);
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.afam-team-card-style2:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(7, 27, 56, 0.08);
	border-color: rgba(198, 146, 20, 0.35);
}

.afam-team-photo-wrap-style2 {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 14px;
	border: 3px solid #eef2f6;
	box-shadow: 0 4px 14px rgba(7, 27, 56, 0.08);
	transition: border-color 0.3s ease;
}

.afam-team-card-style2:hover .afam-team-photo-wrap-style2 {
	border-color: #c69214;
}

.afam-team-photo-style2 {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.afam-team-name-style2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: #071b38;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.afam-team-role-style2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin: 0;
}

/* OUTLINE BUTTON */
.afam-team-btn-wrap {
	text-align: center;
	margin-top: 36px;
}

.afam-team-outline-btn {
	display: inline-block;
	border: 1.5px solid #071b38;
	color: #071b38;
	background: transparent;
	font-family: 'Montserrat', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 11px 26px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(7, 27, 56, 0.04);
}

.afam-team-outline-btn:hover {
	background: #071b38;
	color: #ffffff;
	border-color: #071b38;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(7, 27, 56, 0.2);
}

/* DUAL MODE SEPARATOR */
.afam-team-dual-separator {
	height: 60px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
	.afam-cols-t-6 { grid-template-columns: repeat(6, 1fr); }
	.afam-cols-t-5 { grid-template-columns: repeat(5, 1fr); }
	.afam-cols-t-4 { grid-template-columns: repeat(4, 1fr); }
	.afam-cols-t-3 { grid-template-columns: repeat(3, 1fr); }
	.afam-cols-t-2 { grid-template-columns: repeat(2, 1fr); }
	.afam-cols-t-1 { grid-template-columns: repeat(1, 1fr); }
}

@media (max-width: 768px) {
	.afam-team-header {
		gap: 12px;
		margin-bottom: 30px;
	}
	.afam-team-heading {
		font-size: 17px;
		letter-spacing: 1px;
	}
	.afam-team-line {
		width: 40px;
	}
	.afam-cols-m-2 { grid-template-columns: repeat(2, 1fr); }
	.afam-cols-m-1 { grid-template-columns: repeat(1, 1fr); }
}

@media (max-width: 480px) {
	.afam-team-card-style1 {
		max-width: 320px;
		margin: 0 auto;
	}
}

/* ==========================================================================
   OWL CAROUSEL STYLING FOR TEAM GRID WIDGET
   ========================================================================== */
.afam-team-grid-wrapper .afam-team-carousel-wrap {
	position: relative !important;
	padding: 0 50px !important;
	margin-bottom: 20px !important;
}

.afam-team-grid-wrapper .owl-carousel {
	position: relative !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-stage-outer {
	padding: 10px 0 15px 0 !important;
}

.afam-team-carousel-item {
	height: 100%;
}

.afam-team-carousel-item .afam-team-card-style1,
.afam-team-carousel-item .afam-team-card-style2 {
	height: 100%;
	margin: 0 2px;
}

/* CAROUSEL ARROWS (NAV) */
.afam-team-grid-wrapper .owl-carousel .owl-nav {
	margin-top: 0 !important;
	position: static !important;
	display: block !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-prev,
.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-next,
.afam-team-grid-wrapper .owl-carousel .owl-nav .owl-prev,
.afam-team-grid-wrapper .owl-carousel .owl-nav .owl-next {
	position: absolute !important;
	top: 45% !important;
	transform: translateY(-50%) !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	border: 1.5px solid #d4af37 !important;
	color: #0a192f !important;
	font-size: 15px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 4px 14px rgba(10, 25, 47, 0.12) !important;
	transition: all 0.25s ease !important;
	cursor: pointer !important;
	outline: none !important;
	z-index: 20 !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-prev,
.afam-team-grid-wrapper .owl-carousel .owl-nav .owl-prev {
	left: -20px !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-next,
.afam-team-grid-wrapper .owl-carousel .owl-nav .owl-next {
	right: -20px !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-prev:hover,
.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-next:hover,
.afam-team-grid-wrapper .owl-carousel .owl-nav .owl-prev:hover,
.afam-team-grid-wrapper .owl-carousel .owl-nav .owl-next:hover {
	background: #d4af37 !important;
	color: #ffffff !important;
	border-color: #d4af37 !important;
	transform: translateY(-50%) scale(1.08) !important;
	box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4) !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-prev svg,
.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-next svg {
	width: 18px !important;
	height: 18px !important;
	stroke: currentColor !important;
	display: block !important;
}

/* CAROUSEL DOTS (PAGINATION) */
.afam-team-grid-wrapper .owl-carousel .owl-dots {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px !important;
	margin-top: 24px !important;
	opacity: 1 !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-dots .owl-dot {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	outline: none !important;
	cursor: pointer !important;
	opacity: 1 !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-dots .owl-dot span {
	display: block !important;
	width: 10px !important;
	height: 10px !important;
	margin: 0 !important;
	background: rgba(10, 25, 47, 0.2) !important;
	border-radius: 6px !important;
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-dots .owl-dot.active span {
	width: 28px !important;
	background: #d4af37 !important;
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4) !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-dots .owl-dot:hover span {
	background: #0a192f !important;
}

/* FORCE SHOW ARROWS & DOTS EVEN IF OWL CAROUSEL MARKS THEM AS DISABLED */
.afam-team-grid-wrapper .owl-carousel .owl-nav.disabled {
	display: block !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-dots.disabled {
	display: flex !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-prev.disabled,
.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-next.disabled {
	opacity: 1 !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}

.afam-team-grid-wrapper .owl-carousel .owl-dots .owl-dot.disabled {
	opacity: 1 !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}

@media (max-width: 768px) {
	.afam-team-grid-wrapper .afam-team-carousel-wrap {
		padding: 0 5px !important;
		overflow: hidden !important;
	}
	.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-prev {
		left: 0 !important;
	}
	.afam-team-grid-wrapper .owl-carousel .owl-nav button.owl-next {
		right: 0 !important;
	}
}

