/**
 * Theme Name: Blocksy Child - Pharma Job Portal
 * Description: Modern Pharma News & Job Portal Child Theme for Blocksy. Features custom job badges, 4-box job info strip, modern cards, and mobile app-like navigation.
 * Author: PJP Design
 * Template: blocksy
 * Text Domain: blocksy
 * Version: 1.0.0
 */

/* ==========================================================================
   1. GOOGLE FONTS & DESIGN VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Brand Navy Blue & Vibrant Orange */
  --pjp-primary: #0f2c59;
  --pjp-primary-dark: #091b38;
  --pjp-primary-deep: #050e1f;
  --pjp-primary-light: #e6f0fa;
  --pjp-primary-border: #bfdbfe;

  --pjp-accent: #f97316;
  --pjp-accent-dark: #ea580c;
  --pjp-accent-light: #ffedd5;

  /* Neutrals */
  --pjp-ink: #0f172a;
  --pjp-ink-soft: #334155;
  --pjp-muted: #64748b;
  --pjp-line: #e2e8f0;
  --pjp-bg: #f8fafc;
  --pjp-bg-soft: #f1f5f9;
  --pjp-card: #ffffff;

  /* Shadows */
  --pjp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --pjp-shadow-md: 0 4px 14px rgba(15, 44, 89, 0.08);
  --pjp-shadow-lg: 0 10px 28px rgba(15, 44, 89, 0.14);
  --pjp-radius: 12px;
}

/* ==========================================================================
   2. READING PROGRESS BAR
   ========================================================================== */
#pjp-reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--pjp-primary), var(--pjp-accent));
  z-index: 99999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

/* ==========================================================================
   3. BLOCKSY POST CARDS & GRID OVERRIDES
   ========================================================================== */
/* Card wrapper modern styling */
.entries article.entry-card,
.entries article.entry-card-horizontal,
.ct-posts-shortcode article {
  border: 1px solid var(--pjp-line) !important;
  border-radius: var(--pjp-radius) !important;
  background: var(--pjp-card) !important;
  box-shadow: var(--pjp-shadow-sm) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease !important;
  overflow: hidden;
  position: relative;
}

.entries article.entry-card:hover,
.entries article.entry-card-horizontal:hover,
.ct-posts-shortcode article:hover {
  transform: translateY(-3px) !important;
  border-color: var(--pjp-accent) !important;
  box-shadow: var(--pjp-shadow-lg) !important;
}

/* Post Titles */
.entry-card .entry-title a,
.entry-card-horizontal .entry-title a {
  font-family: 'Inter', system-ui, sans-serif !important;
  color: var(--pjp-ink) !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  transition: color 0.15s ease !important;
}

.entry-card:hover .entry-title a,
.entry-card-horizontal:hover .entry-title a {
  color: var(--pjp-accent) !important;
}

/* Meta tags / read time */
.entry-meta {
  font-size: 11.5px !important;
  color: var(--pjp-muted) !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   4. JOB STATUS BADGES
   ========================================================================== */
.badge-pjp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.3;
  vertical-align: middle;
}

.badge-pjp.badge-new {
  background: var(--pjp-accent);
  color: #ffffff;
}

.badge-pjp.badge-featured {
  background: var(--pjp-accent-light);
  color: var(--pjp-accent-dark);
  border: 1px solid #fed7aa;
}

.badge-pjp.badge-walkin {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-pjp.badge-gov {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-pjp.badge-fresher {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   5. SINGLE JOB INFO STRIP (SHORTCODE: [job_info])
   ========================================================================== */
.pjp-info-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0 26px 0;
  width: 100%;
}

@media (min-width: 640px) {
  .pjp-info-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.pjp-info-cell {
  background: var(--pjp-bg-soft);
  border: 1.5px solid var(--pjp-line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--pjp-shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.pjp-info-cell:hover {
  border-color: var(--pjp-accent);
  box-shadow: var(--pjp-shadow-md);
  transform: translateY(-2px);
  background: #ffffff;
}

.pjp-info-cell small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pjp-muted);
  margin-bottom: 4px;
}

.pjp-info-cell b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pjp-ink);
  line-height: 1.25;
}

/* ==========================================================================
   6. ARTICLE TYPOGRAPHY & HIGHLIGHTS
   ========================================================================== */
.entry-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--pjp-ink-soft);
}

