/* ==========================================================================
   GatewayVPN — BLOG LISTING PAGE (/blog/)
   Roots: .gw-blog (hero + featured + grid) · .gw-blogcta (CTA band)
   Every selector is double-scoped so the Elementor kit can't override it.
   ========================================================================== */
.gw-blog,
.gw-blogcta {
  --gw-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --gw-header-offset: 90px; /* height of the sticky site header */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #424242;
  box-sizing: border-box;
}
.gw-blog *, .gw-blog *::before, .gw-blog *::after,
.gw-blogcta *, .gw-blogcta *::before, .gw-blogcta *::after { box-sizing: border-box; }

/* Remove the theme's focus box on mouse/touch clicks; keyboard focus keeps a purple ring */
.gw-blog button:focus:not(:focus-visible), .gw-blog a:focus:not(:focus-visible), .gw-blog [tabindex]:focus:not(:focus-visible),
.gw-blog input:focus:not(:focus-visible), .gw-blog select:focus:not(:focus-visible),
.gw-blogcta button:focus:not(:focus-visible), .gw-blogcta a:focus:not(:focus-visible), .gw-blogcta [tabindex]:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.gw-blog button:focus-visible, .gw-blog a:focus-visible, .gw-blog [tabindex]:focus-visible, .gw-blog select:focus-visible,
.gw-blogcta button:focus-visible, .gw-blogcta a:focus-visible, .gw-blogcta [tabindex]:focus-visible { outline: 3px solid #b9a6cf !important; outline-offset: 3px; }

.gw-blog .gw-blog__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gw-blog [hidden] { display: none !important; }

/* ---------- Buttons (site standard) ---------- */
.gw-blog .gw-blog__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 10px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.gw-blog .gw-blog__btn--primary { background: #6e5092; color: #FFFFFF; border: 1px solid #6e5092; }
.gw-blog .gw-blog__btn--primary:hover { background: #424242; border-color: #424242; color: #FFFFFF; }
.gw-blog .gw-blog__btn--ghost { background: #FFFFFF; color: #424242; border: 1px solid #DDDDDD; }
.gw-blog .gw-blog__btn--ghost:hover { background: #FFFFFF; border-color: #424242; color: #424242; }
.gw-blog .gw-blog__btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.gw-blog .gw-blog__hero { position: relative; overflow: hidden; margin: 0; padding: 56px 24px 48px; background: rgba(240, 240, 240, 0.5); border-bottom: 1px solid #DDDDDD; }
.gw-blog .gw-blog__decor { position: absolute; z-index: 0; bottom: -18px; display: block; pointer-events: none; line-height: 0; }
.gw-blog .gw-blog__decor--l { left: -10px; }
.gw-blog .gw-blog__decor--r { right: -10px; }
.gw-blog .gw-blog__decor-svg { display: block; width: 228px !important; height: auto !important; max-width: none !important; }
.gw-blog .gw-blog__hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }

.gw-blog .gw-blog__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid #DDDDDD; font-size: 13px; font-weight: 600; line-height: 1.4; color: #424242; }
.gw-blog .gw-blog__pill-hex { width: 10px; height: 11px; background: #6e5092; clip-path: var(--gw-hex); }

.gw-blog .gw-blog__title { margin: 0; font-family: inherit; font-size: clamp(42px, 6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-transform: none; color: #424242; }
.gw-blog .gw-blog__em { color: #6e5092; }
.gw-blog .gw-blog__intro { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: #424242; }

/* Search */
.gw-blog .gw-blog__search { width: 100%; max-width: 720px; margin: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 14px; box-shadow: 0 8px 24px rgba(66, 66, 66, 0.06); transition: border-color .2s; }
.gw-blog .gw-blog__search:focus-within { border-color: #6e5092; }
.gw-blog .gw-blog__search-icon { flex: 0 0 auto; color: #6e5092; }
.gw-blog .gw-blog__input { flex: 1 1 auto; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; font-family: inherit; font-size: 17px; line-height: 1.4; color: #424242; -webkit-appearance: none; appearance: none; }
.gw-blog .gw-blog__input::placeholder { color: #767676; opacity: 1; }
.gw-blog .gw-blog__input::-webkit-search-cancel-button { cursor: pointer; }

/* Topic chips */
.gw-blog .gw-blog__chips { width: 100%; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gw-blog .gw-blog__chip { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; margin: 0; padding: 0 16px; border-radius: 999px; background: #FFFFFF; color: #424242; border: 1px solid #DDDDDD; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.gw-blog .gw-blog__chip:hover { border-color: #424242; color: #424242; }
.gw-blog .gw-blog__chip-count { font-size: 13px; font-weight: 600; line-height: 1.4; color: #6b6b6b; }
.gw-blog .gw-blog__chip[aria-current="true"] { background: #6e5092; border-color: #6e5092; color: #FFFFFF; }
.gw-blog .gw-blog__chip[aria-current="true"]:hover { background: #424242; border-color: #424242; color: #FFFFFF; }
.gw-blog .gw-blog__chip[aria-current="true"] .gw-blog__chip-count { color: #e4dcee; }
.gw-blog .gw-blog__chip--more { display: none; border-style: dashed; color: #6e5092; }
.gw-blog.is-js .gw-blog__chip--more { display: inline-flex; }
.gw-blog.is-js .gw-blog__chip--extra:not(.is-shown) { display: none; }

/* ---------- Results ---------- */
.gw-blog .gw-blog__results { margin: 0; padding: 40px 24px 56px; scroll-margin-top: var(--gw-header-offset); }
.gw-blog .gw-blog__container { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.gw-blog .gw-blog__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.gw-blog .gw-blog__count { margin: 0; font-size: 15px; line-height: 1.4; color: #6b6b6b; }
.gw-blog .gw-blog__count-num { font-weight: 700; color: #424242; }
.gw-blog .gw-blog__sort-form { margin: 0; display: flex; align-items: center; gap: 8px; }
.gw-blog .gw-blog__sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; color: #6b6b6b; }
.gw-blog .gw-blog__select { min-height: 40px; margin: 0; padding: 0 34px 0 12px; border: 1px solid #DDDDDD; border-radius: 10px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e5092' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font-family: inherit; font-size: 14px; line-height: 1.4; color: #424242; cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.gw-blog .gw-blog__select:hover { border-color: #424242; }

/* Styled open list (Chrome/Edge 135+ with a mouse), same as the channel listing.
   Other browsers and touch devices keep the native list; the closed control looks the same everywhere. */
@supports (appearance: base-select) {
  @media (hover: hover) and (pointer: fine) {
    .gw-blog .gw-blog__select,
    .gw-blog .gw-blog__select::picker(select) { appearance: base-select; }

    .gw-blog .gw-blog__select {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      padding: 0 12px; background-image: none;
    }
    .gw-blog .gw-blog__select::picker-icon {
      content: ""; width: 14px; height: 14px; flex: 0 0 14px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e5092' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 14px;
      transition: rotate .2s;
    }
    .gw-blog .gw-blog__select:open { border-color: #6e5092; }
    .gw-blog .gw-blog__select:open::picker-icon { rotate: 180deg; }

    .gw-blog .gw-blog__select::picker(select) {
      margin-top: 6px; padding: 6px; min-width: anchor-size(width); max-height: 320px; overflow-y: auto;
      border: 1px solid #DDDDDD; border-radius: 12px; background: #FFFFFF;
      box-shadow: 0 12px 32px rgba(66, 66, 66, 0.14);
    }
    .gw-blog .gw-blog__select option {
      display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px;
      border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.4; color: #424242; white-space: nowrap; cursor: pointer;
    }
    .gw-blog .gw-blog__select option:hover,
    .gw-blog .gw-blog__select option:focus-visible { background: #f6f2fa; color: #6e5092; outline: none; }
    /* The theme outlines any focused element; inside the list the purple highlight shows focus instead */
    .gw-blog .gw-blog__select option:focus { outline: none !important; box-shadow: none !important; }
    .gw-blog .gw-blog__select option:checked { font-weight: 600; color: #6e5092; }
    .gw-blog .gw-blog__select option::checkmark { order: 1; margin-left: auto; color: #6e5092; }
  }
}

/* Loading state while results refresh */
.gw-blog .gw-blog__featured, .gw-blog .gw-blog__grid { transition: opacity .2s; }
.gw-blog.is-loading .gw-blog__featured, .gw-blog.is-loading .gw-blog__grid { opacity: .5; }

/* Shared card parts */
.gw-blog .gw-blog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #6b6b6b; }
.gw-blog .gw-blog__tag { font-weight: 600; line-height: 1.4; color: #6e5092; }
.gw-blog .gw-blog__dot { line-height: 1.4; }
.gw-blog .gw-blog__date { line-height: 1.4; }
.gw-blog .gw-blog__img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.gw-blog .gw-blog__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1ecf6; }
.gw-blog .gw-blog__placeholder-hex { width: 40px; height: 46px; background: #e2d8ec; clip-path: var(--gw-hex); }

/* Featured card */
.gw-blog .gw-blog__featured-card { display: flex; flex-wrap: wrap; overflow: hidden; border: 1px solid #DDDDDD; border-radius: 20px; background: #FFFFFF; color: #424242; text-decoration: none; transition: border-color .2s; }
.gw-blog .gw-blog__featured-card:hover { border-color: #6e5092; color: #424242; }
.gw-blog .gw-blog__featured-media { flex: 1 1 520px; display: block; min-height: 340px; aspect-ratio: 16 / 9; background: #f1ecf6; }
.gw-blog .gw-blog__featured-body { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px; }
.gw-blog .gw-blog__badge { align-self: flex-start; display: inline-block; padding: 8px 12px; border-radius: 999px; background: #6e5092; color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; /* line-height 1 centers all-caps text in Inter; 1.4 left extra space under the letters */ letter-spacing: 0.04em; text-transform: uppercase; }
.gw-blog .gw-blog__featured-body .gw-blog__meta { font-size: 14px; }
.gw-blog .gw-blog__featured-title { margin: 0; font-family: inherit; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; color: #424242; }
.gw-blog .gw-blog__featured-excerpt { display: block; font-size: 17px; line-height: 1.6; color: #424242; }
.gw-blog .gw-blog__read { display: inline-flex; gap: 6px; font-size: 16px; font-weight: 600; line-height: 1.4; color: #6e5092; transition: color .2s; }
.gw-blog .gw-blog__featured-card:hover .gw-blog__read { color: #424242; }

/* Grid */
.gw-blog .gw-blog__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gw-blog .gw-blog__item { display: flex; margin: 0; padding: 0; list-style: none; line-height: 1.6; }
.gw-blog .gw-blog__item::before, .gw-blog .gw-blog__item::marker { content: none; }
.gw-blog .gw-blog__card { flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #DDDDDD; border-radius: 16px; background: #FFFFFF; color: #424242; text-decoration: none; transition: border-color .2s; }
.gw-blog .gw-blog__card:hover { border-color: #6e5092; color: #424242; }
.gw-blog .gw-blog__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f1ecf6; }
.gw-blog .gw-blog__media .gw-blog__placeholder-hex { width: 30px; height: 34px; }
.gw-blog .gw-blog__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.gw-blog .gw-blog__card-title { margin: 0; font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; color: #424242; transition: color .2s; }
.gw-blog .gw-blog__card:hover .gw-blog__card-title { color: #6e5092; }
.gw-blog .gw-blog__excerpt { display: block; font-size: 15px; line-height: 1.6; color: #424242; }

/* Empty state */
.gw-blog .gw-blog__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; border: 1px dashed #DDDDDD; border-radius: 20px; background: rgba(240, 240, 240, 0.5); text-align: center; }
.gw-blog .gw-blog__empty-hex { width: 48px; height: 54px; display: flex; align-items: center; justify-content: center; background: #6e5092; clip-path: var(--gw-hex); }
.gw-blog .gw-blog__empty-title { margin: 6px 0 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: #424242; }
.gw-blog .gw-blog__empty-text { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: #424242; }

.gw-blog .gw-blog__load { align-self: center; }

/* ---------- CTA band ---------- */
.gw-blogcta { margin: 0; padding: 56px 24px; }
.gw-blogcta .gw-blogcta__band { position: relative; overflow: hidden; max-width: 1240px; margin: 0 auto; padding: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; border-radius: 24px; background: #6e5092; color: #FFFFFF; text-align: center; }
.gw-blogcta .gw-blogcta__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.14; pointer-events: none; }
.gw-blogcta .gw-blogcta__title { position: relative; max-width: 760px; margin: 0; font-family: inherit; font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-transform: none; color: #FFFFFF; }
.gw-blogcta .gw-blogcta__copy { position: relative; max-width: 640px; margin: 0; font-size: 18px; line-height: 1.6; color: #f1ecf6; }
.gw-blogcta .gw-blogcta__btn { position: relative; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 10px; background: #FFFFFF; color: #6e5092; border: 1px solid #FFFFFF; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.gw-blogcta .gw-blogcta__btn:hover { background: #424242; border-color: #424242; color: #FFFFFF; }
.gw-blogcta .gw-blogcta__btn:focus-visible { outline-color: #FFFFFF !important; }
.gw-blogcta .gw-blogcta__note { position: relative; font-size: 14px; line-height: 1.4; color: #f1ecf6; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .gw-blog .gw-blog__decor--l { left: -60px; }
  .gw-blog .gw-blog__decor--r { right: -60px; }
}
@media (max-width: 1080px) {
  .gw-blog .gw-blog__decor { display: none; }
}
@media (max-width: 960px) {
  .gw-blog .gw-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-blog .gw-blog__featured-media { min-height: 0; }
}
@media (max-width: 760px) {
  .gw-blog .gw-blog__hero { padding: 40px 20px 32px; }
  .gw-blog .gw-blog__results { padding: 32px 20px 40px; }
  .gw-blog .gw-blog__intro { font-size: 17px; }
  .gw-blog .gw-blog__search { flex-wrap: wrap; padding: 8px 8px 8px 16px; }
  .gw-blog .gw-blog__input { flex: 1 1 calc(100% - 40px); }
  .gw-blog .gw-blog__search .gw-blog__btn { flex: 1 1 100%; }
  /* Chips become one horizontal scroll row */
  .gw-blog .gw-blog__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; width: calc(100% + 40px); max-width: none; scrollbar-width: none; }
  .gw-blog .gw-blog__chips::-webkit-scrollbar { display: none; }
  .gw-blog .gw-blog__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gw-blog .gw-blog__featured-body { padding: 24px 22px 26px; }
  .gw-blog .gw-blog__featured-title { font-size: 26px; }
  .gw-blog .gw-blog__featured-excerpt { font-size: 16px; }
  .gw-blog .gw-blog__load, .gw-blog .gw-blog__empty .gw-blog__btn { align-self: stretch; }
  .gw-blogcta { padding: 40px 20px; }
  .gw-blogcta .gw-blogcta__band { padding: 40px 22px; }
  .gw-blogcta .gw-blogcta__title { font-size: 30px; }
  .gw-blogcta .gw-blogcta__copy { font-size: 17px; }
  .gw-blogcta .gw-blogcta__btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-blog .gw-blog__btn, .gw-blog .gw-blog__chip, .gw-blog .gw-blog__search, .gw-blog .gw-blog__select, .gw-blog .gw-blog__select::picker-icon,
  .gw-blog .gw-blog__card, .gw-blog .gw-blog__card-title, .gw-blog .gw-blog__featured-card, .gw-blog .gw-blog__read,
  .gw-blog .gw-blog__featured, .gw-blog .gw-blog__grid, .gw-blogcta .gw-blogcta__btn { transition: none; }
}