/* ============================================================
   MODULE: Feeds — 3 columns inside ONE panel (no touching)
============================================================ */

.module--feeds {
  background: var(--bt-surface);
}

/* Outer panel wraps all columns */
.module--feeds .container > .row > .col-12 > .row {
  background: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  box-shadow: var(--bt-shadow-sm);
  padding: var(--bt-space-8);

  /* Bootstrap gutter control */
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

/* Neutralise per-column "card" styles */
.module--feeds .col-12.col-lg-4 {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Desktop: internal padding + inset divider */
@media (min-width: 992px) {
  .module--feeds .col-12.col-lg-4 {
    position: relative;
    padding-inline: 1.25rem; /* more breathing room */
  }

  /* Keep outer edges aligned to panel padding */
  .module--feeds .col-12.col-lg-4:first-child { padding-left: 0; }
  .module--feeds .col-12.col-lg-4:last-child  { padding-right: 0; }

  /* Divider inset slightly so it never hits text */
  .module--feeds .col-12.col-lg-4:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    right: 0.25rem;          /* inset from the edge */
    width: 1px;
    background: var(--bt-border);
    pointer-events: none;
  }
}

/* Mobile: stacked columns spacing */
@media (max-width: 991.98px) {
  .module--feeds .col-12.col-lg-4 {
    margin-bottom: var(--bt-space-8);
  }
  .module--feeds .col-12.col-lg-4:last-child {
    margin-bottom: 0;
  }
}

/* Column titles */
.module--feeds .title {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--bt-space-4);
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);

  /* Safety padding so long titles never “kiss” the divider */
  padding-right: 0.75rem;
}

/* WP RSS Aggregator list styling */
.module--feeds .wp-rss-aggregator { margin-top: var(--bt-space-3); }

.module--feeds .wpra-item-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.module--feeds .wpra-item {
  padding: var(--bt-space-4) 0;
  border-top: 1px solid var(--bt-border);
}

.module--feeds .wpra-item:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Link styles */
.module--feeds .wpra-item > a {
  display: inline-block;
  font-weight: 600;
  color: var(--bt-text);
  text-decoration: none;
  text-underline-offset: 0.15em;

  /* Prevent touching divider on very long headlines */
  padding-right: 0.75rem;
}

.module--feeds .wpra-item > a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Meta line */
.module--feeds .wprss-feed-meta {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--bt-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.module--feeds .wprss-feed-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.module--feeds .feed-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.module--feeds .feed-source a:hover { opacity: 0.85; }

.module--feeds .feed-date,
.module--feeds .feed-author { opacity: 0.9; }

/* Mobile padding tweak */
@media (max-width: 575.98px) {
  .module--feeds .container > .row > .col-12 > .row {
    padding: var(--bt-space-6);
  }
}