/* ===========================================
   Car Safety & Electronics Article Style
   Version: 1.0.0
   Site: https://topbestcar.com/
   Niche: Car Safety & Electronics
   Author: Ethan Carter
   Scoped to .cse-blog-wrap only
   Does NOT affect any other page or post
=========================================== */


/* ── BASE WRAPPER ── */
.cse-blog-wrap {
  margin: 0 auto;
  padding: 0 16px;
  line-height: 1.8;
  color: #1e1e1e;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cse-blog-wrap *,
.cse-blog-wrap *::before,
.cse-blog-wrap *::after {
  box-sizing: border-box;
}


/* ── TYPOGRAPHY ── */
.cse-blog-wrap p {
  margin: 0 0 1.3em;
}

.cse-blog-wrap h2 {
  font-size: 1.5em;
  font-weight: 800;
  margin: 2.2em 0 0.6em;
  color: #111111;
  line-height: 1.3;
  letter-spacing: -0.02em;
  border-bottom: 3px solid #df030e;
  padding-bottom: 0.35em;
}

.cse-blog-wrap h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin: 1.7em 0 0.5em;
  color: #1a1a1a;
  line-height: 1.4;
}

.cse-blog-wrap h4 {
  font-size: 1em;
  font-weight: 700;
  margin: 1.4em 0 0.4em;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cse-blog-wrap ul,
.cse-blog-wrap ol {
  margin: 0 0 1.3em 0;
  padding-left: 1.6em;
}

.cse-blog-wrap li { margin-bottom: 0.55em; }
.cse-blog-wrap strong { font-weight: 700; color: #111111; }
.cse-blog-wrap em { font-style: italic; color: #444444; }

.cse-blog-wrap a {
  color: #df030e;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(223, 3, 14, 0.35);
  transition: text-decoration-color .2s, color .2s;
}
.cse-blog-wrap a:hover {
  color: #b50208;
  text-decoration-color: #b50208;
}

.cse-blog-wrap section { margin-bottom: 0.4em; }

/* Blockquote */
.cse-blog-wrap blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid #df030e;
  background: #f9f9f9;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #444;
  font-size: 1.05em;
  line-height: 1.7;
}
.cse-blog-wrap blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.8em;
  font-style: normal;
  color: #888;
}


/* ─────────────────────────────────────────
   AFFILIATE DISCLOSURE & AMAZON CTA
───────────────────────────────────────────── */

/* Amazon CTA Button — VIBRANT & ENGAGING */
.cse-amazon-cta-wrap {
  text-align: center;
  margin: 2.5em 0;
  padding: 2.5em;
  background: linear-gradient(135deg, #fef2f2 0%, #fce7e7 100%);
  border: 3px solid #df030e;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(223, 3, 14, 0.2);
  position: relative;
  overflow: hidden;
}

.cse-amazon-cta-wrap::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(223, 3, 14, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cse-amazon-cta-wrap::before {
  content: '🛒';
  display: block;
  font-size: 2.4em;
  margin-bottom: 0.8em;
  opacity: 1;
  position: relative;
  z-index: 1;
}

.cse-amazon-btn {
  display: inline-block;
  background: #df030e;
  color: white;
  padding: 18px 56px;
  border: 2px solid #b50208;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(223, 3, 14, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.cse-amazon-btn:hover {
  background: #b50208;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(223, 3, 14, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cse-amazon-btn:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 4px 12px rgba(223, 3, 14, 0.4);
}


/* ─────────────────────────────────────────
   SAFETY TIPS & SAFETY CONCERNS
───────────────────────────────────────────── */

.cse-safety-tips,
.cse-safety-concerns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 2em 0;
}

@media (max-width: 768px) {
  .cse-safety-tips,
  .cse-safety-concerns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Safety Tips (Green) */
.cse-tips {
  background: #f0f8f4;
  border-left: 4px solid #1e6b3a;
  padding: 18px 20px;
  border-radius: 4px;
}

.cse-tips-title {
  font-weight: 700;
  color: #1e6b3a;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.cse-tips p {
  margin: 0.6em 0;
  font-size: 0.95em;
  line-height: 1.7;
}

/* Safety Concerns (Red) */
.cse-concerns {
  background: #fff3f3;
  border-left: 4px solid #df030e;
  padding: 18px 20px;
  border-radius: 4px;
}

.cse-concerns-title {
  font-weight: 700;
  color: #df030e;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.cse-concerns p {
  margin: 0.6em 0;
  font-size: 0.95em;
  line-height: 1.7;
}


/* ─────────────────────────────────────────
   COMPARISON TABLE (Safety Features)
───────────────────────────────────────────── */

.cse-compare {
  margin: 2em 0;
  border-collapse: collapse;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cse-compare thead tr {
  background: #df030e;
  color: white;
}

.cse-compare th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.02em;
}

.cse-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9em;
  line-height: 1.5;
}

.cse-compare tbody tr:hover {
  background: #f9f9f9;
}

.cse-compare tbody tr:last-child td {
  border-bottom: none;
}

.cse-compare-col {
  text-align: center;
}

.cse-compare-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1em;
  text-align: center;
  font-size: 1.15em;
}

/* Checkmarks in comparison */
.cse-compare .checkmark {
  color: #1e6b3a;
  font-weight: 700;
}

.cse-compare .cross {
  color: #df030e;
  font-weight: 700;
}


/* ─────────────────────────────────────────
   CHECKLIST (Safety Features / Buyer's)
───────────────────────────────────────────── */

.cse-checklist {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 8px;
  margin: 2em 0;
  border: 1px solid #e0e0e0;
}

.cse-checklist-title {
  font-weight: 700;
  font-size: 1.15em;
  color: #1a1a1a;
  margin-bottom: 1.2em;
  display: flex;
  align-items: center;
}

.cse-checklist-title::before {
  content: '✓';
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #df030e;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

.cse-checklist-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2em;
  padding: 0;
}

.cse-checklist-item::before {
  content: '☐';
  color: #df030e;
  font-size: 1.4em;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cse-checklist-item.checked::before {
  content: '☑';
  color: #1e6b3a;
}

.cse-checklist-item-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}


/* ─────────────────────────────────────────
   INSTALLATION DIFFICULTY BADGE
───────────────────────────────────────────── */

.cse-install-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.05em;
  margin: 1em 0;
}

