.pg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.glass-card,
.pg-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--pg-radius-xl);
  border: 1px solid var(--pg-border-soft);
  background: var(--pg-glass-bg);
  backdrop-filter: blur(var(--pg-glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--pg-glass-blur)) saturate(150%);
  box-shadow: var(--pg-shadow-soft);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.glass-card:hover,
.pg-card:hover {
  border-color: rgba(0, 207, 232, 0.30);
  background: var(--pg-glass-bg-hover);
  box-shadow: var(--pg-shadow-hover);
}

.glass-card::before,
.pg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(15, 23, 42, 0.035),
    transparent 42%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.glass-card:hover::before,
.pg-card:hover::before {
  opacity: 1;
}

.pg-image-overlay-card {
  position: relative;
  color: #fff;
}

.pg-image-overlay-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.88),
    rgba(15, 23, 42, 0.48),
    transparent
  );
}

.pg-tilt-card {
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

.pg-post-thumb {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.pg-post-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.pg-ratio-16-9 { aspect-ratio: 16 / 9; }
.pg-ratio-21-9 { aspect-ratio: 21 / 9; }
.pg-ratio-4-3 { aspect-ratio: 4 / 3; }
.pg-ratio-3-2 { aspect-ratio: 3 / 2; }
.pg-ratio-1-1 { aspect-ratio: 1 / 1; }

.pg-card-content {
  padding: 24px;
}

.pg-card-meta {
  font-size: 0.875rem;
  color: var(--pg-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-cat-badge {
  background: var(--pg-blue);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pg-card-title {
  font-size: 1.25rem;
  margin: 0 0 12px;
  line-height: 1.4;
}

.pg-card-title a {
  color: var(--pg-text-main);
}

.pg-card-excerpt {
  color: var(--pg-text-soft);
  font-size: 0.9375rem;
}

/* Button Styles */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 32px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.pg-btn-primary {
  background: var(--pg-blue);
  color: #fff;
}

.pg-btn-primary:hover {
  background: var(--pg-cyan);
  color: #fff;
}

/* Search Intro Block */
.pg-block-search-intro {
  padding: 80px 0;
}

.pg-search-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.pg-search-desc {
  font-size: 1.125rem;
  color: var(--pg-text-soft);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.pg-search-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.pg-search-form-wrap .search-form {
  display: flex;
  padding: 8px;
  border-radius: 40px;
}

.pg-search-form-wrap label {
  flex-grow: 1;
}

.pg-search-form-wrap .search-field {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 24px;
  color: #fff;
  font-size: 1.125rem;
  outline: none;
}

/* Hero Block */
.pg-block-hero {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.pg-hero-content {
  position: relative;
  z-index: 2;
}

.pg-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--pg-cyan);
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pg-hero-title {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.pg-hero-desc {
  font-size: 1.125rem;
  color: var(--pg-text-soft);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.pg-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-animated-gradient {
  color: #fff;
  background: linear-gradient(90deg, var(--pg-blue), var(--pg-violet), var(--pg-cyan));
  background-size: 200% auto;
  animation: flowGradient 3s linear infinite;
}

.pg-btn-outline {
  color: var(--pg-text-main);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--pg-border-soft);
}
.pg-btn-outline:hover {
  background: rgba(15, 23, 42, 0.08);
}

/* Featured Authors Block */
.pg-block-authors {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pg-block-header {
  margin-bottom: 24px;
}

.pg-subtitle {
  color: var(--pg-cyan);
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pg-block-title {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}

.pg-authors-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.pg-author-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--pg-radius-lg);
  transition: background 0.3s ease;
  text-decoration: none;
}
.pg-author-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.pg-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pg-border-soft);
}

.pg-author-name {
  font-weight: 600;
  color: var(--pg-text-main);
}

.pg-author-meta {
  font-size: 0.875rem;
  color: var(--pg-text-muted);
}

.pg-btn-text {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--pg-border-soft);
  color: var(--pg-blue);
  background: transparent;
}
.pg-btn-text:hover {
  color: var(--pg-cyan);
  background: transparent;
}

/* Editorial Featured Posts Block */
.pg-block-editorial {
  margin-top: 60px;
}

.pg-editorial-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pg-editorial-header-text h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  font-weight: 700;
}

.pg-editorial-header-text p {
  color: var(--pg-text-soft);
  margin: 0;
  font-size: 1.125rem;
}

.pg-editorial-cta {
  color: var(--pg-blue);
  font-weight: 600;
  text-decoration: none;
}

.pg-editorial-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
}

.pg-editorial-large-card {
  height: 100%;
  display: block;
  position: relative;
  min-height: 480px;
  text-decoration: none;
}

.pg-editorial-large-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pg-editorial-large-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-editorial-large-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}

.pg-editorial-large-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  z-index: 2;
}

