  /**
 * Campus News — Archive & Single Post Styles
 * Applies to: category-news archive, single news posts
 */

/* ── Featured Post ──────────────────────────────────────────────────────── */

.ut-southern-news-featured {
	margin-bottom: var(--wp--preset--spacing--large);
    max-width: 1267px;
    padding: 58px;
    border: 1px solid #FF8200;
}

.ut-southern-news-featured__header,
.ut-southern-single-news__header {
	margin-bottom: 2rem;
}

.ut-southern-news-featured__title,
.ut-southern-news-item__title {
	font-size: var(--wp--preset--font-size--h-3);
	line-height: var(--wp--custom--line-height--heading);
	margin: 0 0 0.5rem;
}

.ut-southern-news-featured__title a,
.ut-southern-news-item__title a {
	color: var(--wp--preset--color--charcoal-firestorm);
	text-decoration: none;
    font-weight: var(--wp--custom--font-weight--black);
}

.ut-southern-news-featured__title a:hover,
.ut-southern-news-featured__title a:focus {
	color: var(--wp--preset--color--tennessee-orange);
}

.ut-southern-news-featured__meta,
.ut-southern-single-news__meta {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--font-weight--bold);
	color: var(--wp--preset--color--contrast-2, #58595b);
	margin: 0;
}

/* Featured image — full width */

.ut-southern-news-featured__image {
	width: 100%;
	margin-bottom: 2rem;
	line-height: 0;
}

.ut-southern-news-featured__img {
	width: 100%;
	height: auto;
	display: block;
}

/* Excerpt + read-more link */

.ut-southern-news-featured__body {
	margin-top: var(--wp--preset--spacing--small);
}

.ut-southern-news-featured__excerpt {
	font-size: var(--wp--preset--font-size--medium);
	line-height: var(--wp--custom--line-height--body, 1.6);
	margin: 0 0 1rem;
	color: var(--wp--preset--color--body);
}

.ut-southern-news-featured__read-more {
	display: inline-block;
	font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--wp--custom--font-weight--bold);
	color: var(--wp--preset--color--contrast-2, #58595b);
	text-decoration: none;
	border-bottom: none;
	transition: all 0.2s ease-in-out;
    position: relative;
    padding-right: 30px;
}
.ut-southern-news-featured__read-more::after {
	content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: block;
    width: 20px;
    height: 20px;
    background: url(/wp-content/themes/ut-southern/assets/images/read-full.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: width 0.2s ease-in-out;
}

.ut-southern-news-featured__read-more:hover,
.ut-southern-news-featured__read-more:focus {
	border-bottom-color: var(--wp--preset--color--tennessee-orange);
}

/* ── News List ──────────────────────────────────────────────────────────── */

.ut-southern-news-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--small);
}

.ut-southern-news-item {
	display: grid;
	grid-template-columns: 3fr 7fr;
	gap: var(--wp--preset--spacing--small);
	align-items: start;
	padding-bottom: var(--wp--preset--spacing--small);
}

.ut-southern-news-item__image {
	line-height: 0;
}

.ut-southern-news-item .ut-southern-news-item__img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 320 / 246;
	object-fit: cover;
    contain-intrinsic-size: auto none;
}

.ut-southern-news-item__content {
	display: flex;
	flex-direction: column;
    justify-content: center;
    height: 100%;
	gap: 0.375rem;
	padding-top: 0.25rem;
}

.ut-southern-news-item__title a:hover,
.ut-southern-news-item__title a:focus {
	color: var(--wp--preset--color--tennessee-orange);
}

.ut-southern-news-item__date {
	font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--font-weight--bold);
	color: var(--wp--preset--color--contrast-2, #58595b);
	margin: 0;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */

.ut-southern-news-pagination {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-top: var(--wp--preset--spacing--medium);
    margin-bottom: var(--wp--preset--spacing--medium) !important;
}

.ut-southern-news-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--wp--preset--font-size--normal);
	font-weight: var(--wp--custom--font-weight--bold);
    margin-right: 1rem;
	color: var(--wp--preset--color--body);
	text-decoration: underline;
	transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
}