.cse-install-easy {
  background: #e8f5e9;
  color: #1e6b3a;
  border: 1px solid #1e6b3a;
}

.cse-install-moderate {
  background: #fff3e0;
  color: #e67e22;
  border: 1px solid #e67e22;
}

.cse-install-professional {
  background: #fff3f3;
  color: #df030e;
  border: 1px solid #df030e;
}


/* ─────────────────────────────────────────
   COMPATIBILITY BOX (Car Models)
───────────────────────────────────────────── */

.cse-compat-box {
  background: #f5f9ff;
  border-left: 4px solid #1a4a7a;
  padding: 18px 20px;
  margin: 1.5em 0;
  border-radius: 4px;
}

.cse-compat-label {
  font-weight: 700;
  color: #1a4a7a;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.cse-compat-box p {
  margin: 0.5em 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}

.cse-compat-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.cse-compat-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9em;
}

.cse-compat-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a4a7a;
  font-weight: 700;
}


/* ─────────────────────────────────────────
   DID YOU KNOW / SAFETY TIP BOX
───────────────────────────────────────────── */

.cse-did-you-know {
  background: linear-gradient(135deg, #fff9e6 0%, #fffef0 100%);
  border: 2px solid #ffd700;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 1.8em 0;
  position: relative;
  padding-left: 50px;
}

.cse-did-you-know::before {
  content: '💡';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8em;
}

.cse-did-you-know-title {
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 0.4em;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

.cse-did-you-know p {
  margin: 0.5em 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}


/* ─────────────────────────────────────────
   DOS & DON'TS
───────────────────────────────────────────── */

.cse-dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 2em 0;
}

@media (max-width: 768px) {
  .cse-dos-donts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cse-dos,
.cse-donts {
  padding: 20px;
  border-radius: 6px;
}

.cse-dos {
  background: #f0f8f4;
  border-left: 4px solid #1e6b3a;
}

.cse-dos-title {
  font-weight: 700;
  color: #1e6b3a;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.cse-dos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cse-dos li {
  margin-bottom: 0.8em;
  padding-left: 24px;
  position: relative;
}

.cse-dos li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1e6b3a;
  font-weight: 700;
}

.cse-donts {
  background: #fff3f3;
  border-left: 4px solid #df030e;
}

.cse-donts-title {
  font-weight: 700;
  color: #df030e;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.cse-donts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cse-donts li {
  margin-bottom: 0.8em;
  padding-left: 24px;
  position: relative;
}

.cse-donts li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #df030e;
  font-weight: 700;
}


/* ─────────────────────────────────────────
   STEP-BY-STEP GUIDE
───────────────────────────────────────────── */

.cse-steps {
  margin: 2em 0;
}

.cse-step {
  display: flex;
  gap: 20px;
  margin-bottom: 1.8em;
  padding-bottom: 1.8em;
  border-bottom: 1px solid #e8e8e8;
}

.cse-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cse-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #df030e;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1em;
}

.cse-step-body {
  flex: 1;
}

.cse-step-body strong {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.05em;
  display: block;
  margin-bottom: 0.5em;
}

