/* =========================================================
   AHD Team Members – Frontend Styles
   ========================================================= */

/* Prevent body scroll when popup is open */
body.ahd-popup-open {
	overflow: hidden;
}

/* Grid */
.ahd-team-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	padding: 20px 0;
}

/* Card */
.ahd-team-card {
	width: 260px;
	text-align: center;
	cursor: pointer;
	outline: none;
}

.ahd-team-card:focus-visible .ahd-card-image-wrap {
	border-color: #0097d9;
	box-shadow: 0 0 0 3px rgba(0, 151, 217, 0.35);
}

.ahd-card-image-wrap {
    border: 2px solid #07a7e3;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 10px;
	margin-bottom: 20px;
}

.ahd-team-card:hover .ahd-card-image-wrap {
	border-color: #0077b6;
	box-shadow: 0 4px 16px rgba(0, 119, 182, 0.25);
}

.ahd-card-image-wrap img {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: 0 center;
	transition: transform 0.3s ease;
}

.ahd-team-card:hover .ahd-card-image-wrap img {
	transform: scale(1.03);
}
.ahd-card-name {
    color: #000000;
    font-weight: 500;
	font-size: 18px;
	margin-bottom: 0 !important;
}

.ahd-card-role {
    color: #000000;
}

/* =========================================================
   Overlay
   ========================================================= */
.ahd-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

.ahd-popup-overlay.is-open {
	display: flex;
}

/* =========================================================
   Popup
   ========================================================= */
.ahd-popup {
    position: relative;
    background: #fff;
    max-width: 900px;
    width: 100%;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Slide-down on open */
.ahd-popup.is-entering {
	animation: ahdSlideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide-up on close */
.ahd-popup.is-leaving {
	animation: ahdSlideUp 0.28s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

@keyframes ahdSlideDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ahdSlideUp {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-30px);
	}
}

/* Close button */
.ahd-popup-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 1.8rem;
	line-height: 1;
	color: #555;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
}

.ahd-popup-close:hover {
	color: #07a7e3;
}

/* Inner layout */
.ahd-popup-inner {
	display: flex;
	gap: 30px;
	align-items: center;
}

.ahd-popup-image-wrap {
    flex-shrink: 0;
    width: 400px;
}

.ahd-popup-image-wrap img {
	display: block;
	width: 100%;
	border-radius: 4px;
	object-fit: cover;
	object-position: top center;
}

/* Content */
.ahd-popup-content {
	flex: 1;
}

.ahd-popup-content h2 {
    margin: 0 0 25px;
    font-size: 26px;
    color: #000000;
}

.ahd-popup-position {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0097d9;
	margin: -6px 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ahd-popup-days {
	font-size: 0.88rem;
	font-weight: 600;
	color: #444;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ahd-popup-days span {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.ahd-popup-bio p {
    margin: 0 0 14px;
    font-size: 18px;
    color: #424242;
}

.ahd-popup-bio p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media screen and ( max-width: 600px ) {
	.ahd-popup {
		padding: 28px 20px;
	}

	.ahd-popup-inner {
		flex-direction: column;
		align-items: center;
	}

	.ahd-popup-image-wrap {
		width: 160px;
	}

	.ahd-team-card {
		width: 160px;
	}

	.ahd-card-image-wrap img {
		height: 180px;
	}
}

@media screen and (max-width: 480px) {
	.ahd-card-name {
		line-height: 1.2em;
		font-size: 16px;
	}
	.ahd-popup-content h2 {
        font-size: 20px !important;
        text-align: center;
        line-height: 1em !important;
    }
	.ahd-popup-bio p {
		font-size: 16px;
		text-align: center;
	}
}

@media screen and (max-width: 400px) {
	.ahd-team-card {
        width: 270px;
    }
}