* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #123;
}

body {
  background-color: #e8f5e8;
  color: #333;
  line-height: 1.6;
}

.btn {
  border-radius: 20px;
  background-color: #FACC15;
  color: #315803;
  border: none;
  padding: 5px 10px;
}

/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: #315803;
}

.nav-left {
  color: aliceblue;
}

.nav-mid a {
  color: aliceblue;
  text-decoration: none;
}

/* hero part */
.hero {
  display: flex;
  background-color: #CFF0DC;
  margin-bottom: 40px;
}

.main-img {
  width: 100%;

}

.hero-title {
  text-align: center;
  margin-top: 60px;
}

/* all card */


:root {
  --bg: #f2fbf4;
  --accent: #3f7a42;
  --accent-dark: #355e35;
  --card: #ffffff;
  --muted: #9aa49a;
  --pill: #e9f7ea;
  --radius: 12px;
}

/* header */
.site-header {
  text-align: center;
  padding: 28px 10px 8px;
}

.title {
  margin: 0;
  font-size: 28px;
  color: #0b2b18;
}

/* overall layout */
.layout {
  display: flex;
  gap: 24px;
  padding: 20px 36px 60px;
  align-items: flex-start;
}

/* sidebar (left) */
.sidebar {
  width: 220px;
}

.sidebar h3 {
  margin: 6px 0 14px 6px;
  font-size: 16px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  cursor: pointer;
  color: #234;
  background: transparent;
  transition: all .12s ease;
  max-width: 160px;
}

.category-list li:hover {
  background: #dff3df;
}

.category-list li.active {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.02);
}

/* center grid */
.center {
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* card style */
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .thumb {
  width: 100%;
  height: 150px;
  background: #eee;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.card .meta {
  padding-top: 10px;
  flex: 1;
}

.card h4 {
  margin: 6px 0 6px;
  font-size: 16px;
  cursor: pointer;
  color: #123;
}

.card p.desc {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.card .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background: var(--pill);
  color: var(--accent-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.price {
  font-weight: 700;
  color: #123;
}

/* add to cart btn */
.card .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-top: 6px;
}

.card .btn:active {
  transform: translateY(1px)
}

/* right cart */
.cart {
  width: 230px;
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 12px 0;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7fff7;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-list button.remove {
  border: 0;
  background: transparent;
  color: #b93b3b;
  cursor: pointer;
  font-size: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

/* spinner */
.spinner {
  width: 48px;
  height: 48px;
  margin: 10px auto 18px;
  border: 6px solid rgba(0, 0, 0, 0.05);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.modal-content {
  width: 92%;
  max-width: 720px;
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}






/* the hero one */
.hero-1 {
  width: 850px;
  height: 430px;
  margin: 0 auto;
  /* background-color: aquamarine; */
}

.hero-3 {
  display: flex;
}

.hero-ttl {
  text-align: center;
  margin-bottom: 20px;
}

.hero-img {
  /* width: 80%; */
  margin-right: 20px;
}

.hero-pr {
  text-align: center;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* About the Campaign Section */
.about-section {
  padding: 60px 0;
  background-color: #e8f5e8;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.about-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #2e7d32;
}

.about-text p {
  margin-bottom: 20px;
  color: #424242;
}

.about-text ul {
  list-style-type: disc;
  margin-left: 20px;
}

.about-text li {
  margin-bottom: 10px;
  color: #424242;
}

/* Our Impact Section */
.impact-section {
  padding: 60px 0;
  background-color: #c8e6c9;
}

.impact-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.impact-card {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 10px;
}

.impact-label {
  font-size: 0.9rem;
  color: #424242;
}

/* Plant a Tree Today Section */
.donate-section {
  padding: 80px 0;
  background-color: #2e7d32;
  color: white;
  text-align: center;
}

.donate-form {
  background-color: #215b2a;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.btn-donate {
  width: 100%;
  padding: 12px;
  background-color: #fdd835;
  color: #2e7d32;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  background-color: #fbc02d;
  transform: translateY(-2px);
}



/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: 400px;
  height: 500px;
  max-width: 720px;
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modal-close {
  position: absolute;
  right: 28px;
  bottom: -400px;
  background: transparent;
  border: 0px solid gray;
  font-size: 24px;
  cursor: pointer;
}

.modal-body img {
  width: 350px;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.modal-body h2 {
  margin-bottom: 8px;
  color: #234;
}

.modal-body p {
  margin: 6px 0;
  color: #444;
}





/* Responsive Design */

@media only screen and (max-width: 500px) {

  .nav-mid{
    display: none;
  }
.no{
  display: none;
  
}
.hero-title{
  text-align: left;
  font-size: 20px;
  margin-right: 10px;
  line-height: 18px;
  
}
.btn{
 padding: 2px 7px;
 font-size: 15px;
 
}
}

@media only screen and (max-width: 860px) {

    .hero-title {
    /* text-align: center; */
    margin-top: 40px;
    font-size: 15px;
}



}









@media (max-width: 760px) {
  .about-content {
    flex-direction: column;
  }
  .hero-title {
    /* text-align: center; */
    margin-top: 40px;
    font-size: 10px;
}

  .impact-container {
    flex-direction: column;
    gap: 20px;
  }

  .impact-card {
    min-height: 150px;
  }

  .layout {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
  }

  .cart {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }
}