/* Reset */
body,
h1,
h2,
p {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

/* Header */
header {
  background: #91bd92;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

/* Brand (logo + name) */
.brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 70px;
  margin-right: 10px;
}

.cname {
  font-size: 1.8rem;
  font-weight: bold;
  color: rgb(16, 50, 16);
}

.cname .cn {
  display: block;
  font-size: 1.2rem;
  margin-left: 5px;
  font-weight: bold;
  color: rgb(16, 50, 16);
}

.nav-links {
  display: flex;
  align-items: center;
}

/* Navigation links */
nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: normal;
  padding: 5px 8px;
  border-radius: 4px;
  transition: 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

nav a.active {
  text-decoration: underline;
  font-weight: bold;
}


@media (max-width: 768px) {
  .cname {
  font-size: 1.5rem;
}
.cname .cn {
  font-size: 1.2rem;
  margin-left: 5px;
  font-weight: bold;
  color: rgb(16, 50, 16);
}
  .nav-links {
    flex-direction: column;
    flex-wrap: wrap;    /* allow wrapping */
    gap: 10px;          /* space between links */
  }

  nav a {
    margin-left: 0;     /* remove the big left margin */
    font-size: 0.9rem;  /* shrink font a bit */
  }
}


/* Hero Section */
.hero {
  background: #eaffed;
  /* color: rgb(16, 50, 16); */
  padding: 50px 60px;
}

/* Layout container */
.hero-content {
  display: flex;
  /* flex-wrap: wrap;    */
  justify-content: space-between;
  gap: 80px;
  width: 100%;
  margin: 0 auto;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;

}
.slides {
  border-radius: 10px;
  border-width: 10px;
  border-color: blue;
}

.slides img {
  display: none;
  width: 100%;
  height: 400px; 
  object-fit: cover; 
}

.slides img.active {
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* Each text block */
.hero-text {
  width: 100%;
  line-height: 2;
}

/* Chinese text styling */
.cn-text {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 600;
}

/* English text styling */
.en-text {
  margin-top: 30px;
  font-size: 1rem;
  font-weight: 600;
}

/* Mobile view */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 20px;
  }
  .hero-text {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Services Section */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 40px;
  background: #ffffff;
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Header part (icon + title) */
.service-header {
  padding: 20px;
  background: #ffffff;
}

.icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: #4ca64c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.service-header h2 {
  font-size: 1.2rem;
  color: #2e6b2e;
  margin: 0;
}

.service-header .en {
  display: block;
  font-size: 0.9rem;
  color: #4a6c4a;
  margin-top: 5px;
}

/* Body part (green background with white text) */
.service-body {
  background: #4ca64c;
  color: white;
  padding: 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Mobile view */
@media (max-width: 900px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
  position: relative;
  background: url("../images/forest.webp") no-repeat center center/cover;
  color: white;
  padding: 60px;
}

.contact .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* dark overlay for readability */
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2; /* above overlay */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* responsive */
}

.contact-info {
  max-width: 600px;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-info a {
  color: #cde6cd;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-qr {
  text-align: center;
}

.contact-qr img {
  width: 140px;
  height: 140px;
  border: 4px solid white;
  border-radius: 8px;
}

.contact-qr p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #f0f0f0;
}

/* Mobile */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    margin-bottom: 20px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #1c4f1d;
  color: white;
}
