/* =============================================
   ARCADIA BLOG - Main Stylesheet
   Nature, Plants & Healthy Living
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #74c69d;
  --green-pale: #d8f3dc;
  --accent: #e76f51;
  --text-dark: #1b1b1b;
  --text-mid: #444;
  --text-light: #777;
  --bg: #f9f9f7;
  --white: #fff;
  --border: #e0e0d8;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 6px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--text-dark); background: var(--bg); line-height: 1.7; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-mid); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ======== HEADER ======== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: bold;
  color: var(--green-dark);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

.logo-tagline {
  font-size: 11px;
  color: var(--text-light);
  font-style: italic;
  margin-top: -2px;
}

/* NAV */
.main-nav { display: flex; gap: 0; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--green-pale); color: var(--green-dark); text-decoration: none; }
.main-nav a.active { color: var(--green-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ======== TOP BAR ======== */
.top-bar {
  background: var(--green-dark);
  color: var(--green-pale);
  font-size: 12px;
  text-align: center;
  padding: 6px 20px;
  letter-spacing: 0.3px;
}
.top-bar a { color: var(--green-pale); }

/* ======== HERO BANNER ======== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-green { background: var(--green-dark); color: var(--white); }

/* ======== BREADCRUMB ======== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--green-mid); }
.breadcrumb span { color: var(--text-light); }

/* ======== CATEGORY STRIP ======== */
.category-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-strip .container { display: flex; gap: 0; padding: 0 20px; }
.category-strip a {
  display: inline-block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.category-strip a:hover, .category-strip a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
  text-decoration: none;
}

/* ======== SECTIONS ======== */
.section { padding: 50px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-pale);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--green-mid);
  border-radius: 2px;
}

/* ======== FEATURED ARTICLE ======== */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.featured-card .card-img {
  height: 380px;
  object-fit: cover;
  width: 100%;
}

.featured-card .card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.featured-card h2 {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.featured-card p {
  color: var(--text-mid);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.featured-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  transition: gap 0.2s;
}
.featured-card .read-more:hover { gap: 10px; text-decoration: none; }
.featured-card .read-more::after { content: '→'; }

/* ======== ARTICLE GRID ======== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.article-card .card-img-wrap {
  height: 200px;
  overflow: hidden;
}
.article-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .card-img-wrap img { transform: scale(1.05); }

.article-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

.card-cat {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-date { color: var(--text-light); }

.article-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.article-card h3 a { color: var(--text-dark); }
.article-card h3 a:hover { color: var(--green-dark); text-decoration: none; }

.article-card p { color: var(--text-mid); font-size: 14px; line-height: 1.6; flex: 1; }

.card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

.read-link {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
}
.read-link:hover { text-decoration: underline; }

/* ======== SIDEBAR ======== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.sidebar-widget h4 {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text-dark); font-weight: 500; }
.sidebar-list a:hover { color: var(--green-dark); }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tags a {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.sidebar-tags a:hover { background: var(--green-light); text-decoration: none; }

/* ======== ARTICLE PAGE ======== */
.article-page { padding: 50px 0; }

.article-header {
  max-width: 800px;
  margin: 0 auto 36px;
}

.article-header .article-cat {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.article-header .subtitle {
  font-size: 18px;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
  align-items: center;
}
.article-meta strong { color: var(--text-dark); }

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 30px 0;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-mid);
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--text-dark);
  margin: 40px 0 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text-dark);
  margin: 30px 0 12px;
}

.article-body p { margin-bottom: 22px; }

.article-body ul, .article-body ol {
  padding-left: 28px;
  margin-bottom: 22px;
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--text-dark); font-weight: 700; }

.article-body blockquote {
  border-left: 4px solid var(--green-mid);
  padding: 16px 24px;
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 30px 0;
  font-style: italic;
  font-size: 17px;
  color: var(--text-dark);
}

.article-body .highlight-box {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  border-left: 4px solid var(--green-mid);
}
.article-body .highlight-box h4 {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.article-body .tip-box {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 30px 0;
}

.article-body .warning-box {
  background: #fff3e0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 30px 0;
}

.disclaimer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 50px;
  line-height: 1.6;
}

/* ======== RELATED ARTICLES ======== */
.related-section {
  background: var(--white);
  padding: 50px 0;
  border-top: 1px solid var(--border);
}

/* ======== NEWSLETTER / CTA BANNER ======== */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: 30px;
  margin-bottom: 14px;
}
.cta-banner p { opacity: 0.9; font-size: 16px; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ======== FOOTER ======== */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 50px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--green-light); }

.footer-desc { color: #888; line-height: 1.7; margin-bottom: 20px; font-size: 13px; }

.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #888; font-size: 13px; }
.footer-col ul a:hover { color: var(--green-light); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #aaa; text-decoration: none; }

/* ======== MISC ======== */
.reading-time { display: inline-flex; align-items: center; gap: 5px; }
.reading-time::before { content: '🕐'; font-size: 14px; }

.share-buttons {
  display: flex;
  gap: 10px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.pi { background: #e60023; }

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 40px 0;
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.author-info h4 { font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.author-info span { color: var(--green-mid); font-size: 12px; display: block; margin-bottom: 8px; }
.author-info p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ======== STATIC PAGES ======== */
.static-page { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.static-page h1 { font-family: var(--font-head); font-size: 36px; margin-bottom: 8px; }
.static-page .last-updated { color: var(--text-light); font-size: 13px; margin-bottom: 40px; }
.static-page h2 { font-family: var(--font-head); font-size: 22px; color: var(--text-dark); margin: 36px 0 14px; }
.static-page p { margin-bottom: 18px; color: var(--text-mid); line-height: 1.8; }
.static-page ul { padding-left: 24px; margin-bottom: 18px; }
.static-page li { margin-bottom: 8px; color: var(--text-mid); line-height: 1.7; }

/* ======== CONTACT ======== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 60px 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-mid); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { cursor: pointer; border: none; width: 100%; padding: 14px; }
.contact-info-box { padding: 30px; background: var(--green-pale); border-radius: var(--radius); }
.contact-info-box h3 { font-family: var(--font-head); margin-bottom: 20px; color: var(--green-dark); }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; font-size: 14px; color: var(--text-mid); }

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-img { height: 260px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { display: none; flex-direction: column; width: 100%; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 20px; }
  .featured-card .card-body { padding: 24px; }
  .featured-card h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ======== LANGUAGE SWITCHER ======== */
.lang-switcher {
  position: fixed;
  top: 68px;
  right: 12px;
  z-index: 999;
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #c8e6d0;
  border-radius: 8px;
  padding: 5px 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.lang-btn {
  display: block;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #2d6a4f;
  text-decoration: none !important;
  letter-spacing: 0.4px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.lang-btn:hover { background: #e8f5ef; color: #1b4332; text-decoration: none; }
.lang-btn.active { background: #40916c; color: #fff; }
@media(max-width:600px){
  .lang-switcher { top: auto; bottom: 80px; right: 10px; }
}
