/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  /* ✅ NOT sticky anymore */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  flex-wrap: wrap;              /* ✅ allows wrap on small screens */
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;              /* ✅ wraps menu items if needed */
  justify-content: center;
}

nav ul li a {
  text-decoration: none;
  color: #2c5f2d;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #97c93d;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2c5f2d 0%, #97c93d 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: #2c5f2d;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Carousel Styles */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background-color: rgba(44, 95, 45, 0.9);
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-control {
  background-color: rgba(255,255,255,0.8);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s;
}

.carousel-control:hover {
  background-color: rgba(255,255,255,1);
}

/* Article Grid */
.articles-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  color: #2c5f2d;
  margin-bottom: 50px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.article-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.article-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.article-card-content {
  padding: 25px;
}

.article-card h3 {
  color: #2c5f2d;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.article-card p {
  color: #666;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: #97c93d;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.read-more:hover {
  color: #2c5f2d;
}

/* Article Page Styles */
.article-header {
  background: linear-gradient(135deg, #2c5f2d 0%, #97c93d 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.article-header h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 1.1em;
  opacity: 0.9;
}

.article-content {
  max-width: 800px;
  margin: 50px auto;
  background-color: white;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.article-content h2 {
  color: #2c5f2d;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2em;
}

.article-content h3 {
  color: #2c5f2d;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1em;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  margin-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.related-articles h3 {
  color: #2c5f2d;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Footer Styles */
footer {
  background-color: #2c5f2d;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: #97c93d;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #97c93d;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 50px auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c5f2d;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: #2c5f2d;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #97c93d;
}

/* Responsive Design */
/* ✅ SINGLE mobile block (replaces your two blocks) */
@media (max-width: 768px) {

  /* keep YOUR existing responsive settings */
  .hero h1 {
    font-size: 2em;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 30px 20px;
  }

  .carousel-item img {
    height: 300px;
  }

  /* ✅ ONLY NAV FIX (keep header one line + horizontal menu) */
  .header-content{
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  nav{
    flex: 1 1 auto;
    min-width: 0;
  }

  nav ul{
    flex-wrap: nowrap;          /* IMPORTANT: stops stacking */
    white-space: nowrap;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;           /* if small phone, it scrolls horizontally */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar{
    display: none;
  }

  nav ul li a{
    font-size: 14px;            /* only on mobile */
  }

  .social-icons{
    flex-wrap: nowrap;
    gap: 8px;
  }

  .social-icons a img{
    width: 22px;
    height: 22px;
  }

  .logo img{
    height: 44px;
  }
}
