/* --- NW Category Blocks Enhancements (CSS only) --- */

/* Category pill (inside widget-title) */
.ct-widget .ct-pill {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #1260ef;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(18, 96, 239, 0.16);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}

.ct-widget .ct-pill:hover {
  background: rgb(0 0 0);
  transform: translateX(2px);
}

/* View more link – make it look like a button */
.ct-widget .ct-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-top: 6px;

  background: #086791;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(18, 96, 239, 0.12);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ct-widget .ct-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0px 16px;
  margin-top: 6px;
  background: #1fa0d9;
  background: #086791;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(18, 96, 239, 0.12);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ct-widget .ct-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 96, 239, 0.18);
}
.ct-widget .ct-more::after {
  content: "→";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.18s ease;
}
.ct-widget .ct-more:hover::after {
  transform: translateX(3px);
}
/*pills of sidebar8/
/* ---------- Pill style for category pill inside each .ct-widget ---------- */
/* Paste into your theme CSS or nw-cat-blocks.css */

.ct-widget .ct-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: #18355a;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 40, 80, 0.06);
  border: 1px solid rgba(14, 40, 90, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* small rounded blue tag inside pill (optional extra) */
/* If you prefer a tiny tag inside the pill, you can use this; otherwise ignore. */
.ct-widget .ct-pill .ct-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 96, 239, 0.08);
  color: #0b4ed6;
  font-weight: 600;
}

/* Hover / focus for accessibility */
.ct-widget .ct-pill:hover,
.ct-widget .ct-pill:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(14, 40, 90, 0.08);
  text-decoration: none;
  outline: none;
}

/* Primary / active pill variant — use this if you want one pill to be highlighted */
.ct-widget .ct-pill--active,
.widget_nw_category_blocks_widget .ct-pill--active {
  background: linear-gradient(90deg, #113a94, #0b63e6);
  color: #ffffff !important;
  border-color: rgba(8, 40, 120, 0.18);
  box-shadow: 0 12px 30px rgba(11, 99, 230, 0.16);
}

/* Smaller pill (if some widgets need compact pills) */
.ct-widget .ct-pill--small {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive: tighten pill on small screens and allow wrapping */
@media (max-width: 520px) {
  .ct-widget .ct-pill {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* If the widget wrapper lacks spacing, ensure pill sits nicely above list */
.ct-widget .widget-title + .ct-pill,
.ct-widget .ct-pill + .ct-list {
  margin-top: 8px;
}

/* Heading & FA icon alignment for widget titles */
.widget-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.widget-title .nw-heading-icon {
  color: #0b63e6;
  font-size: 1.05em;
  line-height: 1;
}

/* If your widget title markup differs (e.g. .ct-widget .widget-title), you can scope it */
.ct-widget .widget-title .nw-heading-icon {
  color: #0b63e6;
}

.widget-title i.fa-solid {
  color: #0b63e6; /* or your brand color */
  font-size: 1.1em; /* scale relative to text */
}

.widget-view-more-div {
  padding: 10px;
  text-align: center;
}

.ct-widget .ct-pill {
  margin-top: 5px;
  border-radius: 5px;
}

/*palceholder search bar*/
/* Search input: normal text 14px, placeholder 12px */
#secondary .wp-block-search__input {
  font-size: 14px; /* when user types */
  line-height: 1.4;
  /* keep other rules you need here (padding, font-family etc) */
}

/* Placeholder: 12px and subtle color */
#secondary .wp-block-search__input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  font-size: 12px;
  color: #999;
  opacity: 1;
}
#secondary .wp-block-search__input::-moz-placeholder {
  /* Firefox 19+ */
  font-size: 12px;
  color: #999;
  opacity: 1;
}
#secondary .wp-block-search__input:-ms-input-placeholder {
  /* IE 10+ */
  font-size: 12px;
  color: #999;
}
#secondary .wp-block-search__input::-ms-input-placeholder {
  /* Edge */
  font-size: 12px;
  color: #999;
}
#secondary .wp-block-search__input::placeholder {
  /* Standard */
  font-size: 12px;
  color: #999;
  opacity: 1;
}

/* --- Category name styled as heading instead of button --- */
.ct-widget .ct-pill {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #18355a; /* heading color */
  padding: 0; /* remove pill padding */
  margin: 10px 0;
  background: none;
  border: none; /* remove borders */
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  gap: 8px; /* keep small gap before line */
}

/* line after the category name */
.ct-widget .ct-pill::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd; /* light divider */
  margin-left: 8px;
}

/* disable hover effect */
.ct-widget .ct-pill:hover,
.ct-widget .ct-pill:focus {
  background: none;
  transform: none;
  box-shadow: none;
  color: #18355a;
}
/* Ensure widget-title allows a full-width block child */
.ct-widget .widget-title {
  display: block; /* let child occupy full width */
  margin: 0 0 8px; /* keep spacing if needed */
  padding: 0; /* adjust if your layout needs padding */
}

/* Make the category link a full-width flex row */
.ct-widget .widget-title .ct-pill {
  display: flex !important; /* use flex so ::after's flex:1 works */
  align-items: center;
  width: 100%; /* take full width of widget-title */
  padding: 0; /* remove pill padding so it looks like heading */
  background: none;
  border: none;
  box-shadow: none;
  color: #18355a; /* heading color */
  font-weight: 700;
  text-decoration: none;
  gap: 10px;
  box-sizing: border-box; /* ensure padding doesn't break width */
}

/* Flexing line that reaches widget edge */
.ct-widget .widget-title .ct-pill::after {
  content: "";
  display: block;
  flex: 1 1 0; /* expand to fill remaining space */
  min-width: 0; /* prevents overflow in some browsers */
  height: 1px;
  background: #223c81;
  margin-left: 7px; /* small gap from text */
}

/* Remove any leftover hover transform so it stays like heading */
.ct-widget .widget-title .ct-pill:hover,
.ct-widget .widget-title .ct-pill:focus {
  transform: none !important;
  box-shadow: none !important;
  background: none !important;
}

a.ct-pill {
  margin-top: 20px !important;
}
.ct-widget .ct-more {
  background: #233d82 !important;
}
