/**
 * Latest News section – VC composer post grid style
 * Used by [autox_latest_news] shortcode on new homepage.
 *
 * @package AutoX
 */

.autox-latest-news {
	padding: 50px 15px 60px;
}

.autox-latest-news-heading {
	font-family: 'Univers', sans-serif;
	font-size: 2rem;
	font-weight: bold;
	font-style: italic;
	color: #007289;
	text-align: center;
	margin: 0 0 35px;
}

.autox-latest-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto 40px;
}

@media (min-width: 768px) {
	.autox-latest-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.autox-latest-news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.autox-latest-news-card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
}

.autox-latest-news-card-image-wrap {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #ddd;
}

.autox-latest-news-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.autox-latest-news-card-image-link {
	display: block;
	height: 100%;
}

.autox-latest-news-card-date {
position: absolute;
  top: 12px;
  right: 12px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #007289;
  font-family: 'Univers', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #007289;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.autox-latest-news-card-body {
  background: #f1f1f1;
  color: #5B5E5B;
  padding: 19px 24px 0px;
  flex: 1;
  display: flex;
  flex-direction: column;
border-left: 10px solid #007289;
}


.autox-latest-news-card-title {
	font-family: 'Univers', sans-serif;
	font-size: 1.5rem;
  font-weight: bold;
	font-style: inherit;
	line-height: 1.5;
	margin: 0 0 12px;
	text-transform: none;
	color: #007289;
}

.autox-latest-news-card-title a {
	color: #007289;
	text-decoration: none;
}

.autox-latest-news-card-title a:hover {
	text-decoration: underline;
}

.autox-latest-news-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 0;
	flex: 1;
	color: #2E3338;
}

.autox-latest-news-card-read-more {
  display: block;
  width: calc(100% + 48px);
  margin: 16px 0 0 -24px;
    margin-bottom: 0px;
  text-align: right;
  background: #007289;
  color: #fff;
  font-family: 'Univers', sans-serif;
  font-size: 1rem;
  font-weight: normal;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px 14px 20px;
  border: none;
    border-left-width: medium;
    border-left-style: none;
    border-left-color: currentcolor;
  border-left: 8px solid #007289;
  border-radius: 0;
  letter-spacing: 4px;
}

.autox-latest-news-card-read-more:hover {
	background: #f1f1f1;
	color: #007289;
}

.autox-latest-news-more-wrap {
	text-align: center;
}

.autox-latest-news-more-btn {
display: inline-block;
  background: #333;
  color: #fff;
  font-family: 'Univers', sans-serif;
  font-size: 1rem;
  font-weight: inherit;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 2px;
  letter-spacing: 4px;
}

.autox-latest-news-more-btn:hover {
	background: #5B5E5B;
	color: #fff;
}
