/* =========================================
   BLOG CARD (BERITA / type-post) - Golan Event
   Prinsip: layout, jarak, border, dan shadow
   sepenuhnya diatur Blocksy. Kita cuma tambah
   anchor dan style tombol.
   ========================================= */

article.entry-card.type-post {
  --ge-blue: #2b6ff6;
  --ge-ink: #14233b;
  --ge-anchor: rgba(255, 255, 255, 0.9);
  --ge-anchor-size: 18px;

  position: relative;
  overflow: hidden;                         /* potong gambar mengikuti radius dari Blocksy */
}

/* ---------- GAMBAR ---------- */
article.entry-card.type-post .ct-media-container {
  position: relative;
  overflow: hidden;
}

article.entry-card.type-post .ct-media-container img {
  transition: transform 0.6s ease;
}

article.entry-card.type-post:hover .ct-media-container img {
  transform: scale(1.03);
}

/* visual anchor: corner bracket 4 sudut */
article.entry-card.type-post .ct-media-container::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) top left / var(--ge-anchor-size) 1px no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) top left / 1px var(--ge-anchor-size) no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) top right / var(--ge-anchor-size) 1px no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) top right / 1px var(--ge-anchor-size) no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) bottom left / var(--ge-anchor-size) 1px no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) bottom left / 1px var(--ge-anchor-size) no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) bottom right / var(--ge-anchor-size) 1px no-repeat,
    linear-gradient(var(--ge-anchor), var(--ge-anchor)) bottom right / 1px var(--ge-anchor-size) no-repeat;
  filter: drop-shadow(0 0 2px rgba(3, 22, 52, 0.45));
  transition: inset 0.3s ease;
}

article.entry-card.type-post:hover .ct-media-container::before {
  inset: 8px;
}

/* ---------- TOMBOL READ MORE ---------- */
article.entry-card.type-post .entry-button,
article.entry-card.type-post .entry-button:hover {
  background: transparent !important;
  box-shadow: none !important;
}

article.entry-card.type-post .entry-button {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ge-ink);
  text-decoration: none;
  transition: color 0.25s ease;
}

article.entry-card.type-post .entry-button svg {
  display: none;
}

/* circle outline + icon panah diagonal (sama seperti card event) */
article.entry-card.type-post .entry-button::before {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 35, 59, 0.28);
  border-radius: 50%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314233b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

article.entry-card.type-post:hover .entry-button::before {
  border-color: rgba(43, 111, 246, 0.6);
}

article.entry-card.type-post .entry-button:hover {
  color: var(--ge-blue);
}

article.entry-card.type-post .entry-button:hover::before {
  background-color: var(--ge-blue);
  border-color: var(--ge-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
}

/* ---------- MOBILE ---------- */
@media (max-width: 689px) {
  article.entry-card.type-post { --ge-anchor-size: 14px; }
  article.entry-card.type-post .ct-media-container::before { inset: 8px; }
  article.entry-card.type-post:hover .ct-media-container::before { inset: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  article.entry-card.type-post,
  article.entry-card.type-post .ct-media-container img,
  article.entry-card.type-post .ct-media-container::before,
  article.entry-card.type-post .entry-button,
  article.entry-card.type-post .entry-button::before {
    transition: none;
  }
  article.entry-card.type-post:hover .ct-media-container img {
    transform: none;
  }
}