:root {
  --gw-blue: #365bb2;
  --gw-deep-blue: #18377d;
  --gw-text: #222a38;
  --gw-muted: #697184;
  --gw-border: #e8ebf1;
}

.gw-single-post,
.gw-single-post * {
  box-sizing: border-box;
}

.gw-post-hero {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4266bd, #203d8a);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
}

.gw-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(36, 64, 145, .9), rgba(54, 86, 170, .78));
}

.gw-post-hero__inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  padding: 70px 0;
}

.gw-post-hero h1 {
  margin: 0 auto 22px;
  color: #fff;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  text-transform: capitalize;
}

.gw-post-hero__meta,
.gw-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gw-post-hero__meta {
  justify-content: center;
  color: rgba(255, 255, 255, .94);
}

.gw-post-article {
  margin: 0;
  padding: 64px 20px 80px;
  background: #fff;
}

.gw-post-container {
  width: min(820px, 100%);
  margin: 0 auto;
}

.gw-post-featured {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f6f8;
}

.gw-post-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.gw-post-meta {
  margin: 12px 0 14px;
  color: var(--gw-muted);
  font-size: 11px;
}

.gw-post-content-title {
  margin: 0 0 18px;
  color: var(--gw-blue);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.gw-post-content {
  color: var(--gw-text);
  font-size: 16px;
  line-height: 1.75;
}

.gw-post-content > *:first-child {
  margin-top: 0;
}

.gw-post-content p,
.gw-post-content ul,
.gw-post-content ol {
  margin: 0 0 18px;
}

.gw-post-content h2,
.gw-post-content h3,
.gw-post-content h4 {
  margin: 30px 0 12px;
  color: #131a27;
  font-weight: 700;
  line-height: 1.25;
}

.gw-post-content h2 { font-size: 28px; }
.gw-post-content h3 { font-size: 23px; }
.gw-post-content h4 { font-size: 19px; }

.gw-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.gw-post-content a {
  color: var(--gw-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gw-post-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gw-blue);
  background: #f5f7fc;
}

.gw-related-posts {
  margin-top: 58px;
  padding-top: 32px;
  border-top: 1px solid var(--gw-border);
}

.gw-related-posts > h2 {
  margin: 0 0 22px;
  color: #161d2b;
  font-size: 25px;
}

.gw-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gw-related-card {
  overflow: hidden;
  border: 1px solid var(--gw-border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 40, 85, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gw-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(22, 40, 85, .11);
}

.gw-related-card__image {
  display: block;
  height: 190px;
  overflow: hidden;
  background: #edf1fa;
}

.gw-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gw-related-card:hover .gw-related-card__image img {
  transform: scale(1.035);
}

.gw-related-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8edf8, #cfd9f0);
}

.gw-related-card__body {
  padding: 18px;
}

.gw-related-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.gw-related-card h3 a {
  color: var(--gw-blue);
  text-decoration: none;
}

.gw-related-card p {
  margin: 0;
  color: var(--gw-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .gw-post-hero { min-height: 260px; }
  .gw-post-hero__inner { padding: 54px 0; }
  .gw-post-article { padding: 38px 18px 58px; }
  .gw-post-featured { margin-bottom: 16px; }
  .gw-related-grid { grid-template-columns: 1fr; }
  .gw-related-card__image { height: 210px; }
}

@media (max-width: 480px) {
  .gw-post-hero h1 { font-size: 29px; }
  .gw-post-content-title { font-size: 28px; }
  .gw-post-content { font-size: 15px; }
  .gw-post-content h2 { font-size: 24px; }
  .gw-post-content h3 { font-size: 21px; }
}

