@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', 'Tahoma', 'IranSans', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.pn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pn-container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* Header */
.pn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1rem;
}

.pn-brandbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 4px 20px;
  overflow: hidden;
  background: #0e1f3d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pn-logo {
  display: block;
  width: min(360px, 78vw);
  line-height: 0;
}

.pn-logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
}

.pn-logo:hover,
.pn-logo:focus {
  text-decoration: none;
}

.pn-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.pn-main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pn-main-nav a {
  display: block;
  padding: 0.35rem 0;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
}

.pn-main-nav a:hover,
.pn-main-nav a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.pn-language-form {
  display: inline-block;
}

.pn-language-select {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: #1e293b;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

html[dir="rtl"] .pn-language-select {
  direction: rtl;
}

/* Page wrapper */
.pn-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content,
.site-content {
  flex: 1;
  padding: 1rem 0 2rem;
}

/* Main headings and content */
.pn-jobs,
.pn-services,
.pn-property,
.pn-marketplace,
.pn-dating-discovery,
.pn-social,
.pn-messages,
.pn-activity,
.pn-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.pn-jobs h1,
.pn-services h1,
.pn-property h1,
.pn-marketplace h1,
.pn-dating-discovery h1,
.pn-social h1,
.pn-messages h1,
.pn-activity h1,
.pn-search h1,
.pn-jobs h2,
.pn-services h2,
.pn-property h2,
.pn-marketplace h2 {
  line-height: 1.3;
  word-wrap: break-word;
}

/* Forms */
.pn-jobs-filter,
.pn-services-filter,
.pn-property-filter,
.pn-marketplace-filter,
.pn-dating-discovery form,
.pn-search form,
.pn-jobs-create,
.pn-services-create,
.pn-marketplace-create,
.pn-property-create {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.pn-jobs-filter label,
.pn-services-filter label,
.pn-property-filter label,
.pn-marketplace-filter label,
.pn-dating-discovery label,
.pn-jobs-create label,
.pn-services-create label,
.pn-marketplace-create label,
.pn-property-create label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.pn-jobs-filter input,
.pn-jobs-filter select,
.pn-jobs-filter textarea,
.pn-services-filter input,
.pn-services-filter select,
.pn-services-filter textarea,
.pn-property-filter input,
.pn-property-filter select,
.pn-property-filter textarea,
.pn-marketplace-filter input,
.pn-marketplace-filter select,
.pn-marketplace-filter textarea,
.pn-jobs-create input,
.pn-jobs-create select,
.pn-jobs-create textarea,
.pn-services-create input,
.pn-services-create select,
.pn-services-create textarea,
.pn-property-create input,
.pn-property-create select,
.pn-property-create textarea,
.pn-marketplace-create input,
.pn-marketplace-create select,
.pn-marketplace-create textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: #1f2937;
  background: #ffffff;
}

.pn-jobs-filter input:focus,
.pn-jobs-filter select:focus,
.pn-jobs-filter textarea:focus,
.pn-services-filter input:focus,
.pn-services-filter select:focus,
.pn-services-filter textarea:focus,
.pn-property-filter input:focus,
.pn-property-filter select:focus,
.pn-property-filter textarea:focus,
.pn-marketplace-filter input:focus,
.pn-marketplace-filter select:focus,
.pn-marketplace-filter textarea:focus,
.pn-jobs-create input:focus,
.pn-jobs-create select:focus,
.pn-jobs-create textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pn-jobs-filter button,
.pn-services-filter button,
.pn-property-filter button,
.pn-marketplace-filter button,
.pn-dating-discovery button,
.pn-jobs-create button,
.pn-services-create button,
.pn-marketplace-create button,
.pn-property-create button,
.pn-btn-primary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
}

.pn-jobs-filter button:hover,
.pn-services-filter button:hover,
.pn-property-filter button:hover,
.pn-marketplace-filter button:hover,
.pn-jobs-create button:hover,
.pn-services-create button:hover,
.pn-marketplace-create button:hover,
.pn-property-create button:hover,
.pn-btn-primary:hover,
.button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* RTL form alignment */
html[dir="rtl"] .pn-jobs-filter,
html[dir="rtl"] .pn-services-filter,
html[dir="rtl"] .pn-property-filter,
html[dir="rtl"] .pn-marketplace-filter,
html[dir="rtl"] .pn-jobs-create,
html[dir="rtl"] .pn-services-create,
html[dir="rtl"] .pn-property-create,
html[dir="rtl"] .pn-marketplace-create {
  direction: rtl;
}

html[dir="rtl"] .pn-jobs-filter input,
html[dir="rtl"] .pn-jobs-filter select,
html[dir="rtl"] .pn-services-filter input,
html[dir="rtl"] .pn-services-filter select,
html[dir="rtl"] .pn-property-filter input,
html[dir="rtl"] .pn-property-filter select,
html[dir="rtl"] .pn-marketplace-filter input,
html[dir="rtl"] .pn-marketplace-filter select {
  direction: rtl;
  text-align: right;
}

/* Cards */
.pn-job-card,
.pn-service-card,
.pn-marketplace-card,
.pn-property-card,
.pn-dating-card,
.pn-social-post,
.pn-dashboard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.pn-job-card h2,
.pn-service-card h2,
.pn-marketplace-card h2,
.pn-property-card h2,
.pn-dating-card h2,
.pn-social-post h2,
.pn-dashboard-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.pn-job-card a,
.pn-service-card a,
.pn-marketplace-card a,
.pn-property-card a,
.pn-dating-card a {
  color: #1e40af;
}

.pn-job-meta,
.pn-service-meta,
.pn-marketplace-meta,
.pn-property-location,
.pn-dating-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.pn-job-salary,
.pn-service-price,
.pn-marketplace-price,
.pn-property-price {
  font-weight: 700;
  color: #111827;
  margin: 0.25rem 0;
}

.pn-service-card img,
.pn-marketplace-card img,
.pn-property-card img,
.pn-dating-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

/* Grids */
.pn-services-grid,
.pn-marketplace-grid,
.pn-property-grid,
.pn-dating-discovery-results,
.pn-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Tables */
.pn-jobs-table,
.pn-services-table,
.pn-marketplace-table,
.pn-property-table,
.pn-messages-table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.pn-jobs-table th,
.pn-jobs-table td,
.pn-services-table th,
.pn-services-table td,
.pn-marketplace-table th,
.pn-marketplace-table td,
.pn-property-table th,
.pn-property-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

html[dir="rtl"] .pn-jobs-table th,
html[dir="rtl"] .pn-jobs-table td,
html[dir="rtl"] .pn-services-table th,
html[dir="rtl"] .pn-services-table td,
html[dir="rtl"] .pn-marketplace-table th,
html[dir="rtl"] .pn-marketplace-table td,
html[dir="rtl"] .pn-property-table th,
html[dir="rtl"] .pn-property-table td {
  text-align: right;
}

/* Pagination */
.pn-jobs-pagination,
.pn-services-pagination,
.pn-property-pagination,
.pn-marketplace-pagination,
.pn-social-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pn-jobs-pagination a,
.pn-services-pagination a,
.pn-property-pagination a,
.pn-marketplace-pagination a,
.pn-social-pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  background: #ffffff;
}

.pn-jobs-pagination a.current,
.pn-jobs-pagination a:hover,
.pn-services-pagination a:hover,
.pn-property-pagination a:hover,
.pn-marketplace-pagination a:hover,
.pn-social-pagination a:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

/* Footer */
.pn-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: auto;
}

.pn-footer a {
  color: #cbd5e1;
}

.pn-footer a:hover,
.pn-footer a:focus {
  color: #ffffff;
}

.pn-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pn-footer__grid h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #ffffff;
}

