/* Base Card Styles */
.ibh-card {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

/* Gradient overlay */
.ibh-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
  transition: background 0.4s ease;
  z-index: 1;
}

.ibh-card:hover .ibh-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

/* Top bar styles */
.ibh-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.ibh-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ibh-tag {
  color: #fff;
  border: 1px solid #fff;
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.ibh-arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(50, 50, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.ibh-arrow-btn svg, .ibh-arrow-btn i {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ibh-card:hover .ibh-arrow-btn {
  background: rgba(80, 80, 80, 0.8);
  transform: translate(2px, -2px);
}

/* Bottom content styles */
.ibh-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 32px 28px 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.ibh-card-title {
  color: #fff;
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Expandable details container using CSS Grid for smooth height transition */
.ibh-card-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

.ibh-card:hover .ibh-card-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.ibh-details-inner {
  overflow: hidden;
}

.ibh-card-divider-wrapper {
  overflow: hidden;
  margin: 16px 0;
  width: 100%;
}

.ibh-card-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0;
  width: 0;
  transition: width 0.4s ease-in-out;
}

.ibh-card:hover .ibh-card-divider {
  width: 100%;
}

.ibh-card-text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
