/* ============================================
   Electric Bill Check — Unified Style System
   Prefix: eb-  |  Theme: #1a5f2a / #f5a623
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --eb-primary: #1a5f2a;
  --eb-secondary: #f5a623;
  --eb-bg: #f8f9fa;
  --eb-card-bg: #ffffff;
  --eb-text: #1a1a2e;
  --eb-text-muted: #6c757d;
  --eb-border: #e9ecef;
  --eb-accent: #dc3545;
  --eb-success: #28a745;
  --eb-radius: 12px;
  --eb-radius-sm: 8px;
  --eb-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --eb-shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --eb-transition: all 0.25s ease;
  --eb-max-width: 1200px;
  --eb-content-width: 800px;
  --eb-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--eb-font);
  background: var(--eb-bg);
  color: var(--eb-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--eb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Container ---- */
.eb-container {
  max-width: var(--eb-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.eb-content {
  max-width: var(--eb-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.eb-nav {
  background: var(--eb-card-bg);
  border-bottom: 1px solid var(--eb-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.eb-nav-inner {
  max-width: var(--eb-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.eb-nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--eb-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eb-nav-logo:hover { text-decoration: none; }
.eb-nav-logo span { color: var(--eb-secondary); }
.eb-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.eb-nav-links a {
  color: var(--eb-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: var(--eb-transition);
}
.eb-nav-links a:hover {
  color: var(--eb-primary);
  border-bottom-color: var(--eb-primary);
  text-decoration: none;
}
.eb-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--eb-text);
}

/* ============================================
   MOBILE NAVIGATION (Standard)
   ============================================ */
@media (max-width: 768px) {
  .eb-nav-links {
    display: none !important;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--eb-card-bg);
    border-bottom: 1px solid var(--eb-border);
    flex-direction: column !important;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--eb-shadow);
  }
  .eb-nav-links.active {
    display: flex !important;
  }
  .eb-nav-links li {
    border-bottom: 1px solid var(--eb-border);
    padding: 12px 0;
  }
  .eb-nav-links li:last-child { border-bottom: none; }
  .eb-nav-links a {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  .eb-nav-toggle { display: block; }
}

/* ============================================
   FOOTER
   ============================================ */
.eb-footer {
  background: var(--eb-text);
  color: #adb5bd;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.eb-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.eb-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eb-footer ul { list-style: none; }
.eb-footer li { margin-bottom: 8px; }
.eb-footer a {
  color: #adb5bd;
  font-size: 0.9rem;
  transition: var(--eb-transition);
}
.eb-footer a:hover { color: var(--eb-secondary); text-decoration: none; }
.eb-footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6c757d;
}
@media (max-width: 768px) {
  .eb-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .eb-footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   AD SLOTS
   ============================================ */
.eb-ad-slot {
  display: none;
  width: 100%;
  min-height: 250px;
  background: var(--eb-border);
  border-radius: var(--eb-radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--eb-text-muted);
  font-size: 0.85rem;
  margin: 24px 0;
  overflow: hidden;
}
.eb-ad-slot.has-content { display: flex; }
.eb-ad-slot > * { width: 100%; height: 250px; }

/* ============================================
   CARDS — Whole Card Clickable
   ============================================ */
a.eb-article-card,
a.eb-tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius);
  overflow: hidden;
  box-shadow: var(--eb-shadow);
  transition: var(--eb-transition);
}
a.eb-article-card:hover,
a.eb-tool-card:hover {
  box-shadow: var(--eb-shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
a.eb-article-card img,
a.eb-article-card p,
a.eb-article-card span,
a.eb-article-card h3,
a.eb-article-card h4,
a.eb-tool-card img,
a.eb-tool-card p,
a.eb-tool-card span,
a.eb-tool-card h3,
a.eb-tool-card h4 {
  pointer-events: none;
}

.eb-article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--eb-border);
}
.eb-article-card-body { padding: 20px; }
.eb-article-card-tag {
  display: inline-block;
  background: var(--eb-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.eb-article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--eb-text);
}
.eb-article-card-excerpt {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.eb-article-card-meta {
  font-size: 0.8rem;
  color: var(--eb-text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Tool Cards */
.eb-tool-card {
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius);
  padding: 28px;
  box-shadow: var(--eb-shadow);
  transition: var(--eb-transition);
  border: 1px solid var(--eb-border);
}
.eb-tool-card:hover {
  box-shadow: var(--eb-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--eb-primary);
}
.eb-tool-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.eb-tool-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--eb-text);
}
.eb-tool-card-desc {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.eb-tool-card-btn {
  display: inline-block;
  background: var(--eb-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--eb-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--eb-transition);
}
.eb-tool-card-btn:hover {
  background: #145a24;
  text-decoration: none;
}

/* ============================================
   INLINE TOOL CARDS (Inside Articles)
   ============================================ */
a.eb-inline-tool {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--eb-card-bg);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  padding: 20px;
  margin: 24px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--eb-shadow);
  transition: var(--eb-transition);
}
a.eb-inline-tool:hover {
  box-shadow: var(--eb-shadow-hover);
  border-color: var(--eb-primary);
  text-decoration: none;
}
a.eb-inline-tool > div {
  pointer-events: none;
}
.eb-inline-tool-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.eb-inline-tool-content { flex: 1; }
.eb-inline-tool-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--eb-text);
}
.eb-inline-tool-desc {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}
.eb-inline-tool-privacy {
  font-size: 0.78rem;
  color: var(--eb-success);
  font-weight: 500;
}
@media (max-width: 480px) {
  a.eb-inline-tool { flex-direction: column; gap: 12px; }
}

/* ============================================
   ARTICLE POST TEMPLATE STYLES
   ============================================ */
.eb-post-header {
  padding: 48px 0 32px;
  background: linear-gradient(135deg, var(--eb-primary) 0%, #0d3d1a 100%);
  color: #fff;
  margin-bottom: 40px;
}
.eb-post-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.eb-post-header-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  opacity: 0.85;
  flex-wrap: wrap;
}
.eb-post-body {
  font-size: 1.05rem;
  line-height: 1.85;
}
.eb-post-body p {
  margin-bottom: 1.5em;
}
.eb-post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  color: var(--eb-text);
}
.eb-post-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.8em 0 0.7em;
  color: var(--eb-text);
}
.eb-post-body ul, .eb-post-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.eb-post-body li { margin-bottom: 0.5em; }
.eb-post-body strong { color: var(--eb-text); }
.eb-post-body a { color: var(--eb-primary); font-weight: 500; }
.eb-post-body a:hover { text-decoration: underline; }
.eb-post-body img {
  border-radius: var(--eb-radius);
  margin: 24px 0;
  box-shadow: var(--eb-shadow);
}
.eb-post-body blockquote {
  border-left: 4px solid var(--eb-secondary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--eb-text-muted);
}

