/* =========================================================
   PharmacyNeeds Blog / Posts Design v2
   File: blog-customization-v2.css

   Fixes:
   - Κρύβει theme meta (date/byline/category) έξω από pn-article
   - Βελτιωμένο single post design
   - Καθαρό homepage cards design
   ========================================================= */


/* =========================================================
   0. HIDE THEME META OUTSIDE OUR WRAPPER
   Κρύβει date, byline, categories που βγάζει το theme
   πάνω/έξω από το pn-article
   ========================================================= */

/* Το date "June 16, 2026 by PharmacyNeeds" */
.single .entry-meta,
.single .post-meta,
.single .byline,
.single .posted-on,
.single .author,
.single time.entry-date,
.single .entry-header .cat-links,
.single .entry-header .tags-links,
.single .entry-header .entry-meta {
  display: none;
}

/* Η κατηγορία πάνω δεξιά (συνήθως .cat-links ή .entry-categories) */
.single .cat-links,
.single .entry-categories,
.single .post-categories,
.single .entry-taxonomies {
  display: none;
}

/* Αν το theme βγάζει .entry-title (h1) δικό του έξω από pn-article */
.single .entry-header .entry-title:not(.pn-article *) {
  display: none;
}


/* =========================================================
   1. SHARED TOKENS
   ========================================================= */

.pn-home-news,
.pn-article {
  --pn-text: #1e293b;
  --pn-muted: #475569;
  --pn-soft: #64748b;
  --pn-hint: #94a3b8;
  --pn-title: #0f172a;
  --pn-primary: #0f766e;
  --pn-primary-dark: #0b5f59;
  --pn-primary-light: #14b8a6;
  --pn-blue: #1d4ed8;
  --pn-border: #e2e8f0;
  --pn-border-soft: #f1f5f9;
  --pn-badge-bg: #f0fdfa;
  --pn-badge-border: #ccfbf1;
  --pn-surface: #ffffff;
  --pn-surface-alt: #f8fafc;
  --pn-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --pn-shadow: 0 4px 16px rgba(15, 23, 42, 0.07), 0 1px 4px rgba(15, 23, 42, 0.04);
  --pn-shadow-hover: 0 8px 28px rgba(15, 23, 42, 0.11), 0 2px 8px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.pn-home-news *,
.pn-home-news *::before,
.pn-home-news *::after,
.pn-article *,
.pn-article *::before,
.pn-article *::after {
  box-sizing: border-box;
}


/* =========================================================
   2. HOMEPAGE LATEST POSTS SHORTCODE
   ========================================================= */

.pn-home-news {
  width: 100%;
  max-width: 1320px;
  margin: 32px auto 0;
  padding: 0 20px 52px;
}

.pn-home-news__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.pn-home-news__card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 16px;
  box-shadow: var(--pn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pn-home-news__card::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pn-primary) 0%, var(--pn-primary-light) 100%);
}

.pn-home-news__card:hover {
  transform: translateY(-3px);
  border-color: #b2dfdb;
  box-shadow: var(--pn-shadow-hover);
}

.pn-home-news__link {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px 22px 20px;
  color: inherit;
  text-decoration: none;
}

.pn-home-news__category {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 5px 12px;
  color: var(--pn-primary-dark);
  background: var(--pn-badge-bg);
  border: 1px solid var(--pn-badge-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.pn-home-news__card h3 {
  max-width: 100%;
  margin: 0 0 10px;
  color: var(--pn-title);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.pn-home-news__meta {
  display: block;
  max-width: 100%;
  margin-bottom: 10px;
  color: var(--pn-hint);
  font-size: 12.5px;
  line-height: 1.4;
}

.pn-home-news__card p {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--pn-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pn-home-news__read {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pn-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.pn-home-news__read::after {
  content: "→";
  flex: 0 0 auto;
  margin-left: 6px;
  transition: transform 0.18s ease;
}

.pn-home-news__card:hover .pn-home-news__read::after {
  transform: translateX(4px);
}


/* =========================================================
   3. SINGLE POST ARTICLE
   <article class="pn-article"> ... </article>
   ========================================================= */

.pn-article {
  display: block;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 32px 20px 80px;
  color: var(--pn-text);
  font-size: 17.5px;
  line-height: 1.8;
  float: none !important;
}

/* Override theme full-width containers */
.single .entry-content,
.single .post-content,
.single .post-inner,
.single article.post,
.single .site-main {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* --- HERO --- */

.pn-article__hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 48px 44px 44px;
  background: var(--pn-surface-alt);
  border: 1px solid var(--pn-border);
  border-radius: 20px;
  box-shadow: var(--pn-shadow);
}

.pn-article__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pn-primary) 0%, var(--pn-primary-light) 60%, var(--pn-blue) 100%);
}

/* eyebrow / category badge */
.pn-article__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 6px 14px;
  color: var(--pn-primary-dark);
  background: var(--pn-badge-bg);
  border: 1px solid var(--pn-badge-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

/* hero title */
.pn-article__hero h1,
.pn-article h1 {
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--pn-title);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

/* lead paragraph */
.pn-article__lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--pn-muted);
  font-size: 17.5px;
  line-height: 1.75;
}

/* hero meta: date + author */
.pn-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pn-border);
  color: var(--pn-hint);
  font-size: 13px;
  line-height: 1.4;
}

