/* Design System for nongtraigiaoduc.com */
:root {
  --color-primary: #166534; /* Xanh lá nông trại */
  --color-secondary: #ca8a04; /* Vàng nắng */
  --color-dark: #1f2937;
  --color-light: #f9fafb;
  --color-white: #ffffff;
  --color-gray: #6b7280;
  --color-border: #e5e7eb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Base elements */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 1.5rem; }
h3 { font-size: 1.5rem; margin-top: 1.2rem; }

/* Grid Layout & Containers */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo span {
  color: var(--color-secondary);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--color-dark);
  padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

/* Main Content Area */
.site-main {
  flex: 1;
  padding: 3rem 0;
}

/* Contact Page */
.contact-page {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-info-section,
.contact-form-section {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.contact-form-section {
  position: relative;
}

.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #e2e8f0;
}

.footer-col a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Home Hero */
.hero {
  background-color: #f0fdf4;
  padding: 5rem 0;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
  border: 1px solid #dcfce7;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #15803d;
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: #a16207;
}

/* Content grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

/* Single page style */
.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-meta {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.post-content {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info-section,
  .contact-form-section {
    padding: 1.5rem;
  }

  .contact-two-col {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-nav ul {
    gap: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .post-content {
    padding: 1.5rem;
  }
}

/* Home Page Sections & Utilities */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  font-size: 2.25rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: -1.5rem auto 2.5rem;
  color: var(--color-gray);
  font-size: 1.1rem;
}

/* segments */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.segment-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.segment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
}

.segment-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* stats */
.stats-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 2rem;
  border-radius: 12px;
  margin: 4rem 0;
}

.stats-section .section-title {
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-evidence {
  font-size: 0.8rem;
  color: #a7f3d0;
  font-style: italic;
}

/* Testimonials */
.testimonials-section {
  padding: 2rem 0 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.testimonial-stars {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: var(--color-white);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: 12px;
  margin: 4rem 0 2rem;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background-color: #f3f4f6;
  color: var(--color-primary);
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .segment-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* --- Bổ sung các styles cho Hamburger Menu, Homepage Hero, Activity Cards và Landing Page --- */

/* Navigation CTA */
.nav-cta {
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(202, 138, 4, 0.2);
}

.nav-cta:hover {
  background-color: #a16207;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Home Hero Custom (Gradient background) */
.home-hero {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #ca8a04 100%);
  color: var(--color-white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(254, 240, 138, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.home-hero h1 {
  color: var(--color-white);
  font-size: 3.2rem;
  line-height: 1.25;
  font-weight: 850;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.home-hero p {
  font-size: 1.35rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  color: #f0fdf4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home-hero .hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* USP Strip */
.usp-strip {
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
  padding: 2rem 0;
  margin-bottom: 4rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.usp-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.usp-title {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.usp-desc {
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* Activity Cards Section */
.activities-section {
  padding: 4rem 0;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.act-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.act-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
}

.act-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.act-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.act-card:hover .act-img img {
  transform: scale(1.08);
}

.act-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.act-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  line-height: 1.3;
}

.act-info p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.act-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-secondary);
  margin-top: auto;
}

.act-link:hover {
  color: #a16207;
}

/* Landing Page Wrapper & Styling */
.lp-wrapper {
  padding: 4rem 0 6rem;
  background-color: var(--color-white);
}

.landing-page {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
}

.landing-page h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 800;
  color: var(--color-primary);
}

.landing-page h2 {
  font-size: 1.85rem;
  border-bottom: 2px solid #f0fdf4;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.landing-page h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.landing-page p {
  margin-bottom: 1.5rem;
}

.landing-page ul, .landing-page ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.landing-page li {
  margin-bottom: 0.5rem;
}

.landing-page blockquote {
  border-left: 4px solid var(--color-primary);
  background-color: #f0fdf4;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Table styling for LPs */
.landing-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95rem;
}

.landing-page th, .landing-page td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.landing-page th {
  background-color: #f3f4f6;
  font-weight: 700;
  color: var(--color-primary);
}

.landing-page tr:nth-child(even) td {
  background-color: #fafafa;
}

/* Hero section custom inside Markdown */
.landing-page .lp-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid #bbf7d0;
  margin-bottom: 3rem;
  text-align: center;
}

.landing-page .lp-hero h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.landing-page .lp-hero-desc {
  font-size: 1.25rem;
  color: var(--color-dark);
  max-width: 750px;
  margin: 0 auto;
}

/* LP Form styling if exists */
.lp-form-container {
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem auto;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.lp-form-container h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Mobile Sticky CTA */
.lp-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  padding: 0.85rem 1.5rem;
  z-index: 99;
  display: none;
  justify-content: center;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.lp-sticky-cta .btn {
  width: 100%;
  max-width: 500px;
  text-align: center;
  font-size: 1.1rem;
  padding: 0.9rem;
  box-shadow: 0 4px 6px rgba(202, 138, 4, 0.2);
}

/* Mobile Hamburg Navigation overrides */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  
  .site-nav.open {
    display: block;
  }
  
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .site-nav a:hover,
  .site-nav a.active {
    border-bottom-color: var(--color-primary);
  }
  
  .header-container {
    padding: 0.75rem 0;
  }
  
  .nav-cta {
    display: none; /* Ẩn CTA nhỏ trên mobile thay vào đó là menu hoặc sticky */
  }
  
  /* Show sticky CTA on LPs for Mobile */
  .lp-sticky-cta {
    display: flex;
  }
  
  .lp-wrapper {
    padding-bottom: 6rem; /* Tạo khoảng trống tránh đè lên sticky CTA */
  }
  
  /* Grid layouts */
  .act-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .landing-page h1 {
    font-size: 2rem;
  }
  
  .landing-page h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .usp-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .home-hero h1 {
    font-size: 2.2rem;
  }
  
  .home-hero p {
    font-size: 1.1rem;
  }
}
