/*
Theme Name: greenlifesgk
Theme URI: https://greenlifesgk.com
Author: greenlifesgk Team
Description: A premium, magazine-style WordPress theme for natural nutrition.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenlifesgk
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

:root {
  --ng-bg: #fefae0;
  --ng-surface: #ffffff;
  --ng-primary: #2d6a4f;
  --ng-primary-light: #40916c;
  --ng-primary-dark: #1b4332;
  --ng-accent: #d4a373;
  --ng-accent-soft: #e9c46a;
  --ng-text: #2d3436;
  --ng-text-muted: #636e72;
  
  --ng-shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --ng-shadow: 0 16px 48px rgba(45, 90, 71, 0.08);
  --ng-radius: 1.5rem;
  --ng-radius-sm: 0.75rem;
  --ng-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ng-max-width: 1280px;
  --ng-content-width: 820px;

  /* FIG Premium Sync */
  --fig-primary: #2d6a4f;
  --fig-primary-light: #40916c;
  --fig-bg: #fefae0;
  --fig-text: #2d3436;
  --fig-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ng-text);
  line-height: 1.8;
  background-color: var(--ng-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  line-height: 1.3;
  color: var(--ng-primary-dark);
}

a { 
  text-decoration: none; 
  color: inherit;
  transition: var(--ng-transition);
}

.ng-container {
  width: 90%;
  max-width: var(--ng-max-width);
  margin: 0 auto;
}

.ng-header {
  background: linear-gradient(135deg, var(--ng-primary-dark), var(--ng-primary));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.ng-header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ng-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.ng-logo span { color: var(--ng-accent); font-style: italic; }

.ng-nav { display: flex; gap: 2rem; }
.ng-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.ng-nav a:hover, .ng-nav a.active {
  color: var(--ng-primary);
}

.ng-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ng-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .ng-menu-toggle { display: block; color: #fff; }
  .ng-header-inner { height: 60px; }
  .ng-logo { font-size: 1.4rem; }
  .ng-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--ng-primary-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--ng-shadow);
    z-index: 1001;
  }
  .ng-nav.is-active { display: flex; }
  .ng-nav a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
}

