/* === Hover Boxes Grid Styling === */

/* Grid system */
.hbg-grid {
  display: grid;
  gap: 24px;
}
.hbg-cols-1 { grid-template-columns: repeat(1,1fr) }
.hbg-cols-2 { grid-template-columns: repeat(2,1fr) }
.hbg-cols-3 { grid-template-columns: repeat(3,1fr) }
.hbg-cols-4 { grid-template-columns: repeat(4,1fr) }
.hbg-cols-5 { grid-template-columns: repeat(5,1fr) }
.hbg-cols-6 { grid-template-columns: repeat(6,1fr) }

@media (max-width:1024px){
  .hbg-grid{ grid-template-columns: repeat(2,1fr) }
}
@media (max-width:640px){
  .hbg-grid{ grid-template-columns: 1fr }
}

/* Card style */
.hbg-card {
  position: relative;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hbg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.hbg-card-image img {
  display: block;
  width: 100%;
  height: auto;
}
.hbg-placeholder {
  width: 100%;
  padding-top: 56%;
  background: #f5f5f5;
}

/* Text styling */
.hbg-card-content {
  padding: 18px 16px 22px;
  text-align: center;
}
.hbg-title {
  margin: 6px 0 8px;
  font-family: 'Rufina', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d0f02;
  padding-left: 15px;
  padding-right: 15px;
}
.hbg-subtitle {
  margin: 0;
  font-family: 'Urbanist', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: rgb(85, 82, 79);
  padding-left: 15px;
  padding-right: 15px;
}
.hbg-desc {
  font-family: 'Urbanist', sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  color: rgb(85, 82, 79);
  margin-bottom: 14px;
  max-width: 90%;
}

/* Hover overlay */
.hbg-card-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 22px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .30s ease, opacity .30s ease;
  border-radius: 12px;
}
.hbg-card:hover .hbg-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.hbg-icons .dashicons {
  font-size: 18px;
}

/* === Social Icons Styling (Fixed) === */
.hbg-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Container for icons */
.hbg-icons {
  display: flex;
  gap: 12px;                /* spacing between icons */
  justify-content: center;   /* center icons horizontally */
  margin-top: 15px;
}

/* Individual icon links */
.hbg-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;               /* increase size if needed */
  height: 40px;
  border-radius: 8px;        /* rounded corners */
  background-color: #333;    /* default dark background */
  color: #fff;               /* default icon color */
  transition: all 0.3s ease;
  text-decoration: none;     /* remove underline */
}

/* Hover effect for icons */
.hbg-icons a:hover {
  background-color: #ffc704; /* yellow on hover */
  color: #000;               /* black icon on hover */
}

/* SVG icons inside links */
.hbg-icons a svg {
  width: 20px;               /* icon size */
  height: 20px;
  fill: currentColor;         /* matches link color */
  transition: fill 0.3s ease;
}

