/**
 * Project Card Widget Styles
 */

.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  min-height: 400px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

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

.project-category {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #003361;
  margin: 0 0 8px 0;
  text-transform: capitalize;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #828282;
  margin-bottom: 16px;
}

.project-location svg {
  flex-shrink: 0;
}

.project-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #003361;
  margin: 0 0 24px 0;
}

/* --- BUTTON & FOOTER STYLES --- */

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 15px;
}

.project-btn {
  background-color: #009a17;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  height: 36px;
  width: 36px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.project-btn .btn-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  transition: all 0.3s ease;
  margin-left: 0;
}

.project-btn .btn-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Hover States for Button */
.project-card:hover .project-btn {
  width: 100%;
  justify-content: space-between;
  padding: 0 2px 0 16px;
}

.project-card:hover .project-btn .btn-text {
  opacity: 1;
  max-width: 150px;
}

.project-card:hover .project-btn .btn-icon {
  transform: translateX(2px);
}

/* KTI logo positioning */
.project-brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  max-width: 120px;
}

/* Image logo styling */
.custom-brand-logo {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

/* Fallback subtext styling */
.fallback-subtext {
  font-size: 9px;
  color: #009a17;
  font-weight: 700;
  margin-top: 2px;
}
