/*
 * Minepacks page-packs styles (Figma refresh)
 * Scope: page-packs center content only
 */

/* Global top background image (full width, includes sidebar area) */
body.mp-blog-template,
body.page-template-page-blog-php {
  position: relative;
  background-color: #ececec;
}

body.mp-blog-template::before,
body.page-template-page-blog-php::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  z-index: 0;
  pointer-events: none;
  background-image: url("https://minepacks.org/wp-content/uploads/2026/03/con-iluminaicon.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  box-shadow: 0 30px 28px -28px rgba(16, 29, 46, 0.52);
}

/* Global lower background overlay (from categories area to footer, full width) */
body.mp-blog-template::after,
body.page-template-page-blog-php::after {
  content: none;
  display: none;
}

body.mp-blog-template #page,
body.mp-blog-template #content,
body.mp-blog-template .site-header,
body.mp-blog-template .site-content,
body.mp-blog-template .inside-site-info,
body.page-template-page-blog-php #page,
body.page-template-page-blog-php #content,
body.page-template-page-blog-php .site-header,
body.page-template-page-blog-php .site-content,
body.page-template-page-blog-php .inside-site-info {
  position: relative;
  z-index: 1;
}

body.mp-blog-template #page,
body.mp-blog-template #content,
body.mp-blog-template .site-content,
body.page-template-page-blog-php #page,
body.page-template-page-blog-php #content,
body.page-template-page-blog-php .site-content {
  background: transparent !important;
}

.mp-homepage,
.mp-homepage * {
  box-sizing: border-box;
}

.mp-homepage {
  --mp-border: #d8dde5;
  --mp-card-bg: #f4f5f7;
  --mp-text: #2a3140;
  --mp-muted: #6f7684;
  --mp-accent: #9da7b5;
  --mp-accent-strong: #8c96a5;
  --mp-accent-soft: #e2e6ed;
  --mp-shadow: 0 7px 18px rgba(18, 28, 44, 0.08);
  --mp-card-shadow: 0 3px 0 rgba(146, 151, 160, 0.55), 0 10px 18px rgba(18, 28, 44, 0.09);
  --mp-card-shadow-hover: 0 4px 0 rgba(136, 142, 152, 0.62), 0 14px 24px rgba(18, 28, 44, 0.13);
  --mp-chip-shadow: 0 2px 0 rgba(148, 153, 162, 0.5), 0 7px 14px rgba(18, 28, 44, 0.08);
  width: 100%;
  max-width: 1206px;
  margin: 20px auto 58px;
  padding: 0 8px;
  color: var(--mp-text);
}

.mp-homepage a {
  color: inherit;
  text-decoration: none;
}

.mp-homepage section {
  margin-top: 56px;
}

/* Hero */
.mp-homepage .mp-home-hero {
  margin: 18px auto 0;
  max-width: 940px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-height: 390px;
  box-shadow: none;
  background: transparent;
  background-image: none;
  outline: 0;
  position: relative;
}

.mp-homepage .mp-home-hero::before,
.mp-homepage .mp-home-hero::after {
  content: none;
  display: none;
}

.mp-homepage .mp-home-hero-inner {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 26px;
  background: transparent;
  border: 0;
  position: relative;
}

.mp-homepage .mp-home-hero-copy {
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mp-homepage .mp-home-hero-copy::before {
  content: "";
  position: absolute;
  inset: -22px -28px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse 88% 68% at 50% 60%,
    rgba(6, 10, 16, 0.42) 0%,
    rgba(6, 10, 16, 0.24) 40%,
    rgba(6, 10, 16, 0.12) 58%,
    rgba(6, 10, 16, 0) 84%
  );
  z-index: -1;
  pointer-events: none;
}

.mp-homepage .mp-home-title {
  margin: 0;
  color: #f7fafc;
  font-size: clamp(2.4rem, 4.1vw, 3.2rem);
  line-height: 1.01;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.46);
}

.mp-homepage .mp-home-description {
  margin: 18px auto 0;
  max-width: 660px;
  color: #e8edf3;
  font-size: 1.03rem;
  line-height: 1.58;
  font-weight: 600;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.mp-homepage .mp-home-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.mp-homepage .mp-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid #c5c9d2;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.mp-homepage .mp-home-btn-primary {
  color: #5d6674;
  background: #d8dbe0;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.mp-homepage .mp-home-btn-primary:hover {
  transform: translateY(-1px);
  background: #cfd4dc;
}

