/* ========================================
   CMZ Blog — CTA & Coupon Display Styles
   ======================================== */

/* --- General --- */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  background: #fafafa;
}
a { color: #2563eb; }
img { max-width: 100%; height: auto; }

/* --- Header/Nav --- */
header {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 20px;
  margin: 0 -20px 20px;
}
header nav {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}
header nav ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
header nav ul li a:hover { color: #fff; }
.nav-aff-link {
  display: inline-block;
  background: #f59e0b;
  color: #1a1a2e !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem !important;
}
.nav-aff-link:hover { background: #fbbf24 !important; color: #1a1a2e !important; }

/* --- Article --- */
article.post {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
article.post h1 { font-size: 1.8rem; margin-top: 0; color: #1a1a2e; }
article.post time {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
}
.content h2 { font-size: 1.4rem; color: #1a1a2e; margin-top: 2rem; }
.content h3 { font-size: 1.15rem; color: #374151; margin-top: 1.5rem; }
.content p { margin: 1rem 0; }
.content ul, .content ol { padding-left: 1.5rem; }
.content li { margin: 0.4rem 0; }

/* --- CTA Box (main component) --- */
.cta-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  text-align: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.cta-box h3 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  color: #fff;
}
.cta-box .cta-sub {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 16px 0;
}
.cta-box .cta-pricing {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.cta-box .cta-pricing small {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
}
.cta-box .cta-btn {
  display: inline-block;
  background: #f59e0b;
  color: #1a1a2e;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  margin-top: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-box .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.cta-box .cta-disclosure {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 12px;
}
.cta-box .cta-disclosure a { color: #93c5fd; text-decoration: underline; }

/* --- Coupon Badge --- */
.coupon-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- Deal Display / Pricing Table CTA --- */
.deal-box {
  border: 2px solid #2563eb;
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
  background: #f0f7ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.deal-box .deal-info { flex: 1; min-width: 200px; }
.deal-box .deal-info h4 { margin: 0 0 4px 0; color: #1a1a2e; }
.deal-box .deal-info p { margin: 0; font-size: 0.9rem; color: #555; }
.deal-box .deal-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}
.deal-box .deal-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  text-decoration: line-through;
}
.deal-box .deal-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.deal-box .deal-btn:hover { background: #1d4ed8; }

/* --- Comparison Table CTA Row --- */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
th, td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
th { background: #f3f4f6; font-weight: 600; }
tr:nth-child(even) { background: #f9fafb; }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #888;
  margin-top: 30px;
  border-top: 1px solid #e5e7eb;
}
footer a { color: #2563eb; }

/* --- Stars / Rating --- */
.stars { color: #f59e0b; letter-spacing: 2px; }

/* --- Responsive --- */
@media (max-width: 600px) {
  .deal-box { flex-direction: column; text-align: center; }
  header nav { flex-direction: column; gap: 8px; }
  article.post { padding: 20px 16px; }
}
