/**
 * PaperMag Pro — Polish Override CSS
 *
 * Fixes all class-name mismatches between PHP templates and papermag-pro.css.
 * PHP outputs actual class names; this file maps them to proper styling.
 * Load AFTER papermag-pro.css (priority 25).
 *
 * Mismatch Reference:
 *   PHP class -> CSS expected class (where they differ)
 */


/* ==========================================================================
   1. HERO SPLIT — PHP: pm-hero-split*, CSS: pm-hero*
   This is the #1 visual bug. The 60/40 grid never renders.
   ========================================================================== */

.pm-hero-split {
  padding: var(--pm-space-xl, 32px) 0;
}

.pm-hero-split__inner {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--pm-space-lg, 24px);
  min-height: 500px;
}

/* Left panel — featured hero post */
.pm-hero-split__left {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--pm-radius-md, 4px);
}

.pm-hero-split__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.pm-hero-split__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.pm-hero-split__left:hover .pm-hero-split__image {
  transform: scale(1.03);
}

.pm-hero-split__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pm-space-xl, 32px);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 40%, transparent 60%);
  color: #fff;
  z-index: 2;
}

.pm-hero-split__meta-top {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md, 16px);
  margin-bottom: var(--pm-space-sm, 12px);
}

.pm-hero-split__title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: var(--pm-space-md, 16px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-hero-split__title a {
  color: inherit;
}

.pm-hero-split__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-hero-split__author {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm, 12px);
  color: rgba(255,255,255,0.85);
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 14px;
}

/* Right panel — trending sidebar */
.pm-hero-split__right {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-md, 16px);
}

.pm-trending-title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--pm-color-dark, #111);
  line-height: 1.3;
  margin-bottom: var(--pm-space-sm, 12px);
}

.pm-trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg, 24px);
}


/* ==========================================================================
   2. BADGE — PHP: pm-badge* — CSS: NONE (completely missing)
   ========================================================================== */

.pm-badge {
  text-transform: uppercase;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
  transition: opacity var(--pm-transition-fast, 0.15s ease);
}

.pm-badge:hover {
  opacity: 0.8;
}

.pm-badge--overlay {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pm-badge--large {
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 0;
}

.pm-badge--small {
  font-size: 11px;
  letter-spacing: 0.5px;
}


/* ==========================================================================
   3. META elements — PHP: pm-meta-*, pm-avatar — CSS: NONE
   ========================================================================== */

.pm-meta-author {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: inherit;
}

.pm-meta-author--link {
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-meta-author--link:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-meta-date {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 13px;
  color: var(--pm-color-meta, #888);
}

.pm-meta-sep {
  color: var(--pm-color-meta, #888);
  margin: 0 4px;
}

.pm-meta-comments,
.pm-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.pm-meta-views--small {
  font-size: 12px;
  color: var(--pm-color-meta, #888);
}

.pm-meta-comments svg,
.pm-meta-views svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pm-meta-reading-time {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 13px;
  color: var(--pm-color-meta, #888);
}

.pm-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  vertical-align: middle;
}

.pm-avatar--small {
  width: 32px;
  height: 32px;
}

.pm-avatar--large {
  width: 80px;
  height: 80px;
}

.pm-icon {
  display: inline-block;
  vertical-align: middle;
}


/* ==========================================================================
   4. CARD-STANDARD — PHP: pm-card-standard*, CSS: pm-card*
   ========================================================================== */

.pm-card-standard {
  background-color: var(--pm-color-bg, #fff);
  overflow: hidden;
  transition: transform var(--pm-transition-base, 0.25s ease), box-shadow var(--pm-transition-base, 0.25s ease);
  display: flex;
  flex-direction: column;
}

.pm-card-standard:hover {
  transform: translateY(-3px);
  box-shadow: var(--pm-shadow-lg, 0 8px 24px rgba(0,0,0,0.1));
}

.pm-card-standard__image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pm-card-standard__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-slow, 0.4s ease);
}

.pm-card-standard:hover .pm-card-standard__image {
  transform: scale(1.04);
}

.pm-card-standard__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--pm-color-primary, #0066FF) 0%, var(--pm-color-primary-dark, #0052CC) 100%);
}

.pm-card-standard__placeholder svg {
  opacity: 0.3;
  fill: #fff;
}

.pm-card-standard__body {
  padding: var(--pm-space-md, 16px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pm-card-standard__title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--pm-color-dark, #111);
  display: -webkit-box;
  -webkit-line-clamp: var(--pm-card-title-lines, 3);
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.pm-card-standard__title a {
  color: inherit;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-card-standard__title a:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-card-standard__excerpt {
  font-size: 14px;
  color: var(--pm-color-meta, #888);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: var(--pm-card-excerpt-lines, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--pm-space-xs, 8px);
}


/* ==========================================================================
   5. CARD-OVERLAY — PHP: pm-card-overlay__link, __meta-top, __meta-bottom
      CSS expects: __image-wrap, __gradient, __meta
   ========================================================================== */

.pm-card-overlay {
  min-height: 350px;
}

.pm-card-overlay__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}

.pm-card-overlay__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-slow, 0.4s ease);
}

.pm-card-overlay:hover .pm-card-overlay__image {
  transform: scale(1.03);
}

.pm-card-overlay__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pm-color-dark, #111) 0%, var(--pm-color-primary-dark, #0052CC) 100%);
}

.pm-card-overlay__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--pm-space-lg, 24px);
  color: #fff;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.pm-card-overlay__meta-top {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md, 16px);
  margin-bottom: var(--pm-space-xs, 8px);
}

.pm-card-overlay__meta-bottom {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm, 12px);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  margin-top: var(--pm-space-xs, 8px);
}


