.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(12, 26, 43, 0.08);
}

.news-lead {
  display: grid;
  gap: 16px;
}

.news-lead__image {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f3f6fb;
}

.news-lead__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-lead__content {
  display: grid;
  gap: 10px;
}

.news-grid {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e6e6e6;
}

.news-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f3f6fb;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  display: grid;
  gap: 8px;
}

.news-meta {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-title {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

.news-title a {
  color: inherit;
}

.news-excerpt {
  color: #6b7280;
  line-height: 1.6;
  font-size: 15px;
}

.news-sidebar {
  display: grid;
  gap: 18px;
}

.news-widget {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(12, 26, 43, 0.08);
}

.news-widget h3 {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: #0f172a;
}

#harmonika-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 408px;
  height: 524px;
  z-index: 2147483647;
  display: none;
  background: transparent;
}

#harmonika-chat-widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

iframe[title="Harmonika Chat Widget"],
iframe[src*="wchat.banyu.live"] {
  display: none !important;
  width: 360px !important;
  height: 520px !important;
  right: 18px !important;
  bottom: 18px !important;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  background: transparent !important;
}

body.chat-open iframe[title="Harmonika Chat Widget"],
body.chat-open iframe[src*="wchat.banyu.live"] {
  display: block !important;
}

body.chat-open .harmonika-chat-backdrop,
body.chat-open .chat-widget-backdrop {
  display: none !important;
}

#harmonika-chat-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #1f2a44;
  font-size: 18px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.harmonika-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #4b6fdd;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(20, 27, 53, 0.25);
  cursor: pointer;
  z-index: 2147483647;
}

.harmonika-chat-launcher img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

body.chat-open #harmonika-chat-widget {
  display: block;
}

body.chat-open #harmonika-chat-close {
  display: inline-flex;
}

body.chat-open .harmonika-chat-launcher {
  display: none;
}

@media (max-width: 768px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  #harmonika-chat-widget {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    right: 12px;
    bottom: 12px;
  }

  iframe[title="Harmonika Chat Widget"],
  iframe[src*="wchat.banyu.live"] {
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 120px) !important;
    right: 12px !important;
    bottom: 12px !important;
    border-radius: 14px;
  }

  #harmonika-chat-close {
    top: 10px;
    right: 10px;
  }
}
