/* ============================================================
   FREE PRESS RELEASE SUBMISSION WEBSITE — Main Stylesheet
   Mobile-first, responsive, fast, professional
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1448c0;
  --primary-light: #e8f0fe;
  --accent:        #ff6b35;
  --success:       #059669;
  --warning:       #d97706;
  --danger:        #dc2626;
  --dark:          #111827;
  --gray-900:      #1f2937;
  --gray-800:      #374151;
  --gray-700:      #4b5563;
  --gray-600:      #6b7280;
  --gray-400:      #9ca3af;
  --gray-200:      #e5e7eb;
  --gray-100:      #f3f4f6;
  --white:         #ffffff;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --max-width:     1200px;
  --transition:    .2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-800); background: #f8fafc; line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
ul   { list-style: none; }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 3rem 0; }
.bg-light { background: var(--gray-100); }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg  { padding: .75rem 1.6rem; font-size: 1rem; }
.btn-xl  { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm  { padding: .3rem .8rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-icon { color: var(--primary); font-size: 1.5rem; }
.logo-text  { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.logo-text:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav a { color: var(--gray-700); font-weight: 500; font-size: .9rem; padding: .3rem .5rem; border-radius: var(--radius); transition: color var(--transition); }
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.btn-nav-submit { background: var(--primary)!important; color: var(--white)!important; padding: .4rem 1rem!important; border-radius: var(--radius)!important; }
.btn-nav-submit:hover { background: var(--primary-dark)!important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all var(--transition); }
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    flex-direction: column; align-items: stretch; padding: 1rem; gap: .3rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .6rem .8rem; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #1a3a8f 100%);
  color: var(--white); padding: 4rem 0 3rem;
}
.hero-content { max-width: 680px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 .highlight { color: #fbbf24; }
.hero-sub { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.15); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span   { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }

/* ── Search Bar ────────────────────────────────────────── */
.search-bar-section { background: var(--white); padding: 1.5rem 0; box-shadow: var(--shadow); }
.search-form { display: flex; gap: .5rem; max-width: 700px; margin: 0 auto; }
.search-input { flex: 1; padding: .65rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 1rem; font-family: var(--font); transition: border-color var(--transition); }
.search-input:focus { outline: none; border-color: var(--primary); }

/* ── Features Strip ────────────────────────────────────── */
.features-strip { background: var(--primary-light); padding: 1.2rem 0; border-bottom: 1px solid var(--gray-200); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-item { display: flex; align-items: center; gap: .75rem; }
.feature-item i { font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }
.feature-item strong { display: block; font-size: .85rem; font-weight: 700; color: var(--dark); }
.feature-item span   { font-size: .78rem; color: var(--gray-600); }

/* ── Categories Grid ───────────────────────────────────── */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 480px)  { .cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px)  { .cats-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .cats-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .9rem .5rem; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); text-align: center; color: var(--gray-800);
  font-size: .82rem; font-weight: 500; transition: all var(--transition);
}
.cat-card i { font-size: 1.3rem; color: var(--primary); }
.cat-card:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Featured Grid ─────────────────────────────────────── */
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
.featured-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.featured-card h3 { font-size: 1rem; font-weight: 700; margin: .5rem 0; color: var(--dark); }
.featured-card h3 a { color: var(--dark); }
.featured-card h3 a:hover { color: var(--primary); text-decoration: none; }
.featured-card p { font-size: .875rem; color: var(--gray-600); flex: 1; margin-bottom: .75rem; }
.card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; font-size: .78rem; color: var(--gray-500); }
.card-company { font-size: .8rem; color: var(--gray-600); margin-bottom: .75rem; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--primary); margin-top: auto; }
.read-more:hover { text-decoration: none; }