.pn-article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* --- SHARED BLOCK STYLES --- */

.pn-article__toc,
.pn-article__section,
.pn-article__faq,
.pn-article__note,
.pn-article__cta,
.pn-article__tip {
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  padding: 32px 36px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 16px;
  box-shadow: var(--pn-shadow-sm);
}

/* --- HEADINGS (inside sections) --- */

.pn-article h2 {
  position: relative;
  max-width: 100%;
  margin: 0 0 20px;
  padding-bottom: 14px;
  color: var(--pn-title);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--pn-border);
}

.pn-article h2::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--pn-primary);
  border-radius: 2px;
}

.pn-article h3 {
  max-width: 100%;
  margin: 24px 0 10px;
  color: var(--pn-title);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

/* --- BODY TEXT --- */

.pn-article p {
  margin: 0 0 16px;
  color: var(--pn-text);
}

.pn-article p:last-child,
.pn-article ul:last-child,
.pn-article ol:last-child {
  margin-bottom: 0;
}

/* --- LISTS --- */

.pn-article__section ul,
.pn-article__section ol,
.pn-article__toc ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.pn-article__section li,
.pn-article__toc li {
  margin: 8px 0;
  line-height: 1.65;
}

/* --- TOC --- */

.pn-article__toc {
  background: var(--pn-surface-alt);
  border-color: var(--pn-border);
}

.pn-article__toc h2 {
  border-bottom-color: var(--pn-border);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--pn-soft);
}

.pn-article__toc h2::before {
  display: none;
}

.pn-article__toc a {
  color: var(--pn-blue);
  text-decoration: none;
  font-size: 15.5px;
}

