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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 60px;
}

h1, h2, h3 {
  color: #222;
  margin-bottom: 15px;
  font-weight: 700;
}

p {
  line-height: 1.6;
  margin-bottom: 15px;
}

a {
  color: #0073e6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background-color: #4da769;
  color: #fff;
  padding: 10px 20px;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

.menu-toggle {
  position: absolute;
  left: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background-color: #4da769;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  border-bottom: 1px solid #444;
}

.side-menu a:hover {
  background-color: #c6f6d5;
}

.side-menu.active {
  left: 0;
}

/* Hero Section */
.hero-section.upgraded-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  background-color: #f0fdf4;
  flex-wrap: wrap;
  text-align: center;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-img-right {
  width: 400px;
  max-width: 100%;
  border-radius: 12px;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #51a105;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #3e8f00;
}

/* Services Section */
.services {
  padding: 60px 10%;
  background-color: #e6fffa;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #c6f6d5;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: #ffffff;
}


/* Top Articles */
.top-articles {
  padding: 2rem;
  text-align: center;
}

.top-articles h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.top-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.top-article {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 280px;
}

.top-article:hover {
  transform: translateY(-5px);
}

.top-article-img {
  width: 100%;
  height: auto;
  display: block;
}

.top-article-title {
  font-size: 1.1rem;
  padding: 0.8rem;
  color: #333;
}

/* CTA Placeholder */
.cta-placeholder {
  padding: 50px 10%;
  background-color: #f0fff4;
  text-align: center;
}

.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 50px;
  border-top: 1px solid #444;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #51a105;
}

.footer-copy {
  color: #fff;
  font-size: 13px;
}
h2[id] {
  scroll-margin-top: 100px;
}
html {
  scroll-behavior: smooth;
}
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.top-article {
  min-width: 280px;
  flex: 0 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffffcc;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-btn.left {
  left: 5px;
}

.carousel-btn.right {
  right: 5px;
}
