/* 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: 36px;
  color: #006241;
  display: block;
  text-align: center;
  margin: 0 0 14px;
}

.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;
}




/* =========================
   Dealer page
========================= */

.dealer-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.dealer-section {
  padding: 48px 0;
}

.dealer-section__heading {
  max-width: 760px;
  margin: 0 0 16px;
}

.dealer-section__heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  color: #163029;
}

.dealer-eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006241;
}

.dealer-eyebrow--light {
  color: rgba(255, 255, 255, 0.96);
}

/* =========================
   Hero
========================= */

.dealer-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.dealer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 39, 33, 0.64);
  z-index: 1;
}

.dealer-hero > * {
  position: relative;
  z-index: 2;
}

.dealer-hero__content {
  max-width: 680px;
  padding: 24px 0 48px;
}

.dealer-hero .sv-text-portlet,
.dealer-hero .sv-text-portlet-content,
.dealer-hero__content > * {
  display: block;
}

.dealer-hero__content h1 {
  margin: 0 0 18px;
  max-width: 700px;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 700;
  color: #ffffff;
}

.dealer-hero__content p {
  margin: 0 0 30px;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.dealer-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.dealer-hero__actions a.dealer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 56px;
  padding: 0 24px;
  background: #006241;
  color: #ffffff !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dealer-hero__actions a.dealer-btn:hover {
  background: #004f34;
}

.dealer-hero__actions a.dealer-btn--secondary {
  background: #ffffff;
  color: #163029 !important;
  border: 1px solid #d2ddd7;
}

.dealer-hero__actions a.dealer-btn--secondary:hover {
  background: #f3f7f5;
  border-color: #bfd0c8;
}


/* =========================
   Other dealer sections
========================= */

.dealer-products {
  background: #f5f8f6;
}

.dealer-workflow__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.dealer-workflow__item {
  display: block;
  padding: 22px 18px;
  border: 1px solid #d8e4de;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dealer-workflow__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #006241;
  text-decoration: none;
}

.dealer-workflow__number {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #006241;
}

.dealer-workflow__text {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #163029;
}

.dealer-incentives {
  background: linear-gradient(135deg, #0f4f41 0%, #1a6350 100%);
  color: #ffffff;
}

.dealer-incentives__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.dealer-incentives__copy {
  max-width: 700px;
}

.dealer-incentives h2 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.08;
  color: #ffffff;
}

.dealer-incentives p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.dealer-support {
  background: #eef4f1;
}

.dealer-support__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.dealer-support h2 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  color: #163029;
}

.dealer-support p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #42544d;
}

.dealer-btn--light,
.dealer-btn--light:visited {
  background: #ffffff;
  color: #163029 !important;
}

.dealer-btn--light:hover,
.dealer-btn--light:focus {
  background: #e9f1ed;
  color: #163029 !important;
}

.dealer-btn--outline-light,
.dealer-btn--outline-light:visited {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.dealer-btn--outline-light:hover,
.dealer-btn--outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

/* =========================
   Responsive
========================= */

.quick-access-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.quick-access-row:first-of-type {
  margin-top: 0;
}

.quick-access-row > * {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.quick-access-row .top-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 280px;
  padding: 28px 26px 26px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-access-row .top-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.quick-access-row .top-card .sv-text-portlet,
.quick-access-row .top-card .sv-text-portlet-content,
.quick-access-row .top-card .sv-fontawesome-portlet,
.quick-access-row .top-card .sv-fontawesome-portlet-content,
.quick-access-row .top-card .sv-html-portlet,
.quick-access-row .top-card .sv-html-portlet-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
}

.quick-access-row .top-card .sv-fontawesome-portlet,
.quick-access-row .top-card .sv-fontawesome-portlet-content {
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.quick-access-row .top-card i {
  font-size: 32px;
  color: #006241;
  display: block;
  margin: 0 0 22px;
  text-align: center;
}

.quick-access-row .top-card h2,
.quick-access-row .top-card h3,
.quick-access-row .top-card h4 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #163029;
  text-align: center;
}

.quick-access-row .top-card p,
.quick-access-row .top-card .normal {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #555555;
  text-align: center;
}

.quick-access-row .top-card a.dealer-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #006241;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.quick-access-row .top-card a.dealer-btn:hover {
  background: #004f34;
}

@media (max-width: 820px) {
  .quick-access-row {
    flex-direction: column;
    gap: 20px;
  }
}