/* Hero CTA button: always medium/dark gray on hover */
.mp-homepage .mp-home-hero .mp-home-btn-primary {
  color: #ffffff;
  background: #20242d;
  border-color: #20242d;
  box-shadow: 0 6px 14px rgba(18, 28, 44, 0.28);
}

.mp-homepage .mp-home-hero .mp-home-btn-primary:hover,
.mp-homepage .mp-home-hero .mp-home-btn-primary:focus-visible {
  color: #ffffff;
  background: #161a22;
  border-color: #161a22;
  transform: translateY(-1px);
}

/* Shared heading */
.mp-homepage .mp-section-head {
  margin: 0 auto 18px;
  text-align: center;
}

.mp-homepage .mp-section-head h2 {
  margin: 0;
  color: #283041;
  font-size: clamp(1.72rem, 2.5vw, 2.15rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mp-homepage .mp-section-head p {
  margin: 8px auto 0;
  max-width: 860px;
  color: var(--mp-muted);
  font-size: 0.86rem;
  line-height: 1.52;
}

/* Blog listing */
.mp-homepage .mp-home-categories {
  margin-top: 238px;
  position: relative;
}

.mp-homepage .mp-home-categories::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 86%);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(48, 58, 74, 0) 0%,
    rgba(48, 58, 74, 0.4) 50%,
    rgba(48, 58, 74, 0) 100%
  );
}

.mp-homepage .mp-home-categories::after {
  content: "";
  position: absolute;
  top: -47px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--mp-accent);
  box-shadow: 0 0 0 4px rgba(157, 167, 181, 0.22);
}

.mp-homepage .mp-home-categories .mp-section-head p {
  color: #6f7684;
}

.mp-homepage .mp-blog-listing .mp-section-head .mp-blog-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--mp-accent);
}

.mp-homepage .mp-blog-listing .mp-section-head .mp-blog-head-icon .mp-lucide {
  width: 34px;
  height: 34px;
  stroke-width: 2.1;
}

/* Override local size for Explore icon only (keeps global color + stroke-width) */
.mp-homepage .mp-blog-listing .mp-section-head .mp-blog-head-icon svg.lucide {
  width: 38px !important;
  height: 38px !important;
}

.mp-homepage .mp-blog-filter-wrap {
  margin-top: 26px;
  text-align: left;
}

.mp-homepage .mp-blog-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5f6674;
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: lowercase;
}

.mp-homepage .mp-blog-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-homepage .mp-blog-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 0;
  background: #e5e7eb;
  color: #2f3746;
  box-shadow: var(--mp-chip-shadow);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.mp-homepage .mp-blog-filter-chip:hover {
  transform: translateY(-1px);
  background: #dde0e6;
  box-shadow: var(--mp-card-shadow);
}

.mp-homepage .mp-blog-filter-chip.is-active {
  background: #e2e6ec;
  color: #2a3140;
  box-shadow: var(--mp-card-shadow);
}

.mp-homepage .mp-blog-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mp-homepage .mp-blog-card {
  border-radius: 10px;
  border: 0;
  background: #e5e7ea;
  box-shadow: var(--mp-card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mp-homepage .mp-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-card-shadow-hover);
}

.mp-homepage .mp-blog-card-link {
  display: block;
  height: 100%;
  padding: 12px 13px;
}

.mp-homepage .mp-blog-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.mp-homepage .mp-blog-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #747b87;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
}

.mp-homepage .mp-blog-type-line {
  width: 42px;
  height: 1px;
  background: #c6cad2;
}

.mp-homepage .mp-blog-card-title {
  margin: 10px 0 0;
  color: #20242d;
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.28em * 2);
}

.mp-homepage .mp-blog-card-excerpt {
  margin: 8px 0 0;
  color: #5d6674;
  font-size: 0.89rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 4);
}

.mp-homepage .mp-blog-card-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-homepage .mp-blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #303846;
  font-size: 0.8rem;
  font-weight: 700;
}

