/* =======================css for departments======================= */
/* List View */
.msu-department-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.msu-department-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

/* Grid View */
.msu-department-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}


/* =======================end css for departments======================= */

/* MSU Department Box Layout */
.msu-layout-department .msu-department-grid {
	display: grid;
	gap: 1.25rem;
}

/* Helper column classes reusing existing grid variations */
.msu-grid-2-col {
	grid-template-columns: repeat(2, 1fr);
}

.msu-grid-3-col {
	grid-template-columns: repeat(3, 1fr);
}

.msu-grid-4-col {
	grid-template-columns: repeat(4, 1fr);
}

.msu-department-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	border-top: 4px solid #0046be;
	text-align: left;
	padding: 1.25rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	animation: fadeInUp 0.6s ease-out forwards;
	opacity: 0;
	animation-delay: calc(var(--animation-order) * 0.1s);
}

.msu-department-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	border-top-color: #F6C734;
}

.msu-department-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
}

.msu-department-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #e5ecf8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 32px;
	color: #0046be;
	overflow: hidden;
	margin-bottom: 0;
}


.msu-department-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* content wrapper */
.msu-department-content {
	flex: 1;
	text-align: left;
}



.msu-department-title {
	font-size: 1rem;
	font-weight: 600;
	color: #0046be;
	margin: 0 0 0.25rem 0;
}

.msu-department-excerpt {
	font-size: 0.9rem;
	color: #596780;
	line-height: 1.5;
	margin: 0;
}

/* Animation Keyframes */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Grid Layout */
.msu-grid {
	display: grid;
	gap: 1.5rem;
}

/* 4-column grid */
.msu-grid-4-col {
	grid-template-columns: repeat(4, 1fr);
}

