/* AI PULSE NEWSLETTER SLIDER CSS */

  /*
  Elementor HTML Widget version — pure HTML/CSS/JS, no PHP.
  Paste this whole block into an Elementor "HTML" widget.
  Requires news-feed-backend.php to be active as a plugin (or in
  functions.php) so window.NEWSFEED_REST_BASE gets injected in <head>.
*/

.rnd-ai-pulse-slider .app { width: 100%; max-width: 1200px; margin: 0 auto; }
.rnd-ai-pulse-slider .panel { background: #ffffff; border: 1px solid #e2e2e2; border-radius: 15px; padding: 12px 15px; box-sizing: border-box; margin-bottom: 12px; position: relative; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.rnd-ai-pulse-slider .news-panel { padding: 5px; }
.rnd-ai-pulse-slider .section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #1a1a1a; margin: 0 0 8px; justify-self: start; }
.rnd-ai-pulse-slider .week-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; }
.rnd-ai-pulse-slider .week-header-row .section-title { margin: 0; flex: 1 1 auto; }
.rnd-ai-pulse-slider .week-slider-nav { display: flex; gap: 10px; justify-content: center; align-item: center; }
.rnd-ai-pulse-slider .week-nav-btn { width: 26px; height: 26px; border: 1px solid #d8d8d8; background: #fff; border-radius: 50%; font-size: 14px; cursor: pointer; color: #333; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rnd-ai-pulse-slider .week-nav-btn:hover { background: #f5f5f5; }
.rnd-ai-pulse-slider .week-nav-btn:disabled { opacity: 0.35; cursor: default; }
.rnd-ai-pulse-slider .week-nav-btn:disabled:hover { background: #fff; }
.rnd-ai-pulse-slider .calendar-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ff0000; background: #ff0000; cursor: pointer; color: #fff; flex-shrink: 0; padding: 0; }
.rnd-ai-pulse-slider .calendar-btn:hover { background: #d32f2f; }
.rnd-ai-pulse-slider .jump-popover { position: absolute; right: 16px; top: 44px; background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; padding: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.10); z-index: 10; display: none; width: 220px; }
.rnd-ai-pulse-slider .jump-popover.is-open { display: block; }
.rnd-ai-pulse-slider .jump-popover-row { display: flex; gap: 8px; }
.rnd-ai-pulse-slider .jump-popover select { flex: 1; font-family: inherit; font-size: 13px; padding: 8px; border: 1px solid #d8d8d8; border-radius: 8px; background: #fafafa; }
.rnd-ai-pulse-slider .week-chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scroll-behavior: smooth; scrollbar-width: none; }
.rnd-ai-pulse-slider .week-chip-row::-webkit-scrollbar { display: none; }
.rnd-ai-pulse-slider .week-chip { flex: 0 0 auto; /*flex: 0 0 100%;*/  padding: 7px 16px; border-radius: 999px; border: 1px solid #404248; background: #404248; font-size: 12px; font-weight: 600; white-space: nowrap; /* keep the label on one line */ color: #fff; text-transform: uppercase; text-align: center; cursor: pointer; position: relative; }
.rnd-ai-pulse-slider .week-chip:hover { background: rgba(0, 0, 0, 0.9); }
.rnd-ai-pulse-slider .week-chip.is-active { background: #d32f2f; border-color: #d32f2f; }
.rnd-ai-pulse-slider .week-chip.has-posts::after { content: '';position: absolute; top: 4px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.rnd-ai-pulse-slider .week-chip.is-active.has-posts::after { background: #fff; }
.rnd-ai-pulse-slider .news-carousel { position: relative; min-height: 60px; }
.rnd-ai-pulse-slider .news-viewport { overflow: hidden; }
.rnd-ai-pulse-slider .news-track { display: flex; transition: transform 0.3s ease; }
.rnd-ai-pulse-slider .news-card { flex: 0 0 87%; margin-right: 3%; box-sizing: border-box; padding: 12px; background: #fafafa; border: 1px solid #ececec; border-radius: 10px; }
.rnd-ai-pulse-slider .news-source { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #2563eb; margin-bottom: 6px; }
.rnd-ai-pulse-slider .news-image { position: relative; width: 100%; height: 100px; aspect-ratio: 16 / 9; border-radius: 8px; margin-bottom: 10px; background: #e5e7eb center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; font-weight: 500; box-sizing: border-box; }
.rnd-ai-pulse-slider .news-source-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #ffffff; background: #d32f2f; border-radius: 6px; padding: 4px 10px; }
.rnd-ai-pulse-slider .calendar-btn-wrapper { margin-left: auto; }
.rnd-ai-pulse-slider .calendar-tooltip { position: absolute; left: calc(100% + 10px); transform: translateY(-50%); background: rgba(0, 0, 0, 0.9); color: #fff; padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s ease; pointer-events: none; z-index: 1000; }
.rnd-ai-pulse-slider .calendar-tooltip::before { content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-right-color: #333; }
.rnd-ai-pulse-slider .calendar-btn-wrapper:hover .calendar-tooltip { opacity: 1; visibility: visible; }
.rnd-ai-pulse-slider .news-headline { font-size: 15px; font-weight: 600; color: #1a1a1a; margin: 0 0 6px; line-height: 1.35; }
.rnd-ai-pulse-slider .news-desc-block { margin-bottom: 10px; }
.rnd-ai-pulse-slider .news-desc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #d32f2f; margin: 0 0 3px; }
.rnd-ai-pulse-slider .news-desc-block .news-snippet { margin: 0; }
.rnd-ai-pulse-slider .news-link-btn { font-size: 13px; font-weight: 600; color: #fff; background: #d32f2f; border: none; border-radius: 8px; padding: 8px 14px; text-decoration: none; cursor: pointer; margin-bottom: 10px; margin-left: 20px; white-space: no-wrap; }
.rnd-ai-pulse-slider .news-link-btn:hover { background: rgba(227, 6, 6, 0.9); color: #fff; }
.rnd-ai-pulse-slider .news-date { font-size: 11px; color: #666; }
.rnd-ai-pulse-slider .news-tags {  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.rnd-ai-pulse-slider .news-tag { font-size: 12px; font-weight: 600; color: #ffffff; background: #000000; border-radius: 999px; padding: 3px 10px; }
.rnd-ai-pulse-slider .news-empty { padding: 20px 8px; text-align: center; color: #666; font-size: 14px; }
.rnd-ai-pulse-slider .news-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.rnd-ai-pulse-slider .news-nav-btn { width: 30px; height: 30px; border: 1px solid #d8d8d8; background: #404248; border-radius: 25%; font-size: 20px; cursor: pointer; color: #fff; 
 font-weight: 700; display: flex; justify-content: center; align-items: center; padding: 0; line-height: 1; }
.rnd-ai-pulse-slider .news-nav-btn:hover { background: #404248; }
.rnd-ai-pulse-slider .news-progress { font-size: 12px; color: #666; }
/* AI PULSE NEWSLETTER SLIDER CSS */

/** LEFT RIGHT LAYOUT */
.rnd-ai-pulse-slider .news-panel-horizontal { padding: 16px; }
.rnd-ai-pulse-slider .news-carousel-horizontal { position: relative; min-height: 60px; }
.rnd-ai-pulse-slider .news-viewport-horizontal { overflow: hidden; }
.rnd-ai-pulse-slider .news-track-horizontal { display: flex; transition: transform 0.3s ease; }
.rnd-ai-pulse-slider .news-card-horizontal { flex: 0 0 100%; box-sizing: border-box; display: flex; gap: 20px; padding: 16px; background: #fafafa; border: 1px solid #ececec; border-radius: 10px; align-items: stretch; }
.rnd-ai-pulse-slider .news-image-horizontal { position: relative; flex: 0 0 40%; min-width: 0; border-radius: 8px; background: #e5e7eb center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; font-weight: 500; box-sizing: border-box; width: 437.11px; height: 331.5px; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; }
.rnd-ai-pulse-slider .news-image-horizontal:hover { transform: scale(1.06);  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);  z-index: 2; }
.rnd-ai-pulse-slider .news-content-horizontal { flex: 1 1 60%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.rnd-ai-pulse-slider .news-tags-actions-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.rnd-ai-pulse-slider .news-tags-actions-row .news-tags { margin: 0; }
.rnd-ai-pulse-slider .news-tags-actions-row .news-link-btn { margin: 0; }
.rnd-full-post-preview { max-width: 800px; }
.rnd-preview-category { font-size: 13px; color: #666; margin-bottom: 12px; }
.rnd-preview-image { margin-bottom: 20px; }
.rnd-preview-image img { width: 100%; border-radius: 10px; }
.rnd-preview-desc-block { margin-bottom: 20px; }
.rnd-preview-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(202, 33, 41, 1); margin: 0 0 6px; }
.rnd-preview-content { font-size: 16px; line-height: 1.6; }
.rnd-preview-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rnd-preview-tag { font-size: 13px; font-weight: 600; color: #fff; background: #000; border-radius: 999px; padding: 4px 12px; }
.rnd-preview-btn { display: inline-block; font-size: 14px; font-weight: 600; color: #fff; background: rgba(227, 6, 6, 0.9); border-radius: 8px; padding: 10px 20px; text-decoration: none; }
.rnd-preview-desc-block { padding-top: 50px; }
@media (max-width: 640px) {
  .rnd-ai-pulse-slider .news-card-horizontal { flex-direction: column; }
  .rnd-ai-pulse-slider .news-image-horizontal { flex-basis: auto; aspect-ratio: 16 / 9; width: 100%; }
}
/** LEFT RIGHT LAYOUT */




.rnd-ai-pulse-slider .week-mobile-nav-btn {
  display: none; /* hidden on desktop — the full 5-chip strip is used instead */
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  align-items: center;
  justify-content: center;
}
.rnd-ai-pulse-slider .week-mobile-nav-btn:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 640px) {
  .rnd-ai-pulse-slider .week-slider-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .rnd-ai-pulse-slider .week-mobile-nav-btn {
    display: flex; /* now visible on mobile */
  }
  .rnd-ai-pulse-slider .week-chip-row {
    flex: 1 1 auto;
    overflow: hidden; /* no horizontal scroll needed anymore */
  }
  .rnd-ai-pulse-slider .week-chip {
    display: none; /* hide every chip except the active one */
    width: 100%;
    text-align: center;
  }
  .rnd-ai-pulse-slider .week-chip.is-active {
    display: block;
  }
}

@media (max-width: 640px) {
  .rnd-ai-pulse-slider .news-track-horizontal {
    width: 100%;
  }
  .rnd-ai-pulse-slider .news-card-horizontal {
    flex: 0 0 100% !important;
    max-width: 100%;
    margin-right: 0;
  }
}