/* ==========================================================================
   6. CARD-NUMBERED — PHP: __image-link, __image; CSS: __thumb-wrap, __thumb
   ========================================================================== */

.pm-card-numbered {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--pm-space-md, 16px);
  align-items: start;
}

.pm-card-numbered__image-link {
  width: 100px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.pm-card-numbered__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-base, 0.25s ease);
}

.pm-card-numbered:hover .pm-card-numbered__image {
  transform: scale(1.05);
}


/* ==========================================================================
   7. CARD-HORIZONTAL — PHP: __image-link; CSS: __image-wrap
   ========================================================================== */

.pm-card-horizontal__image-link {
  overflow: hidden;
  display: block;
}

.pm-card-horizontal--dark {
  background: transparent;
}

.pm-card-horizontal--dark .pm-card-horizontal__title,
.pm-card-horizontal--dark .pm-card-horizontal__title a {
  color: #fff;
}

.pm-card-horizontal--dark .pm-card-horizontal__title a:hover {
  color: var(--pm-color-primary-light, #3388FF);
}

.pm-card-horizontal--dark .pm-meta-date {
  color: rgba(255,255,255,0.6);
}


/* ==========================================================================
   8. CARD-TEXT-ONLY — PHP: pm-card-text-only*; CSS: pm-card-text*
   ========================================================================== */

.pm-card-text-only {
  padding-bottom: var(--pm-space-lg, 24px);
  margin-bottom: var(--pm-space-lg, 24px);
  border-bottom: 1px solid var(--pm-color-border, #eee);
}

.pm-card-text-only:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pm-card-text-only__title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--pm-color-dark, #111);
  display: -webkit-box;
  -webkit-line-clamp: var(--pm-card-title-lines, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--pm-space-xs, 8px);
}

.pm-card-text-only__title a {
  color: inherit;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-card-text-only__title a:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-card-text-only__excerpt {
  font-size: 14px;
  color: var(--pm-color-meta, #888);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: var(--pm-card-excerpt-lines, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--pm-space-xs, 8px);
}

.pm-card-text-only__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xs, 8px);
  font-size: 12px;
  color: var(--pm-color-meta, #888);
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
}


/* ==========================================================================
   9. HEADER — PHP: pm-header__logo, __nav, __actions, __search*,
                     __site-title, __search-toggle
      CSS: pm-logo, pm-nav, pm-header__controls, pm-search-*
   ========================================================================== */

.pm-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pm-header__logo .custom-logo {
  max-height: 50px;
  width: auto;
}

.pm-header__site-title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: var(--pm-text-xl, 1.5rem);
  font-weight: 800;
  color: var(--pm-color-dark, #111);
  letter-spacing: -0.5px;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-header__site-title:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.pm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md, 16px);
  flex-shrink: 0;
}

.pm-header__search {
  position: relative;
  display: flex;
  align-items: center;
}

.pm-header__search-input {
  width: 200px;
  background: var(--pm-color-bg-alt, #f5f5f5);
  border-radius: var(--pm-radius-full, 9999px);
  padding: 8px 16px;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 14px;
  border: 1px solid transparent;
  transition: border-color var(--pm-transition-fast, 0.15s ease), width var(--pm-transition-base, 0.25s ease);
  color: var(--pm-color-dark, #111);
}

.pm-header__search-input::placeholder {
  color: var(--pm-color-meta, #888);
}

.pm-header__search-input:focus {
  border-color: var(--pm-color-primary, #0066FF);
  width: 260px;
  outline: none;
}

.pm-header__search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-color-meta, #888);
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.pm-header__search-btn:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-header__search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--pm-color-dark, #111);
  cursor: pointer;
  background: none;
  border: none;
}


/* ==========================================================================
   10. TOPBAR NAV — PHP: pm-topbar__nav, __list, __item
       CSS: pm-topbar__links, pm-topbar__link
   ========================================================================== */

.pm-topbar__nav {
  display: flex;
  align-items: center;
}

.pm-topbar__list {
  display: flex;
  align-items: center;
  gap: var(--pm-space-md, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-topbar__item {
  white-space: nowrap;
}

.pm-topbar__item a {
  color: rgba(255,255,255,0.8);
  transition: color var(--pm-transition-fast, 0.15s ease);
  font-size: 13px;
}

.pm-topbar__item a:hover {
  color: #fff;
}


/* ==========================================================================
   11. DRAWER — PHP: __overlay, __panel, __close, __search*, __nav, __list
       CSS: pm-drawer-overlay, pm-drawer__nav-list, pm-drawer__nav-link
   ========================================================================== */

.pm-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: calc(var(--pm-z-drawer, 1000) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--pm-transition-slow, 0.4s ease), visibility var(--pm-transition-slow, 0.4s ease);
}

.pm-drawer[aria-hidden="false"] .pm-drawer__overlay,
.pm-drawer:not([hidden]) .pm-drawer__overlay {
  opacity: 1;
  visibility: visible;
}

.pm-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--pm-color-dark, #111);
  color: #fff;
  z-index: var(--pm-z-drawer, 1000);
  transform: translateX(100%);
  transition: transform var(--pm-transition-slow, 0.4s ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--pm-space-3xl, 64px) var(--pm-space-lg, 24px) var(--pm-space-xl, 32px);
}

.pm-drawer:not([hidden]) .pm-drawer__panel {
  transform: translateX(0);
}

.pm-drawer__close {
  position: absolute;
  top: var(--pm-space-md, 16px);
  right: var(--pm-space-md, 16px);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.pm-drawer__close:hover {
  color: #fff;
}

.pm-drawer__search {
  display: flex;
  margin-bottom: var(--pm-space-xl, 32px);
}

.pm-drawer__search-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--pm-radius-md, 4px) 0 0 var(--pm-radius-md, 4px);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
}

.pm-drawer__search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.pm-drawer__search-btn {
  background: var(--pm-color-primary, #0066FF);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 var(--pm-radius-md, 4px) var(--pm-radius-md, 4px) 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
}

.pm-drawer__nav {
  margin-bottom: var(--pm-space-lg, 24px);
}

.pm-drawer__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-drawer__list .menu-item a {
  display: block;
  padding: 14px 0;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-drawer__list .menu-item a:hover {
  color: var(--pm-color-primary-light, #3388FF);
}


/* ==========================================================================
   12. SEARCH OVERLAY — PHP: pm-search-overlay*
   ========================================================================== */

.pm-search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--pm-z-modal, 1020);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-search-overlay__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.pm-search-overlay__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
}

.pm-search-overlay__close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.pm-search-overlay__form {
  display: flex;
}

.pm-search-overlay__input {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--pm-radius-md, 4px);
}

.pm-search-overlay__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.pm-search-overlay__input:focus {
  border-color: var(--pm-color-primary, #0066FF);
  outline: none;
}


/* ==========================================================================
   13. WHAT'S NEW TABS — PHP: pm-tabs__btn*, pm-whats-new__panel*,
       pm-section-header--with-tabs, pm-section-header__left
       CSS: pm-tab*, pm-tab-panel*, pm-whats-new__content
   ========================================================================== */

.pm-section-header--with-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--pm-space-md, 16px);
}

.pm-section-header__left {
  flex-shrink: 0;
}

.pm-tabs {
  display: flex;
  gap: var(--pm-space-xs, 8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pm-tabs::-webkit-scrollbar {
  display: none;
}

.pm-tabs__btn {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-color-meta, #888);
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: var(--pm-radius-full, 9999px);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--pm-transition-fast, 0.15s ease), color var(--pm-transition-fast, 0.15s ease);
}

.pm-tabs__btn:hover {
  color: var(--pm-color-dark, #111);
  background: var(--pm-color-bg-alt, #f5f5f5);
}

.pm-tabs__btn--active {
  color: #fff;
  background-color: var(--pm-color-primary, #0066FF);
}

.pm-tabs__btn--active:hover {
  color: #fff;
  background-color: var(--pm-color-primary-dark, #0052CC);
}

.pm-whats-new__panel {
  display: none;
}

.pm-whats-new__panel--active {
  display: block;
}

.pm-whats-new__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-lg, 24px);
}

/* First child of whats-new grid (overlay card) spans full row height */
.pm-whats-new__grid > .pm-card-overlay {
  grid-row: 1 / span 2;
}

.pm-empty-state {
  color: var(--pm-color-meta, #888);
  font-style: italic;
  padding: var(--pm-space-xl, 32px);
  text-align: center;
}


/* ==========================================================================
   14. DARK SECTION — scoped dark variant overrides
   ========================================================================== */

.pm-section-label--light {
  color: rgba(255,255,255,0.6);
}

.pm-section-title--light {
  color: #fff;
}


/* ==========================================================================
   15. FROM US — PHP: pm-from-us* — CSS: NONE
   ========================================================================== */

.pm-from-us {
  padding: var(--pm-space-3xl, 64px) 0;
}

.pm-from-us__card {
  position: relative;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-color: var(--pm-color-dark, #111);
  border-radius: var(--pm-radius-md, 4px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.pm-from-us__overlay {
  position: relative;
  z-index: 2;
  padding: var(--pm-space-2xl, 48px);
  color: #fff;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.pm-from-us__title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: var(--pm-text-3xl, 2rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: var(--pm-space-md, 16px);
}

.pm-from-us__title a {
  color: inherit;
}

.pm-from-us__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-from-us__meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm, 12px);
}


/* ==========================================================================
   16. NEWSLETTER — PHP: pm-newsletter__inner, __featured*, __sidebar,
       __form-wrapper, __desc, __input-group, __submit, __cat-heading,
       __cat-grid, __cat-link, __cat-count
       CSS: pm-newsletter-section__grid, __button, __cat-list
   ========================================================================== */

.pm-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-xl, 32px);
}

.pm-newsletter__featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--pm-radius-md, 4px);
}

.pm-newsletter__featured-link {
  display: block;
  position: relative;
  min-height: 400px;
}

.pm-newsletter__featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.pm-newsletter__featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--pm-space-xl, 32px);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
  z-index: 2;
}

.pm-newsletter__featured-title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: var(--pm-text-xl, 1.5rem);
  color: #fff;
  line-height: 1.3;
  margin-bottom: var(--pm-space-xs, 8px);
}