/* Grid Items with Animation */
.msu-grid-item {
	border-width: 4px 1px 1px 1px;
	border-style: solid;
	border-color: #0046be;
	border-radius: 15px;
	padding: 1rem;
	background-color: white;

	/* Animation Properties */
	animation: fadeInUp 0.6s ease-out forwards;
	opacity: 0;
	/* Start invisible for animation */

	/* Staggered Animation Delay */
	animation-delay: calc(var(--animation-order) * 0.1s);

	/* Transition for Hover Effects */
	transition: all 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Child Title Styling */
.msu-grid-item-title a {
	font-size: 15px !important;
	color: #000000 !important;
	font-weight: 600 !important;
	margin-top: 0;
	transition: color 0.3s ease;
}

/* Excerpt Styling */
.msu-excerpt {
	color: #666;
	font-size: 0.9em;
	line-height: 1.5;
	transition: color 0.3s ease;
}

/* Hover Effects */
.msu-grid-item:hover {
	background-color: #F6C734;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-5px) scale(1.02);

	.msu-excerpt {
		color: #444;
	}
}

/* Parent Title */
.msu-parent-title {
	margin-bottom: 1.5rem;
	color: #222;
	font-size: 24px;
	font-weight: 700;
	animation: fadeInUp 0.6s ease-out 0.2s forwards;
	opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
	.msu-grid-4-col {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.msu-grid-4-col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.msu-grid-4-col {
		grid-template-columns: 1fr;
	}
}

/* List Layout */
/* List Layout Animation */
@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(20px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* List Container */
.msu-list-container {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* List Parent Title */
.msu-list-parent-title {
	font-size: 24px;
	font-weight: 700;
	color: #222;
	margin-bottom: 1.5rem;
	padding-bottom: 10px;
	border-bottom: 2px solid #0046BE;
	animation: fadeInLeft 0.6s ease-out 0.2s forwards;
	opacity: 0;
}

/* List Items */
.msu-list-item {
	margin-bottom: 8px;
	animation: fadeInLeft 0.6s ease-out forwards;
	animation-delay: calc(var(--animation-order) * 0.08s);
	opacity: 0;
}

.msu-list-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	border-left: 4px solid transparent;
}

/* List Item Text */
.msu-list-item-title {
	font-size: 15px;
	font-weight: 600;
	color: #000;
	flex-grow: 1;
	transition: all 0.3s ease;
}

.msu-list-excerpt {
	font-size: 14px;
	color: #666;
	margin-top: 4px;
	display: block;
	transition: all 0.3s ease;
}

/* List Arrow Icon */
.msu-list-arrow {
	margin-left: 15px;
	color: #999;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

/* Hover Effects */
.msu-list-link:hover {
	background-color: #f8f9fa;
	transform: translateX(5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-left-color: #0046be;

	.msu-list-item-title {
		color: #0046be;
	}

	.msu-list-excerpt {
		color: #444;
	}

	.msu-list-arrow {
		color: #0046be;
		transform: translateX(3px);
	}
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.msu-list-link {
		padding: 14px 16px;
	}

	.msu-list-item-title {
		font-size: 16px;
	}

	.msu-list-excerpt {
		font-size: 13px;
	}
}

/* Image Grid Layout for Child Pages */
.msu-layout-image-grid {
	margin: 2rem 0;
}

.msu-image-grid {
	display: grid;
	gap: 0.75rem;
}

/* Column configurations */
.msu-grid-2-col {
	grid-template-columns: repeat(2, 1fr);
}

.msu-grid-3-col {
	grid-template-columns: repeat(3, 1fr);
}

.msu-grid-4-col {
	grid-template-columns: repeat(4, 1fr);
}

.msu-grid-5-col {
	grid-template-columns: repeat(5, 1fr);
}

.msu-image-grid-item {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	animation: fadeInUp 0.6s ease-out forwards;
	opacity: 0;
	animation-delay: calc(var(--animation-order) * 0.1s);
	position: relative;
}

.msu-image-grid-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.msu-image-container {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/10;
	max-height: 120px;
}

.msu-grid-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.msu-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 70, 190, 0.7);
	/* #0046BE with opacity */
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.msu-view-page {
	background-color: #f4c633;
	color: #000;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 4px;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	font-size: 14px;
}

.msu-content-container {
	padding: 0.5rem;
	border-bottom: 3px solid transparent;
	transition: border-color 0.3s ease;
}

.msu-grid-item-title {
	font-size: 14px;
	font-weight: 600;
	color: #000;
	margin-top: 0;
	margin-bottom: 0.3rem;
	transition: color 0.3s ease;
	line-height: 1.2;
}

/* Hover effects */
.msu-image-grid-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.msu-image-grid-item:hover .msu-grid-image {
	transform: scale(1.05);
}

.msu-image-grid-item:hover .msu-image-overlay {
	opacity: 1;
}

.msu-image-grid-item:hover .msu-view-page {
	transform: translateY(0);
}

.msu-image-grid-item:hover .msu-content-container {
	border-bottom-color: #0046BE;
}

.msu-image-grid-item:hover .msu-grid-item-title {
	color: #0046BE;
}

/* Responsive Adjustments for Image Grid */
@media (max-width: 1024px) {
	.msu-grid-4-col {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {

	.msu-grid-4-col,
	.msu-grid-3-col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {

	.msu-grid-4-col,
	.msu-grid-3-col,
	.msu-grid-2-col {
		grid-template-columns: 1fr;
	}
}

/* Messages */
.msu-error {
	color: #dc3232;
}

.msu-notice {
	color: #646970;
}

/*=========A-Z listings=============*/
.msu-az-listings {
	--msu-az-blue: #0046be;
	--msu-az-gold: #f6c734;
	--msu-az-dark: #0f172a;
	--msu-az-muted: #64748b;
	--msu-az-border: #e2e8f0;
	--msu-az-soft: #f8fafc;
	margin: 2rem 0;
}

.msu-az-listings-grid {
	font-family: Gordita, sans-serif;
}

.msu-az-filter-form {
	position: relative;
	margin-bottom: 1.75rem;
}

.msu-az-filter-form::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 2px solid var(--msu-az-blue);
	border-radius: 50%;
	transform: translateY(-58%);
	opacity: 0.7;
}

.msu-az-filter-form::after {
	content: "";
	position: absolute;
	left: 31px;
	top: 50%;
	width: 8px;
	height: 2px;
	background: var(--msu-az-blue);
	transform: translateY(4px) rotate(45deg);
	opacity: 0.7;
}

#msu-az-filter-input {
	width: 100%;
	padding: 15px 18px 15px 48px;
	border: 1px solid var(--msu-az-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
	color: var(--msu-az-dark);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#msu-az-filter-input:focus {
	outline: none;
	border-color: var(--msu-az-blue);
	box-shadow: 0 0 0 4px rgba(0, 70, 190, 0.12), 0 16px 34px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.msu-az-navigation {
	margin: 0 0 2rem;
	padding: 0;
	border-bottom: none;
}

.msu-az-letters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.msu-az-letters li {
	margin: 0;
}

.msu-az-letters li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 11px;
	border: 1px solid var(--msu-az-border);
	border-radius: 4px;
	background: #fff;
	color: var(--msu-az-dark);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
	transition: all 0.25s ease;
}

.msu-az-letters li a:hover,
.msu-az-letters li a:focus {
	background: var(--msu-az-blue);
	border-color: var(--msu-az-blue);
	color: #fff;
	box-shadow: 0 12px 24px rgba(0, 70, 190, 0.2);
	transform: translateY(-2px);
}

.msu-az-letters li.disabled a {
	background: #f1f5f9;
	border-color: #edf2f7;
	color: #cbd5e1;
	box-shadow: none;
	cursor: not-allowed;
	pointer-events: none;
}

.msu-az-section {
	margin-bottom: 2.25rem;
}

.msu-az-letter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 1rem;
	color: var(--msu-az-dark);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 800;
	line-height: 1.1;
	border-bottom: 2px solid var(--msu-az-blue);
	padding-bottom: 8px;
}

.msu-az-letter::after {
	content: none;
}

.msu-az-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.msu-az-list li {
	position: relative;
	margin: 0;
	background: #fff;
	border: 1px solid var(--msu-az-border);
	border-left: 4px solid var(--msu-az-blue);
	border-radius: 12px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
	overflow: hidden;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.msu-az-list li::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(180deg, var(--msu-az-gold), var(--msu-az-blue));
	transition: width 0.3s ease;
}

.msu-az-list li:hover {
	border-color: rgba(0, 70, 190, 0.3);
	box-shadow: 0 16px 34px rgba(0, 70, 190, 0.12);
	transform: translateY(-3px);
}

.msu-az-list li:hover::before {
	width: 4px;
}

.msu-az-list li a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	color: var(--msu-az-dark);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.25s ease;
}

.msu-az-list li a::after {
	content: "→";
	color: var(--msu-az-blue);
	font-size: 1.1rem;
	font-weight: 800;
	transform: translateX(0);
	transition: transform 0.25s ease, color 0.25s ease;
}

.msu-az-list li a:hover {
	color: var(--msu-az-blue);
}

.msu-az-list li a:hover::after {
	color: var(--msu-az-gold);
	transform: translateX(4px);
}

.msu-az-grid {
	display: grid;
	gap: 22px;
	margin-bottom: 2rem;
}

.msu-grid-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.msu-grid-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.msu-grid-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.msu-az-grid-item {
	position: relative;
	min-height: 118px;
	background: #fff;
	border: 1px solid var(--msu-az-border);
	border-top: 4px solid var(--msu-az-blue);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	transform: translateY(0);
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
	animation: fadeInUp 0.55s ease-out forwards;
	animation-delay: calc(var(--animation-order) * 0.06s);
	opacity: 0;
}

.msu-az-grid-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(246, 199, 52, 0.22), transparent 34%), linear-gradient(135deg, rgba(0, 70, 190, 0.08), transparent 58%);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.msu-az-grid-item:hover {
	border-color: rgba(0, 70, 190, 0.35);
	box-shadow: 0 24px 48px rgba(0, 70, 190, 0.18);
	transform: translateY(-7px);
}

.msu-az-grid-item:hover::before {
	opacity: 1;
}

.msu-az-grid-link {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 100%;
	color: inherit;
	text-decoration: none;
}

.msu-az-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 16px 18px;
	font-family: Gordita, sans-serif;
}

.msu-az-title {
	margin: 0 0 8px;
	color: var(--msu-az-dark);
	font-family: Gordita, sans-serif !important;
	font-size: clamp(0.84rem, 1vw, 0.98rem);
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.3s ease;
}

.msu-az-grid-item:hover .msu-az-title {
	color: var(--msu-az-blue);
}

.msu-az-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.msu-az-category {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0, 70, 190, 0.08);
	color: var(--msu-az-blue);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1;
}

.msu-excerpt {
	margin-top: auto;
	color: var(--msu-az-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.msu-notice {
	padding: 18px 20px;
	border-left: 4px solid var(--msu-az-gold);
	background: var(--msu-az-soft);
	color: var(--msu-az-dark);
	font-weight: 600;
}

@media (max-width: 992px) {
	.msu-grid-columns-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.msu-az-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.msu-grid-columns-3,
	.msu-grid-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.msu-az-letters {
		justify-content: flex-start;
	}
}

@media (max-width: 576px) {
	.msu-grid-columns-2,
	.msu-grid-columns-3,
	.msu-grid-columns-4 {
		grid-template-columns: 1fr;
	}

	.msu-az-content {
		padding: 18px;
	}

	.msu-az-list li a {
		padding: 14px 16px;
	}
}

/* ==========================================
   MODERN DEPARTMENT CARD LAYOUT
   ========================================== */

/* =====================================================
   Premium Department Layout - Featured Image Background
   ===================================================== */

/* Container */
.msu-layout-department-modern {
	margin: 2rem 0;
}

.msu-department-modern-grid {
	display: grid;
	gap: 28px;
}

/* Grid Columns */
.msu-department-modern-grid.msu-grid-2-col {
	grid-template-columns: repeat(2, 1fr);
}

.msu-department-modern-grid.msu-grid-3-col {
	grid-template-columns: repeat(3, 1fr);
}

.msu-department-modern-grid.msu-grid-4-col {
	grid-template-columns: repeat(4, 1fr);
}

/* Card */
.msu-department-modern-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	animation: fadeInUp 0.6s ease-out forwards;
	opacity: 0;
	animation-delay: calc(var(--animation-order) * 0.08s);
	isolation: isolate;
	min-height: 210px;
	display: flex;
	flex-direction: column;
}

/* Decorative gradient ring on hover */
.msu-department-modern-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 18px;
	padding: 2px;
	background: linear-gradient(135deg, #F6C734, #0046BE);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.45s ease;
	z-index: 4;
	pointer-events: none;
}

.msu-department-modern-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 28px 55px rgba(0, 70, 190, 0.28);
}

.msu-department-modern-card:hover::after {
	opacity: 1;
}

/* Link wraps the whole card */
.msu-department-modern-link {
	display: flex;
	flex-direction: column;
	justify-content: center; /* Centered vertically to place the department name perfectly in the middle */
	align-items: flex-start;
	padding: 24px;
	box-sizing: border-box;
	text-decoration: none;
	color: inherit;
	flex-grow: 1;
	position: relative;
	z-index: 3;
}

/* Background Image Layer */
.msu-department-modern-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1.02);
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
}

