body {
  font-family: Arial, sans-serif;
  background: #f9fafb;
  color: #1a1a1a;
  margin: 0;
}

.header {
  display: block;
  align-items: center;
  align-self: baseline;
  padding: 0rem 2rem;
  background: rgb(255, 255, 255);
  position: sticky;
  top: 0;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.header a {
  text-decoration: underline;
  font-size: 0.9rem;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-section input, #article2 select {
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  border: 1px solid #ccc;
  flex: 1 1 auto;
  min-width: 150px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

.results-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  max-width: 250px;


}



.card:hover {
  box-shadow: 0 4px 16px rgba(2, 9, 116, 0.219);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;

}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0.25rem 0;
  font-family: 'Georgia', serif;
  color: #000000;
}

.card p {
  font-size: 0.85rem;
  color: #555;
  margin-top: 3px;
  margin-bottom: 3px;
  font-family: 'Arial', sans-serif;
}

.tags {
  
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.75rem;
  margin: 0.5rem 0;
}

.tags span {
  background: #eee;
  border-radius: 1rem;
  padding: 0.25rem 0.5rem;
}

.card a {
  margin-top: auto;
  text-decoration: none;
  color: #007bff;
  font-size: 0.85rem;
}

h1 {
  margin-bottom: 15px;
}

/* Tabs container */
.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 20px;
  margin-bottom: 0PX;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Tab buttons */
.tab-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: #f1f1f1;
  border: none;
  border-bottom: 3px solid transparent;
  transition: background 0.3s, border-bottom 0.3s;
  font-size: 16px;
}
.tab-btn:hover {
  background: #e0e0e0;
}
.tab-btn.active {
  background: #fff;
  border-bottom: 3px solid #28a745; /* green highlight */
  font-weight: bold;
  color: #28a745;
}

.container {
  margin-top: 0PX;
}
/* Articles */
main article {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}
main article.show {
  display: block;
  opacity: 1;
}

.img-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .img-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }

  .img-banner .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: background 0.3s ease;
  }

  .img-banner .overlay:hover {
    background: rgba(0,0,0,0.75);
  }

/* Mobile Responsive */
@media (max-width: 600px) {
  .tabs {
    justify-content: space-between;
    border-bottom: none;
  }
  .tab-btn {
   background-color: rgb(255, 255, 255);
  }
  .tab-btn.active {
    border-bottom: 3px solid #28a745; /* still highlight active */
  }

  .container {
    padding: 0px;
  }
  main article {
    padding: 10px;
  }

  .hero{
    display: none;
  }

  .header {
    padding: 0rem 1rem;
  }

  .header h1 {
    font-size: 1.2rem;
  }
  .show .posts1{
    padding: 0px;
  }
  /* Targets the whole post container */
  .post2 {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 0px;
  margin: 0px;
  }

  /* Targets the link inside the post */
  .post2 a {
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  /* Targets the image inside the link */
  .post2 a img {
    border: 2px solid green;
    border-radius: 10px;
    width: 120px;
    height: 120px;
  }

  /* Targets the content box */
  .post2 .post-content2 {
    padding: 10px;
  }

  /* Targets the title (h2) */
  .post2 .post-content2 h2 {
    color: darkgreen;
    font-size: 22px;
  }

  /* Targets the description (p) */
  .post2 .post-content2 p {
    font-size: 14px;
    color: #555;
    display: -webkit-box;         /* Enables flexbox-like layout */
    -webkit-line-clamp: 3;        /* Limits text to 3 lines */
    -webkit-box-orient: vertical; /* Sets box orientation */
    overflow: hidden;             /* Hides extra text */
    text-overflow: ellipsis;      /* Adds "..." */
  }


}