.pm-newsletter__featured-meta {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm, 12px);
}

.pm-newsletter__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-xl, 32px);
}

.pm-newsletter__form-wrapper {
  background: var(--pm-color-bg-alt, #f5f5f5);
  padding: var(--pm-space-xl, 32px);
  border-radius: var(--pm-radius-lg, 8px);
}

.pm-newsletter__desc {
  font-size: var(--pm-text-sm, 14px);
  color: var(--pm-color-meta, #888);
  margin-bottom: var(--pm-space-lg, 24px);
  line-height: 1.6;
}

.pm-newsletter__input-group {
  display: flex;
  gap: 0;
}

.pm-newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--pm-color-border, #eee);
  border-radius: var(--pm-radius-md, 4px) 0 0 var(--pm-radius-md, 4px);
  font-size: 14px;
  background: #fff;
}

.pm-newsletter__input:focus {
  outline: none;
  border-color: var(--pm-color-primary, #0066FF);
}

.pm-newsletter__submit {
  padding: 12px 24px;
  background: var(--pm-color-primary, #0066FF);
  color: #fff;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 0 var(--pm-radius-md, 4px) var(--pm-radius-md, 4px) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--pm-transition-fast, 0.15s ease);
}

.pm-newsletter__submit:hover {
  background: var(--pm-color-primary-dark, #0052CC);
}

.pm-newsletter__cat-heading {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--pm-color-dark, #111);
  margin-bottom: var(--pm-space-md, 16px);
}

.pm-newsletter__cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-sm, 12px);
}

.pm-newsletter__cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-left: 3px solid var(--pm-color-border, #eee);
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-color-dark, #111);
  transition: background-color var(--pm-transition-fast, 0.15s ease);
  border-radius: 0 var(--pm-radius-sm, 2px) var(--pm-radius-sm, 2px) 0;
}

.pm-newsletter__cat-link:hover {
  background: var(--pm-color-bg-alt, #f5f5f5);
}

.pm-newsletter__cat-count {
  font-size: 12px;
  color: var(--pm-color-meta, #888);
  background: var(--pm-color-bg-alt, #f5f5f5);
  padding: 2px 8px;
  border-radius: var(--pm-radius-full, 9999px);
}


/* ==========================================================================
   17. LATEST NEWS — PHP: __left, __right, __footer, pm-btn*
       CSS: __image-cards, __text-cards, pm-see-more*
   ========================================================================== */

.pm-latest-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-xl, 32px);
}

.pm-latest-news__left {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg, 24px);
}

.pm-latest-news__right {
  display: flex;
  flex-direction: column;
}

.pm-latest-news__footer {
  text-align: center;
  padding-top: var(--pm-space-xl, 32px);
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--pm-radius-full, 9999px);
  cursor: pointer;
  transition: all var(--pm-transition-base, 0.25s ease);
  text-decoration: none;
}

.pm-btn--outline {
  color: var(--pm-color-dark, #111);
  border: 2px solid var(--pm-color-border, #eee);
  background: transparent;
}

.pm-btn--outline:hover {
  border-color: var(--pm-color-primary, #0066FF);
  color: var(--pm-color-primary, #0066FF);
  box-shadow: var(--pm-shadow-md, 0 2px 8px rgba(0,0,0,0.08));
}

.pm-btn--outline .pm-icon {
  transition: transform var(--pm-transition-fast, 0.15s ease);
}

.pm-btn--outline:hover .pm-icon {
  transform: translateX(3px);
}


/* ==========================================================================
   18. FOOTER — PHP: pm-footer__col, __categories-grid, __cat-list,
       __link-list, __contact-list, __contact-item, __popular-list,
       __popular-item, __popular-thumb, __popular-info, __popular-title,
       __popular-date, __bottom, __copyright, __bottom-social, __social-link,
       pm-footer-widget__title
       CSS: pm-footer__heading, pm-footer-cats, pm-footer-links, etc.
   ========================================================================== */

.pm-footer {
  background-color: var(--pm-color-bg-footer, #111);
  color: rgba(255,255,255,0.8);
  padding: var(--pm-space-3xl, 64px) 0 0;
}

.pm-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pm-space-xl, 32px);
}

.pm-footer__col {
  min-width: 0;
}

.pm-footer-widget__title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: var(--pm-space-lg, 24px);
  position: relative;
  padding-bottom: var(--pm-space-sm, 12px);
}

.pm-footer-widget__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--pm-color-primary, #0066FF);
}

.pm-footer__categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-space-md, 16px);
}

