/* CSS Resource Document for: Army Sustainment Command -> Field Components 	*
!  Global classes should be defined in portal.css  							*
*  The proponent agency for this source is AMAS-PC							*/

/* Links on each page */
.useful-link {
	line-height: 2;
	padding: 4px;
}
	.useful-link a {
		font-family: GI7;
	}
		.useful-link a:hover {
			color: #3A423A;
		}
.afsbn-links {
	width: 100%;
}
	.afsbn-links td {
		width: 50%;
		padding: 2px;
	}

/* Bio Pages */
.commander-section {
	display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 2rem auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    color: #2c2c2c;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    to {
		opacity: 1;
		transform: translateY(0);
    }
}
.commander-image img {
	max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}
.commander-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}
	.commander-links ul li {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		margin-bottom: 1rem;
		font-size: 1.25rem;
	}
		.commander-links ul li:hover i {
			color: #3f461c;
			transform: scale(1.2);
		}
.commander-links i {
		color: #3A423A;
		flex-shrink: 0;
		transition: transform 0.2s ease, color 0.2s ease;
	}
.commander-links a {
	color: #3A423A;
	text-decoration: none;
	font-weight: 500;
	position: relative;
	transition: color 0.3s ease;
}
	.commander-links a::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: -2px;
		width: 100%;
		height: 2px;
		background-color: #3f461c;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s ease;
	}
	.commander-links a:hover::after {
		transform: scaleX(1);
	}
  .note {
	  font-size: 1rem;
	  color: #666;
	  margin-top: 1rem;
	  text-align: center;
  }

/* Sub Navigation */
.subnav-links {
	text-align: center;
	width: 99%;
	margin: auto;
	position: relative;
	z-index: 1000;
}
.subnav-links nav { 
	background: #fff; 
}
.brigade-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.brigade {
	position: relative;
	width: 138px;
	margin: 0 1.5px;
}
	.brigade > div {
		outline: none;
	}
		.brigade > div:focus-within .battalion-menu,
		.brigade:hover .battalion-menu {
			display: block;
		}
		.brigade > div > a {
			display: block;
			padding: 6px 12px;
			font-weight: bold;
			color: #3A423A;
			background: #f5f5f5;
			text-decoration: none;
			border-radius: 4px;
			transition: all 0.3s ease;
		}
    	.brigade > div > a:hover {
			background: #3A423A;
			color: #FFCE08;
		}
.battalion-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 138px;
	background: #fff;
	box-shadow: 0 0 5px rgba(0,0,0,.1);
	border-radius: 4px;
	z-index: 9999;
	list-style: none;
	padding-left: 0;
	margin: 0;
}
	.battalion-menu li {
		order-bottom: 1px solid rgba(206,206,206,.3);
	}
		.battalion-menu li a {
			display: block;
			padding: 5px 10px;
			color: #3A423A;
			text-decoration: none;
			transition: background 0.3s ease;
		}
    		.battalion-menu li a:hover {
				background: #eee;
			}
@media (max-width: 768px) {
	.subnav-links {
		display: none;
	}
}

/* Leadership Links */
.mission {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	align-items: flex-start;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}
.leaders {
	display: flex;
	gap: 20px;
	flex-wrap: nowrap;
	flex: 0 0 auto;
}
.image-wrapper {
	box-sizing: border-box;
}
	.image-wrapper.first {
		margin-left: 0;
	}
.image {
	width: 190px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 0 12px 20px;
	transition: transform 0.3s ease;
	text-align: center;
	box-sizing: border-box;
	margin: 0;
}
	.image:hover {
		transform: translateY(-5px);
	}
	.image img {
		width: 190px;
		height: 238px;
		border-radius: 8px;
		display: block;
		margin-top: 0;
	}
figcaption {
	margin: 0;
}
	figcaption h1 {
		font-size: 1.1rem;
		margin: 10px 0 5px;
		color: #3f461c;
	}
.lead-sub {
	font-size: 0.9rem;
	color: #333;
}
.about {
	background: #fff;
	padding: 10px 20px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	flex: 1;
	box-sizing: border-box;
	overflow-wrap: break-word;
	max-width: 100%;
}
	.about h2 {
		font-size: 1.5rem;
		margin-bottom: 10px;
	}
	.about p {
		line-height: 1.6;
		margin-bottom: 20px;
		word-wrap: break-word;
	}
	.about a {
		display: inline-block;
		background: #3A423A;
		color: white;
		padding: 6px 12px;
		border-radius: 6px;
		text-decoration: none;
		margin-right: 8px;
		margin-bottom: 8px;
		transition: background 0.3s ease;
		white-space: nowrap;
	}
		.about a:hover {
			background: #3f461c;
		}
@media (max-width: 900px) {
	.mission {
		flex-wrap: wrap;
		padding: 20px;
	}
	.leaders {
		justify-content: center;
		flex-wrap: wrap;
	}
	.about {
		flex-basis: 100%;
		max-width: 100%;
	}
}

.colcap {
	font: normal 24px GI5;
	text-align: center;
}

/* Unit Map */
.map-container {
	position: relative;
	width: 100%;
	max-width: 1024px;
	margin: auto;
}
.world-map {
	width: 100%;
	height: auto;
	display: block;
}
.unit-crest {
	position: absolute;
	transform: translate(-50%, -50%);
	width: auto;
	height: auto;
}
	.unit-crest img {
		width: 50px;
		height: 50px;
		object-fit: contain;
		background-color: transparent;
		border: none;
		box-shadow: none;
		transition: transform 0.2s ease;
	}
		.unit-crest img:hover {
			transform: scale(1.1);
		}
.other-units-section {
	margin-top: 40px;
	text-align: center;
	font-family: GI5, sans-serif;
}
	.other-units-section h2 {
		font-family: GI7, sans-serif;
		font-size: 1.8rem;
		margin-bottom: 16px;
		color: #1A5276;
	}
.other-units-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	justify-content: center;
	padding: 0 20px;
}
.other-unit {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	text-decoration: none;
	color: #1A5276;
	background-color: #f9f9f9;
	border-radius: 6px;
	transition: transform 0.2s ease, background 0.3s ease;
	cursor: pointer;
	font-family: GI5, sans-serif;
}
	.other-unit:hover {
		transform: scale(1.02);
		background-color: #eaf2f8;
	}
	.other-unit img {
		width: 50px;
		height: 50px;
		flex-shrink: 0;
	}
	.other-unit span {
		text-align: left;
		line-height: 1.4;
		font-size: 13px;
	}
		.other-unit span strong {
			display: block;
			font-size: 14px;
			margin-bottom: -2px;
			color: #1A5276;
		}
	.other-unit:hover span {
		background: #eaf2f8;
	}