/* =====================================================
   Expertise List Shortcode — [expertise_list]
   ===================================================== */

.expertise-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.expertise-card {
	flex: 0 1 calc(25% - 15px); /* 4 per row on desktop */
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	overflow: hidden;
}
.expertise-card * {
	text-decoration: none !important;
}

/* Tablets / smaller desktops: 3 per row */
@media (max-width: 1024px) {
  .expertise-card {
    flex: 0 1 calc(33.333% - 14px);
  }
}

/* Small tablets: 2 per row */
@media (max-width: 768px) {
  .expertise-card {
    flex: 0 1 calc(50% - 10px);
  }
}

/* Mobile: 1 per row */
@media (max-width: 480px) {
  .expertise-card {
    flex: 0 1 100%;
  }
}

/* Photo */
.expertise-card__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: #1D2149;
	background-size: cover;
	background-position: center;
	display: block;
	transition: transform 0.4s ease;
}
.expertise-card:hover .expertise-card__img {
	transform: scale(1.04);
}

/* Dark navy body */
.expertise-card__body {
	background: #1f2a44;
	padding: 1.25rem 1.25rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.expertise-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	font-family: "Montserrat", Sans-serif;
	margin: 0;
	line-height: 1.35;
}

.expertise-card__desc {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.78);
	font-family: "Montserrat", Sans-serif;
	line-height: 1.65;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.expertise-card__btn {
	display: inline-block;
	margin-top: 0.75rem;
	align-self: flex-start;
	padding: 0.5rem 1.25rem;
	background: #F1B434;
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: "Montserrat", Sans-serif;
	transition: background 0.2s;
}
.expertise-card:hover .expertise-card__btn {
	background: #C49A4C;
}

/* Responsive */
@media (max-width: 900px) {
	.expertise-list {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.expertise-list {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}