.pm-footer__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-footer__cat-list li {
  margin-bottom: var(--pm-space-xs, 8px);
}

.pm-footer__cat-list a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-footer__cat-list a:hover {
  color: #fff;
}

.pm-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-footer__link-list li {
  margin-bottom: var(--pm-space-sm, 12px);
}

.pm-footer__link-list a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-footer__link-list a:hover {
  color: #fff;
}

.pm-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--pm-space-sm, 12px);
  margin-bottom: var(--pm-space-md, 16px);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.pm-footer__contact-item svg {
  flex-shrink: 0;
  color: var(--pm-color-primary, #0066FF);
  margin-top: 2px;
}

.pm-footer__contact-item a {
  color: rgba(255,255,255,0.7);
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-footer__contact-item a:hover {
  color: #fff;
}

.pm-footer__popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-footer__popular-item {
  display: flex;
  gap: var(--pm-space-sm, 12px);
  margin-bottom: var(--pm-space-md, 16px);
}

.pm-footer__popular-thumb {
  width: 80px;
  height: 60px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.pm-footer__popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pm-transition-base, 0.25s ease);
}

.pm-footer__popular-item:hover .pm-footer__popular-thumb img {
  transform: scale(1.05);
}

.pm-footer__popular-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pm-footer__popular-title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-footer__popular-item:hover .pm-footer__popular-title {
  color: #fff;
}

.pm-footer__popular-date {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
}

.pm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pm-space-lg, 24px) 0;
  margin-top: var(--pm-space-2xl, 48px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.pm-footer__copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.pm-footer__bottom-social {
  display: flex;
  align-items: center;
  gap: var(--pm-space-sm, 12px);
}

.pm-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  transition: color var(--pm-transition-fast, 0.15s ease), border-color var(--pm-transition-fast, 0.15s ease);
}