/* ── Press Release List / Cards ────────────────────────── */
.pr-list { display: flex; flex-direction: column; gap: .75rem; }
.pr-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  display: flex; align-items: stretch; box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.pr-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.pr-card-main { flex: 1; padding: 1.1rem 1.25rem; }
.pr-card-meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; flex-wrap: wrap; }
.pr-card h2, .pr-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; }
.pr-card h2 a, .pr-card h3 a { color: var(--dark); }
.pr-card h2 a:hover, .pr-card h3 a:hover { color: var(--primary); text-decoration: none; }
.pr-summary { font-size: .875rem; color: var(--gray-600); margin-bottom: .6rem; line-height: 1.5; }
.pr-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.pr-info { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pr-company, .pr-location { font-size: .78rem; color: var(--gray-600); display: flex; align-items: center; gap: .25rem; }
.pr-date-views { display: flex; align-items: center; gap: .75rem; font-size: .78rem; color: var(--gray-500); }
.pr-card-arrow {
  display: flex; align-items: center; padding: 0 1rem;
  background: var(--gray-100); color: var(--gray-400);
  font-size: .9rem; border-left: 1px solid var(--gray-200);
  transition: all var(--transition); text-decoration: none;
}
.pr-card:hover .pr-card-arrow { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Badges ────────────────────────────────────────────── */
.cat-badge {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
  font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.cat-badge:hover { text-decoration: none; background: var(--primary); color: var(--white); }
.badge-featured { background: #fef3c7; color: #92400e; font-size: .73rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }

/* ── Why Section ───────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.why-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.why-icon i { font-size: 1.3rem; color: var(--primary); }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.why-card p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }

/* ── How It Works ──────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 600px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); position: relative; }
.step-num { width: 36px; height: 36px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.step h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.step p  { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }
.cta-center { text-align: center; padding: 1rem 0; }

/* ── SEO Content Columns ───────────────────────────────── */
.seo-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .seo-cols { grid-template-columns: repeat(2, 1fr); } }
.seo-col h2 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; }
.seo-col h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 1rem 0 .5rem; }
.seo-col p  { font-size: .875rem; color: var(--gray-700); line-height: 1.7; margin-bottom: .75rem; }

/* ── Pagination ────────────────────────────────────────── */
.pagination { margin: 2rem 0; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination li a, .pagination li.active a {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .6rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: .875rem; color: var(--gray-700); background: var(--white);
  transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination li.active a { background: var(--primary); color: var(--white); border-color: var(--primary); font-weight: 700; }
.pagination li.dots { display: flex; align-items: center; padding: 0 .3rem; color: var(--gray-400); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 600px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-col h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.footer-col p  { font-size: .875rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: var(--gray-400); font-size: .875rem; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-col ul li i { color: var(--success); margin-right: .3rem; font-size: .75rem; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: .8rem; }
.rss-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: #f97316; }
.rss-link:hover { color: #ea580c; text-decoration: none; }

/* ── Submit Page ───────────────────────────────────────── */
.submit-page { padding: 2rem 0 3rem; }
.submit-header { margin-bottom: 2rem; }
.submit-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); margin-bottom: .5rem; }
.submit-header h1 .highlight { color: var(--primary); }
.submit-sub { font-size: 1rem; color: var(--gray-600); max-width: 640px; }
.register-hint { color: var(--primary); font-weight: 600; white-space: nowrap; text-decoration: none; }
.register-hint:hover { text-decoration: underline; }
.submit-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.submit-badges span { background: var(--primary-light); color: var(--primary); font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }

/* ── Submit two-column layout (form + sidebar tips) ────── */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .submit-layout { grid-template-columns: 1fr 296px; }
}

/* ── Form card ─────────────────────────────────────────── */
.submit-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/*
 * FIELDSET/LEGEND NOTE:
 * In browsers, `padding-top` on a <fieldset> adds space BELOW the legend
 * (between legend and first child), NOT above it.
 * We use padding: 0 on the fieldset so only legend margin-bottom controls
 * the gap between legend and first field.
 * To create space ABOVE the legend in subsequent sections, we use margin-top
 * on `.form-section + .form-section`.
 */
.form-section {
  border: none;
  padding: 0 2.25rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.form-section + .form-section { margin-top: 2rem; }
.form-section:first-of-type { margin-top: 2rem; }
.form-section:last-of-type  { border-bottom: none; }
.form-section::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: opacity .2s ease;
}
.form-section:focus-within::before { opacity: 1; }

.form-section legend {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  /* padding-bottom creates the gap between legend text and the underline */
  padding: 0 0 .75rem;
  /* margin-bottom is the ONLY gap between legend and first field */
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  border-bottom: 2px solid var(--gray-100);
}
.form-section legend i {
  color: var(--primary);
  font-size: .85rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.35rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: .8rem; font-weight: 600;
  color: var(--gray-700); letter-spacing: .02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .925rem;
  font-family: var(--font);
  color: var(--dark);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  background: var(--white);
  line-height: 1.5;
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover { border-color: #a5b4fc; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
  background: #fafcff;
}
.form-group textarea { resize: vertical; min-height: 130px; width: 100%; box-sizing: border-box; }
.form-group small { font-size: .775rem; color: var(--gray-400); line-height: 1.45; }
.form-group .req { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 600px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .form-row.three-col { grid-template-columns: repeat(3, 1fr); }
}
.char-count { font-size: .72rem; color: var(--gray-400); text-align: right; margin-top: .1rem; }

/* ── Custom slug field ───────────────────────────────────── */
.slug-input-wrap { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.slug-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.slug-prefix { padding: .7rem .75rem; background: var(--gray-50); color: var(--gray-400); font-size: .8rem; white-space: nowrap; border-right: 1.5px solid var(--gray-200); flex-shrink: 0; user-select: none; }
.slug-input-wrap input { border: none !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; font-family: monospace; font-size: .88rem; color: var(--dark); padding: .7rem .9rem; background: transparent; }
.slug-input-wrap input:focus { outline: none; }
.slug-live-preview { font-size: .78rem; color: var(--gray-500); margin-top: .25rem; }
.slug-live-preview strong { color: var(--primary); word-break: break-all; }

/* ── Body Write / Preview tabs ──────────────────────────── */
#bodyWritePane, #bodyPreviewPane { width: 100%; }
.body-tabs { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.body-tab-label { font-size: .8rem; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: .04em; }
.body-tab-btns { display: flex; border: 1px solid var(--gray-200); border-radius: 7px; overflow: hidden; }
.body-tab { background: none; border: none; padding: .35rem .85rem; font-size: .8rem; font-weight: 600; color: var(--gray-500); cursor: pointer; display: flex; align-items: center; gap: .35rem; transition: background .15s, color .15s; }
.body-tab + .body-tab { border-left: 1px solid var(--gray-200); }
.body-tab.active { background: var(--primary); color: #fff; }
.body-tab:not(.active):hover { background: var(--gray-50); color: var(--gray-700); }
.body-preview-render {
  min-height: 200px; padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); font-size: .95rem; line-height: 1.75;
  color: var(--gray-800); white-space: pre-wrap; word-break: break-word;
}
.body-preview-render a { color: var(--primary); text-decoration: underline; }
.body-preview-render .pr-preview-empty { color: var(--gray-400); font-style: italic; font-size: .88rem; }

.checkbox-group { padding: 1.25rem 2.25rem; background: #f8faff; border-top: 1px solid #e0e7ff; }
.checkbox-label { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; font-size: .875rem; color: var(--gray-700); line-height: 1.5; }
.checkbox-label input { margin-top: .2rem; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

.submission-guidelines {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 1rem 2.25rem;
}
.submission-guidelines h3 { font-size: .78rem; font-weight: 700; color: #92400e; margin-bottom: .5rem; display: flex; align-items: center; gap: .35rem; text-transform: uppercase; letter-spacing: .04em; }
.submission-guidelines ul { padding-left: 1.2rem; list-style: disc; }
.submission-guidelines ul li { font-size: .79rem; color: #78350f; margin-bottom: .25rem; line-height: 1.5; }

.form-submit {
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border-top: 1px solid #dce5fb;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  text-align: center;
}
.form-submit .btn-xl {
  min-width: 260px;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 14px rgba(26,86,219,.28);
  transition: box-shadow .15s ease, transform .15s ease;
}
.form-submit .btn-xl:hover {
  box-shadow: 0 6px 20px rgba(26,86,219,.38);
  transform: translateY(-1px);
}
.submit-note { font-size: .78rem; color: var(--gray-400); margin-top: .85rem; display: flex; align-items: center; justify-content: center; gap: .35rem; }

/* ── Submit Tips sidebar ───────────────────────────────── */
.submit-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .submit-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.submit-tips {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.submit-tips h3 {
  font-size: .72rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: .9rem; display: flex; align-items: center; gap: .4rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--gray-100);
  text-transform: uppercase; letter-spacing: .08em;
}
.submit-tips h3 i { color: #d97706; }
/* Fix: use relative+absolute for ::before so it doesn't break
   when li contains mixed <strong>+text nodes */
.submit-tips ul { padding-left: 0; list-style: none; }
.submit-tips ul li {
  font-size: .82rem; color: var(--gray-700); margin-bottom: .5rem;
  line-height: 1.55; padding-left: 1rem; position: relative;
}
.submit-tips ul li::before {
  content: '›'; color: var(--primary); font-weight: 700;
  position: absolute; left: 0; top: .05em; line-height: 1;
}
.tip-box {
  background: var(--primary-light); border-radius: var(--radius);
  padding: 1rem; margin-top: 1.25rem; border-left: 3px solid var(--primary);
}
.tip-box h4 { font-size: .83rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem; display: flex; align-items: center; gap: .3rem; }
.tip-box p  { font-size: .8rem; color: var(--primary-dark); margin: 0; line-height: 1.5; }

/* Dark-themed promo card in sidebar */
.submit-promo {
  background: linear-gradient(140deg, #1e3a8a 0%, #4c1d95 100%);
  border: none !important; color: #fff !important;
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 14px rgba(30,58,138,.35);
}
.submit-promo h3 {
  color: #fcd34d !important; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; gap: .4rem;
}
.submit-promo p { font-size: .82rem; color: rgba(255,255,255,.9) !important; margin: 0 0 .9rem; line-height: 1.55; }
.submit-promo ul { padding-left: 0; list-style: none; margin-bottom: 1.1rem; }
.submit-promo ul li {
  font-size: .82rem; color: rgba(255,255,255,.92) !important;
  margin-bottom: .45rem; line-height: 1.5; padding-left: 0;
}
.submit-promo ul li::before { content: none; }
.submit-promo .promo-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: #1e3a8a;
  padding: .5rem 1rem; border-radius: 6px;
  font-size: .83rem; font-weight: 700;
  text-decoration: none !important; transition: background .15s, color .15s;
}
.submit-promo .promo-btn:hover { background: #fcd34d; color: #1e3a8a; }


/* ── Alerts ────────────────────────────────────────────── */
.alert { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert-error strong { display: block; margin-bottom: .4rem; }
.alert-error ul { padding-left: 1.25rem; list-style: disc; margin: 0; }
.alert-error ul li { font-size: .875rem; margin-bottom: .2rem; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }

/* ── Success Box ───────────────────────────────────────── */
.success-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.success-icon i { font-size: 3.5rem; color: var(--success); }
.success-box h1 { font-size: 1.6rem; font-weight: 800; color: var(--dark); margin: .75rem 0 .5rem; }
.success-box p { color: var(--gray-600); margin-bottom: .75rem; }
.share-url { display: flex; gap: .5rem; margin: 1rem 0; justify-content: center; flex-wrap: wrap; }
.share-url input { flex: 1; min-width: 200px; max-width: 560px; padding: .55rem .85rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .875rem; background: var(--gray-100); }

/* ── View / Article ────────────────────────────────────── */
.view-page { padding: 2rem 0 3rem; }
.view-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .view-layout { grid-template-columns: 1fr 300px; } }
.pr-article { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.pr-header { margin-bottom: 1.5rem; }
.pr-labels { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pr-header h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: .75rem; }
.pr-lead { font-size: 1.05rem; color: var(--gray-700); font-style: italic; border-left: 3px solid var(--primary); padding-left: 1rem; margin-bottom: 1rem; line-height: 1.7; }
.pr-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); font-size: .85rem; color: var(--gray-600); }
.byline-info { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.byline-date  { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.byline-location { color: var(--gray-500); }
.view-count { color: var(--gray-500); }
.pr-body { margin-top: 1.5rem; font-size: .95rem; line-height: 1.8; color: var(--gray-800); }
.pr-body p  { margin-bottom: 1rem; }
.pr-body h2 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 .75rem; }
.pr-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 1.25rem 0 .5rem; }
.pr-body ul, .pr-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.pr-body li { margin-bottom: .3rem; }
.pr-body blockquote { border-left: 4px solid var(--primary); padding: .75rem 1rem; background: var(--gray-100); margin: 1rem 0; font-style: italic; color: var(--gray-700); }
.pr-contact-box { background: var(--gray-100); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; }
.pr-contact-box h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; }
.contact-details p { font-size: .875rem; color: var(--gray-700); margin-bottom: .3rem; }
.contact-details a { color: var(--primary); }
.pr-keywords { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pr-keywords strong { color: var(--gray-700); }
.tag-link { background: var(--gray-100); color: var(--gray-700); padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; }
.tag-link:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.pr-share { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.pr-share strong { display: block; font-size: .875rem; color: var(--gray-700); margin-bottom: .75rem; }
.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: var(--radius); font-size: .82rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.share-twitter  { background: #000; color: #fff; }
.share-linkedin { background: #0a66c2; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-copy     { background: var(--gray-200); color: var(--gray-800); }
.share-btn:hover { opacity: .85; text-decoration: none; }
.pr-source { font-size: .8rem; color: var(--gray-500); margin-top: 1rem; }
.pr-source a { color: var(--gray-500); }
.submit-cta-inline { background: var(--primary-light); border-radius: var(--radius); padding: .9rem 1.1rem; margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.submit-cta-inline p { margin: 0; font-size: .875rem; color: var(--primary-dark); }

/* ── Sidebar ───────────────────────────────────────────── */
.pr-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.sidebar-widget h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gray-200); }
.widget-cta { background: var(--primary); border-color: var(--primary); }
.widget-cta h3 { color: var(--white); border-color: rgba(255,255,255,.2); }
.widget-cta p  { color: rgba(255,255,255,.85); font-size: .875rem; margin-bottom: 1rem; }
.sidebar-cats li { margin-bottom: .35rem; }
.sidebar-cats li a { font-size: .85rem; color: var(--gray-700); display: flex; align-items: center; gap: .4rem; }
.sidebar-cats li a i { color: var(--primary); width: 16px; text-align: center; font-size: .8rem; }
.sidebar-cats li a:hover { color: var(--primary); text-decoration: none; }
.related-list li { padding: .6rem 0; border-bottom: 1px solid var(--gray-200); }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.related-list li a { font-size: .85rem; font-weight: 600; color: var(--dark); display: block; margin-bottom: .2rem; }
.related-list li a:hover { color: var(--primary); text-decoration: none; }
.related-list li time { font-size: .75rem; color: var(--gray-500); }

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb { font-size: .82rem; color: var(--gray-500); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb span:not(.breadcrumb > span:last-child) { color: var(--gray-400); }

/* ── Page Header ───────────────────────────────────────── */
.page-header { margin-bottom: 2rem; display: flex; align-items: flex-start; gap: 1.25rem; }
.page-header-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.page-header-icon i { font-size: 1.5rem; color: var(--primary); }
.page-header h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--dark); margin-bottom: .3rem; }
.page-header p { font-size: .875rem; color: var(--gray-600); margin-bottom: .25rem; }
.total-count { font-size: .8rem; color: var(--gray-500); }

/* ── Search Page ───────────────────────────────────────── */
.search-page { padding: 2rem 0 3rem; }
.search-form-large { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-input-large { flex: 1; padding: .75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 1rem; font-family: var(--font); }
.search-input-large:focus { outline: none; border-color: var(--primary); }
.search-meta { font-size: .9rem; color: var(--gray-600); margin-bottom: 1.25rem; }

/* ── Category & Other Pages ────────────────────────────── */
.category-page, .submit-page { padding: 2rem 0 3rem; }
.other-cats { margin-top: 2.5rem; }
.other-cats h2 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }

/* ── Empty State ───────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--white); border: 1px dashed var(--gray-300); border-radius: var(--radius-lg); }
.empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-600); margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; color: var(--gray-500); }

/* ── 404 ───────────────────────────────────────────────── */
.not-found { text-align: center; padding: 4rem 1rem; }
.not-found h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; }
.not-found p { color: var(--gray-600); margin-bottom: 1.5rem; }

/* ── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* ── PR Grid layout (for featured page, etc.) ──────────── */
.pr-grid { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) {
  .pr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ── Auth pages (register / login) ─────────────────────── */
.auth-page { padding: 2rem 0 3.5rem; }
.auth-wrap { max-width: 680px; margin: 0 auto; }
.auth-wrap.narrow { max-width: 460px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.7rem; font-weight: 800; color: var(--dark); margin: 0 0 .4rem; }
.auth-header p { color: var(--gray-600); font-size: .92rem; margin: .3rem 0; }
.auth-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.auth-form .form-section { padding: 1.75rem 2rem 1.5rem; }
.auth-form .form-section:first-child { padding-top: 1.75rem; }
.auth-success { background: #f0fdf4; border: 2px solid #86efac; border-radius: var(--radius-lg); padding: 2rem; }

/* ── Featured page ─────────────────────────────────────── */
.featured-page { padding: 2rem 0 3rem; }
.results-count { margin-bottom: 1.5rem; color: var(--gray-600); font-size: .9rem; }

/* ── Image upload field ─────────────────────────────────── */
.file-upload-wrap { position: relative; }
.file-upload-wrap input[type="file"] {
  width: 100%; padding: .65rem .9rem;
  border: 2px dashed var(--gray-200); border-radius: var(--radius);
  background: var(--gray-100); cursor: pointer; font-size: .88rem;
  transition: border-color var(--transition), background var(--transition);
}
.file-upload-wrap input[type="file"]:hover,
.file-upload-wrap input[type="file"]:focus {
  border-color: var(--primary); background: var(--primary-light); outline: none;
}
.file-upload-hint {
  display: flex; align-items: center; gap: .5rem; margin-top: .4rem;
  font-size: .82rem; color: var(--gray-600);
}
.file-upload-hint .fas { color: var(--primary); font-size: 1rem; }

/* ── PR featured image (view page) ─────────────────────── */
.pr-featured-image { margin-bottom: 1.75rem; }
.pr-featured-image img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.pr-image-caption {
  font-size: .84rem; color: var(--gray-600);
  text-align: center; margin-top: .55rem; font-style: italic;
}

/* ── Static pages (terms, privacy, etc.) ───────────────── */
.static-page { padding: 2rem 0 3.5rem; }
.static-wrap {
  max-width: 780px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2.5rem 2.5rem 3rem;
  box-shadow: var(--shadow-md);
}
.static-wrap h1 {
  font-size: 1.85rem; font-weight: 800; color: var(--dark);
  margin-bottom: .35rem; display: flex; align-items: center; gap: .55rem;
}
.static-wrap h1 i { color: var(--primary); font-size: 1.5rem; }
.static-meta { font-size: .85rem; color: var(--gray-500); margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--gray-100); }
.static-wrap section { margin-bottom: 1.75rem; }
.static-wrap h2 {
  font-size: 1rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: .65rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--gray-100);
}
.static-wrap p { color: var(--gray-700); line-height: 1.7; margin-bottom: .65rem; font-size: .95rem; }
.static-wrap ul {
  padding-left: 1.25rem; list-style: disc; margin: .5rem 0 .75rem;
}
.static-wrap ul li { color: var(--gray-700); font-size: .93rem; line-height: 1.65; margin-bottom: .35rem; }
@media (max-width: 640px) {
  .static-wrap { padding: 1.5rem 1.25rem 2rem; }
  .static-wrap h1 { font-size: 1.45rem; }
}

/* ── Print Styles ──────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .pr-sidebar, .pr-share, .submit-cta-inline { display: none; }
  .view-layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