.ut-southern-news-pagination a:hover,
.ut-southern-news-pagination a:focus {
	color: inherit;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .ut-southern-news-featured {
        padding: 30px;
    }
	.ut-southern-news-item {
		grid-template-columns: 1fr;
	}

	.ut-southern-news-featured__meta {
		flex-wrap: wrap;
		gap: 0.25rem;
	}

	.ut-southern-news-featured__date::before {
		display: none;
	}
    
    .ut-southern-news-featured__read-more {
        display: inline-flex;
    }
}

/* ── Single News Post ───────────────────────────────────────────────────── */

.ut-southern-single-news {
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
}

/* Header: title + meta */

.ut-southern-single-news__title {
	font-size: var(--wp--preset--font-size--h-2);
	line-height: var(--wp--custom--line-height--heading);
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--charcoal-firestorm);
}

/* Featured image — full width above body */

.ut-southern-single-news__image {
	width: 100%;
	margin-bottom: 1rem;
	line-height: 0;
}

.ut-southern-single-news__img {
	width: 100%;
	height: auto;
	display: block;
}

/* Two-column body */

.ut-southern-single-news__body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--wp--preset--spacing--medium);
	align-items: start;
}

.ut-southern-single-news__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ut-southern-single-news__content {
	min-width: 0;
}

/* Sidebar */

.ut-southern-single-news__sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--small);
}

.ut-southern-single-news__sidebar-heading {
	padding-bottom: 0.375rem;
	margin: 0 0 0.75rem;
}

/* Share links */

.ut-southern-single-news__share-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.ut-southern-single-news__share-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	text-decoration: none;
	transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.ut-southern-single-news__share-link:hover,
.ut-southern-single-news__share-link:focus {
	opacity: 0.85;
	transform: translateY(-2px);
}

.ut-southern-single-news__share-icon {
	width: 38px;
	height: 38px;
	display: block;
}

/* Author / Contact */

.ut-southern-single-news__contact-name {
	font-weight: 500;
	margin: 0 0 0.375rem;
}

.ut-southern-single-news__contact-phone,
.ut-southern-single-news__contact-email {
	display: flex;
    align-items: center;
	margin: 0 0 0.25rem;
}

.ut-southern-single-news__contact-phone a,
.ut-southern-single-news__contact-email a {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	color: var(--wp--preset--color--body);
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 300;
	text-decoration: none;
}

.ut-southern-single-news__contact-icon {
	width: 20px;
	height: 20px;
	display: block;
	flex: 0 0 20px;
}

.ut-southern-single-news__contact-phone a:hover,
.ut-southern-single-news__contact-phone a:focus,
.ut-southern-single-news__contact-email a:hover,
.ut-southern-single-news__contact-email a:focus {
	color: var(--wp--preset--color--tennessee-orange);
}

/* Sections list */

.ut-southern-single-news__sections-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.ut-southern-single-news__sections-list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--normal);
    font-weight: var(--wp--custom--font-weight--bold);
	color: var(--wp--preset--color--charcoal-firestorm);
	text-decoration: none;
}

.ut-southern-single-news__sections-icon {
	width: 20px;
	height: 20px;
	display: block;
	flex: 0 0 20px;
}

.ut-southern-single-news__sections-list a:hover,
.ut-southern-single-news__sections-list a:focus {
	color: var(--wp--preset--color--tennessee-orange);
}

/* Responsive — stack on mobile */

@media (max-width: 782px) {
	.ut-southern-single-news__body {
		grid-template-columns: 1fr;
	}

	.ut-southern-single-news__sidebar {
		border-top: 2px solid var(--wp--preset--color--tennessee-orange);
		padding-top: var(--wp--preset--spacing--small);
	}

	.ut-southern-single-news__date::before {
		display: none;
	}
}
