/*
Theme Name: JobPortal Pro
Theme URI: https://grey-cassowary-127092.hostingersite.com/
Author: JobPortal Pro
Author URI: https://grey-cassowary-127092.hostingersite.com/
Description: A stunning mobile-first job posting theme with WhatsApp share gate system and Download Monitor integration. Features a full-screen WhatsApp share popup before revealing application form download links.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobportal-pro
Tags: job-board, blog, mobile-first, whatsapp, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary: #0A2540;
  --color-accent: #25D366;
  --color-accent-dark: #128C7E;
  --color-gold: #FFB800;
  --color-surface: #F7F9FC;
  --color-white: #FFFFFF;
  --color-text: #1A1A2E;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-danger: #EF4444;
  --color-success: #10B981;

  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 25px 60px rgba(0,0,0,0.20);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.popup-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow { max-width: 780px; }

.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;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo__icon {
  width: 38px; height: 38px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.site-logo__text span { color: var(--color-accent); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover { color: var(--color-accent); }

.nav-cta {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO BANNER (homepage)
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 50%, #0f2d4a 100%);
  padding: 4rem 1.25rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2325D366' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
  position: relative;
}

.hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.15;
}

.hero-banner__title .highlight {
  color: var(--color-accent);
  position: relative;
}

.hero-banner__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-stat {
  text-align: center;
}

.hero-stat__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
}

.hero-stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   JOBS GRID / LOOP
   ============================================================ */
.jobs-section {
  padding: 3rem 0 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-dark);
  background: rgba(37,211,102,0.1);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-title { margin-bottom: 0.5rem; }

