/* ================================================================
   ECUMEN BLOG DIRECTORY WIDGET — ecumen-blog-widget.css
   Scoped under .ecumen-blog-widget so it never bleeds into the theme.
   ================================================================ */

.ecumen-blog-widget *,
.ecumen-blog-widget *::before,
.ecumen-blog-widget *::after {
  box-sizing: border-box;
}

.ecumen-blog-widget {
  --ebw-green:       #85C445;
  --ebw-green-light: #85C445;
  --ebw-green-hover: #51606E;
  --ebw-dark-bg:     #1e2b1a;
  --ebw-charcoal:    #2c2c2c;
  --ebw-mid-gray:    #666;
  --ebw-light-gray:  #f5f5f3;
  --ebw-border:      #e2e2e2;
  --ebw-white:       #fff;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ebw-charcoal);
}

/* ── TABS ── */
.ecumen-blog-widget .ebw-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--ebw-border);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 8px;
}

.ecumen-blog-widget .ebw-tab-list {
  display: flex;
  flex-wrap: wrap;
}

.ecumen-blog-widget .ebw-tab {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ebw-mid-gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
  padding: 13px 15px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
  line-height: 1;
}

.ecumen-blog-widget .ebw-tab:hover  { color: var(--ebw-green); }
.ecumen-blog-widget .ebw-tab.active { color: var(--ebw-green); border-bottom-color: var(--ebw-green); }

/* ── SEARCH ── */
.ecumen-blog-widget .ebw-search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  margin: 10px 0;
  flex-shrink: 0;
  height: 30px;
  max-width: 100%;
}

.ecumen-blog-widget .ebw-search-input {
  border: none;
  background: none;
  font-size: 13px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ebw-charcoal);
  outline: none;
  width: 150px;
  max-width: 100%;
  line-height: 1;
  position: relative;
  top: -1px;
}

.ecumen-blog-widget .ebw-search-input::placeholder {
  color: #aaa;
}

.ecumen-blog-widget .ebw-search svg {
  flex-shrink: 0;
  color: #aaa;
  width: 13px;
  height: 13px;
}

/* ── SECTION LABEL ── */
.ecumen-blog-widget .ebw-section-label {
  font-size: 14px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ebw-green);
  margin-bottom: 14px;
}

/* ── FEATURED PANEL ── */
.ecumen-blog-widget .ebw-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ebw-dark-bg);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 48px;
  min-height: 300px;
  transition: opacity .25s;
}

.ecumen-blog-widget .ebw-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a3d1c;
}

.ecumen-blog-widget .ebw-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.ecumen-blog-widget .ebw-feat-no-thumb {
  opacity: .2;
}

.ecumen-blog-widget .ebw-featured-tags {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.ecumen-blog-widget .ebw-featured-body {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: var(--ebw-dark-bg);
}

.ecumen-blog-widget .ebw-star-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ebw-green-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ecumen-blog-widget .ebw-star-row svg {
  width: 15px;
  height: 15px;
}

.ecumen-blog-widget .ebw-feat-date {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-bottom: 13px;
}

.ecumen-blog-widget .ebw-featured-body h2 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 5px;
}

.ecumen-blog-widget .ebw-featured-body p {
  font-size: 14px;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ecumen-blog-widget .ebw-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ecumen-blog-widget .ebw-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ebw-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ecumen-blog-widget .ebw-author-name {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
}

.ecumen-blog-widget .ebw-read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #85C445;
  border: none;
  border-radius: 0;
  color: #fff;
  padding: 15px 30px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  width: 200px;
  margin-top: 10px;
}

.ecumen-blog-widget .ebw-read-btn:hover {
  background: #51606E;
  color: #fff !important;
  text-decoration: none;
}

/* ── GRID HEADER ── */
.ecumen-blog-widget .ebw-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.ecumen-blog-widget .ebw-grid-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
}

.ecumen-blog-widget .ebw-count {
  font-size: 12px;
  color: var(--ebw-mid-gray);
}

.ecumen-blog-widget .ebw-sort {
  font-size: 12px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ebw-charcoal);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 6px 30px 6px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1.4;
}

/* ── BLOG GRID ── */
.ecumen-blog-widget .ebw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

/* ── BLOG CARD ── */
.ecumen-blog-widget .ebw-card {
  border: 1px solid var(--ebw-border);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
  cursor: default;
}

.ecumen-blog-widget .ebw-card:hover {
  box-shadow: 0 6px 26px rgba(0,0,0,.11);
  transform: translateY(-3px);
}

.ecumen-blog-widget .ebw-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.ecumen-blog-widget .ebw-card-link:hover,
.ecumen-blog-widget .ebw-card-link:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.ecumen-blog-widget .ebw-card-img {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2a3d1c;
}

.ecumen-blog-widget .ebw-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
}

.ecumen-blog-widget .ebw-card-img .ebw-ico {
  opacity: .2;
  position: relative;
  z-index: 1;
}

.ecumen-blog-widget .ebw-card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}

.ecumen-blog-widget .ebw-card-body {
  padding: 16px 17px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ecumen-blog-widget .ebw-card-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.ecumen-blog-widget .ebw-card-body h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ebw-charcoal);
  margin-bottom: 8px;
}

.ecumen-blog-widget .ebw-card-body p {
  font-size: 13px;
  color: var(--ebw-mid-gray);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.ecumen-blog-widget .ebw-read-more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ebw-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .18s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  padding: 0;
}

.ecumen-blog-widget .ebw-read-more:hover { gap: 9px; }

/* ── TAG PILLS ── */
.ecumen-blog-widget .ebw-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px 3px;
  color: #fff;
  border-radius: 0;
  line-height: 1.4;
  background: #85C445 !important;
}

/* ── LOAD MORE ── */
.ecumen-blog-widget .ebw-load-more-wrap {
  text-align: center;
  padding: 8px 0 4px;
}

.ecumen-blog-widget .ebw-load-more {
  border: 2px solid var(--ebw-charcoal);
  border-radius: 0;
  background: none;
  color: var(--ebw-charcoal);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 38px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.ecumen-blog-widget .ebw-load-more:hover {
  background: var(--ebw-charcoal);
  color: #fff;
}

/* ── EMPTY STATE ── */
.ecumen-blog-widget .ebw-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ebw-mid-gray);
  font-size: 15px;
  grid-column: 1 / -1;
}
