.rte:has(> h3:not(.gray-card h3)) {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* center LEARN MORE buttons */
div.col-lg-3.col-12 {
  text-align: center;
}

div.col-lg-3.col-12 .container {
  text-align: left;
}

.gray-card {
  text-align: center;
}

.gray-card h3,
.gray-card p {
  text-align: left;
}

/* Gray Cards */
.gray-card {
  background-color: #eee;
  padding: 2rem;
  color: #666;
}

.gray-card h3 {
  font-size: 1.8rem;
  color: #222;
  font-weight: 400;
  line-height: 1.2em;
  margin-bottom: 1.4rem;
}

.gray-card p {
  font-size: 1.6rem;
  line-height: 1.4285em;
  margin-bottom: 0;
  width: 100%;
}

.gray-card a.btn-primary {
  color: #666;
  background: transparent;
  border: none;
}
.gray-card a.btn-primary:hover {
  color: white;
  background: transparent;
}

.gray-card {
  height: 200px !important;
}

.gray-card.withButtons { 
  height: 215px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gray-card.extraHeight {
  height: 235px !important;
}

.blank-card {
    opacity: 0;
}

.accordion-button {
  background: #00378c !important;
  color: white !important;
}
.accordion-button:hover {
  background: #042e59 !important;
}
.accordion-button::after {
  filter: invert(1);
}
.accordion .accordion-item {
  border-color: white !important;
}
.rte .btn-primary {
  background: #fff !important;
  color: #00378c !important;
}
.rte .btn-primary:hover {
  color: #fff !important;
  background: #00378c !important;
}

/* Document Listing Components */
section.c-document-listing {
  margin-top: 0 !important;
}

div.c-document-listing--heading {
  display: none !important;
}

.gray-card a.btn-primary {
  margin-top: 10px;
}

.c-authorable-row {
  padding-top: 0 !important;
}


/* Media Queries */
@media only screen and (max-width: 1399px) {
  .gray-card {
    height: 28rem !important;
  }
}

@media only screen and (max-width: 1199px) {
  /* ISO Cards*/
  .gray-card.iso {
    height: 32rem !important;
  }

  .gray-card {
    height:32rem !important;
  }
}

@media only screen and (max-width: 991px) {
  /* All Cards */
  .gray-card,
  .gray-card.iso {
    height: auto !important;
  }
  .blank-card {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  /* padding below LEARN MORE button */
  div.col-lg-3.col-12 a.btn {
    margin-bottom: 0rem;
  }

  /* spacing out DLCs */
  .accordion.accordion-flush.c-document-listing--accordion.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 5rem !important;
  }
}

@media (max-width: 500px) {
  /* spacing out DLCs */
  .accordion.accordion-flush.c-document-listing--accordion.my-5 {
    margin-top: 0rem !important;
    margin-bottom: 6rem !important;
  }
}