/* Reset default margin and padding, and set box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:'Times New Roman', Times, serif;
}


/* สถานภาพ สรุป*/
.grid-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: #f8f6f6;
  text-align: center;
}

.plant-group {
  border: 1px solid #c8e6c9;
  background-color: #e8f5e9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.plant-group img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.plant-group:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* Box for bars */
.box2 {
  padding: 1% 10%;
}

.boxbar {
  padding: 1rem;
}


.boxbar h3{
 text-align: left;
}

/* General grid padding */
.grid {
  padding: 1% 10%;
}

/* Heading style for Thai threatened species */
.Thaithreatened {
  padding: 1rem;
}

.Thaithreatened h3{
 text-align: left;
}



/* Grid layout for species */
.Intro-species {
  display: grid;
  column-gap: 10px;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
}

/* Style for each species box */
.SpeciesThretened {
  background: rgb(245, 241, 241);
  padding: 1rem;
  line-height: 200%;
  font-family: 'Times New Roman', Times, serif;
}


.SpeciesThretened h5{
padding: 0 2;
}



.SpeciesThretened p{
  font-size: 16px;
  }

/* Image styling for species boxes */
.SpeciesThretened img {
  object-fit: cover;
  width: 100%;
  height: auto; /* Set to auto for correct aspect ratio */
  margin-bottom: 15px;
}


/* Media Queries for responsive design */

/* Example for screen sizes <= 1920px */
@media (max-width: 1920px) {
  .grid-sum {
      grid-template-columns: repeat(2, 1fr); /* Adjust grid for larger screens */
  }
}

/* Example for screen sizes <= 1440px */
@media (max-width: 1440px) {
  .grid-sum {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Example for screen sizes <= 1366px */
@media (max-width: 1366px) {
  .grid-sum {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Example for screen sizes <= 1280px */
@media (max-width: 1280px) {
  .grid-sum {
      grid-template-columns: repeat(1, 1fr); /* Stack items for smaller screens */
  }
}

/* Example for small screens <= 414px */
@media (max-width: 414px) {
  .grid-sum {
      grid-template-columns: repeat(1, 1fr);
  }
}

/* Example for small screens <= 412px */
@media (max-width: 412px) {
  .grid-sum {
      grid-template-columns: repeat(1, 1fr);
  }
}

/* Example for very small screens <= 393px */
@media (max-width: 393px) {
  .grid-sum {
      grid-template-columns: repeat(1, 1fr);
  }
}

/* Example for very small screens <= 390px */
@media (max-width: 390px) {
  .grid-sum {
      grid-template-columns: repeat(1, 1fr);
  }
}

/* Example for small screens <= 360px */
@media (max-width: 360px) {
  .grid-sum {
      grid-template-columns: repeat(1, 1fr);
  }
}