.ng-hero {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ng-hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.ng-hero-subtitle {
  font-size: 1.25rem;
  color: var(--ng-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.ng-card {
  background: var(--ng-surface);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
  overflow: hidden;
  transition: var(--ng-transition);
  border: 1px solid rgba(0,0,0,0.02);
  margin-bottom: 2rem;
  display: block;
}

.ng-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(45, 90, 71, 0.12);
}

.ng-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.ng-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ng-card:hover .ng-card-img-wrap img {
  transform: scale(1.05);
}

.ng-card-body {
  padding: 2.5rem;
}

.ng-card-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.ng-post-container {
  max-width: var(--ng-content-width);
  margin: 0 auto;
  padding: 60px 0;
}

.ng-section-block {
  margin-bottom: 4rem;
}

.ng-section-image {
  border-radius: var(--ng-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--ng-shadow-sm);
  position: relative;
}

.ng-section-image img { width: 100%; display: block; }

.ng-section-image::after {
  content: "greenlifesgk.com";
  position: absolute;
  bottom: 20px;
  right: 24px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.ng-footer {
  padding: 80px 0;
  background: var(--ng-primary);
  color: #fff;
  text-align: center;
  border-radius: var(--ng-radius) var(--ng-radius) 0 0;
}

.ng-footer-logo {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
}

@media (max-width: 768px) {
  .ng-hero-title { font-size: 2.5rem; }
  .ng-card-body { padding: 1.5rem; }
  .ng-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PIXEL-PERFECT REFERENCE CSS
   Copied EXACTLY from preview.html
   Scoped to .fig-post-canvas (single.php)
   ============================================ */

.fig-post-canvas {
  background: #fefae0;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2d3436;
  line-height: 1.8;
  font-size: 17px;
}

.fig-post-canvas .container { max-width: 820px; margin: 0 auto; padding: 0 20px; }

.fig-post-canvas .article-hero {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}
.fig-post-canvas .article-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}
.fig-post-canvas .article-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.fig-post-canvas .article-meta span { display: flex; align-items: center; gap: 6px; }

.fig-post-canvas .breadcrumb { padding: 16px 0; font-size: 0.85rem; color: #636e72; }
.fig-post-canvas .breadcrumb a { color: #2d6a4f; text-decoration: none; }

.fig-post-canvas .article-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 48px;
  margin-bottom: 40px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.fig-post-canvas .article-content h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  color: #1b4332;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid #d4a373;
  line-height: 1.4;
}
.fig-post-canvas .article-content h2:first-of-type { margin-top: 0; }
.fig-post-canvas .article-content h3 { font-size: 1.2rem; color: #2d6a4f; margin: 24px 0 10px; }
.fig-post-canvas .article-content p { margin: 14px 0; color: #2d3436; }
.fig-post-canvas .article-content ul,
.fig-post-canvas .article-content ol { margin: 14px 0; padding-left: 24px; }
.fig-post-canvas .article-content li { margin: 8px 0; line-height: 1.7; }
.fig-post-canvas .article-content li strong { color: #1b4332; }

.fig-post-canvas .article-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border-radius: 8px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.fig-post-canvas .article-content thead { background: linear-gradient(135deg, #2d6a4f, #40916c); color: white; }
.fig-post-canvas .article-content th { padding: 14px 18px; text-align: left; font-weight: 600; font-size: 0.95rem; }
.fig-post-canvas .article-content td { padding: 12px 18px; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
.fig-post-canvas .article-content tbody tr:nth-child(even) { background: #f8f9fa; }
.fig-post-canvas .article-content tbody tr:hover { background: #edf6f0; }

.fig-post-canvas .fig-img { margin: 24px 0; position: relative; }
.fig-post-canvas .fig-img img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); display: block; }
.fig-post-canvas .fig-img::after { content: attr(data-watermark); position: absolute; bottom: 20px; right: 25px; background: rgba(0,0,0,0.5); color: white; padding: 5px 12px; font-size: 10px; font-weight: bold; letter-spacing: 2px; border-radius: 4px; }

.fig-post-canvas .faq-item { background: #f8fdf8; border-left: 4px solid #2d6a4f; border-radius: 0 8px 8px 0; padding: 18px 24px; margin: 16px 0; }
.fig-post-canvas .faq-item h3 { color: #1b4332; font-size: 1.05rem; margin: 0 0 8px 0; }
.fig-post-canvas .faq-item p { margin: 0; color: #636e72; font-size: 0.95rem; }

.fig-post-canvas #disclaimer { background: #fff8e1; border-left: 4px solid #f9a825; border-radius: 0 8px 8px 0; padding: 20px 24px; margin-top: 30px; }
.fig-post-canvas #disclaimer h2 { color: #f57f17; border-bottom: none; font-size: 1.2rem; margin: 0 0 10px; padding-bottom: 0; }

.fig-post-canvas .related-articles { background: #f0f7f4; border-radius: 12px; padding: 20px 24px; margin-top: 30px; }
.fig-post-canvas .related-articles h2 { border-bottom: none; font-size: 1.2rem; margin: 0 0 12px; padding-bottom: 0; }
.fig-post-canvas .related-articles a { color: #2d6a4f; text-decoration: none; font-weight: 500; }

.fig-post-canvas .intro p { font-size: 1.1rem; color: #2d3436; line-height: 1.9; }
.fig-post-canvas section { margin-bottom: 10px; }

.fig-post-canvas .image-prompts-section { background: #ffffff; border-radius: 12px; padding: 30px 36px; margin-bottom: 40px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.fig-post-canvas .image-prompts-section h2 { font-family: 'Merriweather', serif; font-size: 1.3rem; color: #1b4332; margin-bottom: 16px; }
.fig-post-canvas .prompt-card { background: #f5f5f5; border-radius: 8px; padding: 14px 18px; margin: 10px 0; font-size: 0.9rem; color: #636e72; font-family: monospace; line-height: 1.5; }

@media (max-width: 768px) {
  .fig-post-canvas .article-content { padding: 24px 20px; }
  .fig-post-canvas .article-hero h1 { font-size: 1.6rem; }
  .fig-post-canvas .article-content h2 { font-size: 1.3rem; }
  
  /* Responsive Tables */
  .fig-post-canvas .article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .fig-post-canvas .article-hero { padding: 40px 0 30px; }
  .fig-post-canvas .breadcrumb { text-align: center; }
}

/* Image scaling fix */
img {
  max-width: 100%;
  height: auto;
}