.msu-department-modern-card:hover .msu-department-modern-bg {
	transform: scale(1.12);
}

/* Placeholder background when no image */
.msu-department-modern-card.no-image .msu-department-modern-bg {
	background: linear-gradient(135deg, #0046BE 0%, #003087 60%, #001a4d 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.msu-department-modern-placeholder {
	color: rgba(255, 255, 255, 0.35);
	transform: translateY(-28px);
}

/* Gradient Overlay */
.msu-department-modern-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(15, 23, 42, 0.12);
	transition: all 0.5s ease;
}

.msu-department-modern-card:hover .msu-department-modern-overlay {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(7, 17, 38, 0.55) 100%);
}

/* Content */
.msu-department-modern-content {
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	gap: 12px;
	width: 100%;
}

/* Accent bar below title */
.msu-department-modern-content::before {
	content: '';
	width: 36px;
	height: 4px;
	border-radius: 4px;
	background: #F6C734;
	transition: width 0.45s ease;
	order: 1; /* Place at the top or bottom appropriately */
}

.msu-department-modern-card:hover .msu-department-modern-content::before {
	width: 60px;
}

/* Title */
.msu-department-modern-title {
	font-size: 1.25rem;
	font-family: Gordita, sans-serif !important;
	font-weight: 500;
	color: #ffffff !important;
	margin: 0;
	line-height: 1.3;
	order: 2;
	max-width: 90%;
}

