.has-tertiary-nav {
position: relative;
}



/* Parent item styling on hover - entire LI gets white background */
.has-tertiary-nav:hover {
	background-color: white !important;
	padding-top: .5rem!important;
	padding-bottom: .5rem!important;
	margin-top: -.5rem!important;
	margin-bottom: -.5rem!important;
}

.has-tertiary-nav:hover > a {
color: #2c5aa0 !important;
       margin-bottom: 0 !important;
position: relative !important;
	  z-index: 10000 !important;
	  border-bottom: none !important;
}

.has-tertiary-nav:hover > a:hover {
	background-color: transparent !important;
color: #2c5aa0 !important;
}

/* Tertiary dropdown positioning and visibility */
.tertiary-nav-dropdown {
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
position: absolute;
top: 100%;
left: 0%;
background: white;
	    z-index: 9999;
	    margin-top: 0;
display: flex;
}

.has-tertiary-nav:hover .tertiary-nav-dropdown {
opacity: 1;
visibility: visible;
}

.tertiary-nav-content {
	max-width: 1200px;
margin: 0 auto;
display: flex;
padding: 3rem;
gap: 5rem;
}

.tertiary-nav-dropdown.full-width .tertiary-nav-content {
	justify-content: flex-start;
	max-width: 800px;
}

/* Links section styling */
.tertiary-nav-links {
flex: 1;
display: flex;
	 flex-direction: column;
gap: 0.25em!important;
}

.tertiary-nav-links a {
display: flex!important;
gap: 0.5em!important;
     align-items: center!important;
     justify-content: flex-start!important;
padding: 16px 0;
	 text-decoration: none;
color: #101C4E !important;
       font-size: 14px!important;
       text-transform: none!important;
       line-height: 1.4;
transition: color 0.2s ease;
	    white-space: nowrap!important;
}

.tertiary-nav-links a span {
	text-decoration: underline!important;
	font-weight: bold!important;
}

.tertiary-nav-links a:last-child {
	border-bottom: none;
}

.tertiary-nav-links a:visited {
color: #101C4E !important;
}

.tertiary-nav-links a::after {
content: '»'!important;
color: #D6212D !important;
       font-weight: bold;
       font-size: 14px;
display: inline;
position:initial!important;
width: initial!important;
height: auto!important;
}

.tertiary-nav-links a:hover {
color: #0d1540 !important;
}

.tertiary-nav-links a:hover::after {
color: #D6212D !important;
}

/* Image overview section - Updated to match mock */
.tertiary-nav-overview {
	min-width: 300px;
	max-width: 300px;
}

.tertiary-nav-overview a {
	text-decoration: none;
color: inherit;
display: block;
position: relative;
overflow: hidden;
	  border-radius: 20px;
	  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
height: 180px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-left: 0 !important;
}



.tertiary-nav-overview .overlay-content {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
color: white !important;
padding: 30px 20px 20px;
display: flex;
	 align-items: flex-end;
	 box-sizing: border-box;
	 border-radius: 20px;
}

.tertiary-nav-overview > a::after{
content: none !important;
display: none;
width:0!important;
}   

.tertiary-nav-overview h3 {
margin: 0;
	font-size: 18px; /* Slightly smaller to match mock proportions */
	text-transform: uppercase;
	letter-spacing: 0.5px;
color: white !important; /* Force white text on image */
padding: 0!important;
}

.tertiary-nav-overview .overview-arrow {
display: inline-block;
	 margin-left: 6px;
	 font-size: 14px;
transition: transform 0.2s ease;
color: white !important; /* Force white arrow */
}

.tertiary-nav-overview a:hover .overview-arrow {
transform: translateX(3px);
}

/* Mobile-first link (hidden on desktop) */
.mobile-first {
display: none;
}

.tertiary-overview-link:first-child{
display: none!important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	/* Hide desktop image section */
	.tertiary-nav-overview {
display: none !important;
	}

	.mobile-menu__disclosure-container .sub-menu{
overflow: initial!important;        
	}


	/* Always show tertiary dropdown on mobile */
	.tertiary-nav-dropdown {
position: initial !important;
opacity: 1 !important;
visibility: visible !important;
transform: none !important;
background: white !important;
	    box-shadow: none !important;
	    min-width: auto !important;
	    max-width: 100% !important;
width: 100% !important;
       margin-left: -1rem !important;
       margin-right: -1rem !important;     
	}

	/* Clean mobile content layout - full width */
	.tertiary-nav-content {
padding: 0 !important;
gap: 0 !important;
     max-width: none !important;
display: block !important;
margin: 0 !important;
width: 100vw !important;
	}

	.tertiary-nav-links {
gap: 0 !important;
display: block !important;
width: 100% !important;
	}

	/* Hide the mobile-first overview link */
	.mobile-first {
display: none !important;
	}

	/* Style mobile links to match mock - full width edge-to-edge */
	.tertiary-nav-links a {
		border-bottom: 1px solid #9F9F9F;
		text-decoration: none !important;
		font-size: 22px !important;
		max-width: 80%!important;
		justify-content: space-between !important;
color: #101C4E !important;
       font-weight: 400     !important;
       min-width: calc(100% - 4rem) !important;
       margin-left: 0!important;
       margin-right: 0!important;
	}

	.tertiary-nav-links a::after {
content: "⟩"!important;
	 font-weight: bold;
	 padding-right: 1rem;
	}

	.tertiary-nav-links a span{
		text-decoration: none !important;
		flex-grow: 1 !important;
		font-weight: 400!important;
		padding-left: 3rem;
	}

	.has-tertiary-nav:hover{
		background-color: transparent !important;
padding: 0!important;
margin: 0!important;
	}


	/* Add dash indicator to parent item on mobile */
	.has-tertiary-nav > a::after {
content: '—' !important;
float: right !important;
color: white !important;
       font-weight: bold !important;
       font-size: 16px !important;
	}



	.has-tertiary-nav:hover > a {
background: inherit !important;
color: white!important;
	}   
	.has-tertiary-nav:hover > a:hover{
background: inherit !important;
color: white!important;
	}

	.tertiary-overview-link:first-child{
display: flex!important;
	}
}
