/* Visual Card Base */
.tmc-6669a45c-wrapper {
  font-family: inherit;
  height: 100%; /* Stretch wrapper to full grid cell height */
}

.tmc-6669a45c-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.tmc-6669a45c-card:hover {
  transform: translateY(-4px);
}

.tmc-6669a45c-img-wrapper {
  width: 100%;
  overflow: hidden;
}

.tmc-6669a45c-img {
  width: 100%;
  height: 330px; /* Reduced default height so cards are shorter and wider */
  object-fit: cover;
  object-position: center;
  display: block;
}

.tmc-6669a45c-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px;
}

.tmc-6669a45c-text-group {
  margin-bottom: 24px;
  flex-grow: 1; /* Allow this to grow to push footer down */
}

.tmc-6669a45c-name {
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  color: #000000;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.tmc-6669a45c-title {
  font-weight: 700;
  text-transform: uppercase;
  color: #e22626;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.tmc-6669a45c-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* Aligns row to bottom consistently */
  border-top: 1px solid #eeeeee;
  padding-top: 16px;
}

.tmc-6669a45c-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tmc-6669a45c-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e22626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.tmc-6669a45c-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none; /* Make sure SVG remains thin diagonal line shape */
}

.tmc-6669a45c-card:hover .tmc-6669a45c-arrow {
  transform: scale(1.1) rotate(45deg); /* Optional slight hover effect matching the path direction */
}

/* Modal Backdrop */
body.admin-bar .tmc-6669a45c-modal {
  top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .tmc-6669a45c-modal {
    top: 46px;
  }
}

.tmc-6669a45c-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tmc-6669a45c-modal.is-active {
  display: flex;
  opacity: 1;
}

.tmc-6669a45c-modal-body {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 880px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: tmcModalSlide_6669a45c 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tmcModalSlide_6669a45c {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tmc-6669a45c-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 300;
  color: #333333;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s ease;
}

.tmc-6669a45c-close:hover {
  color: #e22626;
}

/* Modal Layout */
.tmc-6669a45c-modal-grid {
  display: flex;
  flex-direction: row;
  max-height: 85vh;
  overflow: hidden;
  width: 100%;
}

.tmc-6669a45c-modal-img-wrapper {
  flex-shrink: 0;
  flex-basis: 45%;
  background: #f8f8f8;
}

.tmc-6669a45c-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmc-6669a45c-modal-details {
  flex-grow: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.tmc-6669a45c-modal-name {
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  font-size: 2rem;
  color: #000000;
  line-height: 1.1;
}

.tmc-6669a45c-modal-title {
  font-weight: 700;
  text-transform: uppercase;
  color: #e22626;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.tmc-6669a45c-modal-bio {
  color: #444444;
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .tmc-6669a45c-modal-grid {
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .tmc-6669a45c-modal-img-wrapper {
    width: 100%;
    flex-basis: auto;
    height: 300px;
  }

  .tmc-6669a45c-modal-img {
    height: 300px;
  }

  .tmc-6669a45c-modal-details {
    padding: 24px;
    overflow-y: visible;
  }

  .tmc-6669a45c-modal-name {
    font-size: 1.6rem;
  }
}