.section-sub {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   JOB CARD
   ============================================================ */
.job-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.job-card__top {
  padding: 1.4rem 1.4rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.job-card__logo {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.job-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.job-card__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--new { background: #FEF3C7; color: #92400E; }
.badge--hot { background: #FEE2E2; color: #991B1B; }
.badge--full { background: #DBEAFE; color: #1E40AF; }
.badge--part { background: #F3E8FF; color: #6D28D9; }
.badge--remote { background: #D1FAE5; color: #065F46; }
.badge--urgent { background: #FEE2E2; color: #B91C1C; }

.job-card__body { padding: 1rem 1.4rem; }

.job-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.job-card__company {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.meta-item svg { width: 13px; height: 13px; flex-shrink: 0; }

.job-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card__footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-card__salary {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.job-card__date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: #1a3a5c;
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--sm { font-size: 0.8rem; padding: 0.45rem 1rem; }
.btn--lg { font-size: 1rem; padding: 0.85rem 1.8rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   SINGLE POST — JOB DETAIL
   ============================================================ */
.job-single {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.job-single__header {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.job-single__header::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(37,211,102,0.08);
}

.job-single__logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.job-single__logo {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.job-single__company-info h4 {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.job-single__company-info p {
  color: var(--color-accent);
  font-weight: 600;
  margin: 0;
}

.job-single__title {
  color: white;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.job-single__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.job-meta-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
}

.job-single__body {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.job-single__body h2,
.job-single__body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.job-single__body h2:first-child,
.job-single__body h3:first-child { margin-top: 0; }

.job-single__body p { color: #374151; font-size: 0.97rem; }

.job-single__body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.job-single__body ul li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: #374151;
}

.job-single__body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* Apply CTA Box */
.apply-cta-box {
  background: linear-gradient(135deg, var(--color-primary), #1a3a5c);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.apply-cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(37,211,102,0.1) 0%, transparent 60%);
}

.apply-cta-box h3 {
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
}

.apply-cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.apply-cta-box .btn {
  position: relative;
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* ============================================================
   WHATSAPP SHARE POPUP (Full Screen Gate)
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Blurred backdrop */
.popup-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Animated BG rings */
.popup-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37,211,102,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(18,140,126,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.popup-card {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 460px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.85) translateY(20px);
  transition: transform var(--transition-bounce);
  max-height: 90vh;
  overflow-y: auto;
}

.popup-overlay.is-active .popup-card {
  transform: scale(1) translateY(0);
}

.popup-icon-ring {
  width: 88px; height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 50px rgba(37,211,102,0.65), 0 0 0 12px rgba(37,211,102,0.12); }
}

.popup-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.popup-subtitle {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
  line-height: 1.55;
}

.share-steps {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  text-align: left;
}

.share-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.share-step:last-child { margin-bottom: 0; }

.share-step__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.share-step__text {
  font-size: 0.87rem;
  color: var(--color-text);
  line-height: 1.4;
}

.share-step__text strong { color: var(--color-primary); }

.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  width: 100%;
  justify-content: center;
  margin-bottom: 0.8rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
}

.btn--whatsapp:active { transform: scale(0.98); }

.popup-disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* Friends counter */
.friends-counter {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.friend-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.friend-dot.filled {
  background: var(--color-accent);
  border-color: var(--color-accent-dark);
  animation: pop-dot 0.4s var(--transition-bounce);
}

@keyframes pop-dot {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ============================================================
   DOWNLOAD POPUP
   ============================================================ */
.download-popup .popup-icon-ring {
  background: linear-gradient(135deg, #FFB800, #F59E0B);
  box-shadow: 0 8px 30px rgba(255,184,0,0.4);
  animation: pulse-gold 2s ease infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 8px 30px rgba(255,184,0,0.4); }
  50% { box-shadow: 0 8px 50px rgba(255,184,0,0.65), 0 0 0 12px rgba(255,184,0,0.12); }
}

.download-popup .popup-title { color: var(--color-primary); }

.download-file-info {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.file-icon {
  width: 48px; height: 48px;
  background: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.file-details h4 {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.file-details p {
  font-size: 0.78rem;
  color: #15803D;
  margin: 0;
  font-weight: 500;
}

.btn--download {
  background: linear-gradient(135deg, var(--color-gold), #F59E0B);
  color: var(--color-primary);
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(255,184,0,0.35);
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,184,0,0.45);
}

.success-checkmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #D1FAE5;
  color: #065F46;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* Confetti effect */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px; height: 8px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   TIMER INDICATOR (on single post)
   ============================================================ */
.share-timer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.share-timer.visible {
  opacity: 1;
  transform: translateY(0);
}

.timer-progress {
  width: 36px; height: 36px;
  flex-shrink: 0;
}

.timer-progress-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 3;
}

.timer-progress-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s linear;
}

.timer-text { font-size: 0.7rem; line-height: 1.3; }
.timer-text strong { display: block; font-size: 1rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.sidebar { position: sticky; top: 90px; }

.widget {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.widget__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.widget-job-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.widget-job-item:last-child { border-bottom: none; padding-bottom: 0; }

.widget-job-item__icon {
  width: 38px; height: 38px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.widget-job-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.widget-job-item__meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.25rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 0.8rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p { font-size: 0.82rem; margin: 0; }

/* ============================================================
   MOBILE NAV MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-primary);
  padding: 5rem 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-100%);
  transition: transform var(--transition);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .jobs-grid { grid-template-columns: 1fr; }

  .hero-banner { padding: 2.5rem 1.25rem 3.5rem; }
  .hero-stats { gap: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .popup-card { padding: 2rem 1.5rem; }
  .popup-title { font-size: 1.3rem; }

  .share-timer {
    bottom: 1rem; right: 1rem; left: 1rem;
    border-radius: var(--radius-md);
  }

  .job-single__header { padding: 1.5rem; }
  .job-single__body { padding: 1.5rem; }
  .apply-cta-box { padding: 1.5rem; }
}

/* ============================================================
   WORDPRESS COMPATIBILITY
   ============================================================ */
.aligncenter { display: block; margin: 0 auto; }
.alignright { float: right; margin-left: 1rem; }
.alignleft { float: left; margin-right: 1rem; }
.wp-block-image { margin-bottom: 1.5rem; }

/* Admin bar spacing */
.admin-bar .site-header { top: 32px; }
.admin-bar .popup-overlay { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .popup-overlay { top: 46px; }
}

/* Screen reader skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 999999;
}

.skip-link:focus { top: 0; }