.pn-footer__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pn-footer__grid li {
  margin-bottom: 0.5rem;
}

.pn-footer__grid a {
  font-size: 0.95rem;
}

.pn-footer__bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* General responsive */
@media (max-width: 640px) {
  .pn-brandbar {
    min-height: 138px;
    padding: 2px 12px;
  }
  .pn-logo {
    width: min(320px, 86vw);
  }
  .pn-header__inner {
    min-height: 56px;
    padding: 0.5rem 0.75rem;
  }
  .pn-footer {
    padding: .9rem .85rem calc(.8rem + env(safe-area-inset-bottom));
  }
  .pn-footer__grid {
    gap: .8rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: .8rem;
  }
  .pn-footer__grid h3 {
    font-size: .82rem;
    margin-bottom: .45rem;
  }
  .pn-footer__grid ul {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .6rem;
  }
  .pn-footer__grid li {
    margin: 0;
  }
  .pn-footer__grid a {
    font-size: .76rem;
    line-height: 1.5;
  }
  .pn-footer__bottom {
    font-size: .72rem;
    padding-top: .65rem;
  }
  .pn-menu-toggle {
    display: block;
  }

  .pn-main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .pn-main-nav.is-open {
    display: block;
  }

  .pn-main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pn-jobs-filter,
  .pn-services-filter,
  .pn-property-filter,
  .pn-marketplace-filter,
  .pn-jobs-create,
  .pn-services-create,
  .pn-marketplace-create,
  .pn-property-create {
    grid-template-columns: 1fr;
  }

  .pn-services-grid,
  .pn-marketplace-grid,
  .pn-property-grid,
  .pn-dating-discovery-results,
  .pn-social-grid {
    grid-template-columns: 1fr;
  }

  .pn-job-card,
  .pn-service-card,
  .pn-marketplace-card,
  .pn-property-card,
  .pn-dating-card {
    padding: 0.9rem;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .pn-services-grid,
  .pn-marketplace-grid,
  .pn-property-grid,
  .pn-dating-discovery-results,
  .pn-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Override core left alignment for RTL */
html[dir="rtl"] .pn-action-message,
html[dir="rtl"] .pn-services-chat .me {
  margin-right: 0.5rem;
  margin-left: 0;
}

html[dir="rtl"] .pn-services-chat .me {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .pn-marketplace-chat .me {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .pn-jobs-pagination,
html[dir="rtl"] .pn-services-pagination,
html[dir="rtl"] .pn-property-pagination,
html[dir="rtl"] .pn-marketplace-pagination {
  direction: rtl;
}

/* Empty states */
.pn-empty,
.pn-jobs-empty,
.pn-services-empty,
.pn-marketplace-empty,
.pn-property-empty,
.pn-dating-empty,
.pn-social-empty,
.pn-activity-empty,
.pn-messages-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  margin: 1rem 0;
}

html[dir="rtl"] .pn-empty,
html[dir="rtl"] .pn-jobs-empty,
html[dir="rtl"] .pn-services-empty {
  direction: rtl;
}

/* ============================================================
   Homepage sections ([persiannest_*] shortcodes)
   ============================================================ */
.pn-home-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  text-align: center;
  color: #1f2937;
}

.pn-home-muted { color: #64748b; text-align: center; }

.pn-home-stats { padding: 2rem 1rem; }
.pn-home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.pn-home-stats__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.pn-home-stats__item strong {
  display: block;
  font-size: 2rem;
  color: #2563eb;
  line-height: 1.2;
}
.pn-home-stats__item span { color: #6b7280; font-size: 0.9rem; }

.pn-home-hub { padding: 3rem 1rem; }
.pn-home-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pn-home-hub__card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--hub-color, #2563eb);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pn-home-hub__card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.pn-home-hub__name { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.35rem; }
.pn-home-hub__desc { color: #6b7280; font-size: 0.9rem; }

.pn-home-why { padding: 2rem 1rem; background: #f8fafc; }
.pn-home-why__intro {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin: -0.5rem auto 1.25rem;
  max-width: 520px;
}
.pn-home-why__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pn-home-why__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pn-home-why__chip:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.12); }
.pn-home-why__icon { font-size: 1rem; }
.pn-home-why {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1rem !important;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #fff7ed 100%);
}
.pn-home-why::before {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.13), transparent 68%);
  content: '';
  animation: pn-why-orb 6s ease-in-out infinite alternate;
  pointer-events: none;
}
.pn-home-why .pn-home-title {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  text-align: center;
}
.pn-home-why__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 980px);
  margin: 0 auto;
}
.pn-home-why__card {
  grid-column: span 2;
  display: flex;
  min-width: 0;
  min-height: 128px;
  padding: 0.9rem 0.75rem;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 5px 18px rgba(30,41,59,.06);
  color: #1f2937;
  text-align: center;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pn-home-why__card:nth-child(5) { grid-column: 2 / span 2; }
.pn-home-why__card:nth-child(6) { grid-column: 4 / span 2; }
.pn-home-why__card:nth-child(7) { grid-column: 6 / span 2; }
.pn-home-why__card:hover {
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 12px 28px rgba(124,58,237,.14);
  transform: translateY(-5px) rotate(.5deg);
}
.pn-home-why__name { display: block; margin: 0.35rem 0 0.2rem; font-size: 0.9rem; font-weight: 700; line-height: 1.5; }
.pn-home-why__desc { display: block; margin: 0; color: #64748b; font-size: 0.7rem; line-height: 1.55; }
.pn-home-why__icon {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe, #ffedd5);
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(124,58,237,.13);
  animation: pn-why-icon-orbit 3s ease-in-out infinite;
  animation-delay: calc(var(--pn-why-index, 0) * .18s);
}
.pn-home-why__card:nth-child(1) { --pn-why-index: 0; }
.pn-home-why__card:nth-child(2) { --pn-why-index: 1; }
.pn-home-why__card:nth-child(3) { --pn-why-index: 2; }
.pn-home-why__card:nth-child(4) { --pn-why-index: 3; }
.pn-home-why__card:nth-child(5) { --pn-why-index: 4; }
.pn-home-why__card:nth-child(6) { --pn-why-index: 5; }
.pn-home-why__card:nth-child(7) { --pn-why-index: 6; }
@keyframes pn-why-orb { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-90px,55px,0) scale(1.35); } }
@keyframes pn-why-icon-orbit {
  0%, 55%, 100% { transform: translateY(0) rotate(0); }
  68% { transform: translateY(-4px) rotate(-8deg); }
  82% { transform: translateY(0) rotate(8deg); }
}
@media (max-width: 700px) {
  .pn-home-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .pn-home-why__card,
  .pn-home-why__card:nth-child(5),
  .pn-home-why__card:nth-child(6) { grid-column: span 1; }
  .pn-home-why__card:nth-child(7) { grid-column: 1 / -1; width: calc(50% - .275rem); justify-self: center; }
  .pn-home-why__card { min-height: 118px; padding: 0.75rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pn-home-why::before,
  .pn-home-why__icon { animation: none; }
}

.pn-home-steps { padding: 3rem 1rem; }
.pn-home-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pn-home-steps__step { text-align: center; }
.pn-home-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pn-home-steps__step h3 { margin: 0 0 0.35rem; }
.pn-home-steps__step p { color: #6b7280; font-size: 0.9rem; margin: 0; }

.pn-home-content { padding: 3rem 1rem; background: #f8fafc; }
.pn-home-content__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pn-home-content__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
}
.pn-home-content__card h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.pn-home-content__card ul { margin: 0; padding-inline-start: 1.2rem; color: #374151; }
.pn-home-content__card li { margin-bottom: 0.4rem; }
.pn-home-content__link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #2563eb;
  font-size: 0.9rem;
  text-decoration: none;
}

.pn-home-market { padding: 3rem 1rem; }
.pn-home-market__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pn-home-market__card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.pn-home-market__card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.pn-home-market__img {
  aspect-ratio: 4/3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pn-home-market__img img { width: 100%; height: 100%; object-fit: cover; }
.pn-home-market__noimg { color: #94a3b8; font-size: 0.85rem; }
.pn-home-market__body { padding: 0.9rem; }
.pn-home-market__body h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.pn-home-market__price { margin: 0; color: #059669; font-weight: 700; }
.pn-home-market__loc { margin: 0.25rem 0 0; color: #6b7280; font-size: 0.85rem; }

.pn-home-members { padding: 3rem 1rem; }
.pn-home-members__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.pn-home-members__card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
}
.pn-home-members__avatar {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 0.5rem;
}

.pn-home-social { padding: 3rem 1rem; background: #f8fafc; }
.pn-home-social__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pn-home-social__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.pn-home-social__card p { margin: 0 0 0.75rem; }
.pn-home-social__author { color: #2563eb; font-size: 0.85rem; font-weight: 600; }

.pn-home-global { padding: 3rem 1rem; }
.pn-home-global__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pn-home-global__inner p { color: #4b5563; line-height: 1.9; }
.pn-home-global__langs { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.pn-home-global__langs span {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pn-home-cta { padding: 3rem 1rem 4rem; }
.pn-home-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: 24px;
  padding: 3rem 2rem;
}
.pn-home-cta__inner h2 { margin: 0 0 0.5rem; font-size: 1.8rem; }
.pn-home-cta__inner p { margin: 0 0 1.5rem; opacity: 0.9; }
.pn-home-cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.pn-home-cta__btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.pn-home-cta__btn--primary {
  background: #fff;
  color: #1e3a8a;
  border-color: #fff;
}

.pn-home-more { text-align: center; margin-top: 1.25rem; }
.pn-home-more a { color: #2563eb; font-weight: 600; text-decoration: none; }

@media (max-width: 768px) {
  .pn-home-stats__grid,
  .pn-home-hub__grid,
  .pn-home-steps__grid,
  .pn-home-content__grid,
  .pn-home-market__grid,
  .pn-home-social__grid {
    grid-template-columns: 1fr 1fr;
  }
  .pn-home-members__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .pn-home-stats__grid,
  .pn-home-hub__grid,
  .pn-home-steps__grid,
  .pn-home-content__grid,
  .pn-home-market__grid,
  .pn-home-social__grid {
    grid-template-columns: 1fr;
  }
  .pn-home-members__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PersianNest site header (desktop + mobile)
   ============================================================ */
.persiannest-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.persiannest-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.25rem;
  max-width: 1400px;
  margin-inline: auto;
  padding: 0.6rem 1.25rem;
}

.persiannest-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 148px;
  padding: 4px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.persiannest-header__logo {
  display: block;
  width: min(360px, 78vw);
  line-height: 0;
}
.persiannest-header__logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 4px;
}
.persiannest-header__site-title,
.persiannest-header__site-title a {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
}

.persiannest-header__navigation {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.persiannest-header__navigation .wp-block-navigation__container,
.persiannest-header__navigation ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.persiannest-header__navigation .wp-block-navigation__container::-webkit-scrollbar { display: none; }
.persiannest-header__navigation .wp-block-navigation-item__content,
.persiannest-header__navigation a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
}
.persiannest-header__navigation a:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.persiannest-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.persiannest-header__search input[type="search"] {
  width: 180px;
  padding: 0.45rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  background: #f8fafc;
  font-size: 0.85rem;
}
.persiannest-header__search input[disabled] { opacity: 0.6; cursor: not-allowed; }

/* RTL: keep brand on the inline-start side, actions on inline-end */
html[dir="rtl"] .persiannest-header__inner { flex-direction: row; }
html[dir="rtl"] .persiannest-header__navigation { direction: rtl; }

@media (max-width: 1024px) {
  .persiannest-header__search { display: none; }
}
@media (max-width: 782px) {
  .persiannest-header__inner { min-height: 56px; padding: 0.5rem 1rem; gap: 0.75rem; flex-wrap: nowrap; overflow: hidden; }
  .persiannest-header__navigation { flex: 0 0 auto; overflow: visible; }
  .persiannest-header__navigation .wp-block-navigation__container { overflow: visible; }
  .persiannest-header__navigation .wp-block-navigation__responsive-container-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container-open svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
  .persiannest-header .wc-block-customer-account,
  .persiannest-header .wc-block-mini-cart {
    display: none !important;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open {
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    min-height: 100dvh;
    padding: 1.25rem;
    color: #ffffff;
    background: linear-gradient(165deg, #142b50 0%, #0e1f3d 55%, #09162d 100%);
    border-radius: 22px 0 0 22px;
    box-shadow: 0 0 0 100vmax rgba(2, 8, 23, 0.62), -14px 0 40px rgba(2, 8, 23, 0.32);
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 4.5rem;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::before {
    content: "PersianNest";
    display: block;
    margin-bottom: 1.4rem;
    color: #f7b733;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.02em;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    margin-inline: auto;
    gap: 0.6rem;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    display: none;
    width: 100%;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(a[href="https://persiannest.de/"]),
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(a[href$="/about/"]),
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(a[href$="/contact/"]),
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(a[href$="/help/"]),
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(a[href$="/privacy/"]) {
    display: flex;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2, 8, 23, 0.12);
    text-decoration: none;
  }
  .persiannest-header__navigation .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
    color: #0e1f3d !important;
    background: linear-gradient(135deg, #f7c85b, #f59e0b);
    border-color: transparent;
  }
  .persiannest-header__search { display: none; }
  .pn-header-actions { flex: 0 0 auto; }
  .pn-header-actions__btn { padding: 0.35rem 0.8rem; font-size: 0.82rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .persiannest-header__brand { min-width: 0; min-height: 138px; padding: 2px 12px; overflow: hidden; }
  .persiannest-header__logo { width: min(320px, 86vw); }
  .persiannest-header__site-title { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
}

/* Header action buttons ([persiannest_header_actions]) */
.pn-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.pn-header-actions__btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pn-header-actions__btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.pn-header-actions__btn--ghost { background: transparent; }

/* ============================================================
   Homepage v2 — dark hero / navy sections (target design)
   ============================================================ */

/* Dark navy site header */
.persiannest-header {
  background: #0e1f3d;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.persiannest-header__site-title,
.persiannest-header__site-title a { color: #fff !important; }
.persiannest-header__navigation .wp-block-navigation-item__content,
.persiannest-header__navigation a { color: #dbe4f0 !important; }
.persiannest-header__navigation a:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
.persiannest-header__search input[type="search"] {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.pn-header-actions__btn { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }
.pn-header-actions__btn--primary { background: #f59e0b; border-color: #f59e0b; color: #1f2937; }

/* Full-bleed hero with city skyline */
.persiannest-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: linear-gradient(to left, rgba(10,20,45,0.85), rgba(10,20,45,0.45)), url('https://persiannest.de/wp-content/uploads/2026/10/عکس-بکپراند-اصلی.jpg') center/cover no-repeat;
  color: #fff;
  padding: 4rem 1.5rem 5rem;
}
.persiannest-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.persiannest-hero__content { max-width: 560px; }
.persiannest-kicker { color: #f59e0b; font-weight: 700; letter-spacing: 0.05em; margin: 0 0 0.5rem; }
.persiannest-title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.25; margin: 0 0 1rem; }
.persiannest-subtitle { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.9; margin: 0 0 1.75rem; }
.persiannest-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.persiannest-hero__primary {
  display: inline-block; padding: 0.8rem 2rem; border-radius: 10px;
  background: #f59e0b; color: #1f2937; font-weight: 700; text-decoration: none;
}
.persiannest-hero__secondary {
  display: inline-block; padding: 0.8rem 2rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.5); color: #fff; text-decoration: none;
}
.persiannest-community-visual { display: none; }
@media (min-width: 900px) {
  .persiannest-community-visual {
    display: block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    min-width: 260px;
  }
  .persiannest-community-visual__avatars { display: flex; justify-content: center; }
  .persiannest-community-visual__avatars span {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #334155);
    border: 2px solid #fff;
    margin-inline-start: -12px;
  }
  .persiannest-community-visual__avatars span:first-child { margin-inline-start: 0; }
  .persiannest-community-visual p { color: rgba(255,255,255,0.8); margin: 0.75rem 0 0; font-size: 0.9rem; }
}

/* Stats bar — dark navy */
.pn-home-stats { padding: 2.5rem 1rem; }
.pn-home-stats--overlap { margin-top: -2.5rem; position: relative; z-index: 5; }
.pn-home-stats__bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  background: #0e1f3d;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 12px 32px rgba(14,31,61,0.35);
}
.pn-home-stats__item { background: none; border: none; padding: 0.5rem 1rem; text-align: center; color: #fff; }
.pn-home-stats__icon { display: block; font-size: 1.4rem; margin-bottom: 0.25rem; }
.pn-home-stats__item strong { color: #f59e0b; font-size: 1.5rem; }
.pn-home-stats__item span { color: rgba(255,255,255,0.75); }
.pn-home-stats__bar {
  position: relative;
  overflow: hidden;
}
.pn-home-stats__bar::before {
  position: absolute;
  z-index: 0;
  top: -60%;
  left: -18%;
  width: 12%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  content: '';
  pointer-events: none;
  transform: rotate(18deg);
  animation: pn-stats-light-sweep 5s ease-in-out infinite;
}
.pn-home-stats__item {
  position: relative;
  z-index: 1;
  animation: pn-stats-item-rise 3.6s ease-in-out infinite;
  animation-delay: calc(var(--pn-stat-delay, 0) * 0.22s);
}
.pn-home-stats__item:nth-child(1) { --pn-stat-delay: 0; }
.pn-home-stats__item:nth-child(2) { --pn-stat-delay: 1; }
.pn-home-stats__item:nth-child(3) { --pn-stat-delay: 2; }
.pn-home-stats__item:nth-child(4) { --pn-stat-delay: 3; }
.pn-home-stats__icon {
  transform-origin: center;
  animation: pn-stats-icon-pop 2.2s ease-in-out infinite;
  animation-delay: calc(var(--pn-stat-delay, 0) * 0.22s);
}
.pn-home-stats__item strong {
  animation: pn-stats-number-glow 2.2s ease-in-out infinite;
  animation-delay: calc(var(--pn-stat-delay, 0) * 0.22s);
}
@keyframes pn-stats-light-sweep {
  0%, 12% { left: -18%; opacity: 0; }
  22% { opacity: 1; }
  58% { left: 108%; opacity: 0.8; }
  59%, 100% { left: 108%; opacity: 0; }
}
@keyframes pn-stats-item-rise {
  0%, 35%, 55%, 100% { transform: translateY(0); }
  44% { transform: translateY(-3px); }
}
@keyframes pn-stats-icon-pop {
  0%, 40%, 65%, 100% { transform: translateY(0) scale(1) rotate(0); }
  49% { transform: translateY(-4px) scale(1.18) rotate(-5deg); }
  57% { transform: translateY(0) scale(1.04) rotate(4deg); }
}
@keyframes pn-stats-number-glow {
  0%, 38%, 68%, 100% { color: #f59e0b; text-shadow: none; transform: scale(1); }
  50% { color: #fde68a; text-shadow: 0 0 9px rgba(245,158,11,0.9), 0 0 18px rgba(245,158,11,0.45); transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .pn-home-stats__bar::before,
  .pn-home-stats__item,
  .pn-home-stats__icon,
  .pn-home-stats__item strong { animation: none; }
}

/* Service hub — compact card row */
.pn-home-hub { padding: 2.5rem 1rem; }
.pn-home-hub__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}
.pn-home-hub__card {
  flex: 1 1 160px;
  max-width: 190px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 14px;
  padding: 1.1rem 0.9rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pn-home-hub__icon { display: block; font-size: 1.6rem; margin-bottom: 0.4rem; }
.pn-home-hub__name { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.pn-home-hub__desc { font-size: 0.78rem; color: #6b7280; line-height: 1.6; }

/* 3-column content row */
.pn-home-trio { padding: 1.5rem 1rem; background: #f6f8fb; }
.pn-home-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.pn-home-trio__badge { font-size: 1.3rem; flex: 0 0 auto; }
.pn-home-trio__col {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
}
.pn-home-trio__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.pn-home-trio__head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.pn-home-trio__head a { color: #2563eb; font-size: 0.82rem; text-decoration: none; }
.pn-home-trio__listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}
.pn-home-trio__listing:last-child { border-bottom: none; }
.pn-home-trio__listing-info { display: flex; flex-direction: column; gap: 0.15rem; }
.pn-home-trio__listing-info strong { font-size: 0.9rem; }
.pn-home-trio__price { color: #059669; font-weight: 700; font-size: 0.85rem; }
.pn-home-trio__loc { color: #94a3b8; font-size: 0.8rem; }
.pn-home-trio__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.pn-home-trio__post { text-decoration: none; color: inherit; display: block; }
.pn-home-trio__post-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.pn-home-trio__post-head img { border-radius: 50%; }
.pn-home-trio__post-author { font-weight: 700; font-size: 0.9rem; }
.pn-home-trio__post-time { color: #94a3b8; font-size: 0.78rem; margin-inline-start: auto; }
.pn-home-trio__post > p { color: #374151; font-size: 0.9rem; margin: 0 0 0.75rem; }
.pn-home-trio__post-img img { width: 100%; border-radius: 12px; }
.pn-home-trio__member {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.pn-home-trio__member:last-child { border-bottom: none; }
.pn-home-trio__avatar { border-radius: 50%; flex: 0 0 auto; }
.pn-home-trio__member-info { flex: 1; font-size: 0.88rem; }
.pn-home-trio__follow {
  flex: 0 0 auto;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  text-decoration: none;
}

/* Suggested members (Instagram-style) */
.pn-home-suggested { padding: 1.5rem 1rem; background: #fff; }
.pn-home-suggested__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 1rem;
}
.pn-home-suggested__head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.pn-home-suggested__head a { color: #2563eb; font-size: 0.85rem; text-decoration: none; font-weight: 700; }
.pn-home-suggested__scroll {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 0.25rem 0.5rem;
  scrollbar-width: thin;
}
.pn-home-suggested__card {
  flex: 0 0 auto;
  width: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}
.pn-home-suggested__photo {
  position: relative;
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  margin-bottom: 0.4rem;
}
.pn-home-suggested__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  display: block;
}
.pn-home-suggested__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 98px;
  width: 100%;
}
.pn-home-suggested__photo.is-default { background: #e5e7eb; }
.pn-home-suggested__photo.is-default img { object-fit: contain; padding: 6px; background: #f6f8fb; }
.pn-home-suggested__online {
  position: absolute;
  bottom: 5px;
  inset-inline-end: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.pn-members-avatar.is-default { object-fit: contain; padding: 0.3rem; background: #f6f8fb; }

/* Why — compact chips row */

/* Steps — horizontal */
.pn-home-steps { padding: 2.5rem 1rem; background: #f6f8fb; }
.pn-home-steps__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.pn-home-steps__step { text-align: center; background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid #e5e7eb; }
.pn-home-steps__icon { display: block; font-size: 2rem; margin-bottom: 0.6rem; }

/* CTA — dark navy card */
.pn-home-cta { padding: 2.5rem 1rem 3.5rem; }
.pn-home-cta__card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #0e1f3d, #173a6b);
  color: #fff;
  border-radius: 20px;
  padding: 2.75rem 2rem;
}
.pn-home-cta__card h2 { color: #fff; margin: 0 0 0.5rem; }
.pn-home-cta__card p { color: rgba(255,255,255,0.8); margin: 0 0 1.5rem; }
.pn-home-cta__btn--gold { background: #f59e0b; color: #1f2937; border-color: #f59e0b; }
.pn-home-cta__btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }

/* Countries strip */
.pn-home-countries { padding: 2.5rem 1rem; }
.pn-home-title--light { color: #1f2937; }
.pn-home-countries__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto;
}
.pn-home-countries__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.pn-home-countries__flag { font-size: 1.1rem; }

/* Dark footer */
.site-footer,
footer.wp-block-template-part {
  background: #0e1f3d;
  color: #cbd5e1;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

/* Compact footer */
.site-footer .wp-block-heading,
footer.wp-block-template-part .wp-block-heading { margin: 0 0 0.5rem; font-size: 1rem; }
.site-footer ul,
footer.wp-block-template-part ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; line-height: 1.7; }
.site-footer .wp-block-columns { gap: 1.5rem; margin-bottom: 0; }
@media (max-width: 781px) {
  .site-footer .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .site-footer .wp-block-column { flex-basis: auto !important; }
}

/* Platform intro ("بیشتر بدانید") */
.pn-platform-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: #17233d;
}
.pn-platform-intro h2 { font-size: 1.8rem; margin: 0 0 0.75rem; }
.pn-platform-intro > p { line-height: 1.9; color: #3c4763; }
.pn-platform-intro__hint { display: none; }
.pn-platform-intro__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.pn-platform-intro__grid > div {
  background: #f6f4fb;
  border: 1px solid #e5e0f2;
  border-radius: 14px;
  padding: 1.1rem;
}
.pn-platform-intro__grid h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #4a3a9e; }
.pn-platform-intro__grid p { margin: 0; font-size: 0.9rem; line-height: 1.8; color: #3c4763; }
.pn-platform-intro__note { background: #eef7ee; border-right: 4px solid #46a35e; padding: 0.9rem 1rem; border-radius: 8px; }
@media (max-width: 900px) { .pn-platform-intro__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .pn-platform-intro {
    margin: 0.9rem 0.85rem 1.5rem;
    padding: 1.4rem 1rem 1.1rem;
    border: 1px solid #e8e3f2;
    border-radius: 20px;
    background: linear-gradient(180deg,#fff 0%,#f8f6fc 100%);
    box-shadow: 0 10px 30px rgba(23,35,61,.07);
  }
  .pn-platform-intro h2 { font-size: 1.45rem; line-height: 1.4; text-align: center; }
  .pn-platform-intro > p { margin: 0 auto; font-size: 0.91rem; line-height: 1.75; text-align: center; }
  .pn-platform-intro__hint { display: block; margin-top: 0.8rem !important; color: #6d5bb5 !important; font-size: 0.78rem !important; }
  .pn-platform-intro__grid {
    display: flex;
    gap: 0.75rem;
    margin: 1.1rem -1rem 1rem;
    padding: 0 1rem 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pn-platform-intro__grid::-webkit-scrollbar { display: none; }
  .pn-platform-intro__grid > div {
    flex: 0 0 78%;
    min-height: 130px;
    padding: 1rem;
    scroll-snap-align: center;
    background: #fff;
    border-color: #ded7ee;
    box-shadow: 0 5px 16px rgba(40,30,80,.06);
  }
  .pn-platform-intro__grid h3 { font-size: 1rem; }
  .pn-platform-intro__grid p { font-size: 0.84rem; line-height: 1.7; text-align: right; }
  .pn-platform-intro__note { margin: 0; padding: 0.75rem; font-size: 0.82rem !important; line-height: 1.65 !important; text-align: right !important; }
}

@media (max-width: 900px) {
  .pn-home-steps__step { text-decoration: none; color: inherit; }
  .pn-home-trio__grid { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .pn-home-trio__grid { grid-template-columns: 1fr 1fr; } }
  .pn-home-stats__bar { gap: 0.5rem; }
}
@media (max-width: 600px) {
  .pn-home-steps__row { grid-template-columns: 1fr; }
  .persiannest-hero { padding: 3rem 1.25rem 4rem; }
}

/* Steps + CTA duo row */
@media (min-width: 900px) {
  .pn-home-duo {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .pn-home-duo > * { min-width: 0; }
  .pn-home-duo .pn-home-cta { flex: 0 0 38%; padding: 0; }
  .pn-home-duo .pn-home-steps { flex: 1 1 auto; padding: 2.5rem 0; background: transparent; }
  .pn-home-duo .pn-home-cta__card { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 899px) {
  .pn-home-duo > .pn-home-steps { padding: 1.5rem 0; }
}

.pn-home-media {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw) !important;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: #f5f7fb;
}
.pn-home-media__heading {
  width: min(100%, 1200px);
  margin: 0 auto 1.25rem;
  text-align: center;
}
.pn-home-media__heading p {
  margin: 0 0 0.2rem;
  color: #d08b08;
  font-weight: 700;
}
.pn-home-media__heading h2 {
  margin: 0;
  color: #0e1f3d;
}
.pn-home-media__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.pn-home-media__actions a,
.pn-home-media__actions button {
  padding: 0.65rem 1rem;
  color: #0e1f3d;
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.pn-home-media__actions .is-primary {
  color: #ffffff;
  background: #0e1f3d;
  border-color: #0e1f3d;
}
.pn-home-media__actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pn-hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(305px, 36.2vw, 422px);
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background: #0e1f3d;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(14, 31, 61, 0.16);
}
.pn-hero-slider__track,
.pn-hero-slide,
.pn-hero-slide picture,
.pn-hero-slide__shade {
  position: absolute;
  inset: 0;
}
.pn-hero-slide {
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.pn-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.pn-hero-slide__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pn-hero-slide__shade {
  background: linear-gradient(0deg, rgba(3, 12, 28, 0.78), rgba(3, 12, 28, 0.04) 62%);
}
.pn-hero-slide__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 70px;
  z-index: 2;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
}
.pn-hero-slide__caption h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 3vw, 2rem);
}
.pn-hero-slide__caption p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.84);
}
.pn-hero-slide__caption a {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.55rem 1rem;
  color: #0e1f3d;
  background: #f59e0b;
  border-radius: 9px;
  font-weight: 700;
}
.pn-hero-slider__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: clamp(5rem, 11vw, 9rem) 1rem;
}
.pn-hero-slider__content .persiannest-title {
  max-width: 720px;
  color: #ffffff;
}
.pn-hero-slider__content .persiannest-subtitle {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}
.pn-hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #ffffff;
  background: rgba(8, 22, 48, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.pn-hero-slider__arrow--prev { left: 18px; }
.pn-hero-slider__arrow--next { right: 18px; }
.pn-hero-slider__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pn-hero-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.pn-hero-slider__dots button.is-active {
  width: 28px;
  background: #f59e0b;
}
.pn-hero-slider__track {
  display: flex;
  direction: ltr;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.pn-hero-slide,
.pn-hero-slide.is-active {
  position: relative;
  inset: auto;
  flex: 0 0 50%;
  min-width: 0;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
}
.pn-hero-slide + .pn-hero-slide {
  border-left: 3px solid #f5f7fb;
}
.pn-hero-slide__caption {
  direction: rtl;
}
@media (max-width: 640px) {
  .pn-home-media { padding: 2.25rem 0.75rem; }
  .pn-hero-slider { min-height: 336px; border-radius: 16px; }
  .pn-hero-slide,
  .pn-hero-slide.is-active { flex-basis: 100%; }
  .pn-hero-slide__caption { bottom: 48px; }
  .pn-hero-slider__content { padding: 5.5rem 1rem 6rem; }
  .pn-hero-slider__arrow { width: 40px; height: 40px; font-size: 1.65rem; }
  .pn-hero-slider__arrow--prev { left: 8px; }
  .pn-hero-slider__arrow--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pn-hero-slide { transition: none; }
}

/* ============================================================
   Members page
   ============================================================ */
.pn-members-page { padding: 2.5rem 1rem; max-width: 1200px; margin: 0 auto; }
.pn-members-title { font-size: 1.75rem; font-weight: 800; margin: 0 0 1.5rem; text-align: center; color: #1f2937; }
.pn-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}
.pn-members-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.25rem 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pn-members-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}
.pn-members-card img.pn-members-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  object-fit: cover;
  box-shadow: 0 0 0 4px #f3f4f6;
}
.pn-members-name {
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
  line-height: 1.35;
}
@media (max-width: 480px) {
  .pn-members-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .pn-members-card { padding: 1rem 0.5rem; border-radius: 14px; }
  .pn-members-card img.pn-members-avatar { width: 64px; height: 64px; }
  .pn-members-name { font-size: 0.85rem; }
}

/* ============================================================
   Social follow requests on profile
   ============================================================ */
.pn-profile__requests { margin-top: 1rem; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1rem; background: #fff; }
.pn-profile__requests summary { font-weight: 700; cursor: pointer; margin-bottom: 0.5rem; }
.pn-profile__requests-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pn-profile__request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  flex-wrap: wrap;
}
.pn-profile__request-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  flex: 1 1 auto;
}
.pn-profile__request-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pn-profile__request-actions { display: flex; gap: 0.5rem; }

/* Service hub: compact 3-column, 2-row grid */
.pn-home-hub { padding: 1.25rem 0.75rem; }
.pn-home-hub__row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 760px;
}
.pn-home-hub__card {
  max-width: none !important;
  min-width: 0;
  padding: 0.7rem 0.5rem;
  border-radius: 12px;
  flex: none !important;
}
.pn-home-hub__icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.pn-home-hub__name { font-size: 0.84rem; margin-bottom: 0.15rem; }
.pn-home-hub__desc { font-size: 0.68rem; line-height: 1.45; }
@media (max-width: 480px) {
  .pn-home-hub { padding: 1rem 0.5rem; }
  .pn-home-hub__row { gap: 0.45rem; }
  .pn-home-hub__card { padding: 0.6rem 0.3rem; }
  .pn-home-hub__name { font-size: 0.78rem; }
  .pn-home-hub__desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.62rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
.pn-home-hub__card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 700px;
}
.pn-home-hub__card::before,
.pn-home-hub__card::after {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: -38px -22px 0 #a78bfa, 34px -28px 0 #60a5fa, -42px 24px 0 #f472b6, 40px 26px 0 #34d399;
  content: '';
  opacity: 0;
  pointer-events: none;
}
.pn-home-hub__card::after {
  background: #fff;
  box-shadow: -24px -36px 0 #fde68a, 28px -36px 0 #c4b5fd, -30px 36px 0 #93c5fd, 30px 34px 0 #f9a8d4;
}
.pn-home-hub__card.is-magic-opening {
  z-index: 4;
  animation: pn-magic-box-open 0.72s cubic-bezier(.2,.8,.25,1) both;
}
.pn-home-hub__card.is-magic-opening::before { animation: pn-magic-spark 0.65s ease-out both; }
.pn-home-hub__card.is-magic-opening::after { animation: pn-magic-spark 0.65s 0.08s ease-out both reverse; }
@keyframes pn-magic-box-open {
  0% { transform: perspective(700px) rotateX(0) scale(1); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
  38% { transform: perspective(700px) rotateX(-13deg) scale(.95); box-shadow: 0 4px 10px rgba(30,64,175,.12); }
  72% { transform: perspective(700px) rotateX(9deg) translateY(-5px) scale(1.08); box-shadow: 0 0 26px rgba(245,158,11,.7), 0 14px 34px rgba(30,64,175,.2); }
  100% { transform: perspective(700px) rotateX(0) translateY(-2px) scale(1.02); opacity: .88; }
}
@keyframes pn-magic-spark {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.8) rotate(70deg); }
}
.pn-home-hub__icon { transform-origin: center; will-change: transform; }
.pn-home-hub__card:nth-child(1) .pn-home-hub__icon,
.pn-home-hub__card:nth-child(2) .pn-home-hub__icon { animation: pn-icon-heartbeat 1.5s ease-in-out infinite; }
.pn-home-hub__card:nth-child(3) .pn-home-hub__icon { animation: pn-icon-briefcase 2.4s ease-in-out infinite; }
.pn-home-hub__card:nth-child(4) .pn-home-hub__icon { animation: pn-icon-house 2.8s ease-in-out infinite; }
.pn-home-hub__card:nth-child(5) .pn-home-hub__icon { animation: pn-icon-cart 2.2s ease-in-out infinite; }
.pn-home-hub__card:nth-child(6) .pn-home-hub__icon { animation: pn-icon-tool 2.6s ease-in-out infinite; }
.pn-home-hub__card:nth-child(7) .pn-home-hub__icon { animation: pn-icon-chess 2.4s ease-in-out infinite; }
.pn-home-hub__card:nth-child(8) .pn-home-hub__icon { animation: pn-icon-dice 1.9s ease-in-out infinite; }
.pn-home-hub__card:nth-child(9) .pn-home-hub__icon { animation: pn-icon-backgammon 2.2s ease-in-out infinite; }
@keyframes pn-icon-heartbeat { 0%, 38%, 60%, 100% { transform: scale(1); } 44% { transform: scale(1.18); } 51% { transform: scale(.98); } 56% { transform: scale(1.12); } }
@keyframes pn-icon-briefcase { 0%, 55%, 100% { transform: rotateX(0) translateY(0); } 65% { transform: rotateX(-22deg) translateY(-2px); } 75% { transform: rotateX(0) translateY(0); } }
@keyframes pn-icon-house { 0%, 65%, 100% { transform: translateY(0); } 75% { transform: translateY(-3px); } 84% { transform: translateY(0); } }
@keyframes pn-icon-cart { 0%, 55%, 100% { transform: translateX(0) rotate(0); } 68% { transform: translateX(4px) rotate(4deg); } 80% { transform: translateX(-2px) rotate(-2deg); } }
@keyframes pn-icon-tool { 0%, 58%, 100% { transform: rotate(0); } 70% { transform: rotate(-18deg); } 82% { transform: rotate(12deg); } }
@keyframes pn-icon-chess { 0%, 58%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-4px) rotate(-6deg); } 82% { transform: translateY(0) rotate(4deg); } }
@keyframes pn-icon-dice { 0%, 52%, 100% { transform: rotate(0) scale(1); } 66% { transform: rotate(95deg) scale(1.16); } 80% { transform: rotate(180deg) scale(1); } }
@keyframes pn-icon-backgammon { 0%, 55%, 100% { transform: rotate(0) scale(1); } 68% { transform: rotate(-16deg) scale(1.12); } 82% { transform: rotate(14deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .pn-home-hub__card,
  .pn-home-hub__card::before,
  .pn-home-hub__card::after,
  .pn-home-hub__icon { animation: none !important; }
}

/* Shorter hero */
.persiannest-hero { padding: 1.8rem 1.5rem 2.8rem !important; }
@media (max-width: 768px) {
  .persiannest-hero { padding: 1.4rem 1.25rem 2.2rem !important; }
}

@media (max-width: 768px) {
  .persiannest-hero {
    position: relative;
    overflow: hidden;
    padding: 280px 0 0 !important;
    background: #0e1f3d !important;
  }
  .persiannest-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    width: 100%;
    height: 280px;
    background: url('https://persiannest.de/wp-content/uploads/2026/10/عکس-بکپراند-اصلی.jpg') center/cover no-repeat;
  }
  .persiannest-hero__inner {
    position: relative;
    z-index: 1;
    display: block;
    max-width: none;
  }
  .persiannest-hero__content {
    box-sizing: border-box;
    max-width: none;
    padding: 0.75rem 1rem 1rem;
    background: #0e1f3d;
  }
  .persiannest-kicker {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
  }
  .persiannest-title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    line-height: 1.35;
  }
  .persiannest-subtitle {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .persiannest-hero__actions {
    gap: 0.5rem;
  }
  .persiannest-hero__actions a {
    padding: 0.52rem 1rem;
    font-size: 0.82rem;
  }
}

/* Live search dropdown in header */
.persiannest-header__search { position: relative; }
.pn-search-live {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(2, 8, 20, 0.18);
  overflow: hidden;
  z-index: 1200;
}
.pn-search-live__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #f1f5f9;
}
.pn-search-live__item:hover { background: #f8fafc; }
.pn-search-live__thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef2f7;
}
.pn-search-live__thumb--type {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #64748b;
}
.pn-search-live__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn-search-live__body strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pn-search-live__body small { color: #64748b; font-size: 0.74rem; }
.pn-search-live__type {
  font-size: 0.68rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 99px;
  padding: 0.15rem 0.55rem;
  flex: 0 0 auto;
}
.pn-search-live__empty { padding: 0.9rem; text-align: center; color: #64748b; font-size: 0.85rem; }
.pn-search-live__all {
  display: block;
  padding: 0.65rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  background: #f8fafc;
  text-decoration: none;
}

/* Toasts */
.pn-toast-wrap {
  position: fixed;
  bottom: 18px;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  pointer-events: none;
}
.pn-toast {
  background: #0e1f3d;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 8, 20, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: auto;
  max-width: min(90vw, 420px);
  text-align: center;
}
.pn-toast.is-visible { opacity: 1; transform: translateY(0); }
.pn-toast--success { background: #065f46; }
.pn-toast--error { background: #991b1b; }

/* Skeleton shimmer */
.pn-skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: pn-skel-shimmer 1.2s infinite;
}
.pn-skel--line { height: 12px; margin: 8px 12px; }
.pn-skel--line:last-child { width: 60%; }
@keyframes pn-skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Footer site stats */
.pn-site-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.82rem;
  width: 100%;
}
.pn-site-stats__item strong { color: #e2e8f0; font-weight: 800; margin-inline-end: 0.2rem; }

/* Compact footer — always 3 equal columns in one row */
footer .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
  align-items: start;
}
footer .wp-block-column { width: auto !important; flex-basis: auto !important; min-width: 0; }
footer .wp-block-column ul { margin: 0.5rem 0 0; padding: 0; list-style: none; }
footer .wp-block-column li { margin: 0.15rem 0; font-size: 0.82rem; }
footer .wp-block-column h3 { font-size: 0.9rem; margin: 0 0 0.3rem; }
footer .wp-block-column h3 + ul + h3,
footer .wp-block-column h3:not(:first-child) { margin-top: 1rem; }
@media (max-width: 768px) {
  footer .wp-block-columns { gap: 0.8rem 0.6rem !important; }
  footer .wp-block-column li { margin: 0.1rem 0; font-size: 0.72rem; line-height: 1.5; }
  footer .wp-block-column h3 { font-size: 0.78rem; }
  footer .wp-block-group.alignwide { margin-top: 1rem !important; }
}

/* Footer bottom row — kill wpautop <br> inside language form */
.pn-language-form br { display: none; }
.pn-language-form { display: flex; align-items: center; gap: 0.4rem; margin: 0; }

/* Tighter homepage sections */
.pn-home-media { padding: 1.1rem 0 1.6rem !important; }
.pn-home-media__heading { margin-bottom: 0.7rem; }
.pn-home-media__heading p { font-size: 0.78rem; letter-spacing: 0.06em; }
.pn-home-media__heading h2 { font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 700; line-height: 1.55; max-width: 640px; margin-inline: auto; }
.pn-home-media__heading > p {
  position: relative;
  display: inline-block;
  background: linear-gradient(110deg, #7c3aed 10%, #ec4899 35%, #f59e0b 50%, #ec4899 65%, #7c3aed 90%);
  background-size: 240% 100%;
  color: transparent !important;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(236, 72, 153, 0.2);
  -webkit-background-clip: text;
  background-clip: text;
  animation: pn-festival-prism 2.8s linear infinite, pn-festival-float 2s ease-in-out infinite;
}
.pn-home-media__heading > p::after {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.65rem;
  color: #f59e0b;
  content: '✦';
  font-size: 0.7rem;
  text-shadow: 0 0 9px rgba(245, 158, 11, 0.9);
  animation: pn-festival-star 1.4s ease-in-out infinite;
}
.pn-home-media__heading > h2 {
  position: relative;
  animation: pn-festival-title-breathe 2.8s ease-in-out infinite;
}
.pn-home-media__heading > h2::after {
  display: block;
  width: 44%;
  height: 2px;
  margin: 0.45rem auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #7c3aed, #ec4899, #f59e0b, transparent);
  content: '';
  transform-origin: center;
  animation: pn-festival-underline 2.2s ease-in-out infinite;
}
@keyframes pn-festival-prism { 0% { background-position: 100% 50%; } 100% { background-position: -140% 50%; } }
@keyframes pn-festival-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes pn-festival-star { 0%, 100% { opacity: 0.3; transform: rotate(0) scale(0.7); } 50% { opacity: 1; transform: rotate(90deg) scale(1.25); } }
@keyframes pn-festival-title-breathe { 0%, 100% { color: #1f2937; text-shadow: none; } 50% { color: #312e81; text-shadow: 0 3px 14px rgba(124, 58, 237, 0.2); } }
@keyframes pn-festival-underline { 0%, 100% { opacity: 0.35; transform: scaleX(0.35); } 50% { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .pn-home-media__heading > p,
  .pn-home-media__heading > p::after,
  .pn-home-media__heading > h2,
  .pn-home-media__heading > h2::after { animation: none; }
}
.pn-home-media__actions { margin-top: 0.7rem; gap: 0.5rem; }
.pn-home-media__actions a,
.pn-home-media__actions button {
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  border-radius: 99px;
}
.pn-home-media__actions .is-primary {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0e1f3d;
}
.pn-home-media__actions a:not(.is-primary) {
  background: transparent;
  border-color: #94a3b8;
  color: #334155;
}
.pn-home-stats { padding: 1.1rem 1rem !important; }
.pn-home-why { padding: 1.2rem 1rem !important; }
.pn-home-suggested { padding: 1rem 1rem !important; }
.pn-home-social { padding: 1.6rem 1rem !important; }
.pn-home-duo { padding-top: 0.5rem !important; }
@media (min-width: 769px) {
  .persiannest-hero { padding-bottom: 1.8rem !important; }
}

/* Compact slide caption */
.pn-hero-slide__caption {
  bottom: 44px;
  padding: 0.8rem clamp(0.9rem, 4vw, 3rem);
}
.pn-hero-slide__caption h3 { font-size: clamp(0.95rem, 2vw, 1.3rem); font-weight: 700; }
.pn-hero-slide__caption p { font-size: 0.78rem; margin-top: 0.2rem; }
.pn-hero-slide__caption a {
  margin-top: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.74rem;
  border-radius: 99px;
}
.pn-hero-slider__dots { bottom: 12px; }
@media (max-width: 640px) {
  .pn-home-media { padding: 1rem 0.75rem 1.3rem !important; }
  .pn-hero-slide__caption { bottom: 30px; }
}

.persiannest-header__logo {
  position: relative;
  isolation: isolate;
}
.persiannest-header__logo::before,
.persiannest-header__logo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  clip-path: polygon(4% 7%, 15.5% 7%, 22% 24%, 21% 36%, 17% 46%, 8% 42%);
  content: '';
  pointer-events: none;
}
.persiannest-header__logo::before {
  background: #0e1f3d;
}
.persiannest-header__logo::after {
  background: url('../assets/images/persiannest-brand-navy.png') center / 100% 100% no-repeat;
  transform-origin: 20.5% 38%;
  animation: pn-logo-wings 1.35s ease-in-out infinite;
  will-change: transform;
}
@keyframes pn-logo-wings {
  0%, 100% { transform: rotate(1deg); }
  50% { transform: rotate(-7deg) translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .persiannest-header__logo::after { animation: none; }
}

.persiannest-title .pn-title-word {
  display: inline-block;
  animation: pn-title-word-glow 3.2s ease-in-out infinite;
  animation-delay: calc(var(--pn-word-index) * 0.36s);
  transform-origin: center;
}
@keyframes pn-title-word-glow {
  0%, 7%, 25%, 100% {
    color: inherit;
    text-shadow: none;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
  11% {
    color: #fff0a6;
    text-shadow: 0 0 9px rgba(255, 211, 77, 1), 0 0 22px rgba(255, 168, 0, 0.9), 0 0 34px rgba(255, 132, 0, 0.5);
    transform: translate3d(0, -2px, 0) rotate(-0.8deg) scale(1.06);
  }
  15% {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 224, 128, 1), 0 0 24px rgba(255, 170, 0, 0.8);
    transform: translate3d(2px, 0, 0) rotate(0.8deg) scale(1.04);
  }
  19% { transform: translate3d(-2px, 0, 0) rotate(-0.5deg) scale(1.03); }
  22% {
    color: #fff8dc;
    text-shadow: 0 0 6px rgba(255, 210, 90, 0.7);
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .persiannest-title .pn-title-word { animation: none; }
}

.pn-home-cta__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pn-home-cta__card::before {
  position: absolute;
  z-index: 0;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent 0 34%, rgba(245,158,11,.2) 42%, transparent 50% 76%, rgba(124,58,237,.2) 84%, transparent 92%);
  content: '';
  animation: pn-cta-aurora 8s linear infinite;
}
.pn-home-cta__card > * { position: relative; z-index: 1; }
.pn-home-cta__card h2 {
  animation: pn-cta-title 2.8s ease-in-out infinite;
}
.pn-home-cta__btn {
  transition: transform .22s ease, box-shadow .22s ease;
  animation: pn-cta-button 3.4s ease-in-out infinite;
}
.pn-home-cta__btn:nth-child(2) { animation-delay: .35s; }
.pn-home-cta__btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 9px 24px rgba(245,158,11,.24); }
@keyframes pn-cta-aurora { to { transform: rotate(360deg); } }
@keyframes pn-cta-title { 0%, 100% { text-shadow: none; transform: scale(1); } 50% { color: #fde68a; text-shadow: 0 0 16px rgba(245,158,11,.48); transform: scale(1.025); } }
@keyframes pn-cta-button { 0%, 68%, 100% { transform: translateY(0); } 78% { transform: translateY(-3px); } 87% { transform: translateY(0); } }

.pn-home-suggested__head h3 {
  background: linear-gradient(90deg, #111827, #7c3aed, #2563eb, #111827);
  background-size: 240% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: pn-members-heading 4s linear infinite;
}
.pn-home-suggested__card {
  animation: pn-member-card-wave 4.2s ease-in-out infinite;
}
.pn-home-suggested__card:nth-child(2) { animation-delay: .2s; }
.pn-home-suggested__card:nth-child(3) { animation-delay: .4s; }
.pn-home-suggested__card:nth-child(4) { animation-delay: .6s; }
.pn-home-suggested__card:nth-child(5) { animation-delay: .8s; }
.pn-home-suggested__card:nth-child(6) { animation-delay: 1s; }
.pn-home-suggested__photo::before {
  position: absolute;
  z-index: 2;
  inset: -3px;
  border: 2px solid transparent;
  border-top-color: #7c3aed;
  border-right-color: #f59e0b;
  border-radius: 50%;
  content: '';
  pointer-events: none;
  animation: pn-member-ring 3.4s linear infinite;
}
@keyframes pn-members-heading { to { background-position: -140% 50%; } }
@keyframes pn-member-card-wave { 0%, 65%, 100% { transform: translateY(0); } 76% { transform: translateY(-5px); } 86% { transform: translateY(0); } }
@keyframes pn-member-ring { to { transform: rotate(360deg); } }

footer.wp-block-template-part .wp-block-heading,
.site-footer .wp-block-heading {
  position: relative;
  display: inline-block;
  animation: pn-footer-heading-glow 3.6s ease-in-out infinite;
}
footer.wp-block-template-part .wp-block-heading::after,
.site-footer .wp-block-heading::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: .2rem;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  content: '';
  animation: pn-footer-line 2.8s ease-in-out infinite;
}
footer.wp-block-template-part li,
.site-footer li {
  animation: pn-footer-link-wave 5s ease-in-out infinite;
}
footer.wp-block-template-part li:nth-child(2n),
.site-footer li:nth-child(2n) { animation-delay: .25s; }
footer.wp-block-template-part li:nth-child(3n),
.site-footer li:nth-child(3n) { animation-delay: .5s; }
footer.wp-block-template-part a,
.site-footer a { transition: color .2s ease, text-shadow .2s ease, transform .2s ease; }
footer.wp-block-template-part a:hover,
.site-footer a:hover { color: #fde68a !important; text-shadow: 0 0 9px rgba(245,158,11,.6); }
.pn-site-stats__item strong { animation: pn-footer-stat 3s ease-in-out infinite; }
.pn-site-stats__item:nth-child(2) strong { animation-delay: .25s; }
.pn-site-stats__item:nth-child(3) strong { animation-delay: .5s; }
.pn-site-stats__item:nth-child(4) strong { animation-delay: .75s; }
@keyframes pn-footer-heading-glow { 0%, 100% { color: #e2e8f0; text-shadow: none; } 50% { color: #fff; text-shadow: 0 0 10px rgba(124,58,237,.55); } }
@keyframes pn-footer-line { 0%, 100% { opacity: .25; transform: scaleX(.25); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes pn-footer-link-wave { 0%, 72%, 100% { opacity: .78; transform: translateX(0); } 82% { opacity: 1; transform: translateX(-2px); } }
@keyframes pn-footer-stat { 0%, 100% { color: #e2e8f0; text-shadow: none; } 50% { color: #fbbf24; text-shadow: 0 0 8px rgba(245,158,11,.5); } }
@media (prefers-reduced-motion: reduce) {
  .pn-home-cta__card::before,
  .pn-home-cta__card h2,
  .pn-home-cta__btn,
  .pn-home-suggested__head h3,
  .pn-home-suggested__card,
  .pn-home-suggested__photo::before,
  footer.wp-block-template-part .wp-block-heading,
  footer.wp-block-template-part .wp-block-heading::after,
  footer.wp-block-template-part li,
  .site-footer .wp-block-heading,
  .site-footer .wp-block-heading::after,
  .site-footer li,
  .pn-site-stats__item strong { animation: none; }
}