.entry-content h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--pjp-primary) !important;
  letter-spacing: -0.3px;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  padding-left: 12px;
  border-left: 4px solid var(--pjp-accent);
  line-height: 1.35;
}

.entry-content blockquote {
  border-left: 4px solid var(--pjp-accent) !important;
  background: var(--pjp-accent-light) !important;
  padding: 14px 18px !important;
  margin: 22px 0 !important;
  border-radius: 0 10px 10px 0 !important;
  font-size: 14.5px !important;
  color: var(--pjp-accent-dark) !important;
  font-style: italic;
  font-weight: 500;
}

/* Modern Tables inside posts */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border: 1px solid var(--pjp-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--pjp-shadow-sm);
  font-size: 14px;
}

.entry-content table th {
  background: var(--pjp-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.entry-content table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--pjp-line);
  color: var(--pjp-ink);
}

.entry-content table tr:last-child td {
  border-bottom: none;
}

.entry-content table tr:nth-child(even) {
  background: var(--pjp-bg-soft);
}

/* ==========================================================================
   7. HOW TO APPLY / JOB CTA BOX (SHORTCODE: [job_apply_box])
   ========================================================================== */
.pjp-apply-box {
  background: linear-gradient(145deg, var(--pjp-primary-deep), var(--pjp-primary) 70%, var(--pjp-accent-dark));
  color: #ffffff;
  border-radius: 14px;
  padding: 24px 20px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pjp-shadow-lg);
}

.pjp-apply-box::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pjp-apply-box h3 {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.pjp-apply-box p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.pjp-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pjp-accent), var(--pjp-accent-dark));
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pjp-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* ==========================================================================
   8. HERO BANNER COMPONENT (SHORTCODE: [pharma_hero])
   ========================================================================== */
.pjp-hero-container {
  background: linear-gradient(150deg, #091b38, #0f2c59 60%, #1e40af);
  color: #ffffff;
  padding: 34px 20px 38px;
  border-radius: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pjp-shadow-lg);
}

.pjp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.pjp-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pjp-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

.pjp-hero-container h1 {
  color: #ffffff !important;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.pjp-hero-container h1 em {
  font-style: normal;
  color: var(--pjp-accent-light);
}

.pjp-hero-container p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 620px;
}

.pjp-hero-search {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 600px;
}

.pjp-hero-search input {
  border: none !important;
  outline: none !important;
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--pjp-ink);
  background: transparent;
}

.pjp-hero-search button {
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pjp-accent), var(--pjp-accent-dark));
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   9. CATEGORIES GRID COMPONENT (SHORTCODE: [pharma_categories])
   ========================================================================== */
.pjp-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 30px;
}

@media (max-width: 480px) {
  .pjp-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pjp-cat-card {
  background: var(--pjp-card);
  border: 1.5px solid var(--pjp-line);
  border-radius: 12px;
  padding: 14px 8px 12px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--pjp-shadow-sm);
  text-decoration: none !important;
  display: block;
}

.pjp-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--pjp-accent);
  box-shadow: var(--pjp-shadow-md);
}

.pjp-cat-card .cat-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.pjp-cat-card .cat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pjp-ink);
  display: block;
  line-height: 1.25;
}

/* ==========================================================================
   10. MOBILE APP BOTTOM NAVIGATION BAR
   ========================================================================== */
.pjp-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 66px !important;
  }

  .pjp-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid var(--pjp-line);
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.05);
  }

  .pjp-bn-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 58px;
    max-width: 600px;
    margin: 0 auto;
  }

  .pjp-bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--pjp-muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.15s ease;
  }

  .pjp-bn-item span.icon {
    font-size: 18px;
    line-height: 1;
  }

  .pjp-bn-item:hover,
  .pjp-bn-item.active {
    color: var(--pjp-accent);
  }
}