.pn-article__toc a:hover {
  color: var(--pn-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- NOTE / TIP --- */

.pn-article__note {
  background: #f0f9ff;
  border-color: #bae6fd;
  border-left: 3px solid #0ea5e9;
  border-radius: 0 12px 12px 0;
}

.pn-article__tip {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left: 3px solid #22c55e;
  border-radius: 0 12px 12px 0;
}

/* --- CTA --- */

.pn-article__cta {
  background: linear-gradient(135deg, var(--pn-primary) 0%, var(--pn-primary-dark) 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.25);
}

.pn-article__cta h2,
.pn-article__cta h3,
.pn-article__cta p {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.2);
}

.pn-article__cta h2::before {
  background: rgba(255,255,255,0.5);
}

.pn-article__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 13px 22px;
  color: var(--pn-primary-dark);
  background: #ffffff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pn-article__button:hover {
  color: var(--pn-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* --- FAQ --- */

.pn-article__faq {
  padding: 0;
  overflow: hidden;
}

.pn-article__faq-item {
  padding: 20px 36px;
  border-bottom: 1px solid var(--pn-border);
}

.pn-article__faq-item:last-child {
  border-bottom: none;
}

.pn-article__faq-q {
  margin: 0 0 8px;
  color: var(--pn-title);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.pn-article__faq-a {
  margin: 0;
  color: var(--pn-muted);
  font-size: 15.5px;
  line-height: 1.7;
}


/* =========================================================
   4. RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .pn-home-news__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pn-home-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pn-home-news__link {
    min-height: 250px;
  }

  .pn-article__hero {
    padding: 36px 28px 32px;
  }

  .pn-article__toc,
  .pn-article__section,
  .pn-article__faq,
  .pn-article__note,
  .pn-article__tip,
  .pn-article__cta {
    padding: 26px 28px;
  }

  .pn-article__faq-item {
    padding: 18px 28px;
  }
}

@media (max-width: 640px) {
  .pn-home-news {
    margin-top: 20px;
    padding: 0 14px 36px;
  }

  .pn-home-news__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .pn-home-news__link {
    min-height: auto;
    padding: 18px 18px 16px;
  }

  .pn-home-news__card h3 {
    font-size: 17px;
  }

  .pn-home-news__card p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .pn-article {
    padding: 20px 14px 56px;
    font-size: 16px;
    line-height: 1.75;
  }

  .pn-article__hero {
    padding: 28px 20px 26px;
    border-radius: 16px;
  }

  .pn-article__toc,
  .pn-article__section,
  .pn-article__faq,
  .pn-article__note,
  .pn-article__tip,
  .pn-article__cta {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .pn-article__faq-item {
    padding: 16px 18px;
  }

  .pn-article__lead {
    font-size: 16px;
  }

  .pn-article__meta {
    gap: 4px 12px;
    font-size: 12px;
  }
}

/* =========================================================
   POST 1 - ΕΛΛΕΙΨΕΙΣ ΦΑΡΜΑΚΩΝ ΣΗΜΕΡΑ
   pn-post-one-* classes
   ========================================================= */

.pn-post-one {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 22px 72px;
  color: #243044;
  font-size: 18px;
  line-height: 1.78;
  box-sizing: border-box;
}

.pn-post-one * {
  box-sizing: border-box;
}

.pn-post-one-hero {
  position: relative;
  padding: 44px 36px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.13), transparent 36%),
    linear-gradient(135deg, #f0fbf8 0%, #f4f8ff 62%, #ffffff 100%);
  border: 1px solid #dfeaf3;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.pn-post-one-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 60%, #1d4ed8 100%);
}

.pn-post-one-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 14px;
  background: #eefaf7;
  color: #0b5f59;
  border: 1px solid #d6f1ea;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.pn-post-one h1 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pn-post-one h2 {
  margin: 40px 0 14px;
  color: #0f172a;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.pn-post-one h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, #0f766e, #1d4ed8);
  border-radius: 999px;
}

.pn-post-one h3 {
  margin: 20px 0 8px;
  color: #1e293b;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.pn-post-one p {
  margin: 0 0 16px;
  color: #243044;
}

.pn-post-one p:last-child {
  margin-bottom: 0;
}

.pn-post-one a {
  color: #0f766e;
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.pn-post-one ul {
  margin: 14px 0 22px;
  padding: 0;
  list-style: none;
}

.pn-post-one li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
  color: #243044;
}

.pn-post-one li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0f766e;
  font-weight: 900;
}

/* TOC */
.pn-post-one-toc {
  padding: 26px 28px;
  margin-bottom: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pn-post-one-toc h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0;
  text-transform: none;
}

.pn-post-one-toc h2::after {
  display: none;
}

.pn-post-one-toc ul {
  margin: 0;
}

.pn-post-one-toc li::before {
  display: none;
}

.pn-post-one-toc li {
  padding-left: 0;
}

.pn-post-one-toc a {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}

.pn-post-one-toc a:hover {
  color: #0f766e;
  text-decoration: underline;
}

/* Info / Warning boxes */
.pn-post-one-info {
  margin: 24px 0;
  padding: 20px 22px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #0f766e;
  border-radius: 0 14px 14px 0;
  color: #164e47;
  font-size: 16px;
}

.pn-post-one-warning {
  margin: 24px 0;
  padding: 20px 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 0 14px 14px 0;
  color: #7c2d12;
  font-size: 16px;
}

/* Steps grid */
.pn-post-one-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 28px;
}

.pn-post-one-step {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.pn-post-one-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #ffffff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}

.pn-post-one-step h3 {
  margin-top: 0;
  font-size: 17px;
}

/* CTA */
.pn-post-one-cta {
  margin: 28px 0;
  padding: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
  color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
}

.pn-post-one-cta h2 {
  margin-top: 0;
  color: #ffffff;
}

.pn-post-one-cta h2::after {
  background: rgba(255, 255, 255, 0.6);
}

.pn-post-one-cta p {
  color: rgba(255, 255, 255, 0.88);
}

.pn-post-one-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 20px;
  background: #ffffff;
  color: #0f766e;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.pn-post-one-cta a:hover {
  transform: translateY(-1px);
  color: #0b5f59;
}

/* FAQ */
.pn-post-one-faq {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pn-post-one-faq h3 {
  margin-top: 0;
  font-size: 17px;
  color: #0f172a;
}

.pn-post-one-faq p {
  color: #475569;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .pn-post-one {
    padding: 20px 14px 52px;
    font-size: 16.5px;
  }

  .pn-post-one-hero {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .pn-post-one-steps {
    grid-template-columns: 1fr;
  }

  .pn-post-one-cta {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .pn-post-one-toc {
    padding: 20px;
    border-radius: 14px;
  }
}