/* NextWise Blog Hub 1.1.6 | Scoped to plugin markup. No framework or external font requests. */
.nwp-blog {
  --nwp-navy: #111e3a;
  --nwp-muted: #687b99;
  --nwp-orange: #ff510e;
  --nwp-orange-dark: #f04400;
  --nwp-line: #e9edf3;
  --nwp-cream: #fff9f5;
  width: 100%;
  max-width: none;
  display: flow-root;
  margin: 0;
  color: var(--nwp-navy);
  background: #fff;
  font-family: "Prompt", "Noto Sans Thai", Tahoma, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
.nwp-blog, .nwp-blog * { box-sizing: border-box; }
.nwp-blog :is(h1,h2,h3,p) { margin: 0; padding: 0; line-height: inherit; letter-spacing: normal; }
.nwp-blog :is(a,a:visited) { color: inherit; text-decoration: none; }
.nwp-blog a:focus-visible, .nwp-blog button:focus-visible, .nwp-blog input:focus-visible {
  outline: 3px solid #2d77e6; outline-offset: 3px;
}
.nwp-blog button, .nwp-blog input { font: inherit; }
.nwp-blog__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.nwp-blog__container { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.nwp-blog__icon { flex: none; display: inline-block; width: 20px; height: 20px; vertical-align: middle; }

/* Extend the cream background upward without moving the hero headline or content. */
.nwp-blog__hero {
  position: relative; overflow: hidden;
  background: #fffaf6;
  margin-top: -20px;
  padding: 71px 20px 39px;
  text-align: center;
}
.nwp-blog__hero-inner { max-width: 870px; margin: 0 auto; position: relative; z-index: 1; }
.nwp-blog__hero h1 { font-size: clamp(30px, 4.1vw, 54px); font-weight: 800; line-height: 1.24; letter-spacing: -.9px; }
.nwp-blog__hero h1 span { color: var(--nwp-orange); }
.nwp-blog__hero p { margin-top: 8px; color: #394f71; font-size: clamp(15px, 1.7vw, 20px); font-weight: 400; line-height: 1.65; }
.nwp-blog__search {
  margin: 24px auto 15px; display: flex; align-items: center; gap: 13px;
  height: 58px; width: min(640px, 100%); padding: 6px 6px 6px 18px;
  background: #fff; border: 1px solid #eef0f3; border-radius: 15px;
  box-shadow: 0 8px 29px rgba(53,44,35,.07);
}
.nwp-blog__search > .nwp-blog__icon { width: 22px; height: 22px; }
.nwp-blog__search input {
  min-width: 0; flex: 1; width: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; color: var(--nwp-navy); font-size: 14px;
}
.nwp-blog__search input::placeholder { color: #9ca9bc; opacity: 1; }
.nwp-blog__search input:focus-visible { outline: 2px solid #2d77e6 !important; outline-offset: 0; border-radius: 4px; }
.nwp-blog__search button {
  flex: none; height: 44px; min-width: 118px; padding: 0 24px; border: none;
  color: white !important; background: var(--nwp-orange); font-size: 15px; font-weight: 600;
  border-radius: 9px; cursor: pointer; transition: background-color .2s ease;
}
.nwp-blog__search button:hover { background: var(--nwp-orange-dark); }
.nwp-blog__hero-topics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.nwp-blog__hero-topics a {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fff; background: rgba(255,255,255,.8); border-radius: 999px;
  padding: 7px 16px; min-height: 36px; font-size: 12px; font-weight: 500; color: var(--nwp-orange);
  transition: background-color .2s ease, border-color .2s ease;
}
.nwp-blog__hero-topics a:hover { background: white; border-color: #ffcbac; }

/* Section titles */
.nwp-blog__section-heading { display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.nwp-blog__section-heading h2 { font-weight: 750; font-size: clamp(25px, 3vw, 34px); line-height: 1.22; }
.nwp-blog__section-heading p { font-size: 13px; color: var(--nwp-muted); margin-top: 3px; }
/* Recommendation cards */
.nwp-blog__featured { padding: 23px 0 30px; background: linear-gradient(180deg, #fff9f4 0%, #fff9f5 100%); }
.nwp-blog__featured-grid { display: grid; grid-template-columns: minmax(0, 1.57fr) minmax(0, 1fr); gap: 15px; align-items: stretch; }
.nwp-blog__feature-lead, .nwp-blog__feature-side-card, .nwp-blog__latest-card {
  min-width: 0; overflow: hidden; background: white; border: 1px solid #f1f1f2; border-radius: 13px;
  box-shadow: 0 5px 22px rgba(19,29,53,.04);
}
.nwp-blog__feature-lead { display: flex; flex-direction: column; padding: 10px; }
.nwp-blog__landscape { aspect-ratio: 1200 / 490; }
.nwp-blog__square { aspect-ratio: 1; }
.nwp-blog__feature-photo, .nwp-blog__latest-photo, .nwp-blog__feature-side-photo {
  position: relative; display: block; min-width: 0; overflow: hidden; background: linear-gradient(128deg, #ffdbc2, #ff7a2a); border-radius: 8px;
}
.nwp-blog__image { position: absolute; inset: 0; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; object-position: center; transition: transform .3s ease; }
/* No blank horizontal strips on 1:1 previews without a separate square image.
   The same responsive cover URL is re-used as a soft backdrop; the full title
   remains readable in the centered foreground until an editor supplies 1:1. */
.nwp-blog__image-backdrop {
  position: absolute; inset: -16px; z-index: 0;
  display: block; background-position: center; background-size: cover;
  filter: blur(14px); opacity: .42; pointer-events: none;
}
.nwp-blog__image--contain {
  z-index: 1; object-fit: contain; background: transparent;
}
.nwp-blog a:hover > .nwp-blog__image { transform: scale(1.035); }
.nwp-blog__image-fallback { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 80px; display: flex; align-items: center; justify-content: center; color: #fff7ee; }
.nwp-blog__image-fallback .nwp-blog__icon { width: 43px; height: 43px; opacity: .86; }
.nwp-blog__feature-content { display: flex; flex: 1; flex-direction: column; padding: 11px 7px 0; }
.nwp-blog__tag { align-self: flex-start; display: inline-flex; width: max-content; max-width: 100%; border-radius: 999px; background: #fff0e9; color: var(--nwp-orange); padding: 3px 10px; font-size: 11px; line-height: 1.5; font-weight: 500; }
.nwp-blog__feature-content h3 { font-size: clamp(18px, 1.92vw, 23px); line-height: 1.33; font-weight: 750; margin: 5px 0 7px; }
.nwp-blog :is(.nwp-blog__feature-content,.nwp-blog__side-info,.nwp-blog__latest-content) h3 a:hover { color: var(--nwp-orange); }
.nwp-blog__feature-content p { color: var(--nwp-muted); font-size: 13px; line-height: 1.62; }
.nwp-blog__card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.nwp-blog__feature-content .nwp-blog__card-bottom { padding-top: 10px; }
.nwp-blog__date { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #8997ae; font-size: 11px; white-space: nowrap; }
.nwp-blog__date .nwp-blog__icon { width: 15px; height: 15px; }
.nwp-blog__round-link {
  display: inline-flex; flex: none; justify-content: center; align-items: center;
  width: 36px; height: 36px; border-radius: 50%; color: white !important;
  background: var(--nwp-orange); transition: background-color .2s ease, transform .2s ease;
}
.nwp-blog__round-link .nwp-blog__icon { width: 18px; height: 18px; }
.nwp-blog__round-link:hover { background: var(--nwp-orange-dark); transform: translateX(2px); }
.nwp-blog__featured-side { display: grid; min-width: 0; grid-template-rows: 1fr 1fr; gap: 14px; }
.nwp-blog__feature-side-card { display: flex; align-items: stretch; gap: 15px; padding: 13px; }
.nwp-blog__feature-side-photo { flex: 0 0 38%; width: 38%; max-width: 160px; align-self: center; }
.nwp-blog__side-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 12px; }
.nwp-blog__side-info h3 { font-size: clamp(14px, 1.48vw, 17px); font-weight: 700; line-height: 1.43; }
.nwp-blog__side-info .nwp-blog__card-bottom { padding-top: 8px; }
.nwp-blog__side-info .nwp-blog__round-link { width: 32px; height: 32px; }
.nwp-blog__side-info .nwp-blog__date { font-size: 10px; }

/* Latest feed and server-side category/search filtering */
.nwp-blog__latest { background: white; padding: 24px 0 34px; scroll-margin-top: 24px; }
.nwp-blog__latest-heading { gap: 0; margin-bottom: 18px; }
.nwp-blog__latest-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.nwp-blog__latest-heading p { margin-top: 0; }
.nwp-blog__filters { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 19px; }
.nwp-blog__filters a {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 37px; min-width: 105px; padding: 7px 19px; border-radius: 999px;
  border: 1px solid #e5eaf1; background: white; color: var(--nwp-navy);
  font-size: 12px; transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.nwp-blog__filters a:hover { border-color: #ffb089; color: var(--nwp-orange); }
.nwp-blog__filters a.is-active { background: var(--nwp-orange); border-color: var(--nwp-orange); color: #fff !important; font-weight: 600; }
.nwp-blog__latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: stretch; }
.nwp-blog__latest-card { display: flex; flex-direction: column; }
.nwp-blog__latest-photo { width: 100%; border-radius: 9px 9px 0 0; }
.nwp-blog__latest-content { display: flex; flex: 1; flex-direction: column; padding: 13px 15px 13px; }
.nwp-blog__latest-content h3 { margin: 6px 0 8px; font-size: clamp(15px, 1.55vw, 18px); line-height: 1.45; font-weight: 750; }
.nwp-blog__latest-content p { color: var(--nwp-muted); font-size: 12px; line-height: 1.7; }
.nwp-blog__latest-content .nwp-blog__card-bottom { padding-top: 19px; }
.nwp-blog__latest-content .nwp-blog__round-link { width: 32px; height: 32px; }
.nwp-blog__pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.nwp-blog__page-control, .nwp-blog__page-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 39px; height: 39px; border: 1px solid #e6eaf1; border-radius: 50%; font-size: 14px; font-weight: 600;
}
.nwp-blog__page-control .nwp-blog__icon { width: 16px; height: 16px; }
.nwp-blog__page-number:hover, .nwp-blog__page-control:not(.nwp-blog__page-disabled):hover { border-color: var(--nwp-orange); color: var(--nwp-orange); }
.nwp-blog__page-number.is-active { border-color: var(--nwp-orange); background: var(--nwp-orange); color: #fff !important; }
.nwp-blog__page-disabled { opacity: .35; }
.nwp-blog__page-dots { min-width: 17px; text-align: center; color: var(--nwp-muted); }
.nwp-blog__empty { margin: 15px auto; padding: 48px 20px; background: #fff9f5; border: 1px solid #fee9db; border-radius: 15px; text-align: center; }
.nwp-blog__empty > span .nwp-blog__icon { width: 38px; height: 38px; color: var(--nwp-orange); }
.nwp-blog__empty h3 { margin-top: 8px; font-size: 21px; font-weight: 700; }
.nwp-blog__empty p { margin-top: 4px; color: var(--nwp-muted); font-size: 14px; }
.nwp-blog__empty a { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 9px 17px; border-radius: 999px; color: #fff !important; background: var(--nwp-orange); font-size: 13px; }
.nwp-blog__empty a .nwp-blog__icon { width: 15px; height: 15px; }


/* Category and tag archives use the exact same latest-card component as Blog Hub. */
.nwp-blog--taxonomy {
  --nwp-navy: #111e3a;
  --nwp-muted: #687b99;
  --nwp-orange: #ff510e;
  --nwp-orange-dark: #f04400;
  width: min(1140px, calc(100vw - 48px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 24px 0 0;
  padding: 92px 0 72px;
  background: #fff;
}
.nwp-blog--taxonomy .nwp-blog__container { width: 100%; }
.nwp-blog__tax-head { margin-bottom: 30px; }
.nwp-blog__tax-head h1 {
  font-size: clamp(29px, 3.5vw, 46px);
  font-weight: 750;
  line-height: 1.3;
  color: var(--nwp-navy);
}
.nwp-blog__tax-head h1 span { color: var(--nwp-orange); }
.nwp-blog__tax-description { max-width: 820px; margin-top: 10px; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; color: var(--nwp-muted); }
.nwp-blog__tax-description p { margin: 0 0 7px; }
.nwp-blog__tax-description p:last-child { margin-bottom: 0; }
.nwp-blog .nwp-blog__tag:hover { background: #ffe0cf; color: var(--nwp-orange-dark); }

@media (max-width: 980px) {
  .nwp-blog__container { width: min(100% - 40px, 1140px); }
  .nwp-blog__featured-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 11px; }
  .nwp-blog__feature-side-card { padding: 10px; gap: 10px; }
  .nwp-blog__feature-side-photo { flex-basis: 35%; width: 35%; }
  .nwp-blog__feature-content h3 { font-size: 19px; }
  .nwp-blog__side-info h3 { font-size: 14px; }
  .nwp-blog__side-info .nwp-blog__date { font-size: 9px; }
}
@media (max-width: 760px) {
  .nwp-blog__hero { padding: 68px 20px 30px; }
  .nwp-blog__featured-grid { display: block; }
  .nwp-blog__feature-lead { margin-bottom: 12px; }
  .nwp-blog__featured-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 12px; }
  .nwp-blog__feature-side-card { flex-direction: column; }
  .nwp-blog__feature-side-photo { width: 100%; max-width: none; flex-basis: auto; aspect-ratio: 1; }
  .nwp-blog__side-info { padding: 10px 4px 2px; }
  .nwp-blog__side-info .nwp-blog__card-bottom { padding-top: 15px; }
  .nwp-blog__latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nwp-blog__latest-heading > div { display: block; }
  .nwp-blog__latest-heading p { margin-top: 3px; }
}
@media (max-width: 530px) {
  .nwp-blog--taxonomy { width: calc(100vw - 30px); margin-top: 16px; padding: 66px 0 48px; }
  .nwp-blog__tax-head { margin-bottom: 23px; }

  .nwp-blog__container { width: calc(100% - 30px); }
  .nwp-blog__hero { padding: 58px 15px 27px; }
  .nwp-blog__hero h1 { font-size: clamp(27px, 7.25vw, 35px); }
  .nwp-blog__hero p { font-size: 13px; }
  .nwp-blog__desktop-break { display: none; }
  .nwp-blog__search { height: 53px; padding: 5px 5px 5px 13px; margin-top: 19px; gap: 8px; }
  .nwp-blog__search input { font-size: 12px; }
  .nwp-blog__search > .nwp-blog__icon { width: 18px; height: 18px; }
  .nwp-blog__search button { min-width: 69px; padding: 0 11px; font-size: 13px; height: 41px; }
  .nwp-blog__hero-topics { gap: 7px; }
  .nwp-blog__hero-topics a { padding: 5px 11px; min-height: 31px; font-size: 11px; }
  .nwp-blog__featured { padding: 23px 0 27px; }
  .nwp-blog__section-heading h2 { font-size: 24px; }
  .nwp-blog__section-heading p { font-size: 11px; }
  .nwp-blog__feature-content h3 { font-size: 19px; }
  .nwp-blog__feature-content p { font-size: 12px; }
  .nwp-blog__feature-side-card { padding: 9px; }
  .nwp-blog__side-info h3 { font-size: 13px; }
  .nwp-blog__side-info .nwp-blog__date { font-size: 9px; }
  .nwp-blog__side-info .nwp-blog__date .nwp-blog__icon { display: none; }
  .nwp-blog__latest { padding: 24px 0 30px; }
  .nwp-blog__filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .nwp-blog__filters a { flex: 0 0 auto; min-width: 90px; min-height: 35px; padding: 6px 15px; }
  .nwp-blog__latest-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nwp-blog__latest-content { padding: 12px 15px; }
  .nwp-blog__latest-content h3 { font-size: 18px; }
  .nwp-blog__latest-content p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nwp-blog * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