.mp-homepage .mp-blog-pagination {
  margin: 26px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.mp-homepage .mp-blog-page {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #c8ced8;
  background: #e6e8ed;
  color: #2f3746;
  box-shadow: var(--mp-shadow);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1;
}

.mp-homepage .mp-blog-page:hover {
  background: #dde1e8;
}

.mp-homepage .mp-blog-page.is-active {
  border-color: #c1c9d4;
  background: #e2e6ec;
  color: #2a3140;
}

.mp-homepage .mp-blog-filter-chip:active,
.mp-homepage .mp-blog-page:active,
.mp-homepage .mp-carousel-btn:active {
  background: #edf1f5;
}

.mp-homepage .mp-blog-page-dots {
  color: #5e6675;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.mp-homepage .mp-blog-empty {
  margin: 18px 0 0;
  text-align: center;
  color: #5e6674;
  font-weight: 700;
}

/* Popular carousel */
.mp-homepage .mp-featured-carousel {
  margin: 22px 0 18px;
}

.mp-homepage .mp-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mp-homepage .mp-featured-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2b2f3a;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 800;
}

.mp-homepage .mp-featured-title .mp-lucide {
  color: var(--mp-accent);
}

.mp-homepage .mp-featured-controls {
  display: flex;
  gap: 10px;
}

.mp-homepage .mp-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f2f2f2;
  color: #6b6b6b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mp-homepage .mp-carousel-btn svg,
.mp-homepage .mp-carousel-btn .mp-lucide {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
}

.mp-homepage .mp-carousel-btn:hover {
  background: #e0e0e0;
  color: #3f3f3f;
  transform: translateY(-1px);
}

.mp-homepage .mp-icon-fallback {
  font-size: 1rem;
  font-weight: 700;
}

.mp-homepage .mp-carousel-viewport {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}

.mp-homepage .mp-carousel-track {
  display: flex;
  gap: 14px;
  padding: 6px 2px 10px;
  will-change: transform;
}

.mp-homepage .mp-carousel-card {
  flex: 0 0 auto;
  width: 220px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease;
  border-radius: 18px;
  overflow: hidden;
}

.mp-homepage .mp-carousel-card:hover {
  transform: scale(1.03);
}

.mp-homepage .mp-carousel-card:active {
  transform: scale(1.02);
}

.mp-homepage .mp-carousel-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  height: auto;
}

.mp-homepage .mp-carousel-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.mp-homepage .mp-carousel-placeholder {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.06);
}

.mp-homepage .mp-carousel-text {
  padding-top: 10px;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
}

.mp-homepage .mp-carousel-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-homepage .mp-carousel-stats {
  display: none !important;
}

/* Recent cards */
.mp-homepage .mp-home-newpacks {
  margin-top: 54px;
}

.mp-homepage .mp-new-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mp-homepage .mp-new-card {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mp-homepage .mp-new-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
  border-color: #cfd9e6;
}

.mp-homepage .mp-new-thumb-link {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
}

.mp-homepage .mp-new-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef2f7;
}

.mp-homepage .mp-new-placeholder {
  width: 100%;
  height: 100%;
  background: #eef2f7;
}

.mp-homepage .mp-new-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 188px;
}

.mp-homepage .mp-new-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.34em * 2);
}

.mp-homepage .mp-new-title a {
  text-decoration: none;
  color: #111827;
}

.mp-homepage .mp-new-excerpt {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.68;
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.68em * 3);
}

.mp-homepage .mp-new-stats {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.mp-homepage .mp-new-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
}

.mp-homepage .mp-inline-link {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
}

/* Discord */
.mp-homepage .mp-home-discord {
  margin-top: 14px;
}

