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

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --accent: #ff6f00;
  --accent-light: #ffa000;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --bg-white: #ffffff;
  --bg-light: #f5f7f5;
  --bg-section: #e8f5e9;
  --border-color: #c8e6c9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 820px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 50px 20px 40px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.site-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.site-header .tagline {
  font-size: 1.1rem;
  opacity: 0.92;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== NAV / TABLE OF CONTENTS ===== */
.toc-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.toc-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.toc-bar a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
  background: var(--bg-section);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.toc-bar a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ===== INTRO SECTION ===== */
.intro-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary);
}

.intro-section h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.intro-section p {
  color: var(--text-medium);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

/* ===== AD PLACEHOLDER ===== */
.ad-slot {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #999;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  margin: 30px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 28px 36px;
  position: relative;
}

.card-header .card-number {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-header .card-subtitle {
  font-size: 0.95rem;
  opacity: 0.88;
  font-style: italic;
}

.card-body {
  padding: 32px 36px 36px;
}

.card-body h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bg-section);
}

.card-body h3:first-child {
  margin-top: 0;
}

.card-body p {
  color: var(--text-medium);
  margin-bottom: 14px;
  font-size: 1.02rem;
}

/* ===== INGREDIENTS BOX ===== */
.ingredients-box {
  background: #fffde7;
  border: 1px solid #fff9c4;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 18px 0;
}

.ingredients-box h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.ingredients-box ul {
  list-style: none;
  padding: 0;
}

.ingredients-box ul li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-medium);
  font-size: 0.97rem;
}

.ingredients-box ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ===== STEPS ===== */
.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.steps-list li {
  counter-increment: step-counter;
  padding: 14px 18px 14px 58px;
  position: relative;
  margin-bottom: 10px;
  background: var(--bg-light);
  border-radius: var(--radius);
  color: var(--text-medium);
  font-size: 0.98rem;
  line-height: 1.7;
  transition: var(--transition);
}

.steps-list li:hover {
  background: var(--bg-section);
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 14px;
  top: 12px;
  background: var(--primary);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== TIP BOX ===== */
.tip-box {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-left: 4px solid #1565c0;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0;
}

.tip-box h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1565c0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.tip-box p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ===== WARNING BOX ===== */
.warning-box {
  background: #fce4ec;
  border: 1px solid #f8bbd0;
  border-left: 4px solid #c62828;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0;
}

.warning-box h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c62828;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.warning-box p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ===== PREVENTION BOX ===== */
.prevention-box {
  background: #f3e5f5;
  border: 1px solid #e1bee7;
  border-left: 4px solid #7b1fa2;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0;
}

.prevention-box h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7b1fa2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.prevention-box ul {
  list-style: none;
  padding: 0;
}

.prevention-box ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--text-medium);
  font-size: 0.95rem;
}

.prevention-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7b1fa2;
  font-weight: 700;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.faq-section h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.02rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-medium);
  font-size: 0.96rem;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  color: #e65100;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 36px 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
}

.site-footer a {
  color: #a5d6a7;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.7rem;
  }
  .site-header .tagline {
    font-size: 0.95rem;
  }
  .card-header {
    padding: 22px 24px;
  }
  .card-header h2 {
    font-size: 1.3rem;
  }
  .card-body {
    padding: 24px 22px 28px;
  }
  .intro-section {
    padding: 28px 22px;
  }
  .intro-section h2 {
    font-size: 1.3rem;
  }
  .toc-bar a {
    font-size: 0.65rem;
    padding: 5px 9px;
  }
  .faq-section {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 36px 16px 30px;
  }
  .site-header h1 {
    font-size: 1.4rem;
  }
  .steps-list li {
    padding-left: 50px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .toc-bar, .back-to-top, .ad-slot {
    display: none;
  }
  .article-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  body {
    background: #fff;
  }
}
