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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Hero */
.hero {
  position: relative;
  color: white;
  text-align: center;
  height: 450px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: rgba(26, 58, 10, 0.55);
  padding: 20px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Section Images */
.section-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 28px;
}

/* Card Images */
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* Navigation */
nav {
  background: #1a3a0a;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #c8e6b0;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: #4a7c29;
  color: white;
}

/* Content Sections */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2d5016;
  border-bottom: 3px solid #4a7c29;
  padding-bottom: 8px;
  display: inline-block;
}

.content-section p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  max-width: 800px;
}

.alt-bg {
  background: #f4f8f0;
  max-width: 100%;
  padding-left: calc((100% - 1100px) / 2 + 24px);
  padding-right: calc((100% - 1100px) / 2 + 24px);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  background: #f4f8f0;
  border: 1px solid #d4e8c4;
  border-radius: 10px;
  padding: 24px;
}

.info-card h3 {
  color: #2d5016;
  margin-bottom: 12px;
}

.info-card ul,
.content-section ul {
  list-style: none;
  padding: 0;
}

.info-card li,
.content-section li {
  padding: 6px 0;
  border-bottom: 1px solid #e8f0e0;
  font-size: 0.95rem;
}

.info-card li:last-child,
.content-section li:last-child {
  border-bottom: none;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: white;
  border: 1px solid #dde8d4;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card h3 {
  color: #2d5016;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.9rem;
  color: #555;
}

/* Chat Section */
.chat-container {
  max-width: 700px;
  margin: 20px auto 0;
  border: 1px solid #d4e8c4;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chat-messages {
  height: 360px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message {
  background: #e8f5e0;
  color: #2d5016;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: #2d5016;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.typing-indicator {
  background: #f0f0f0;
  color: #888;
  align-self: flex-start;
  font-style: italic;
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #d4e8c4;
}

.chat-input-area input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.chat-input-area button {
  padding: 14px 28px;
  background: #4a7c29;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input-area button:hover {
  background: #2d5016;
}

.chat-input-area button:disabled {
  background: #a0c090;
  cursor: not-allowed;
}

/* Footer */
footer {
  background: #1a3a0a;
  color: #c8e6b0;
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .card-grid {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .message {
    max-width: 90%;
  }
}
