.hdcfc-header-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	position: relative;
}

.hdcfc-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.hdcfc-menu > a {
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
	border-bottom: 2px solid transparent;
	padding-bottom: 4px;
}

.hdcfc-menu > a:hover {
	opacity: 0.75;
}

.hdcfc-menu a.active {
	font-weight: 600;
}

.hdcfc-logo {
	flex-shrink: 0;
	margin: 0 20px;
}

.hdcfc-logo img {
	display: block;
	height: auto;
}

/* ===== Dropdown menu items (e.g. Counseling Services) ===== */
.hdcfc-menu-item {
	position: relative;
}

.hdcfc-menu-item-row {
	display: flex;
	align-items: center;
}

.hdcfc-menu-item-row > a {
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.25s ease;
	border-bottom: 2px solid transparent;
	padding-bottom: 4px;
}

.hdcfc-menu-item-row > a:hover {
	opacity: 0.75;
}

.hdcfc-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 18px;
	min-width: 320px;
	background-color: #f7f7f7;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 999;
	overflow: hidden;
}

.hdcfc-dropdown-link {
	display: block;
	padding: 16px 24px;
	border-bottom: 1px solid #e9e9e9;
	color: #333333;
	text-decoration: none;
	font-size: 17px;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.hdcfc-dropdown-link:last-child {
	border-bottom: none;
}

.hdcfc-dropdown-link:hover,
.hdcfc-dropdown-link.active {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Desktop/tablet: hover ya click se open ho */
@media (min-width: 768px) {
	.hdcfc-has-dropdown.hdcfc-dropdown-open .hdcfc-dropdown-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

@media (min-width: 768px) and (hover: hover) {
	.hdcfc-has-dropdown:hover .hdcfc-dropdown-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

/* Mobile menu toggle button (hamburger) - hidden until mobile breakpoint */
.hdcfc-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.hdcfc-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #333333;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Tablet */
@media (max-width: 1024px) {
	.hdcfc-header-wrap {
		justify-content: center;
	}
	.hdcfc-menu {
		justify-content: center;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.hdcfc-header-wrap {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.hdcfc-logo {
		order: 0;
		margin: 0;
	}
	.hdcfc-menu-toggle {
		display: flex;
		order: 1;
	}
	.hdcfc-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: center;
		gap: 15px !important;
		order: 3;
		margin-top: 15px;
	}
	/* Jab hamburger click ho, wrap pe .hdcfc-menu-open class lagti hai (JS se) */
	.hdcfc-header-wrap.hdcfc-menu-open .hdcfc-menu {
		display: flex;
	}
	.hdcfc-header-wrap.hdcfc-menu-open .hdcfc-menu-toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.hdcfc-header-wrap.hdcfc-menu-open .hdcfc-menu-toggle span:nth-child(2) {
		opacity: 0;
	}
	.hdcfc-header-wrap.hdcfc-menu-open .hdcfc-menu-toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Dropdown items mobile par nav ke andar full-width inline accordion ki tarah khulein */
	.hdcfc-menu-item {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.hdcfc-menu-item-row {
		justify-content: center;
	}
	.hdcfc-dropdown-menu {
		position: static;
		width: 100%;
		min-width: 0;
		margin-top: 0;
		border: none;
		box-shadow: none;
		border-radius: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		max-height: 0;
		transition: max-height 0.3s ease;
	}
	.hdcfc-has-dropdown.hdcfc-dropdown-open .hdcfc-dropdown-menu {
		max-height: 800px;
		margin-top: 10px;
	}
	.hdcfc-dropdown-link {
		text-align: center;
	}
}
