.pg-wrap,
.pg-wrap * {
  box-sizing: border-box;
}

.pg-wrap {
  font-family: "Manrope", sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  min-height: 100vh;
}

.pg-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.pg-hero {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 4rem 2rem;
  min-height: 220px;
  box-shadow: 0 24px 60px rgba(123, 123, 123, 0.22);
  background: linear-gradient(rgba(123, 123, 123, 0.62), rgba(123, 123, 123, 0.78)), url("../images/inner-pages-banner.jpg") center/cover no-repeat;
}

.pg-hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}

.pg-hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(123, 123, 123, 0.2), rgba(123, 123, 123, 0.62));
  z-index: 1;
}

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

.pg-banner__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  margin: 17px 0 0 0;
}

.pg-banner__subtitle {
  margin: 1rem 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.8;
}

.pg-banner__description {
  margin: 1rem 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.8;
}

.pg-banner__description p {
  margin: 0 0 0.75rem;
}

.pg-banner__description p:last-child {
  margin-bottom: 0;
}

.pg-section {
  padding: 2.25rem 0 4rem;
}

.pg-content-shell {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(123, 123, 123, 0.14);
}

.pg-theme-default {
  background: #ffffff;
}

.pg-theme-power {
  background: linear-gradient(135deg, #7b7b7b 0%, #5c5c5c 100%);
  color: #fff;
}

.pg-theme-power .pg-tab,
.pg-theme-power .pg-tab-panel,
.pg-theme-power .pg-post-card {
  color: #fff;
}

.pg-theme-soft {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.pg-tabs {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 0;
  flex-wrap: wrap;
}

.pg-tab {
  border: 1px solid rgba(123, 123, 123, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #444;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
}

.pg-tab.is-active,
.pg-tab:hover,
.pg-tab:focus {
  background: #7b7b7b;
  color: #fff;
  border-color: #7b7b7b;
}

.pg-tab-panels {
  padding: 1.5rem;
}

.pg-tab-panel[hidden] {
  display: none !important;
}

.pg-page-content {
  line-height: 1.85;
  font-size: 15px;
}

.pg-category-group + .pg-category-group {
  margin-top: 2rem;
}

.pg-category-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #2b2b2b;
}

.pg-page-content p {
  margin: 0 0 1rem;
}

.pg-page-content h1,
.pg-page-content h2,
.pg-page-content h3,
.pg-page-content h4 {
  margin: 1.5rem 0 0.75rem;
  line-height: 1.25;
  font-weight: 800;
}

.pg-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.pg-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.pg-page-content table td,
.pg-page-content table th {
  border: 1px solid rgba(123, 123, 123, 0.14);
  padding: 0.8rem 0.95rem;
}

.pg-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pg-post-card {
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  border: 1px solid rgba(123, 123, 123, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(123, 123, 123, 0.12);
}

.pg-post-card__thumb {
  aspect-ratio: 16 / 10;
  background: #eceff3;
}

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

.pg-post-card__body {
  padding: 1.15rem;
}

.pg-post-card__meta {
  font-size: 12px;
  color: #7b7b7b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.pg-post-card__title {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 800;
}

.pg-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.pg-post-card__title a:hover {
  color: #7b7b7b;
}

.pg-post-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.pg-posts-empty {
  text-align: center;
  padding: 1rem 0;
  color: #777;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .pg-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .pg-container {
    padding: 0 16px;
  }

  .pg-hero {
    margin-top: 1.5rem;
    border-radius: 22px;
    padding: 2.75rem 1.25rem;
    min-height: 240px;
  }

  .pg-section {
    padding: 1.5rem 0 3rem;
  }

  .pg-content-shell {
    border-radius: 22px;
  }

  .pg-tabs,
  .pg-tab-panels {
    padding: 1.25rem;
  }

  .pg-posts-grid {
    grid-template-columns: 1fr;
  }
}
