/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 50px;
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
  color: #0c4c36;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
  background-color: #0c4c36;
  color: white;
  border-radius: 4px;
}

/* Hero Carousel */
.hero-carousel {
  padding-top: 100px; /* account for fixed navbar */
  background: linear-gradient(to right, #0c4c36, #007f4f);
  color: white;
  position: relative;
  overflow: hidden;
  height: 350px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  display: none;
  height: 100%;
  width: 100%;
  padding: 40px 60px;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.slide.active {
  display: flex;
}

.slide-left {
  width: 60%;
}

.slide-left h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.slide-left h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.slide-left p {
  font-size: 16px;
  max-width: 90%;
}

.slide-right {
  width: 35%;
  text-align: right;
}

.slide-right img {
  height: 300px;
  width: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls .prev,
.carousel-controls .next {
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
  background-color: rgba(255,255,255,0.8);
  color: #333;
  border-radius: 50%;
  margin: 0 20px;
  user-select: none;
}

/* Experts Info Section */
.experts-info {
  background-color: #f4f4f4;
  padding: 50px 20px;
  text-align: center;
}

.experts-info h2 {
  font-size: 32px;
  color: #007f4f;
  margin-bottom: 15px;
}

.experts-info p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 20px auto;
  color: #333;
}

.experts-info ul {
  list-style: none;
  padding: 0;
  font-size: 20px;
  color: #222;
}

.experts-info li {
  margin: 10px 0;
}

/* Tablet */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  /* Hero Carousel */
  .slide {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .slide-left, 
  .slide-right {
    width: 100%;
  }

  .slide-left h2 {
    font-size: 22px;
  }

  .slide-left h4 {
    font-size: 16px;
  }

  .slide-left p {
    font-size: 14px;
    max-width: 100%;
  }

  .slide-right img {
    width: 200px;
    height: 200px;
    margin: 15px auto 0 auto;
  }

  /* Experts section */
  .experts-info p {
    font-size: 16px;
    padding: 0 15px;
  }

  .experts-info ul {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  /* Navbar */
  .brand-name {
    font-size: 16px;
  }

  .navbar nav ul li a {
    font-size: 14px;
    padding: 5px 10px;
  }

  /* Hero Carousel */
  .hero-carousel {
    height: auto;
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .slide-left h2 {
    font-size: 20px;
  }

  .slide-left h4 {
    font-size: 14px;
  }

  .slide-left p {
    font-size: 13px;
  }

  .slide-right img {
    width: 150px;
    height: 150px;
  }

  /* Experts Info */
  .experts-info h2 {
    font-size: 24px;
  }

  .experts-info p {
    font-size: 14px;
  }

  .experts-info ul {
    font-size: 16px;
  }
}