/* ==========================================================================
   1. Base Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2d3748;
  background-color: #f7fafc;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. Top Journal Header & Main Article Container
   ========================================================================== */
header {
  background-color: #ffffff;
  border-bottom: 2px solid #edf2f7;
  padding: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  padding: 35px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category {
  color: #c53030;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  color: #1a202c;
  margin-top: 5px;
  margin-bottom: 20px;
  font-weight: 800;
}

h2 {
  font-size: 1.45rem;
  color: #1a202c;
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 5px solid #2f855a;
  padding-left: 12px;
  font-weight: 700;
}

.meta {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
}

p {
  font-size: 1.15rem;
  margin-bottom: 20px;
  text-align: justify;
}

.qa {
  font-weight: 700;
  color: #1a202c;
}

/* ==========================================================================
   3. Callout Highlights, Ingredients & Usage Steps
   ========================================================================== */
.highlight-pain {
  background-color: #fff5f5;
  border-left: 4px solid #c53030;
  padding: 18px 20px;
  margin: 25px 0;
  font-style: italic;
  color: #9b2c2c;
  font-size: 1.15rem;
}

.highlight-success {
  background-color: #f0fff4;
  border-left: 4px solid #2f855a;
  padding: 18px 20px;
  margin: 25px 0;
  font-weight: 500;
  font-size: 1.15rem;
}

.ingredients-block {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 25px 0;
}

.ingredient {
  margin-bottom: 14px;
}

.ingredient:last-child {
  margin-bottom: 0;
}

.ingredient b {
  color: #2f855a;
}

.steps {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 6px;
  padding: 20px;
  margin: 30px 0;
}

.step {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  background: #2f855a;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 8px;
}

/* ==========================================================================
   4. Expert Commentary Card & Day Timeline Blocks
   ========================================================================== */
.expert-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin: 35px 0;
}

.expert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.expert-title-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.expert-spec {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 2px 0 0 0;
}

.expert-badges {
  margin: 10px 0 16px 0;
}

.badge {
  display: inline-block;
  background: #edf2f7;
  color: #2d3748;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.expert-quote {
  font-size: 1.08rem;
  font-style: italic;
  margin: 0 0 14px 0;
}

.expert-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.expert-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.expert-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2f855a;
}

.expert-stat-label {
  font-size: 0.78rem;
  color: #718096;
}

.expert-footnote {
  font-size: 0.75rem;
  color: #a0aec0;
  margin: 10px 0 0 0;
}

.mb-0 {
  margin-bottom: 0;
}

.day-block {
  margin: 30px 0;
}

.day-label {
  display: inline-block;
  background: #1a202c;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ==========================================================================
   5. Reader Testimonials
   ========================================================================== */
.testimonial-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0;
  padding: 16px;
  background: #f7fafc;
  border-radius: 10px;
}

.t-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.t-text {
  font-size: 1.02rem;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   6. Interactive 7-Step Weight-Loss Quiz & Chart
   ========================================================================== */
.cta-wrapper {
  text-align: center;
  margin: 40px 0;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #ff9800 0%, #e65100 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 18px 36px;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.stock-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #c53030;
  font-weight: 700;
}

.quiz-block {
  border: 2px solid #2f855a;
  border-radius: 10px;
  padding: 26px 22px;
  margin: 30px 0;
  background: #f0fff4;
}

.quiz-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  color: #1a202c;
}

.quiz-intro-text {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.quiz-q {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.quiz-sub {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 12px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.quiz-option:hover {
  border-color: #2f855a;
}

.quiz-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2f855a;
  flex-shrink: 0;
  cursor: pointer;
}

.quiz-option:has(input:checked) {
  border-color: #2f855a;
  background: #e6ffed;
  font-weight: 600;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.quiz-btn {
  display: block;
  width: 100%;
  background: #2f855a;
  color: #ffffff;
  border: none;
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}

.quiz-btn:hover:not(:disabled) {
  background: #276749;
}

.quiz-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}

.quiz-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 6px;
  flex: 1;
}

.quiz-input {
  border: none;
  outline: none;
  font-size: 1.05rem;
  width: 100%;
  background: transparent;
  padding: 6px 0;
  -moz-appearance: textfield;
}

.quiz-input::-webkit-outer-spin-button,
.quiz-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quiz-unit {
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.error-message {
  display: none;
  color: #c53030;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 8px 0;
}

.quiz-loading {
  display: none;
  text-align: center;
  padding: 30px 0;
}

#loading[style*="display: block"] ~ .screen {
  display: none !important;
}

.preload-img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.hidden {
  display: none;
}

.quiz-result-heading {
  text-align: center;
  margin-bottom: 14px;
}

.quiz-chart-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1a202c;
  margin-bottom: 14px;
}

.quiz-chart-wrap {
  position: relative;
  width: 100%;
  margin: 10px 0 18px;
}

.quiz-duration-text {
  text-align: center;
  font-weight: 700;
  margin-top: 10px;
}

.quiz-chart-desc p {
  font-size: 1.08rem;
}

.typing-text {
  min-height: 1em;
}

.fade-block {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   7. Facebook-Style Reader Comments
   ========================================================================== */
.fb-comments {
  margin-top: 50px;
  border-top: 1px solid #e1e4e6;
  padding-top: 20px;
}

.fb-comments-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b4f56;
  margin-bottom: 15px;
}

.fb-comment {
  display: flex;
  margin-bottom: 4px;
  align-items: flex-start;
  gap: 10px;
}

.fb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #8b9dc3;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  object-fit: cover;
}

.fb-comment-body {
  background-color: #f2f3f5;
  padding: 10px 14px;
  border-radius: 16px;
  max-width: calc(100% - 50px);
}

.fb-user {
  font-weight: 700;
  color: #365899;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 2px;
}

.fb-loc {
  font-weight: 400;
  color: #8a8d91;
  font-size: 0.8rem;
}

.fb-text {
  color: #1c1e21;
  font-size: 0.98rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.fb-actions {
  margin-left: 48px;
  margin-top: 4px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #90949c;
}

.fb-action-link {
  color: #4267b2;
  font-weight: 700;
  cursor: pointer;
}

.fb-likes {
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: #4b4f56;
  margin-left: 6px;
}

/* ==========================================================================
   8. Footer & Media Utilities
   ========================================================================== */
footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 35px 20px;
  text-align: center;
  font-size: 0.78rem;
  margin-top: 50px;
}

footer a {
  color: #cbd5e0;
  text-decoration: none;
}

.footer-text {
  max-width: 600px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.img-center {
  margin: 22px 0;
  text-align: center;
}

.article-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.product-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.fb-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  .btn-cta {
    font-size: 1.1rem;
    padding: 14px 22px;
  }
}
