/* FXPayback Company News Plugin Styles */
/* fxp-news.css v1.0 */

/* ── TABS ── */
.fxp-tabs-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 2px solid #e2ede7;
  padding-bottom: 0;
}
.fxp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px 8px 0 0;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #5a7566;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  transition: color 0.15s, background 0.15s;
  margin-bottom: -2px;
  position: relative;
}
.fxp-tab:hover {
  color: #1a8f47;
  background: #f0faf4;
  text-decoration: none;
}
.fxp-tab.active {
  color: #0e1a14;
  background: #ffffff;
  border-color: #d4e8db;
  border-bottom-color: #ffffff;
}
.fxp-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  background: #e8f5ee;
  color: #1a8f47;
}
.fxp-tab.active .fxp-count {
  background: #1a8f47;
  color: #ffffff;
}

/* ── GRID ── */
.fxp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .fxp-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .fxp-news-grid { grid-template-columns: 1fr; }
  .fxp-tabs-bar { gap: 4px; }
}

/* ── CARD ── */
.fxp-news-card {
  background: #ffffff;
  border: 1px solid #d4e8db;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.fxp-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 26, 20, 0.09);
}
.fxp-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0faf4;
}
.fxp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.fxp-news-card:hover .fxp-card-img {
  transform: scale(1.03);
}
.fxp-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0faf4, #e0f3e8);
}
.fxp-placeholder-icon {
  font-size: 36px;
  opacity: 0.5;
}
.fxp-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fxp-card-cat {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a8f47;
  background: #f0faf4;
  border: 1px solid #d4e8db;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 10px;
  width: fit-content;
}
.fxp-card-cat:hover {
  background: #1a8f47;
  color: #ffffff;
  text-decoration: none;
}
.fxp-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0e1a14;
  line-height: 1.35;
  margin: 0 0 10px;
  flex: 1;
}
.fxp-card-title a {
  color: inherit;
  text-decoration: none;
}
.fxp-card-title a:hover {
  color: #1a8f47;
}
.fxp-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #5a7566;
  line-height: 1.65;
  margin: 0 0 16px;
}
.fxp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e8f2ec;
  padding-top: 12px;
  margin-top: auto;
}
.fxp-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7a9485;
  font-family: 'DM Sans', sans-serif;
}
.fxp-read-more {
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #1a8f47;
  text-decoration: none;
  transition: gap 0.15s;
}
.fxp-read-more:hover {
  text-decoration: underline;
}

/* ── PAGINATION ── */
.fxp-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.fxp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d4e8db;
  background: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #5a7566;
  text-decoration: none;
  transition: all 0.15s;
}
.fxp-page-btn:hover,
.fxp-page-btn.active {
  background: #1a8f47;
  border-color: #1a8f47;
  color: #ffffff;
  text-decoration: none;
}

/* ── EMPTY STATE ── */
.fxp-empty {
  text-align: center;
  padding: 64px 24px;
  color: #7a9485;
}
.fxp-empty span {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.fxp-empty p {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
}