.pm-footer__social-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.pm-footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ==========================================================================
   19. SINGLE POST — PHP: __content-wrap, pm-article__body, __tags, __tags-label
       CSS: __content, pm-tags, pm-tags__label
   ========================================================================== */

.pm-single__content-wrap {
  padding: var(--pm-space-2xl, 48px) 0;
}

.pm-container--narrow {
  max-width: var(--pm-content-width, 750px);
}

.pm-article__body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--pm-color-body, #444);
}

.pm-article__body h2 {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: var(--pm-text-2xl, 1.75rem);
  font-weight: 700;
  color: var(--pm-color-dark, #111);
  margin-top: var(--pm-space-2xl, 48px);
  margin-bottom: var(--pm-space-md, 16px);
  padding-bottom: var(--pm-space-sm, 12px);
  border-bottom: 2px solid var(--pm-color-border, #eee);
}

.pm-article__body h3 {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: var(--pm-text-xl, 1.25rem);
  font-weight: 700;
  color: var(--pm-color-dark, #111);
  margin-top: var(--pm-space-xl, 32px);
  margin-bottom: var(--pm-space-sm, 12px);
}

.pm-article__body p {
  margin-bottom: 1.25em;
}

.pm-article__body img {
  border-radius: var(--pm-radius-md, 4px);
  margin: var(--pm-space-lg, 24px) 0;
}

.pm-article__body a {
  color: var(--pm-color-primary, #0066FF);
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-article__body a:hover {
  color: var(--pm-color-primary-dark, #0052CC);
  text-decoration: underline;
}

.pm-article__body ul,
.pm-article__body ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.pm-article__body ul {
  list-style-type: disc;
}

.pm-article__body ol {
  list-style-type: decimal;
}

.pm-article__body li {
  margin-bottom: 0.5em;
}

.pm-article__body li::marker {
  color: var(--pm-color-primary, #0066FF);
}

.pm-article__body blockquote {
  border-left: 4px solid var(--pm-color-primary, #0066FF);
  background: var(--pm-color-bg-alt, #f5f5f5);
  padding: var(--pm-space-lg, 24px) var(--pm-space-xl, 32px);
  margin: var(--pm-space-xl, 32px) 0;
  font-style: italic;
}

.pm-single__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--pm-space-xs, 8px);
  padding: var(--pm-space-xl, 32px) 0;
  border-top: 1px solid var(--pm-color-border, #eee);
  margin-top: var(--pm-space-xl, 32px);
}

.pm-single__tags-label {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--pm-color-dark, #111);
  margin-right: var(--pm-space-xs, 8px);
}

.pm-single__meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-single__meta-secondary {
  display: flex;
  align-items: center;
  gap: var(--pm-space-xs, 8px);
  font-size: 13px;
  color: var(--pm-color-meta, #888);
}


/* ==========================================================================
   20. ARCHIVE — PHP: pm-archive-layout*, pm-archive__*
       CSS: pm-archive__with-sidebar, pm-archive__main
   ========================================================================== */

.pm-archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--pm-space-2xl, 48px);
  padding: var(--pm-space-xl, 32px) 0;
}

.pm-archive-layout__content {
  min-width: 0;
}

.pm-archive-layout__sidebar {
  position: sticky;
  top: calc(var(--pm-topbar-height, 44px) + var(--pm-header-height, 72px) + 20px);
  align-self: start;
}


/* ==========================================================================
   21. SEARCH — PHP: pm-search-layout*, pm-search__*
       CSS: pm-search-results*, etc.
   ========================================================================== */

.pm-search-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--pm-space-2xl, 48px);
  padding: var(--pm-space-xl, 32px) 0;
}

.pm-search-layout__content {
  min-width: 0;
}

.pm-search-layout__sidebar {
  position: sticky;
  top: calc(var(--pm-topbar-height, 44px) + var(--pm-header-height, 72px) + 20px);
  align-self: start;
}

.pm-search__header {
  margin-bottom: var(--pm-space-xl, 32px);
}

.pm-search__title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: var(--pm-text-2xl, 1.75rem);
  font-weight: 700;
  color: var(--pm-color-dark, #111);
}

.pm-search__title span {
  color: var(--pm-color-primary, #0066FF);
}

.pm-search__count {
  color: var(--pm-color-meta, #888);
  font-size: 14px;
  margin-top: var(--pm-space-xs, 8px);
}

.pm-search__results {
  display: flex;
  flex-direction: column;
  gap: var(--pm-space-lg, 24px);
}

.pm-search__empty {
  text-align: center;
  padding: var(--pm-space-3xl, 64px) 0;
}


/* ==========================================================================
   22. PAGINATION — PHP: __list, __item, __item--active
       CSS: __link, __current
   ========================================================================== */

.pm-pagination__list {
  display: flex;
  justify-content: center;
  gap: var(--pm-space-xs, 8px);
  list-style: none;
  margin: 0;
  padding: var(--pm-space-xl, 32px) 0;
}

.pm-pagination__item a,
.pm-pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-color-dark, #111);
  border: 1px solid var(--pm-color-border, #eee);
  border-radius: var(--pm-radius-md, 4px);
  transition: all var(--pm-transition-fast, 0.15s ease);
}

.pm-pagination__item a:hover {
  border-color: var(--pm-color-primary, #0066FF);
  color: var(--pm-color-primary, #0066FF);
}

.pm-pagination__item--active span,
.pm-pagination__item .current {
  background: var(--pm-color-primary, #0066FF);
  color: #fff;
  border-color: var(--pm-color-primary, #0066FF);
}


/* ==========================================================================
   23. SIDEBAR WIDGETS — PHP: pm-widget, pm-widget__*
       CSS: pm-widget-search__*, pm-widget-posts__*, pm-widget-cats__*
   ========================================================================== */

.pm-widget__recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-widget__recent-item {
  display: flex;
  gap: var(--pm-space-sm, 12px);
  padding: var(--pm-space-sm, 12px) 0;
  border-bottom: 1px solid var(--pm-color-border, #eee);
}

.pm-widget__recent-item:last-child {
  border-bottom: none;
}

.pm-widget__recent-thumb {
  width: 70px;
  height: 56px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  border-radius: var(--pm-radius-sm, 2px);
}

.pm-widget__recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-widget__recent-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pm-widget__recent-title {
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--pm-color-dark, #111);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-widget__recent-title:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-widget__recent-date {
  font-size: 12px;
  color: var(--pm-color-meta, #888);
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
}

.pm-widget__categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-widget__category-item {
  border-bottom: 1px solid var(--pm-color-border, #eee);
}

.pm-widget__category-item:last-child {
  border-bottom: none;
}

.pm-widget__category-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--pm-color-body, #444);
  transition: color var(--pm-transition-fast, 0.15s ease);
}

.pm-widget__category-item a:hover {
  color: var(--pm-color-primary, #0066FF);
}

.pm-widget__category-count {
  font-size: 12px;
  color: var(--pm-color-meta, #888);
}


/* ==========================================================================
   24. 404 — PHP: pm-404__home-btn; CSS: pm-404__home-link
   ========================================================================== */

.pm-404__home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--pm-color-primary, #0066FF);
  color: #fff;
  font-family: var(--pm-font-heading, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--pm-radius-full, 9999px);
  transition: background-color var(--pm-transition-fast, 0.15s ease), transform var(--pm-transition-fast, 0.15s ease);
  margin-top: var(--pm-space-lg, 24px);
}

.pm-404__home-btn:hover {
  background: var(--pm-color-primary-dark, #0052CC);
  transform: translateY(-2px);
}


/* ==========================================================================
   25. RESPONSIVE — Mirror breakpoints for all new PHP class names
   ========================================================================== */

@media (max-width: 1200px) {
  .pm-hero-split__inner {
    grid-template-columns: 55% 45%;
  }

  .pm-top-stories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pm-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .pm-header__nav {
    display: none;
  }

  .pm-header__search {
    display: none;
  }

  .pm-header__search-toggle {
    display: flex;
  }

  .pm-hamburger {
    display: flex;
  }

  .pm-hero-split__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pm-hero-split__link {
    min-height: 400px;
  }

  .pm-newsletter__inner {
    grid-template-columns: 1fr;
  }

  .pm-newsletter__featured-link {
    min-height: 300px;
  }

  .pm-whats-new__grid {
    grid-template-columns: 1fr;
  }

  .pm-dark-section__grid {
    grid-template-columns: 1fr;
  }

  .pm-latest-news__grid {
    grid-template-columns: 1fr;
  }

  .pm-archive-layout {
    grid-template-columns: 1fr;
  }

  .pm-archive-layout__sidebar {
    position: static;
  }

  .pm-search-layout {
    grid-template-columns: 1fr;
  }

  .pm-search-layout__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .pm-topbar__nav {
    display: none;
  }

  .pm-top-stories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-footer__grid {
    grid-template-columns: 1fr;
  }

  .pm-newsletter__cat-grid {
    grid-template-columns: 1fr;
  }

  .pm-from-us__card {
    min-height: 350px;
  }

  .pm-from-us__overlay {
    padding: var(--pm-space-lg, 24px);
  }

  .pm-footer__bottom {
    flex-direction: column;
    gap: var(--pm-space-md, 16px);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pm-hero-split__link {
    min-height: 300px;
  }

  .pm-hero-split__title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .pm-top-stories__grid {
    grid-template-columns: 1fr;
  }

  .pm-from-us__card {
    min-height: 280px;
  }

  .pm-from-us__title {
    font-size: var(--pm-text-xl, 1.25rem);
  }

  .pm-newsletter__form-wrapper {
    padding: var(--pm-space-lg, 24px);
  }

  .pm-newsletter__input-group {
    flex-direction: column;
    gap: var(--pm-space-xs, 8px);
  }

  .pm-newsletter__input {
    border-radius: var(--pm-radius-md, 4px);
  }

  .pm-newsletter__submit {
    border-radius: var(--pm-radius-md, 4px);
  }
}


/* ==========================================================================
   26. DARK MODE — Extend [data-theme="dark"] for new PHP classes
   ========================================================================== */

[data-theme="dark"] .pm-card-standard {
  background-color: var(--pm-color-bg-dark, #111);
}

[data-theme="dark"] .pm-card-standard__title,
[data-theme="dark"] .pm-card-standard__title a {
  color: #f1f5f9;
}

[data-theme="dark"] .pm-card-text-only {
  border-bottom-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .pm-card-text-only__title,
[data-theme="dark"] .pm-card-text-only__title a {
  color: #f1f5f9;
}

[data-theme="dark"] .pm-trending-title {
  color: #f1f5f9;
}

[data-theme="dark"] .pm-newsletter__form-wrapper {
  background: #1e293b;
}

[data-theme="dark"] .pm-newsletter__input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .pm-newsletter__cat-link {
  color: #f1f5f9;
  border-left-color: #334155;
}

[data-theme="dark"] .pm-newsletter__cat-link:hover {
  background: #1e293b;
}

[data-theme="dark"] .pm-newsletter__cat-count {
  background: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .pm-widget__category-item {
  border-bottom-color: #334155;
}

[data-theme="dark"] .pm-widget__recent-item {
  border-bottom-color: #334155;
}

[data-theme="dark"] .pm-single__tags {
  border-top-color: #334155;
}

[data-theme="dark"] .pm-header__search-input {
  background: #1e293b;
  color: #f1f5f9;
}

[data-theme="dark"] .pm-header__site-title {
  color: #f1f5f9;
}

[data-theme="dark"] .pm-archive-layout__sidebar,
[data-theme="dark"] .pm-search-layout__sidebar {
  color: var(--pm-color-body, #444);
}