/* Excerpt */
.msu-department-modern-excerpt {
	font-size: 0.875rem;
	color: #ffffff !important;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.45s ease, opacity 0.45s ease, margin 0.45s ease;
	order: 3;
	max-width: 85%;
}

.msu-department-modern-card:hover .msu-department-modern-excerpt {
	max-height: 4rem;
	opacity: 1;
	margin-top: 4px;
}

/* Call to action */
.msu-department-modern-cta {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #F6C734;
	order: 4;
}

.msu-department-modern-cta-text {
	transform: translateY(2px);
	opacity: 0;
	transition: transform 0.45s ease, opacity 0.45s ease;
}

.msu-department-modern-card:hover .msu-department-modern-cta-text {
	transform: translateY(0);
	opacity: 1;
}

.msu-department-modern-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	position: absolute;
	right: 24px;
	top: 24px;
	z-index: 4;
	transition: all 0.45s ease;
}

.msu-department-modern-arrow svg {
	width: 16px;
	height: 16px;
	color: #ffffff;
	transition: transform 0.45s ease;
}

.msu-department-modern-card:hover .msu-department-modern-arrow {
	background: #F6C734;
	border-color: #F6C734;
}

.msu-department-modern-card:hover .msu-department-modern-arrow svg {
	color: #07142a;
	transform: translateX(3px);
}

