/* ==========================================================================
   HK Newsletter Widget
   Figma: Hokheng-1 › "Hokheng 2 - Homepage" › "Newsletter Container"
   ========================================================================== */

.hk-newsletter {
  background: rgba(11, 39, 21, 0.9);
  border-radius: 20px;
  overflow: hidden;
  padding: 40px 10px;
  width: 100%;
}

.hk-newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* ── Heading ───────────────────────────────────────────────────────────── */
.hk-newsletter__title {
  font-family: var(--font-heading, 'Noto Serif Thai', serif);
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  margin: 0;
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.hk-newsletter__divider {
  width: 96px;
  height: 4px;
  background: linear-gradient(90deg, #a6a6a6 0%, #ffffff 50%, #a6a6a6 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Subtitle ──────────────────────────────────────────────────────────── */
.hk-newsletter__subtitle {
  font-family: var(--font-body, 'Sarabun', sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* ── Cards grid ────────────────────────────────────────────────────────── */
.hk-newsletter__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  width: 100%;
}

/* ── Individual card ───────────────────────────────────────────────────── */
.hk-newsletter__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.hk-newsletter__card:hover {
  transform: translateY(-4px);
}

/* ── Image wrapper (white frame) ───────────────────────────────────────── */
.hk-newsletter__card-img-wrap {
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 250px;
  height: 346px;
  flex-shrink: 0;
}

.hk-newsletter__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.hk-newsletter__card-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  border-radius: 12px;
}

/* ── Issue label ───────────────────────────────────────────────────────── */
.hk-newsletter__label {
  font-family: var(--font-heading, 'Noto Serif Thai', serif);
  font-size: 20px;
  font-weight: 700;
  color: #c09f2a;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  width: 100%;
}

/* ── Button ────────────────────────────────────────────────────────────── */
.hk-newsletter__btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hk-newsletter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #c09f2a;
  border-radius: 100px;
  padding: 14px 34px;
  font-family: var(--font-body, 'Sarabun', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.hk-newsletter__btn:hover {
  background: #c09f2a;
  color: #1b3a28;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hk-newsletter {
    padding: 32px 12px;
  }

  .hk-newsletter__title {
    font-size: 32px;
  }

  .hk-newsletter__card-img-wrap {
    width: 180px;
    height: 249px;
  }
}