.cse-step-body p {
  margin: 0.5em 0;
  line-height: 1.6;
  color: #333;
}


/* ─────────────────────────────────────────
   TECH NOTE BOX
───────────────────────────────────────────── */

.cse-tech-note {
  background: #f5f5f5;
  border-left: 4px solid #1a4a7a;
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 4px;
}

.cse-tech-label {
  font-weight: 700;
  color: #1a4a7a;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  display: block;
}

.cse-tech-note p {
  margin: 0.5em 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}


/* ─────────────────────────────────────────
   EXPERT INSIGHT BOX
───────────────────────────────────────────── */

.cse-expert-insight {
  background: linear-gradient(135deg, #f5f9ff 0%, #f0f8ff 100%);
  border-left: 4px solid #1a4a7a;
  padding: 18px 20px;
  margin: 1.5em 0;
  border-radius: 4px;
}

.cse-expert-label {
  font-weight: 700;
  color: #1a4a7a;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  display: block;
}

.cse-expert-insight p {
  margin: 0.5em 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}


/* ─────────────────────────────────────────
   BOTTOM LINE / VERDICT BOX
───────────────────────────────────────────── */

.cse-bottom-line {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  border-radius: 8px;
  padding: 28px;
  margin: 2.5em 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cse-bottom-line-label {
  display: inline-block;
  background: #df030e;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cse-bottom-line h3 {
  color: #df030e;
  margin: 0.5em 0;
  font-size: 1.25em;
}

.cse-bottom-line p {
  margin: 0.8em 0;
  font-size: 0.95em;
  line-height: 1.7;
  color: #e8e8e8;
}

.cse-bottom-line strong {
  color: #df030e;
  font-weight: 700;
}


/* ─────────────────────────────────────────
   TABLES (GENERIC)
───────────────────────────────────────────── */

.cse-blog-wrap table {
  margin: 1.5em 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  line-height: 1.6;
}

.cse-blog-wrap table th {
  background: #1a1a1a;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border: none;
}

.cse-blog-wrap table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}

.cse-blog-wrap table tbody tr:hover {
  background: #f9f9f9;
}


/* ─────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────────── */

.cse-mt-small { margin-top: 0.8em; }
.cse-mt-medium { margin-top: 1.5em; }
.cse-mt-large { margin-top: 2em; }

.cse-mb-small { margin-bottom: 0.8em; }
.cse-mb-medium { margin-bottom: 1.5em; }
.cse-mb-large { margin-bottom: 2em; }

.cse-text-center { text-align: center; }
.cse-text-bold { font-weight: 700; }
.cse-text-italic { font-style: italic; }

.cse-highlight {
  background: rgba(223, 3, 14, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  color: #df030e;
  font-weight: 600;
}

.cse-alert {
  background: #fff3f3;
  border-left: 4px solid #df030e;
  padding: 14px 16px;
  margin: 1em 0;
  border-radius: 4px;
  font-size: 0.9em;
}

.cse-info {
  background: #f0f8ff;
  border-left: 4px solid #1a4a7a;
  padding: 14px 16px;
  margin: 1em 0;
  border-radius: 4px;
  font-size: 0.9em;
  color: #1a4a7a;
}

.cse-success {
  background: #f0f8f4;
  border-left: 4px solid #1e6b3a;
  padding: 14px 16px;
  margin: 1em 0;
  border-radius: 4px;
  font-size: 0.9em;
  color: #1e6b3a;
}


/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */

@media (max-width: 768px) {
  .cse-blog-wrap {
    padding: 0 12px;
  }

  .cse-blog-wrap h2 {
    font-size: 1.3em;
    margin: 1.8em 0 0.5em;
  }

  .cse-blog-wrap h3 {
    font-size: 1.05em;
  }

  .cse-compare {
    font-size: 0.85em;
  }

  .cse-compare th,
  .cse-compare td {
    padding: 10px 12px;
  }

  .cse-amazon-cta-wrap {
    padding: 1.2em;
  }

  .cse-amazon-btn {
    padding: 12px 28px;
    font-size: 1em;
  }

  .cse-bottom-line {
    padding: 20px;
  }

  .cse-checklist {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .cse-blog-wrap p,
  .cse-blog-wrap li {
    font-size: 0.95em;
  }

  .cse-blog-wrap h2 {
    font-size: 1.2em;
    border-bottom: 2px solid #df030e;
    padding-bottom: 0.3em;
  }

  .cse-compare {
    font-size: 0.8em;
  }

  .cse-compare th,
  .cse-compare td {
    padding: 8px 10px;
  }

  .cse-did-you-know {
    padding-left: 40px;
  }

  .cse-did-you-know::before {
    font-size: 1.4em;
    left: 12px;
  }
}