/* Keyboard focus accessibility */
.msu-department-modern-link:focus-visible {
	outline: 3px solid #F6C734;
	outline-offset: 3px;
	border-radius: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.msu-department-modern-grid.msu-grid-4-col {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {

	.msu-department-modern-grid.msu-grid-3-col,
	.msu-department-modern-grid.msu-grid-4-col {
		grid-template-columns: repeat(2, 1fr);
	}

	.msu-department-modern-grid {
		gap: 18px;
	}

	.msu-department-modern-card {
		min-height: 195px;
	}

	.msu-department-modern-link {
		padding: 20px;
	}

	.msu-department-modern-arrow {
		right: 20px;
		top: 20px;
	}

	.msu-department-modern-title {
		font-size: 1.125rem;
	}

	/* Reveal excerpt by default on touch devices */
	.msu-department-modern-excerpt {
		max-height: 4rem;
		opacity: 1;
	}

	.msu-department-modern-cta-text {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (max-width: 640px) {

	.msu-department-modern-grid.msu-grid-2-col,
	.msu-department-modern-grid.msu-grid-3-col,
	.msu-department-modern-grid.msu-grid-4-col {
		grid-template-columns: 1fr;
	}

	.msu-department-modern-grid {
		gap: 16px;
	}

	.msu-department-modern-card {
		min-height: 180px;
	}
}