/* Base card shell */
.content-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 100%;
}

/* Clean image behavior inside cards */
.content-card .sv-image-portlet {
  line-height: 0;
}

.content-card .sv-image-portlet img,
.content-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Text area inside cards */
.content-card .sv-text-portlet,
.content-card .sv-text-portlet-content {
  padding: 16px 20px 20px;
  background: #ffffff;
}

/* Bottom card titles / links */
.content-card .sv-text-portlet a {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #3f3f3f;
  text-decoration: none;
}

.content-card .sv-text-portlet a:hover {
  color: #006241;
}

/* Buttons inside cards */
.content-card .sv-button-portlet a,
.content-card .sv-defaultButton,
.content-card input[type="submit"],
.content-card button {
  display: block;
  width: calc(100% - 40px);
  margin: 12px 20px 20px;
  padding: 14px 18px;
  background: #006241;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}

.content-card .sv-button-portlet a:hover,
.content-card .sv-defaultButton:hover,
.content-card input[type="submit"]:hover,
.content-card button:hover {
  background: #004f34;
  color: #ffffff;
  text-decoration: none;
}

/* Body copy inside cards */
.content-card p,
.content-card .normal {
  font-size: 16px;
  line-height: 1.4;
  color: #555555;
}

/* Headings inside cards */
.content-card h2,
.content-card h3,
.content-card h4 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  padding: 12px 24px 5px;
  color: #3f3f3f;
}

.top-card .sv-text-portlet,
.top-card .sv-text-portlet-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 20px 16px;
}

.top-card h2,
.top-card h3,
.top-card h4 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
  padding: 18px 20px 8px;
  color: #3f3f3f;
}

.top-card i {
  font-size: 64px;
  color: #006241;
  display: block;
  text-align: center;
  margin: 8px 0 6px;
}

.top-card .sv-image-portlet,
.top-card .sv-image-portlet-content {
  text-align: center;
  margin: 0;
  padding: 0;
}

.top-card .sv-image-portlet img {
  width: 56%;
  max-width: 160px;
  height: auto;
  margin: 0 auto;
}

.top-card p,
.top-card .normal {
  min-height: 0;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.top-card .sv-text-portlet a,
.top-card .sv-text-portlet-content a {
  display: block;
  width: calc(100% - 40px);
  margin: 5px 20px;
  padding: 12px 16px;
  background: #006241;
  color: #ffffff;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}

.top-card .sv-text-portlet a:hover,
.top-card .sv-text-portlet-content a:hover {
  background: #004f34;
  color: #ffffff;
  text-decoration: none;
}

/* Reset inherited padding for bottom cards */
.bottom-card .sv-text-portlet,
.bottom-card .sv-text-portlet-content {
  padding: 0;
  background: transparent;
}

/* Image */
.bottom-card .sv-image-portlet,
.bottom-card .sv-image-portlet-content {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.bottom-card .sv-image-portlet img {
  display: block;
  width: 100%;
  height: auto;
}

/* Title */
.bottom-card-title {
  padding: 20px 20px 10px;
  margin: 0;
  background: #ffffff;
}

.bottom-card-title a {
  display: block;
  margin: 10px 10px 0px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #3f3f3f;
  text-decoration: none;
}

.bottom-card-title a:hover {
  color: #006241;
}

/* Copy */
.bottom-card-copy {
  padding: 6px 20px 22px;
  margin: 0;
  background: #ffffff;
}

.bottom-card-copy p,
.bottom-card-copy .normal {
  margin: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: #555555;
}

.blue-button {
  padding: 8px 20px 24px;
  background: #ffffff;
}

/* Force proper button styling */
.blue-button a,
.blue-button a:visited {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  padding: 12px 16px;
  background: #003a5d;
  color: #ffffff !important; /* fix color inheritance */
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
}

/* Hover */
.blue-button a:hover {
  background: #002a44;
  color: #ffffff !important;
}