/*
Theme Name: FoodTechPro
Theme URI: https://www.foodtechpro.co.in/
Author: FoodTechPro Team
Author URI: https://www.foodtechpro.co.in/
Description: FoodTechPro is a modern, responsive WordPress theme designed for food industry publications, blogs, and magazines. Features include a clean green design, customizable hero sections, blog post layouts with sidebar, contact form, related posts, newsletter signup, and full WooCommerce / block-editor compatibility. Use the "Sample Content Importer" plugin (one-click) to import the 15 demo articles and 8 categories.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodtechpro
Tags: blog, news, food, custom-logo, custom-menu, custom-background, featured-images, threaded-comments, translation-ready, responsive-layout, custom-colors

FoodTechPro is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
# WordPress Core Required Classes
--------------------------------------------------------------*/
.alignleft   { float: left;  margin-right: 1.5em; }
.alignright  { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }
.alignwide   { max-width: 1280px; margin-left: auto; margin-right: auto; }
.alignfull   { max-width: 100%; width: 100%; }

.wp-caption         { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption-text    { font-size: 0.875em; color: #6b7280; text-align: center; }
.gallery-caption    { font-size: 0.875em; }
.bypostauthor       { display: block; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #f1f1f1; clip: auto !important; -webkit-clip-path: none; clip-path: none; color: #15803d; display: block; font-size: 14px; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }

.sticky { background: #f0fdf4; padding: 1em; border-left: 4px solid #15803d; }

/*--------------------------------------------------------------
# Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: #15803d; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #14532d; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: #111827; margin: 0 0 0.75em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { margin: 0 0 1.25em; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
.top-bar { background: #166534; color: #ffffff; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.625rem; padding-bottom: 0.625rem; font-size: 0.875rem; }
.top-bar a { color: #ffffff; opacity: 0.9; }
.top-bar a:hover { color: #bbf7d0; }
.top-bar .social-links { display: flex; gap: 1rem; }
.top-bar .social-links span { display: none; }
@media (min-width: 640px) { .top-bar .social-links span { display: inline; } }
.top-bar-info { display: flex; align-items: center; gap: 0.5rem; }
.top-bar-info svg { width: 18px; height: 18px; }

/*--------------------------------------------------------------
# Header / Nav
--------------------------------------------------------------*/
.site-header { background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; gap: 1.5rem; }
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-icon { width: 48px; height: 48px; border-radius: 0.75rem; background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1.5rem; box-shadow: 0 4px 8px rgba(21,128,61,0.25); }
.site-title { font-size: 1.5rem; font-weight: 700; color: #166534; margin: 0; line-height: 1.1; }
.site-title a { color: #166534; }
.site-description { font-size: 0.75rem; color: #6b7280; margin: 0; }

.main-navigation { display: none; }
@media (min-width: 1024px) { .main-navigation { display: block; } }
.main-navigation ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.main-navigation a { display: block; padding: 0.5rem 1rem; color: #374151; font-weight: 500; border-radius: 0.5rem; transition: all 0.2s ease; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: #f0fdf4; color: #15803d; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-subscribe { display: none; background: #15803d; color: #ffffff !important; padding: 0.625rem 1.5rem; border-radius: 9999px; font-weight: 500; box-shadow: 0 4px 8px rgba(21,128,61,0.25); transition: all 0.2s ease; }
.btn-subscribe:hover { background: #14532d; box-shadow: 0 6px 12px rgba(21,128,61,0.35); }
@media (min-width: 640px) { .btn-subscribe { display: inline-flex; } }

.menu-toggle { background: transparent; border: 0; padding: 0.5rem; color: #4b5563; border-radius: 0.5rem; }
.menu-toggle:hover { background: #f0fdf4; color: #15803d; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu { display: none; border-top: 1px solid #e5e7eb; padding: 1rem 0; }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a { display: block; padding: 0.75rem 1rem; color: #374151; font-weight: 500; border-radius: 0.5rem; }
.mobile-menu a:hover { background: #f0fdf4; color: #15803d; }

/* Search bar */
.header-search-form { display: none; padding-bottom: 0.5rem; }
.header-search-form.is-open { display: block; }
.header-search-form input[type="search"] { width: 100%; padding: 0.75rem 3rem 0.75rem 1.25rem; border: 2px solid #bbf7d0; border-radius: 0.75rem; font-size: 1rem; outline: none; transition: all 0.2s ease; }
.header-search-form input[type="search"]:focus { border-color: #15803d; box-shadow: 0 0 0 4px rgba(21,128,61,0.1); }
.header-search-form { position: relative; }
.header-search-form button { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #15803d; padding: 0.5rem; }

/*--------------------------------------------------------------
# Hero (front page)
--------------------------------------------------------------*/
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #166534 0%, #15803d 50%, #14532d 100%);
  color: #ffffff;
  padding: 5rem 0;
}
.hero::before { content: ""; position: absolute; top: 5rem; left: 2.5rem; width: 16rem; height: 16rem; background: rgba(255,255,255,0.1); border-radius: 9999px; filter: blur(48px); }
.hero::after  { content: ""; position: absolute; bottom: 5rem; right: 2.5rem; width: 24rem; height: 24rem; background: rgba(134, 239, 172, 0.2); border-radius: 9999px; filter: blur(48px); }
.hero .container { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1fr 1fr; } }
.hero-badge { display: inline-block; background: #16a34a; color: #ffffff; font-size: 0.875rem; font-weight: 600; padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem; }
.hero h1 { color: #ffffff; line-height: 1.15; }
.hero h1 span { color: #86efac; }
.hero p { font-size: 1.125rem; color: #dcfce7; line-height: 1.7; margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-image { display: none; }
@media (min-width: 1024px) { .hero-image { display: block; } }
.hero-image img { border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

.btn { display: inline-block; padding: 1rem 2rem; border-radius: 9999px; font-weight: 700; text-align: center; transition: all 0.2s ease; border: 0; cursor: pointer; }
.btn-primary { background: #ffffff; color: #166534 !important; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-primary:hover { background: #f0fdf4; box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: #ffffff !important; border: 2px solid #ffffff; }
.btn-outline:hover { background: #ffffff; color: #166534 !important; }
.btn-green { background: #15803d; color: #ffffff !important; }
.btn-green:hover { background: #14532d; }

/*--------------------------------------------------------------
# Section base
--------------------------------------------------------------*/
.section { padding: 4rem 0; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; gap: 1rem; }
.section-title { font-size: 1.875rem; color: #111827; margin: 0; }
.section-subtitle { color: #6b7280; margin: 0.5rem 0 0; }
.section-link { color: #15803d; font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
.section-link:hover { color: #14532d; }
.view-all-mobile { display: block; text-align: center; margin-top: 2rem; color: #15803d; font-weight: 600; }
@media (min-width: 640px) { .view-all-mobile { display: none; } }

/*--------------------------------------------------------------
# Card Grid
--------------------------------------------------------------*/
.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.card-thumb { position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 208px; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-category { position: absolute; top: 1rem; left: 1rem; background: #15803d; color: #ffffff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.125rem; font-weight: 700; color: #111827; margin: 0 0 0.75rem; line-height: 1.35; }
.card-title a { color: #111827; }
.card-title a:hover { color: #15803d; }
.card-excerpt { color: #6b7280; font-size: 0.875rem; line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; color: #6b7280; border-top: 1px solid #f3f4f6; padding-top: 1rem; }
.card-meta-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.card-meta-item svg { width: 16px; height: 16px; }

/* Compact card for latest posts */
.card-compact { display: flex; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 0.75rem; overflow: hidden; }
.card-compact:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card-compact img { width: 112px; height: 112px; object-fit: cover; flex-shrink: 0; }
@media (min-width: 768px) { .card-compact img { width: 144px; height: 144px; } }
.card-compact-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.card-compact .card-category-inline { color: #15803d; font-size: 0.75rem; font-weight: 700; }
.card-compact .card-title { font-size: 0.875rem; }
@media (min-width: 768px) { .card-compact .card-title { font-size: 1rem; } }

/*--------------------------------------------------------------
# Stats section
--------------------------------------------------------------*/
.stats { background: #f3f4f6; padding: 4rem 0; }
.stats-grid { display: grid; gap: 2rem; text-align: center; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #15803d; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .stat-number { font-size: 3rem; } }
.stat-label { color: #4b5563; font-weight: 500; }

/*--------------------------------------------------------------
# Newsletter section
--------------------------------------------------------------*/
.newsletter { background: linear-gradient(90deg, #15803d 0%, #166534 100%); color: #ffffff; padding: 4rem 0; text-align: center; }
.newsletter h2 { color: #ffffff; font-size: 1.875rem; }
.newsletter p { color: #dcfce7; font-size: 1.125rem; max-width: 640px; margin: 0 auto 2rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 1rem; max-width: 640px; margin: 0 auto; }
.newsletter-form input[type="email"] { flex: 1; min-width: 200px; padding: 1rem 1.5rem; border-radius: 9999px; border: 0; color: #111827; }
.newsletter-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 4px rgba(134,239,172,0.5); }
.newsletter-form button { background: #ffffff; color: #15803d; padding: 1rem 2rem; border-radius: 9999px; font-weight: 700; border: 0; cursor: pointer; transition: background 0.2s ease; }
.newsletter-form button:hover { background: #f0fdf4; }
.newsletter-note { color: #bbf7d0; font-size: 0.875rem; margin-top: 1rem; }

/*--------------------------------------------------------------
# Ad placeholder
--------------------------------------------------------------*/
.ad-slot { background: #f3f4f6; padding: 2rem 0; }
.ad-slot-inner { background: #ffffff; border: 2px dashed #d1d5db; border-radius: 0.75rem; padding: 2rem; text-align: center; }
.ad-slot-inner p { margin: 0; color: #6b7280; }
.ad-slot-inner .ad-label { font-weight: 500; }
.ad-slot-inner .ad-sub { font-size: 0.875rem; color: #9ca3af; margin-top: 0.25rem; }

/*--------------------------------------------------------------
# Page Hero (for blog, about, contact, single, etc.)
--------------------------------------------------------------*/
.page-hero {
  background: linear-gradient(90deg, #166534 0%, #14532d 100%);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { color: #ffffff; margin-bottom: 0.5rem; }
.page-hero p { color: #dcfce7; font-size: 1.125rem; margin: 0; }

/*--------------------------------------------------------------
# Blog / Archive Layout
--------------------------------------------------------------*/
.blog-wrap { background: #f9fafb; min-height: 60vh; }
.blog-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: 1fr 320px; } }

.category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.category-filter a { padding: 0.5rem 1rem; border-radius: 9999px; background: #ffffff; color: #374151; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.category-filter a:hover { background: #dcfce7; }
.category-filter a.is-active { background: #15803d; color: #ffffff; }
.category-filter a .count { margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7; }

.pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border-radius: 0.5rem; background: #ffffff; color: #374151; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.pagination a:hover { background: #dcfce7; }
.pagination .current { background: #15803d; color: #ffffff; }

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar { display: grid; gap: 1.5rem; align-content: start; }
.widget { background: #ffffff; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 1.5rem; }
.widget-title { font-size: 1rem; font-weight: 700; color: #111827; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.5rem 0; }
.widget a { color: #374151; }
.widget a:hover { color: #15803d; }
.widget_search form { position: relative; }
.widget_search input[type="search"] { width: 100%; padding: 0.75rem 3rem 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.75rem; }
.widget_search input[type="search"]:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 2px rgba(21,128,61,0.2); }
.widget_search button { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #9ca3af; }
.widget_categories ul li { border-bottom: 1px solid #f3f4f6; }
.widget_categories ul li:last-child { border-bottom: 0; }
.widget_categories a { display: flex; justify-content: space-between; padding: 0.625rem 0.75rem; border-radius: 0.5rem; }
.widget_categories a:hover { background: #f0fdf4; }
.widget_tag_cloud .tagcloud, .widget_tag_cloud .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.widget_tag_cloud a { background: #f3f4f6; color: #374151; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.875rem !important; }
.widget_tag_cloud a:hover { background: #dcfce7; color: #15803d; }
.recent-post { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; }
.recent-post:last-child { border-bottom: 0; }
.recent-post img { width: 80px; height: 80px; object-fit: cover; border-radius: 0.5rem; flex-shrink: 0; }
.recent-post-title { font-size: 0.875rem; font-weight: 500; color: #111827; line-height: 1.35; margin: 0 0 0.25rem; }
.recent-post-title a { color: #111827; }
.recent-post-title a:hover { color: #15803d; }
.recent-post-date { font-size: 0.75rem; color: #6b7280; display: inline-flex; align-items: center; gap: 0.25rem; }
.recent-post-date svg { width: 12px; height: 12px; }

/*--------------------------------------------------------------
# Single Post
--------------------------------------------------------------*/
.post-hero { background: linear-gradient(90deg, #166534 0%, #14532d 100%); color: #ffffff; padding: 4rem 0; }
.post-hero .container { max-width: 800px; }
.back-link { color: #bbf7d0; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 500; }
.back-link:hover { color: #ffffff; }
.post-category-badge { display: inline-block; background: #16a34a; color: #ffffff; font-size: 0.875rem; font-weight: 700; padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1rem; }
.post-hero h1 { color: #ffffff; margin-bottom: 1.5rem; }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: #dcfce7; font-size: 0.875rem; }
.post-meta-row .author { display: inline-flex; align-items: center; gap: 0.5rem; }
.author-avatar { width: 40px; height: 40px; border-radius: 9999px; background: #16a34a; display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 700; }
.post-meta-divider { display: none; }
@media (min-width: 640px) { .post-meta-divider { display: inline; } }

.post-content { background: #ffffff; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 2rem; margin-top: -3rem; position: relative; }
@media (min-width: 768px) { .post-content { padding: 3rem; } }
.post-content .featured-image { margin: -2rem -2rem 2rem; border-radius: 1rem 1rem 0 0; overflow: hidden; }
@media (min-width: 768px) { .post-content .featured-image { margin: -3rem -3rem 2rem; } }
.post-content .featured-image img { width: 100%; }
.entry-content { font-size: 1rem; line-height: 1.8; color: #374151; }
.entry-content h2 { font-size: 1.5rem; color: #111827; margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content h3 { font-size: 1.25rem; color: #111827; margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: #15803d; text-decoration: underline; }
.entry-content a:hover { color: #14532d; }
.entry-content blockquote { border-left: 4px solid #15803d; padding: 0.5em 1.5em; background: #f0fdf4; font-style: italic; margin: 1.5em 0; }
.entry-content code { background: #f3f4f6; padding: 0.125em 0.375em; border-radius: 0.25rem; font-size: 0.9em; }
.entry-content pre { background: #1f2937; color: #f9fafb; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.entry-content img { border-radius: 0.5rem; margin: 1.5em 0; }

/* Tags & share row */
.post-footer-actions { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.share-buttons { display: flex; gap: 0.5rem; }
.share-buttons a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.5rem; color: #ffffff; font-weight: 700; }
.share-fb { background: #1877f2; }
.share-tw { background: #0ea5e9; }
.share-li { background: #0a66c2; }
.share-em { background: #dc2626; }
.share-buttons a:hover { opacity: 0.9; color: #ffffff; }

.author-box { margin-top: 2.5rem; padding: 2rem; background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%); border-radius: 1rem; }
.author-box .author-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
.author-box h3 { margin: 0 0 0.25rem; }
.author-box .author-role { color: #15803d; font-weight: 500; font-size: 0.875rem; margin: 0 0 1rem; }
.author-box p { margin: 0; color: #374151; }

/* Comments */
.comments-area { margin-top: 2rem; background: #ffffff; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 2rem; }
.comments-title { font-size: 1.25rem; margin: 0 0 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid #f3f4f6; }
.comment-body:last-child { border-bottom: 0; }
.comment-author .fn { font-weight: 700; color: #111827; }
.comment-metadata { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.5rem; }
.comment-content { color: #374151; }
.comment-respond { margin-top: 1.5rem; }
.comment-respond .comment-reply-title { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.75rem; }
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form textarea:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 2px rgba(21,128,61,0.2); }
.comment-form .submit { background: #15803d; color: #ffffff; padding: 0.75rem 2rem; border: 0; border-radius: 0.75rem; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: #14532d; }

/*--------------------------------------------------------------
# About / Contact / Privacy / Terms
--------------------------------------------------------------*/
.static-content { padding: 4rem 0; }
.static-content .container { max-width: 800px; }
.static-card { background: #ffffff; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .static-card { padding: 3rem; } }
.static-card h2 { font-size: 1.5rem; margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.5rem 0; display: flex; align-items: flex-start; gap: 0.75rem; }
.check-list li::before { content: "✓"; color: #15803d; font-weight: 700; flex-shrink: 0; }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 48px; height: 48px; background: #dcfce7; color: #15803d; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: #374151; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.75rem; font-size: 1rem; }
.form-control:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 2px rgba(21,128,61,0.2); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/*--------------------------------------------------------------
# 404
--------------------------------------------------------------*/
.not-found { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: #f9fafb; padding: 4rem 1rem; text-align: center; }
.not-found h1 { font-size: 6rem; color: #15803d; margin: 0; }
.not-found h2 { font-size: 1.5rem; }
.not-found p { color: #6b7280; margin-bottom: 2rem; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer { background: #111827; color: #ffffff; padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-about p { color: #9ca3af; line-height: 1.7; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-socials a { width: 40px; height: 40px; background: #1f2937; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: #ffffff; }
.footer-socials a:hover { background: #15803d; }
.footer-widget h3 { color: #ffffff; font-size: 1.125rem; margin: 0 0 1.5rem; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { padding: 0.375rem 0; }
.footer-widget a { color: #9ca3af; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-widget a:hover { color: #22c55e; }
.footer-widget a::before { content: "›"; color: #22c55e; }
.footer-bar { border-top: 1px solid #1f2937; margin-top: 3rem; padding-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: #6b7280; font-size: 0.875rem; }

/*--------------------------------------------------------------
# Blog Grid & Sidebar Layout
--------------------------------------------------------------*/
.blog-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: 1fr 320px; } }
.blog-main { min-width: 0; }

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/*--------------------------------------------------------------
# Featured Article (homepage hero card)
--------------------------------------------------------------*/
.featured-article { padding-top: 2rem; }
.featured-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.featured-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.12); }
.featured-thumb { position: relative; overflow: hidden; }
.featured-thumb .featured-img { width: 100%; height: 360px; object-fit: cover; transition: transform 0.5s ease; }
@media (min-width: 768px) { .featured-thumb .featured-img { height: 420px; } }
.featured-card:hover .featured-img { transform: scale(1.03); }
.featured-body { padding: 1.5rem; }
@media (min-width: 768px) { .featured-body { padding: 2rem; } }
.featured-title { font-size: 1.375rem; font-weight: 700; color: #111827; margin: 0 0 0.75rem; line-height: 1.3; }
@media (min-width: 768px) { .featured-title { font-size: 1.75rem; } }
.featured-title a { color: #111827; }
.featured-title a:hover { color: #15803d; }
.featured-excerpt { color: #6b7280; font-size: 1rem; line-height: 1.6; margin: 0 0 1rem; }

/*--------------------------------------------------------------
# Category Highlights (homepage category cards)
--------------------------------------------------------------*/
.category-highlights { padding-top: 0; }
.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
.category-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  color: #374151;
}
.category-card-item:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21,128,61,0.25);
}
.category-card-icon { font-size: 2rem; }
.category-card-name { font-weight: 600; font-size: 0.875rem; }
.category-card-count { font-size: 0.75rem; opacity: 0.7; }

/*--------------------------------------------------------------
# Popular Posts Section
--------------------------------------------------------------*/
.popular-posts { border-top: 0; }

/*--------------------------------------------------------------
# Widget — About Author
--------------------------------------------------------------*/
.widget-author-box { text-align: center; }
.widget-author-avatar { margin-bottom: 0.75rem; }
.widget-author-avatar .avatar-round { border-radius: 50%; border: 3px solid #bbf7d0; }
.widget-author-name { font-size: 1rem; color: #111827; margin: 0 0 0.5rem; }
.widget-author-bio { font-size: 0.8125rem; color: #6b7280; line-height: 1.6; margin: 0; }

/*--------------------------------------------------------------
# Widget — Search
--------------------------------------------------------------*/
.widget-search .search-form { display: flex; gap: 0; }
.widget-search .search-form input[type="search"] {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 0.875rem;
  outline: none;
}
.widget-search .search-form input[type="search"]:focus { border-color: #15803d; }
.widget-search .search-form button {
  background: #15803d;
  color: #ffffff;
  border: 0;
  padding: 0 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  min-width: 44px;
}
.widget-search .search-form button:hover { background: #14532d; }

/*--------------------------------------------------------------
# Responsive helpers
--------------------------------------------------------------*/
@media (max-width: 640px) {
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .post-hero { padding: 3rem 0; }
  .post-content { padding: 1.5rem; }
  .post-content .featured-image { margin: -1.5rem -1.5rem 1.5rem; }
}

/*--------------------------------------------------------------
# Single Post Layout
--------------------------------------------------------------*/
.post-hero {
  background: linear-gradient(135deg, #166534 0%, #15803d 50%, #14532d 100%);
  color: #ffffff;
  padding: 3rem 0;
}
.post-hero h1 { color: #ffffff; font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin: 0.75rem 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.875rem; color: #bbf7d0; margin-bottom: 1rem; }
.breadcrumb a { color: #bbf7d0; }
.breadcrumb .current { color: #ffffff; }

.post-category-badge { display: inline-block; background: #16a34a; color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.875rem; border-radius: 9999px; margin-bottom: 0.75rem; }

.post-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: #dcfce7; margin-top: 1rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.post-meta svg { width: 16px; height: 16px; }

.post-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: 1fr 320px; } }

.post-content { background: #ffffff; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 2rem; }
@media (min-width: 768px) { .post-content { padding: 2.5rem; } }

.post-content .featured-image { margin: -2rem -2rem 2rem; border-radius: 1rem 1rem 0 0; overflow: hidden; }
@media (min-width: 768px) { .post-content .featured-image { margin: -2.5rem -2.5rem 2.5rem; } }
.post-content .featured-image img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 1rem 1rem 0 0; }

.post-tags a { display: inline-block; background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; margin: 0.2rem; }

/* Post sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.post-sidebar .widget { background: #ffffff; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 1.5rem; }
.post-sidebar .widget-title { font-size: 1.125rem; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #15803d; }
.post-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.post-sidebar .widget li { padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; }
.post-sidebar .widget li:last-child { border-bottom: 0; }
.post-sidebar .widget a { color: #374151; display: flex; justify-content: space-between; }
.post-sidebar .widget a:hover { color: #15803d; }
.widget-post-date { font-size: 0.75rem; color: #9ca3af; }

/* Author box */
.author-box .post-author-info { display: flex; gap: 1rem; align-items: flex-start; }

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.75rem; border-radius: 0.5rem; background: #f3f4f6; color: #374151; font-weight: 500; }
.pagination .page-numbers.current { background: #15803d; color: #fff; }
.pagination .page-numbers:hover:not(.current) { background: #dcfce7; color: #15803d; }

/*--------------------------------------------------------------
# Related posts header
--------------------------------------------------------------*/
.related-posts { border-top: 2px solid #f3f4f6; }