/* Post Tail — Two Column */
.eb-post-tail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--eb-border);
}
@media (max-width: 768px) {
  .eb-post-tail { grid-template-columns: 1fr; }
}
.eb-post-tail h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--eb-text);
}
.eb-related-articles,
.eb-recommended-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eb-related-card,
.eb-tool-rec-card {
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius-sm);
  padding: 16px;
  border: 1px solid var(--eb-border);
  transition: var(--eb-transition);
}
.eb-related-card:hover,
.eb-tool-rec-card:hover {
  border-color: var(--eb-primary);
  box-shadow: var(--eb-shadow);
}
.eb-related-card a,
.eb-tool-rec-card a {
  color: var(--eb-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.eb-related-card a:hover { text-decoration: none; color: var(--eb-primary); }
.eb-related-card p,
.eb-tool-rec-card p {
  font-size: 0.85rem;
  color: var(--eb-text-muted);
  margin-top: 4px;
}

/* Author Box */
.eb-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius);
  padding: 24px;
  margin-top: 40px;
  border: 1px solid var(--eb-border);
}
.eb-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eb-author-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.eb-author-box p {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
  line-height: 1.6;
}
@media (max-width: 480px) {
  .eb-author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.eb-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--eb-text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.eb-breadcrumb a { color: var(--eb-text-muted); }
.eb-breadcrumb a:hover { color: var(--eb-primary); }
.eb-breadcrumb-sep { color: #adb5bd; }

/* ============================================
   HERO SECTION
   ============================================ */
.eb-hero {
  background: linear-gradient(135deg, var(--eb-primary) 0%, #0d3d1a 100%);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}
.eb-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
.eb-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
}
.eb-hero-cta {
  display: inline-flex;
  gap: 12px;
  background: var(--eb-secondary);
  color: #1a1a2e;
  padding: 14px 32px;
  border-radius: var(--eb-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--eb-transition);
}
.eb-hero-cta:hover {
  background: #e09513;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.eb-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.eb-section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.eb-section-header p {
  color: var(--eb-text-muted);
  font-size: 1.05rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.eb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.eb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.eb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .eb-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .eb-grid-3, .eb-grid-2, .eb-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   BUTTONS
   ============================================ */
.eb-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--eb-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--eb-transition);
  cursor: pointer;
  border: none;
}
.eb-btn-primary {
  background: var(--eb-primary);
  color: #fff;
}
.eb-btn-primary:hover { background: #145a24; }
.eb-btn-secondary {
  background: var(--eb-secondary);
  color: #1a1a2e;
}
.eb-btn-secondary:hover { background: #e09513; }
.eb-btn-outline {
  background: transparent;
  color: var(--eb-primary);
  border: 2px solid var(--eb-primary);
}
.eb-btn-outline:hover { background: var(--eb-primary); color: #fff; }

/* ============================================
   FORMS (Minimal — No actual contact form)
   ============================================ */
.eb-form-group { margin-bottom: 20px; }
.eb-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.eb-form-input,
.eb-form-textarea,
.eb-form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius-sm);
  font-family: var(--eb-font);
  font-size: 1rem;
  transition: var(--eb-transition);
  background: var(--eb-card-bg);
}
.eb-form-input:focus,
.eb-form-textarea:focus,
.eb-form-select:focus {
  outline: none;
  border-color: var(--eb-primary);
  box-shadow: 0 0 0 3px rgba(26,95,42,0.1);
}
.eb-form-textarea { min-height: 120px; resize: vertical; }

/* ============================================
   UTILITY
   ============================================ */
.eb-text-center { text-align: center; }
.eb-mt-1 { margin-top: 8px; }
.eb-mt-2 { margin-top: 16px; }
.eb-mt-3 { margin-top: 24px; }
.eb-mt-4 { margin-top: 32px; }
.eb-mb-1 { margin-bottom: 8px; }
.eb-mb-2 { margin-bottom: 16px; }
.eb-mb-3 { margin-bottom: 24px; }
.eb-mb-4 { margin-bottom: 32px; }
.eb-p-3 { padding: 24px; }
.eb-rounded { border-radius: var(--eb-radius); }
.eb-bg-white { background: var(--eb-card-bg); }
.eb-shadow { box-shadow: var(--eb-shadow); }

/* ============================================
   404 PAGE
   ============================================ */
.eb-404 {
  text-align: center;
  padding: 120px 24px;
}
.eb-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--eb-primary);
  line-height: 1;
  margin-bottom: 16px;
}
.eb-404 p {
  font-size: 1.2rem;
  color: var(--eb-text-muted);
  margin-bottom: 32px;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.eb-faq-item {
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius);
  border: 1px solid var(--eb-border);
  margin-bottom: 16px;
  overflow: hidden;
}
.eb-faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--eb-transition);
}
.eb-faq-question:hover { background: var(--eb-bg); }
.eb-faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--eb-text-muted);
  line-height: 1.7;
  display: none;
}
.eb-faq-answer.active { display: block; }
.eb-faq-toggle {
  font-size: 1.2rem;
  transition: var(--eb-transition);
}
.eb-faq-item.open .eb-faq-toggle { transform: rotate(180deg); }

