/* CSS Resource Document for: Army Sustainment Command -> MISC PAGES  		*
!  Global classes should be defined in portal.css  							*
*  The proponent agency for this source is AMAS-PC							*/

/* Homepage */
.home-links {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 0px;
	box-sizing: border-box;
}
.home-image,
.home-links figure {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 270px;
	height: 169px;
	overflow: hidden;
	border-radius: 12px;
	background-color: #000;
	box-sizing: border-box;
}
	.home-image img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		opacity: 0.85;
		display: block;
		transition: transform 0.4s ease, opacity 0.4s ease;
	}
	.home-image:hover img {
		transform: scale(1.05);
		opacity: 1;
	}
.home-image figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px 24px;
	background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
	display: flex;
	align-items: center;
}
	.home-image figcaption a {
		color: #fff;
		font: 1.4rem "GI7", sans-serif;
		text-transform: uppercase;
		letter-spacing: 1.5px;
		text-decoration: none;
		text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
		position: relative;
		padding-left: 36px;
		transition: all 0.3s ease;
	}
		.home-image figcaption a::before {
			content: '';
			position: absolute;
			left: 0;
			top: 50%;
			transform: translateY(-50%) scale(0.8);
			width: 24px;
			height: 24px;
			background-image: url('/Portals/54/Images/usarmy.png');
			background-size: contain;
			background-repeat: no-repeat;
			opacity: 0;
			transition: opacity 0.3s ease, transform 0.3s ease;
		}
		.home-image figcaption a:hover::before {
			opacity: 1;
			transform: translateY(-50%) scale(1);
		}
		.home-image figcaption a::after {
			content: '';
			position: absolute;
			bottom: -4px;
			left: 0;
			width: 0%;
			height: 2px;
			background: linear-gradient(to right, #ffd700, #ff8c00);
			transition: width 0.3s ease;
		}
		.home-image figcaption a:hover {
			color: #ffd700;
			text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
		}
		.home-image figcaption a:hover::after {
			width: 100%;
		}

/* 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;
	}
@media (max-width: 900px) {
	.mission {
		flex-wrap: wrap;
		padding: 20px;
	}
	.leaders {
		justify-content: center;
		flex-wrap: wrap;
	}
	.about {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* News Slider for Homepage */
.top-rotator,
.top-rotator .bottom {
	background: #fafafa;	/* This increases the contrast for Section 508 compliance on the text section */
}
	.top-rotator.slideshow .slideTitle { 
		font-family: GI7; 
    }
	.top-rotator a.slide-inner { 
		background-size: contain; 
		background-position: 50% 50%; 
	}
	.top-rotator .slideTitle {	/* This forces the use of the proper font classing for titles */
		color: #000;
		font: 2.4rem "GI7", sans-serif;
	}
	.top-rotator .slideCaption {
		color: #000;			/* This assists with the contrast for S508 */
		font-family: GI5;		/* Lets bolden the text a bit to make it easier to see on the off white background */
	}
	.top-rotator .slideContainer {
		min-height: 660px;
	}
	.top-rotator-imagedistortion {
		width: auto !important;
		height: 100% !important;
	}
	.top-rotator a.page {
		background: #3A423A;
	}
	.top-rotator a.page:hover,
	.top-rotator a.page.activeSlide {
		background: #FFCE08;
		font-family: GI7;
		color: #000;
	}
@media (max-width: 768px) {
	.top-rotator .top {
		display: none !important;
		padding-top: 0 !important;
		height: 0 !important;
	}
	.top-rotator .slide {
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		background: none !important;
	}
	.top-rotator .slideContainer {
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.top-rotator {
		background: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}
}

.rsrc-img {
	max-height: 36px;
	min-height: 36px;
	width: auto;
	max-width: 199px;
	padding: 4px 8px;
}