/* =========================================================
   MKJ Featured Grid - Premium Layout (Montserrat / Full Cover)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

.mkj-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Left column: one large card that spans both right tiles */
.mkj-left {
  display: block;
  height: 100%;
}

.mkj-left .mkj-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Right column: two stacked cards */
.mkj-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

/* Core card styling */
.mkj-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px; /* tighter corner */
  min-height: 260px;
  background: #000;
  color: #fff;
}

/* Make images fully cover the card (no empty spaces) */
.mkj-card .mkj-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;       /* ensures full coverage */
  background-position: center;  /* centers subject */
  background-repeat: no-repeat;
  transition: transform .45s ease, opacity .3s ease;
}

/* Dark overlay for text clarity */
.mkj-card .mkj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  z-index: 1;
}

/* Text layer */
.mkj-card .mkj-card-content {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #fff !important;
  max-width: 85%;
  z-index: 2;
}

/* Typography: Montserrat bold for title, lighter for meta */
.mkj-card .mkj-card-title {
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.mkj-card.mkj-main .mkj-card-title {
  font-size: 32px; /* slightly larger on main card */
}

.mkj-card .mkj-card-meta {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.95;
  color: #ffffff !important;
}

/* Link behavior */
.mkj-card a.mkj-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Empty placeholder styling */
.mkj-card.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  min-height: 200px;
  background: #f2f2f2;
  color: #333;
  border: 1px dashed #ddd;
}

/* Hover: gentle zoom */
.mkj-card:hover .mkj-card-bg {
  transform: scale(1.05);
  opacity: 0.9;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .mkj-card .mkj-card-title {
    font-size: 22px;
  }
  .mkj-card.mkj-main .mkj-card-title {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .mkj-featured-grid {
    grid-template-columns: 1fr;
  }
  .mkj-right {
    grid-template-rows: auto;
  }
  .mkj-card {
    min-height: 220px;
    border-radius: 6px;
  }
  .mkj-card .mkj-card-title {
    font-size: 20px;
  }
  .mkj-card.mkj-main .mkj-card-title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .mkj-card .mkj-card-content {
    left: 16px;
    bottom: 16px;
    max-width: 90%;
  }
  .mkj-card .mkj-card-title {
    font-size: 18px;
  }
  .mkj-card.mkj-main .mkj-card-title {
    font-size: 22px;
  }
}
