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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #333;
  padding-top: 70px; /* Offset for fixed navbar */
}

h1, h2, h3 {
  margin-top: 0;
}

a {
  text-decoration: none;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #2e7d32;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar .nav-links li a {
  color: white;
  font-weight: 500;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
  color: #ffd700;
  text-decoration: underline;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #a8e063, #56ab2f);
  color: white;
  text-align: center;
  padding: 6rem 2rem 4rem; /* Adjusted top padding for fixed navbar */
  animation: fadeInUp 1.5s ease-out;
}

.hero h1 {
  font-size: 2.8rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  animation: fadeInUp 1.2s ease-out;
}

.cta-button {
  background-color: #fff;
  color: #388e3c;
  border: 2px solid #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  animation: fadeInUp 1.4s ease-out;
}

.cta-button:hover {
  background-color: #fff;
  color: #2e7d32;
}

/* Intro */
.intro {
  background-color: #f0f9f0;
  padding: 3rem 1rem;
  text-align: center;
  animation: fadeInUp 1.5s ease-out;
}

.intro h2 {
  color: #2e7d32;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: #ffffff;
}

.feature {
  background: #fcfff5;
  border: 1px solid #ccc;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1.2s ease-out;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  color: #388e3c;
}

/* Team & Certifications */
.team-certifications {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.flash-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1.3s ease-out;
  cursor: pointer;
}

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

/* News Highlights Section */
.news {
  background: #f5fbf5;
  padding: 2rem;
}

.news h2 {
  text-align: center;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.news-card h3 {
  color: #388e3c;
}

/* Footer */
.footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #2e7d32;
    padding: 10px 0;
    z-index: 1000;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .navbar .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

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

  .intro {
    padding: 2rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .navbar .logo {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.intro p {
  text-align: justify;
  margin-bottom: 1.5rem;
}