/**
Theme Name: UMBC Partial Astra
Author: UMBC Web Team
Author URI: https://wpastra.com
Description: Astra: wpastra.com
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: umbc-partial-astra
Template: astra
*/


body, html {
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

#page {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

#primary {
	flex: 1 0 auto;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

#ast-scroll-top {
	box-shadow: 4px 4px 8px 2px rgba(0, 0, 0, 0.15);
}

.ast-container {
	flex: 1 0 auto;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.type-post {
	max-width: 1200px !important;
	margin-left: auto;
	margin-right: auto; 
}

footer {
	flex-shrink: 0;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

/* Remove list item dots */
.main-header ul, .main-header li {
	list-style: none;
	padding: 0;
	margin: 0;
}

.main-header {
	box-shadow: rgb(0 0 0 / 20%) 0px 1px 8px;
}

/* Header */
.main-header {
	background-color: #fff;
	height: 110px;
	display: flex;
	align-items: center;
	padding: 0 10px;
}

.header-inner {
	max-width: 1200px;
	width: 100%;
	margin: 1em auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	flex: 0 0 auto;
}

.logo img {
	max-width: 100%;
	height: auto;
}

.new-primary-menu .menu-item .menu-link > .ast-icon.icon-arrow {
	display: none;
}

.new-primary-menu {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.new-primary-menu a, 
.new-primary-menu ul.sub-menu li a {
	font-size: 15px;
	font-weight: 700;
	color: #252525;
	display: flex;
	align-items: center;
	padding: 8px 24px 8px 12px;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
}

.new-primary-menu a:hover {
	color: #666;
}

.new-primary-menu li {
	position: relative;
}

.new-primary-menu ul.sub-menu {
	display: none; /* Hide submenus by default */
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-top: 4px solid #666;
	z-index: 1000;
	min-width: 300px;
	padding: 1em;
}


.new-primary-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-top: -4px; /* Align nested submenus */
}

.new-primary-menu .current-menu-item > a,
.new-primary-menu .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: #ccc;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.new-primary-menu ul.sub-menu li a:hover {
	background-color: #ccc;
	/* text-decoration: underline; */
	text-decoration-color: #252525;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Default arrow: Right pointing */
.new-primary-menu .menu-item-has-children > a::after,
.new-primary-menu .sub-menu .menu-item-has-children > a::after {
	content: '\25b6\fe0e'; /* Right arrow */
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	transform-origin: center center; /* Ensure rotation happens from the center */
	font-size: 12px;
	color: #666;
	transition: transform 0.3s ease;
}

/* Rotate arrow 90 degrees to point down when expanded (active) */
.new-primary-menu .menu-item-has-children.active > a::after,
.new-primary-menu .menu-item-has-children:hover > a::after,
.new-primary-menu .sub-menu .menu-item-has-children.active > a::after,
.new-primary-menu .sub-menu .menu-item-has-children:hover > a::after {
	transform: translateY(-50%) rotate(90deg); /* Rotate to down arrow */
}

/* Rotate back to right when not active or hovered */
.new-primary-menu .menu-item-has-children:not(.active):not(:hover) > a::after,
.new-primary-menu .sub-menu .menu-item-has-children:not(.active):not(:hover) > a::after {
	transform: translateY(-50%) rotate(0deg); /* Rotate back to right */
}

/* Hover styles for all links */
.new-primary-menu a:hover,
.new-primary-menu ul.sub-menu li a:hover {
	background-color: #f0f0f0;
	color: #666;
}

/* Desktop Search */
.desktop-search {
	margin-left: 15px;
}

/* Secondary Menu - Adjust for Desktop */
.secondary-menu {
	display: flex;
	align-items: center;
	padding: 0;
	margin: 0; 
}

/* Preheader */
.preheader {
	background-color: #252525;
	color: #fdb515;
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
}

.preheader-inner {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.secondary-menu a {
	color: #fdb515;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: -0.0025;
	padding: 0;
	margin: 0;
	text-decoration: none;
	border-bottom: #AB7501 solid 1px;
}
.secondary-menu a:hover {
	color: #fff;
	text-decoration: none;
}

/* Tertiary Menu */
.tertiary-menu {
	display: flex;
	align-items: center;
}

.tertiary-menu .menu-item-dropdown {
	position: relative;
}

.tertiary-menu .new-ghost-button,
.tertiary-menu .new-filled-button {
	border-style: solid;
	border-width: 1px;
	font-size: 13px;
	padding: 8px 20px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing:-0.0025; 
	text-transform: none;
	border-radius: 4px;
	cursor: default;
	display: flex;
	align-items: center;
}

.tertiary-menu .new-ghost-button {
	background-color: #252525;
	color: #fdb515;
	margin-right: 10px;
}

.tertiary-menu .new-filled-button {
	background-color: #fdb515;
	color: #252525;
	padding: 8px 20px;
}

.tertiary-menu .new-sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	white-space: nowrap;
	padding: 0;
	list-style: none;
	margin-left: 0; 
}

.tertiary-menu .new-sub-menu li {
	padding: 10px;
}

.tertiary-menu .new-sub-menu li a {
	color: #252525;
	padding: 4px 8px;
	display: block;
	text-decoration: none;
	font-size: 14px;
}

.tertiary-menu .menu-item-dropdown:hover .new-sub-menu,
.tertiary-menu .menu-item-dropdown:focus-within .new-sub-menu {
	display: block;
}

/* Dropdown Arrow */
.tertiary-menu .icon-arrow {
	margin-left: 5px;
}

.tertiary-menu .icon-arrow svg {
	fill: #fdb515;
	width: 10px;
	height: 6px;
}
.tertiary-menu .new-ghost-button,
.tertiary-menu .new-filled-button,
.tertiary-menu .menu-item-dropdown {
	cursor: pointer;
}

.tertiary-menu .new-sub-menu li a:hover {
	background-color: #f0f0f0;
}


.secondary-menu li {
	display: inline;
	margin-right: 15px;
}

.desktop-search {
	display: flex;
}

.desktop-search-input input[type="search"] {
	width: 100%;
	padding: 10px;
	margin-right: 10px;
	border: 1px solid #ccc;
}

#ast-seach-full-screen-form .ast-search-wrapper .search-form-new button.search-submit {
	padding: 10px;
	background-color: #252525;
	color: #fff;
	border: none;
	cursor: pointer;
}

.search-submit button:hover {
	background-color: #444;
}
/* Mobile Header */
.mobile-header {
	display: none;
	background-color: #fff;
	padding: 0 10px;
}


.ast-icon.icon-search svg {
	margin-top: 10px;
}

.ast-icon.icon-arrow svg {
	margin-left: 0; 
}

.ast-menu-toggle {
	display: none !important;
}

.wp-block-separator, .wp-block-separator.is-style-wide, .hr, .site-main .entry-content > .alignwide{
	margin: 1em auto;
}

.alignwide, .entry-content > .wp-block-group,.entry-content > .wp-block-media-text,.entry-content > .wp-block-cover,.entry-content > .wp-block-columns {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.menu-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.ast-icon {
	display: inline-block;
}

.entry-title, .entry-title a {
	font-weight: 700;
}

.entry-content > .wp-block-columns.has-background.alignfull, .entry-content > .wp-block-group, .entry-content > .wp-block-media-text, .entry-content > .wp-block-cover.alignfull, .entry-content > .wp-block-columns.alignfull {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto; 
}

/* Responsive Styles */
@media (min-width: 991px) {
	.new-primary-menu li:hover > ul.sub-menu {
		display: block; /* Show submenus on hover or focus */
	}
}
	

/* Responsive Styles */
@media (max-width: 991px) {
	
	.new-primary-menu .menu-item-has-children:hover > a::after, .new-primary-menu .sub-menu .menu-item-has-children:hover > a::after {
		transform: translateY(-50%) rotate(0deg);
	}

	/* Base style: arrow pointing right */
	.new-primary-menu .menu-item-has-children > a::after,
	.new-primary-menu .sub-menu .menu-item-has-children > a::after {
		content: '\25B6\fe0e'; /* Unicode character for a right-pointing triangle */
		display: inline-block;
		margin-left: 5px;
		transform: translateY(-50%) rotate(0deg);
		transition: transform 0.3s ease;
	}
	
	/* When the submenu is expanded (arrow pointing down) */
	.new-primary-menu .menu-item-has-children > a[aria-expanded="true"]::after,
	.new-primary-menu .sub-menu .menu-item-has-children > a[aria-expanded="true"]::after {
		transform: translateY(-50%) rotate(90deg);
	}
	
	/* Mobile Header */
	.mobile-header {
		display: block;
		background-color: #fff;
		padding: 1em;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}

	.mobile-header-inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.mobile-header .logo img {
		max-height: 36px;
		width: auto;
	}

	/* Mobile-friendly submenu styling */
	.new-primary-menu ul.sub-menu {
		padding-top: 1em;
		display: none;
		position: relative;
		width: 100%;
		box-shadow: none;
		background: none;
	}
	
	.new-primary-menu .menu-item {
		margin: 12px 0;
	}
	
	.new-primary-menu .sub-menu .sub-menu {
		left: 0;
	}
	
	/* Ensure proper arrow alignment for mobile */
	.new-primary-menu .menu-item-has-children.active > a::after, .new-primary-menu .menu-item-has-children:hover > a::after {
		top: 24px;
	}
	
	/* Hover styles for all links */
	.new-primary-menu a:hover,
	.new-primary-menu ul.sub-menu li a:hover {
		background: none;
		color: #252525;
	}

	/* Hide desktop elements on mobile */
	.preheader, .main-header {
		display: none;
	}

	/* Show new-primary-menu on mobile */
	.new-primary-menu {
		display: block;
	}

	.new-primary-menu ul {
		list-style: none;
		padding: 0;
		margin: 0;
		width: 100%;
	}
	
	/* Hide all submenus by default */
	.new-primary-menu ul.sub-menu {
		display: none;
	}
	
	/* Show submenu when 'active' class is present */
	.new-primary-menu ul.active {
		display: block;
	}

	.new-primary-menu li {
		width: 100%;
		margin: 12px 0;
	}

	.new-primary-menu li a {
		width: 100%;
		padding: 8px 4px;
		text-decoration: none;
		color: rgba(0, 0, 0, 0.87);
		font-size: 20px;
		font-weight: 700;
	}

	.new-primary-menu li a:hover {
		text-decoration: underline;
		text-decoration-color: #252525;
		text-underline-offset: 0.2em;
	}

	
	/* Hamburger Menu */
	.hamburger-menu-container {
		margin-left: auto;
		background: #f3f3f3;
	}

	.hamburger-menu {
		background: none;
		border: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.hamburger-menu svg {
		fill: #252525;
		width: 24px;
		height: 28px;
	}

	.hamburger-menu:hover {
		background-color: #e0e0e0;
	}

	/* Mobile Menu Overlay */
	.mobile-menu-overlay {
		background-color: #f3f3f3;
		display: none;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1000;
		padding: 1em;
		overflow-y: auto;
	}

	.mobile-menu-overlay.active {
		display: block;
		padding: 0;
	}

	.pre-nav-and-close-overlay {
		display: flex;
		justify-content: space-between;
		padding: 1em;
		background-color: #fff;
	}
	
	.mobile-search-bar {
		margin: 12px 0 24px;
	}

	.close-menu {
		border: none;
		cursor: pointer;
		z-index: 1001;
		background-color: #f3f3f3;
		border-radius: 0;
	}

	.close-menu:active, .close-menu:hover {
		background-color: #ccc;
	}

	.close-menu svg {
		fill: #252525;
		width: 24px;
		height: 24px;
	}

	/* Mobile Menu Content */
	.mobile-menu-content {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 0 40px;
		box-sizing: border-box;
	}

	.mobile-menu-content nav {
		width: 100%;
	}

	.mobile-menu-content ul {
		list-style: none;
		padding: 0;
		margin: 0;
		width: 100%;
	}

	.mobile-menu-content li {
		width: 100%;
		align-items: flex-start;
		margin: 0;
		position: relative;
	}

	.mobile-menu-content li a:hover {
		text-decoration: underline;
		text-decoration-color: #252525;
		text-underline-offset: 0.2em;
	}

	/* Mobile Search */
	.desktop-search {
		display: flex;
		margin-left: 15px;
	}

	.desktop-search-input input[type="search"] {
		width: 100%;
		padding: 10px;
		margin-right: 10px;
		border: 1px solid #ccc;
	}

	#ast-seach-full-screen-form .ast-search-wrapper .search-form-new button.search-submit {
		padding: 10px;
		background-color: #252525;
		color: #fff;
		border: none;
		cursor: pointer;
	}

	.search-submit button:hover {
		background-color: #444;
	}

	/* Secondary and Tertiary Menus */
	.secondary-menu {
		display: flex;
		align-items: center;
		height: 50px;
	}

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

	.secondary-menu li, .tertiary-menu li {
		display: inline-flex;
		margin-right: 1em;
		font-size: 12px;
		gap: 1em;
		border-bottom: 0;
	}

	.secondary-menu a, .tertiary-menu a {
		border-bottom: 0;
		font-size: 14px;
		font-weight: 500;
		color: #007176;
		text-decoration: underline;
	}

	.tertiary-menu a {
		width: auto;
		margin: 4px auto;
		color: rgba(0, 0, 0, 0.87);
		font-size: 16px;
		font-weight: 700;
	}

	/* Apply button in the tertiary menu */
	.tertiary-menu-list > li:last-child a {
		background-color: #fdb515;
		color: #252525;
		font-weight: 700;
		padding: 8px 20px;
		border-radius: 4px;
		text-decoration: none;
		display: inline-block;
		margin: 20px auto;
	}

	.tertiary-menu-list > li:last-child a:hover {
		background-color: #e0a10e;
	}

	/* Hide the first tertiary menu item (Admissions) */
	.tertiary-menu-list li:first-child {
		display: none;
	}

	/* Social Icons Styling */
	.social-icons-header {
		margin: 20px auto;
	}

	.header-social-navigation {
		display: flex;
		justify-content: flex-start;
		gap: 20px;
	}

	.header-social-navigation li {
		display: inline-block;
	}

	.header-social-navigation li a {
		display: inline-block;
		width: 36px;
		height: 36px;
	}

	.header-social-navigation svg, 
	.header-social-navigation svg path {
		width: 100%;
		height: auto;
		fill: #252525;
	}

	.header-social-navigation a:hover svg, 
	.header-social-navigation a:hover svg path {
		fill: #007176;
	}
	
}

/* Fix double arrows issue on the dropdown menu toggle */
.ast-header-navigation-arrow .ast-icon.icon-arrow {
	display: none; /* Hide unnecessary extra arrows */
}

/* Optional: Style the mobile arrow appearance */
.new-primary-menu .menu-link > .ast-icon.icon-arrow {
	width: 30px; /* Adjust the size of the arrows */
	height: auto;
}