.mp-homepage .mp-discord-box {
  border-radius: 18px;
  border: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(100deg, #e4e8ee 0%, #dce2ea 38%, #9da6ff 70%, #6e75ff 100%);
  box-shadow: none;
  padding: 24px;
  display: block;
  text-align: left;
}

.mp-homepage .mp-discord-content h2 {
  margin: 0;
  color: #242b39;
  font-size: clamp(1.35rem, 2.35vw, 2.2rem);
  line-height: 1.12;
  font-weight: 800;
}

.mp-homepage .mp-discord-content p {
  margin: 8px 0 0;
  color: #48505f;
  font-size: 0.91rem;
  line-height: 1.55;
}

.mp-homepage .mp-discord-content .mp-home-btn {
  margin-top: 14px;
  min-height: 44px;
  padding: 11px 20px;
  color: #ffffff;
  border: 0;
  box-shadow: none;
  background: linear-gradient(135deg, #5072ff, #5458ea);
}

.mp-homepage .mp-discord-content .mp-home-btn:hover,
.mp-homepage .mp-discord-content .mp-home-btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #4569fb, #4a4fe0);
}

/* Hidden final CTA */
.mp-homepage .mp-home-bottom-cta {
  display: none;
}

/* Lucide icon sizing */
.mp-homepage svg.lucide,
.mp-homepage .mp-lucide svg,
.mp-homepage .mp-lucide {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
}

.mp-homepage .mp-cat-icon-wrap svg.lucide,
.mp-homepage .mp-cat-icon-wrap .mp-lucide {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

/* Responsive */
@media (max-width: 1200px) {
  .mp-homepage .mp-blog-grid {
    gap: 12px;
  }

  .mp-homepage .mp-home-hero {
    min-height: 380px;
    max-width: 900px;
  }

  .mp-homepage .mp-home-hero-inner {
    min-height: 380px;
    padding: 30px 22px;
  }
}

@media (max-width: 920px) {
  body.mp-blog-template::before,
  body.page-template-page-blog-php::before {
    height: 620px;
  }

  .mp-homepage .mp-home-categories {
    margin-top: 206px;
  }

  .mp-homepage .mp-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-homepage {
    padding: 0 3px;
  }

  .mp-homepage section {
    margin-top: 44px;
  }

  .mp-homepage .mp-discord-box {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mp-homepage .mp-featured-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-homepage .mp-carousel-card {
    width: 180px;
  }

  .mp-homepage .mp-carousel-img {
    height: 120px;
  }
}

@media (max-width: 700px) {
  body.mp-blog-template::before,
  body.page-template-page-blog-php::before {
    height: 500px;
  }

  .mp-homepage .mp-home-categories {
    margin-top: 156px;
  }

  .mp-homepage section {
    margin-top: 32px;
  }

  .mp-homepage .mp-home-hero {
    min-height: 340px;
    max-width: none;
  }

  .mp-homepage .mp-home-hero-inner {
    min-height: 340px;
    padding: 28px 14px;
  }

  .mp-homepage .mp-home-hero-copy::before {
    inset: -18px -12px;
  }

  .mp-homepage .mp-home-description {
    font-size: 0.94rem;
  }

  .mp-homepage .mp-home-btn {
    min-height: 42px;
    font-size: 0.95rem;
  }

  .mp-homepage .mp-blog-grid {
    grid-template-columns: 1fr;
  }

  .mp-homepage .mp-blog-card-link {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .mp-homepage {
    margin-top: 14px;
    margin-bottom: 38px;
    padding: 0 2px;
  }

  .mp-homepage .mp-home-hero {
    border-radius: 0;
  }

  .mp-homepage .mp-home-hero-inner {
    padding: 24px 12px;
  }

  .mp-homepage .mp-home-hero-copy::before {
    inset: -14px -8px;
  }

  .mp-homepage .mp-home-title {
    font-size: clamp(1.75rem, 7.2vw, 2.3rem);
  }

  .mp-homepage .mp-home-description {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .mp-homepage .mp-home-categories::before {
    top: -36px;
    width: min(460px, 90%);
  }

  .mp-homepage .mp-home-categories::after {
    top: -40px;
  }

  .mp-homepage .mp-home-btn {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .mp-homepage .mp-new-body {
    padding: 14px;
    min-height: 0;
  }
}

/* 3) Blog layout: hide sidebar and keep content centered */
body.mp-blog-template #right-sidebar,
body.page-template-page-blog-php #right-sidebar,
body.mp-blog-template #secondary,
body.page-template-page-blog-php #secondary,
body.mp-blog-template .sidebar,
body.page-template-page-blog-php .sidebar {
  display: none !important;
  margin-left: 0 !important;
}

body.mp-blog-template #primary,
body.page-template-page-blog-php #primary,
body.mp-blog-template .content-area,
body.page-template-page-blog-php .content-area {
  float: none !important;
  width: 100% !important;
  max-width: 1247px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.mp-blog-template .site-main,
body.page-template-page-blog-php .site-main {
  width: 100% !important;
}

body.mp-blog-template .inside-article,
body.page-template-page-blog-php .inside-article {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.mp-blog-template #content,
body.page-template-page-blog-php #content {
  overflow-x: clip;
}

body.mp-blog-template,
body.page-template-page-blog-php {
  overflow-x: hidden;
}

body.mp-blog-template .centered-container.mp-homepage,
body.page-template-page-blog-php .centered-container.mp-homepage {
  max-width: 1247px !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

/* Cache-friendly layout classes used by template (replaces inline styles) */
.mp-blog-content {
  width: 100%;
  max-width: 1247px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.mp-blog-primary {
  float: none !important;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.mp-blog-main {
  width: 100%;
}

/* 3.1) Remove white container border/background from theme wrapper */
body.mp-blog-template .inside-article,
body.page-template-page-blog-php .inside-article {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1200px) {
  body.mp-blog-template::after,
  body.page-template-page-blog-php::after {
    top: 600px;
  }
}

@media (max-width: 920px) {
  body.mp-blog-template::after,
  body.page-template-page-blog-php::after {
    top: 560px;
    background-size: auto 100%;
    background-position: center top;
  }
}

@media (max-width: 700px) {
  body.mp-blog-template::after,
  body.page-template-page-blog-php::after {
    top: 520px;
    opacity: 0.9;
  }
}

/* 4) Blog sidebar fade: transparent top -> smooth to solid from Versions */
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block {
  --mp-sb-solid: #f5f5f7;
  background:
    linear-gradient(
      to bottom,
      rgba(245, 245, 247, 0) 0%,
      rgba(245, 245, 247, 0.02) 44%,
      rgba(245, 245, 247, 0.14) 58%,
      rgba(245, 245, 247, 0.34) 68%,
      rgba(245, 245, 247, 0.60) 78%,
      rgba(245, 245, 247, 0.84) 88%,
      var(--mp-sb-solid) 94%,
      var(--mp-sb-solid) 100%
    ) !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section {
  border: 0 !important;
  box-shadow: none !important;
}

/* Top area (Popular + Gamemodes): transparent + light text */
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) {
  background: transparent !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-section-header,
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-item-link {
  color: rgba(255, 255, 255, 0.86) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-section-header {
  border-bottom-color: transparent !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-section-header::before,
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-section-header::after {
  opacity: 0 !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-item-link {
  background: rgba(20, 24, 34, 0.26) !important;
  border: 0 !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-item-link::after {
  color: rgba(255, 255, 255, 0.54) !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(-n+2) .custom-item-link:hover {
  background: rgba(20, 24, 34, 0.36) !important;
}

/* Versions section: begins transition and turns solid at 1.17.X */
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) {
  background:
    linear-gradient(
      to bottom,
      rgba(245, 245, 247, 0.08) 0%,
      rgba(245, 245, 247, 0.24) 40%,
      rgba(245, 245, 247, 0.48) 58%,
      rgba(245, 245, 247, 0.72) 74%,
      rgba(245, 245, 247, 0.9) 86%,
      var(--mp-sb-solid) 100%
    ) !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-section-header {
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: transparent !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-section-header::before,
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-section-header::after {
  opacity: 0 !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-list .custom-item-link {
  border: 0 !important;
  box-shadow: none !important;
}

/* 1.21 / 1.20 / 1.18 still in transparent zone */
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-list .custom-item-link:nth-child(-n+3) {
  background: rgba(20, 24, 34, 0.22) !important;
  color: rgba(255, 255, 255, 0.84) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-list .custom-item-link:nth-child(-n+3)::after {
  color: rgba(255, 255, 255, 0.52) !important;
}

/* 1.17.X is transition point */
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-list .custom-item-link:nth-child(4) {
  background: rgba(247, 247, 249, 0.72) !important;
  color: rgba(48, 56, 70, 0.88) !important;
}

/* 1.16.X and below: solid clean area */
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(3) .custom-list .custom-item-link:nth-child(n+5),
:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(n+4) .custom-item-link {
  background: #f6f6f8 !important;
  color: #303846 !important;
}

:is(body.mp-blog-template, body.page-template-page-blog-php) #custom-sidebar-block .custom-sidebar-section:nth-child(n+4) {
  background: var(--mp-sb-solid) !important;
}




