/* Dynamic Colors */
.blue-theme.contact-info-wrapper {
  --icon-color: var(--blue-2);
  --text-color: var(--blue-2);
  --link-hover-color: var(--blue-4);
}

.green-theme.contact-info-wrapper {
  --icon-color: var(--green-2);
  --text-color: var(--green-2);
  --link-hover-color: var(--green-4);
}

.gold-theme.contact-info-wrapper {
  --icon-color: var(--gold-1);
  --text-color: var(--gold-1);
  --link-hover-color: var(--gold-4);
}

.brown-theme.contact-info-wrapper {
  --icon-color: var(--brown-3);
  --text-color: var(--brown-3);
  --link-hover-color: var(--brown-4);
}

.gray-theme.contact-info-wrapper {
  --icon-color: var(--gray-2);
  --text-color: var(--gray-2);
  --link-hover-color: var(--gray-8);
}

.contact-info-wrapper {
  --icon-color: var(--site-secondary);
  --text-color: var(--site-secondary);
  --link-hover-color: var(--site-quaternary);
}

.contact-info-container {
  font-family: "Roboto Flex";
  border-radius: 4px;
  border: 1px solid var(--gray-7, #ddd);
  background: var(--white, #fff);
  padding: 24px;
  margin: 0 0 16px 0;
  height: 100%;
}

.contact-info-container h2 {
  margin: 0 0 8px 0;
  color: var(--gray-1);
}

.department-directory .contact-info-wrapper h2.contact-info-heading {
  display: inline-block !important;
  color: var(--gray-1);
  font-family: "Roboto Flex";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 140% */
  margin: 0 0 8px 0 !important;
}

.department-directory .contact-info-wrapper h2.contact-info-heading:after {
  display: none;
}

.contact-info-subheading-contact {
  color: var(--gray-2, #333);
  font-family: "Roboto Flex";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px; /* 137.5% */
}

.contact-info-subheading-title {
  color: var(--gray-4, #555);
  font-family: "Roboto Flex";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 157.143% */
  margin-bottom: 20px;
}

.column-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  border-bottom: 1px solid var(--gray-6, #ccc);
  padding: 8px;
  gap: 8px;
  transition: background 150ms;
}

.column-wrapper:has(.column .col-one a),
.column-wrapper:has(.column .col-two a) {
  cursor: pointer;
}
.column-wrapper:has(.column .col-one a):hover,
.column-wrapper:has(.column .col-two a):hover {
  background: var(--link-hover-color);
}

.column-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /* margin-right: 10px; */
  width: 20px;
  height: 20px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.column-icon i {
  font-size: 20px !important;
  color: var(--icon-color) !important;
}

.column {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.column .col-heading {
  width: 33%;
  color: var(--gray-2, #333);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 133.333% */
  align-self: flex-start;
}

.column p {
  font-family: "Roboto Flex";
  margin: 0;
}

.column a::after {
  display: none;
}

.column .col-one {
  width: 66%;
  text-align: right;
  color: var(--gray-3, #444);
  text-align: right;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 128.571% */
}

.column.two-columns {
  flex-wrap: wrap;
}

.column .col-two {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.column .col-two p {
  margin: 4px 0;
}

.cta-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.cta-button {
  display: inline-flex;
  border-radius: 4px;
  border: 1px solid var(--text-color);
  color: var(--text-color) !important;
  font-family: "Roboto Flex";
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px; /* 146.667% */
  text-decoration: none !important;
  padding: 4px 12px;
  transition: background 150ms, color 250ms, box-shadow 150ms;
}

.cta-button:after {
  display: none;
}

.cta-button:focus,
.cta-button:hover {
  box-shadow: 0 0 0 1px var(--site-secondary);
}

.flex-center .layout__region--content {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Distribute items evenly with space between */
  gap: 10px; /* Add spacing between items */
}

.contact-info-wrapper {
  max-width: 600px;
}

.flex-center .layout__region--content > .contact-info-wrapper {
  display: flex;
  width: 100%;
  max-width: 600px;
  flex-direction: column; /* Stack items vertically */
  flex: 1 1 calc(33.333% - 10px); /* Allow items to grow, shrink, and take up 1/3 of the width minus the gap */
  box-sizing: border-box; /* Include padding and border in width calculation */
}

@media (max-width: 1280px) {
  .flex-center .layout__region--content > .contact-info-wrapper {
    flex: 1 1 calc(50% - 10px); /* Adjust to 2 items per row on smaller screens */
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .flex-center .layout__region--content > .contact-info-wrapper {
    flex: 1 1 100%; /* Adjust to 1 item per row on very small screens */
    max-width: 100%;
  }
}
