/* ========================================
   GreenPig Page Blocks — підключається і в
   редакторі CKEditor, і на сторінці page.php
   ======================================== */

/* Base text */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #374151; line-height: 1.7; }
h1,h2,h3,h4 { color: #1b5e3b; }
h2 { font-size: 1.4rem; margin: 28px 0 10px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
p  { margin-bottom: 12px; }
ul, ol { padding-left: 22px; margin-bottom: 12px; }
li { margin-bottom: 5px; line-height: 1.65; }
a  { color: #1b5e3b; }
img { max-width: 100%; border-radius: 10px; height: auto; }
/* Центрована картинка — повна ширина, адаптивна */
img[style*="margin-left: auto"],
img[style*="margin-left:auto"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
/* Вже завантажені картинки з width: 200% — виправити */
img[style*="width: 200%"],
img[style*="width:200%"] {
  width: 100% !important;
  height: auto !important;
}
blockquote { border-left: 4px solid #1b5e3b; margin: 16px 0; padding: 10px 18px; background: #f0faf4; border-radius: 0 8px 8px 0; font-style: italic; }
table { border-collapse: collapse; width: 100%; }
td, th { padding: 8px 12px; border: 1px solid #e5e7eb; }

/* ===== FEATURE CARDS (як на головній) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: 1px solid #e5e7eb;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.feature-icon {
  width: 52px; height: 52px;
  background: #f0fdf4;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1rem; color: #111827; }
.feature-card p  { font-size: .9rem; color: #6b7280; margin: 0; line-height: 1.6; }
.feature-card ul { font-size: .9rem; color: #6b7280; margin: 0; padding-left: 18px; }
.feature-card li { margin-bottom: 4px; }

/* ===== HERO BLOCK ===== */
.gp-hero {
  background: linear-gradient(135deg, #0f3d24 0%, #1b5e3b 60%, #2e7d52 100%);
  color: #fff; border-radius: 16px; padding: 52px 36px;
  text-align: center; margin: 24px 0;
}
.gp-hero h1, .gp-hero h2 { color: #fff !important; font-size: 1.9rem !important; margin-bottom: 10px !important; }
.gp-hero p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 24px; }
.gp-btn {
  display: inline-block; background: #f97316; color: #fff;
  padding: 13px 28px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  margin: 4px;
}
.gp-btn:hover { background: #ea6c0a; color: #fff; }
.gp-btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
}
.gp-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ===== HIGHLIGHT BOXES ===== */
.gp-highlight { border-radius: 10px; padding: 18px 22px; margin: 18px 0; }
.gp-highlight p { margin: 0 !important; }
.gp-highlight-green  { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #16a34a; }
.gp-highlight-blue   { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid #2563eb; }
.gp-highlight-orange { background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #f97316; }
.gp-highlight-red    { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626; }

/* ===== STEPS ===== */
.gp-steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.gp-step  { display: flex; gap: 14px; align-items: flex-start; }
.gp-step-num {
  width: 38px; height: 38px; min-width: 38px;
  background: #1b5e3b; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .95rem;
}
.gp-step-body h3 { margin: 0 0 3px !important; font-size: .98rem; color: #111827; }
.gp-step-body p  { margin: 0 !important; font-size: .9rem; color: #6b7280; }

/* ===== TWO COLUMNS ===== */
.gp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.gp-cols-3 { grid-template-columns: repeat(3,1fr); }

/* ===== CTA ===== */
.gp-cta { text-align: center; margin: 28px 0; }
.gp-cta a {
  display: inline-block; background: #1b5e3b; color: #fff;
  padding: 13px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: .98rem;
}
.gp-cta-orange a { background: #f97316; }

/* ===== PRICE TABLE ===== */
.gp-price-table { width: 100%; border-collapse: collapse; margin: 18px 0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.gp-price-table th { background: #1b5e3b; color: #fff; padding: 11px 14px; text-align: left; font-size: .88rem; }
.gp-price-table td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; font-size: .9rem; color: #374151; }
.gp-price-table tr:last-child td { border-bottom: none; }
.gp-price-table tr:nth-child(even) td { background: #f9fafb; }

/* ===== DIVIDER ===== */
.gp-divider { border: none; border-top: 2px solid #e5e7eb; margin: 32px 0; }

/* ===== DESC BLOCK ===== */
.gp-desc-block { background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 24px 28px; margin: 18px 0; }
.gp-desc-block-green { background: #f0fdf4; border-color: #bbf7d0; }
.gp-desc-block p { margin-bottom: 10px !important; color: #374151; line-height: 1.75; }
.gp-desc-block p:last-child { margin-bottom: 0 !important; }

/* Video responsive */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin: 16px 0; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
/* Якщо замість відео вставили картинку у video-wrap — показати нормально */
.video-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* Картинка всередині features-grid (поза картками) — розтягнути на всю ширину */
.features-grid > p { grid-column: 1 / -1; margin: 0; }
.features-grid > p img { width: 100%; height: auto; }
