/**
 * @file
 * Pro Card styles for church nodes.
 */

/* Pro Card Container */
.church-pro-card {
  border: 2px solid #cccccc; /* Grey border */
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 20px;
}

.church-pro-card__wrapper {
  display: flex;
  flex-direction: row;
  /* Removed min-height - let content determine height */
}

/* Left: Image Section (30%) */
.church-pro-card__image {
  width: 30%;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
  border-right: 2px solid #cccccc; /* Grey border on the right of image */
  align-self: flex-start; /* Align to top */
}

.church-pro-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 150px; /* Limit image height */
}

.church-pro-card__image-placeholder {
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

/* Right: Content Section (70%) */
.church-pro-card__content {
  width: 70%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* Removed justify-content: space-between - let content flow naturally */
}

/* Church Title */
.church-pro-card__title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.church-pro-card__title a {
  color: #0097db; /* Site link blue color */
  text-decoration: none;
}

.church-pro-card__title a:hover {
  text-decoration: underline;
}

/* Pastor Name */
.church-pro-card__pastor {
  color: #333333;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Footer Section - Address and Button in two columns */
.church-pro-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px; /* Consistent spacing from pastor name */
  padding-top: 0; /* Removed extra padding */
}

.church-pro-card__address {
  color: #666666;
  font-size: 14px;
  flex: 1;
  max-width: 250px;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Church Profile Button */
.church-pro-card__button {
  flex-shrink: 0;
}

.church-pro-card__profile-btn {
  display: inline-block;
  padding: 6px 20px; /* Reduced top and bottom padding */
  background-color: #7db500; /* Green background */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: 2px solid #7db500;
}

.church-pro-card__profile-btn:hover {
  background-color: #6a9a00; /* Darker green on hover */
  color: #ffffff;
  text-decoration: none;
  border-color: #6a9a00;
}

/* Responsive Design */
@media (max-width: 768px) {
  .church-pro-card__wrapper {
    flex-direction: column;
  }
  
  .church-pro-card__image {
    width: 100%;
    height: 200px;
  }
  
  .church-pro-card__content {
    width: 100%;
  }
  
  .church-pro-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .church-pro-card__button {
    width: 100%;
  }
  
  .church-pro-card__profile-btn {
    width: 100%;
    text-align: center;
  }
}