/* ============================================
   ABOUT PAGE — E-E-A-T
   ============================================ */
.eb-about-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.eb-about-hero img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--eb-shadow);
}
.eb-about-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.eb-about-hero .eb-about-role {
  color: var(--eb-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.eb-about-hero p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--eb-text-muted);
}
.eb-about-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.eb-cred-card {
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius);
  padding: 24px;
  border: 1px solid var(--eb-border);
  text-align: center;
}
.eb-cred-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.eb-cred-card p {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
}
@media (max-width: 768px) {
  .eb-about-hero { flex-direction: column; text-align: center; }
  .eb-about-creds { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT DISCLAIMER BOX
   ============================================ */
.eb-contact-disclaimer {
  background: #e9ecef;
  border-left: 4px solid var(--eb-primary);
  padding: 24px;
  border-radius: 0 var(--eb-radius-sm) var(--eb-radius-sm) 0;
  margin: 32px 0;
}
.eb-contact-disclaimer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--eb-text);
  margin-bottom: 12px;
}
.eb-contact-disclaimer p:last-child { margin-bottom: 0; }
.eb-contact-email {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eb-primary);
}

/* ============================================
   TOOL PAGES — Calculator Styles
   ============================================ */
.eb-tool-hero {
  background: linear-gradient(135deg, var(--eb-primary) 0%, #0d3d1a 100%);
  color: #fff;
  padding: 48px 0 32px;
  margin-bottom: 40px;
}
.eb-tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.eb-tool-hero p {
  opacity: 0.85;
  font-size: 1.05rem;
}
.eb-calculator {
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius);
  padding: 32px;
  border: 1px solid var(--eb-border);
  margin-bottom: 24px;
}
.eb-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .eb-calculator-grid { grid-template-columns: 1fr; }
}
.eb-calc-result {
  background: var(--eb-bg);
  border-radius: var(--eb-radius-sm);
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}
.eb-calc-result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--eb-primary);
}
.eb-calc-result-label {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
}
.eb-chart-container {
  width: 100%;
  height: 300px;
  margin: 24px 0;
  background: var(--eb-card-bg);
  border-radius: var(--eb-radius-sm);
  border: 1px solid var(--eb-border);
}
.eb-calc-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.eb-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.eb-history-table th,
.eb-history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--eb-border);
  font-size: 0.9rem;
}
.eb-history-table th {
  font-weight: 700;
  background: var(--eb-bg);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes eb-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.eb-animate { animation: eb-fadeIn 0.4s ease forwards; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .eb-nav, .eb-footer, .eb-ad-slot, .eb-post-tail { display: none !important; }
  .eb-post-body { font-size: 12pt; line-height: 1.5; }
}

/* === Post Template V3.0 CSS Injection for eb === */

.eb-post-header {
  margin-bottom: 24px;
}
.eb-post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.eb-post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.eb-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.eb-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.eb-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.eb-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.eb-post-content p {
  margin-bottom: 1.2em;
}
.eb-post-content h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
}
.eb-post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.eb-post-footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .eb-post-footer {
    grid-template-columns: 1fr;
  }
}
.eb-related-articles h3,
.eb-recommended-tools h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.eb-related-list,
.eb-tool-rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eb-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, transform 0.2s;
}
.eb-related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.eb-related-card * {
  pointer-events: none;
}
.eb-related-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #1a73e8;
}
.eb-related-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
.eb-author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 32px 0;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .eb-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.eb-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eb-author-info {
  flex: 1;
}
.eb-author-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.eb-author-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}
.eb-author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}
.eb-author-location {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.eb-author-bio-link {
  font-size: 0.9rem;
  color: #1a73e8;
  text-decoration: none;
}
.eb-author-bio-link:hover {
  text-decoration: underline;
}
.eb-inline-tool {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 20px 0;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.eb-inline-tool:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.eb-inline-tool * {
  pointer-events: none;
}
.eb-inline-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.eb-inline-tool-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a73e8;
}
.eb-inline-tool-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}
.eb-inline-tool-privacy {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}


/* ---- Navigation Container Fix ---- */
.eb-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--eb-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}


/* ---- Breadcrumb Align Fix ---- */
.eb-breadcrumb {
  max-width: var(--eb-max-width, 1200px);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}


/* ---- Mobile Menu Active Fix ---- */
@media (max-width: 768px) {
  .eb-nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .eb-nav-links.active {
    display: flex !important;
  }
  .eb-nav-links li {
    width: 100%;
    list-style: none;
  }
  .eb-nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
  }
  .eb-nav-links a:last-child {
    border-bottom: none;
  }
}


/* ---- Hamburger Button Fix ---- */
.eb-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .eb-nav-hamburger {
    display: block !important;
  }
}