.pg-editorial-large-content h3 {
  font-size: 2rem;
  color: #fff;
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.3;
}

.pg-editorial-meta {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 16px;
}

.pg-editorial-small {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pg-editorial-small-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 16px;
  text-decoration: none;
  align-items: center;
  transition: background 0.3s;
}

.pg-editorial-small-card:hover {
  background: rgba(15, 23, 42, 0.05);
}

.pg-editorial-small-thumb {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--pg-radius-md);
  overflow: hidden;
}

.pg-editorial-small-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--pg-border-soft);
}

.pg-cat-text {
  color: var(--pg-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.pg-editorial-small-content h4 {
  color: var(--pg-text-main);
  font-size: 1.125rem;
  margin: 0 0 12px;
  line-height: 1.4;
  font-weight: 600;
}

.pg-editorial-small-meta {
  color: var(--pg-text-muted);
  font-size: 0.875rem;
}

/* Knowledge Stream Block */
.pg-block-stream {
  margin-top: 60px;
}

.pg-stream-header {
  margin-bottom: 32px;
  text-align: center;
}

.pg-stream-eyebrow {
  color: var(--pg-cyan);
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.pg-stream-header h2 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

.pg-stream-grid {
  display: grid;
  gap: 24px;
}

.pg-stream-column {
  border-top: 3px solid;
}

.pg-stream-col-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--pg-border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.03);
}

.pg-stream-col-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.pg-stream-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pg-stream-content {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.pg-stream-item {
  position: relative;
  padding-left: 20px;
  border-left: 1px dashed var(--pg-border-soft);
}

.pg-stream-item-dot {
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pg-text-muted);
  border: 2px solid var(--pg-bg-soft);
}

.pg-stream-item-date {
  font-size: 0.75rem;
  color: var(--pg-text-muted);
  margin-bottom: 6px;
}

.pg-stream-item h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

.pg-stream-item h4 a {
  color: var(--pg-text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.pg-stream-empty {
  color: var(--pg-text-muted);
  text-align: center;
  font-size: 0.875rem;
}

/* Services Hub Block */
.pg-block-services {
  margin-top: 80px;
  text-align: center;
}

.pg-block-services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.pg-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pg-service-card {
  padding: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pg-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pg-service-icon span {
  font-size: 2rem;
}

.pg-icon-blue { background: rgba(0,242,254,0.1); }
.pg-icon-cyan { background: rgba(79,172,254,0.1); }
.pg-icon-violet { background: rgba(161,54,255,0.1); }

.pg-service-card h3 {
  color: var(--pg-text-main);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.pg-service-card p {
  color: var(--pg-text-soft);
  font-size: 0.9375rem;
  margin: 0;
}

/* Community CTA Block */
.pg-block-community {
  margin-top: 80px;
  padding: 60px 40px;
  border-radius: var(--pg-radius-xl);
  background: linear-gradient(135deg, rgba(0,242,254,0.1), rgba(161,54,255,0.1));
  border: 1px solid var(--pg-border-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pg-community-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79,172,254,0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

.pg-community-content {
  position: relative;
  z-index: 2;
}

.pg-community-content h2 {
  font-size: 2.5rem;
  margin: 0 0 20px;
  font-weight: 800;
}

.pg-community-content p {
  font-size: 1.125rem;
  color: var(--pg-text-soft);
  max-width: 600px;
  margin: 0 auto 32px;
}



