/* Body Styles */
body {
    font-family: Arial, sans-serif;
  }

  section{
    margin: 20px;
  }
/* Navbar styles */
.navbar {
    position: sticky;
    top: 0;
    background-color: #e0e0e0;
    padding: 20px 40px;
    min-height: 30px;
    z-index: 100;
    margin: -10px -10px 10px -10px;
    box-shadow: #000000 0px 2px 4px rgba(0, 0, 0, 0.3);
  }
  .navbar::after {
    content: "";
    display: table;
    clear: both;
  }
  /* Logo styles */
  .navbar .logo {
    float: left;
    font-size: 28px;
    font-weight: bold;
    margin-right: 20px;
  }
  
  /* Navigation links styles */
  .navbar .nav-links {
    float: right;
    padding-top: 10px;
  }
  .navbar .nav-links a {
    margin-left: 10px;
    color: #333;
    text-decoration: none;
  }
/* Filter Buttons */
#filterButtonsContainer {
  position: sticky;
  top: 65px;
  z-index: 99;
  background: #fff;
  transition: transform 0.3s;
  will-change: transform;
  margin: 0;
  padding: 15px 20px 5px 20px;
}
button{
  padding: 5px 10px;
  border: #000000 solid 2px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}
button:hover{
  background-color: #000000;
  color: #ffffff;
}
  .active{
  background-color: #7ac990;
  border-color: #5d9a6e;
  color: #ffffff;

}
  clear{
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #000000;
}
clear:hover{
  padding: 5px 10px;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  color: #9e3737;
  transition: 0.5s;
}
/* Link Styles */
a:hover {
  text-decoration: none;
}
/* Show More Button */
showMore {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 10px auto;
  padding: 10px 30px;
  border: #000000 solid 2px;
  border-radius: 20px;
  cursor: pointer;
  width: fit-content;
}
showMore:hover {
  background-color: #000000;
  color: #ffffff;
  transition: 0.5s;
}
/* Card container as flexbox */
#cardContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  
}

/* Card width for desktop */
.card {
  flex: 1 1 17%;
  min-width: 250px;
  max-width: 300px;
  margin: 0;
  box-sizing: border-box;
  float: none;
  color: #000000;
  text-decoration: none;
  background-color: #e5e5e5;
  padding: 0; /* Remove padding here */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* Ensures rounded corners for image */
}

/* Responsive: stack cards on mobile */
@media (max-width: 900px) {
  .card {
    flex: 1 1 45%; /* 2 cards per row */
    min-width: 200px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #cardContainer {
    flex-direction: column;
    gap: 10px;
  }
  .card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

  .card:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  }
  /* Card Title */
  .card h3 {
    margin: 5px 10px;
    font-size: 16px;
    font-weight: bold;
  }
  
  /* Card Link */
  .card a {
    color: #000000;
  }

  /* Card Image */
  .card img {
  width: 100%;
  height: 120px; /* or your preferred height */
  display: block;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}

  /* Card Tags */
  .tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px;
}
.tag-overlay {
  background: #eee;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
}
.tag-text {
    font-size: 10px;
    text-decoration: none;
}

/* Card Source & Time */
  .website-info-container {
    display: flex;
    align-items: center;
  }
  .website-source, .website-time {
      margin: 5px 10px;
      font-size: 12px;
  }
  /* Latest News Section */
.latest-news-section {
  width: 100%;
  margin-bottom: 30px;
}
.latest-news-header {
  font-size: 1.6em;
  font-weight: bold;
  margin: 20px 0 20px 0;
  color: #333;
}
.latest-news-cards {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.news-list-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}
  /* List items */
.list-item {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  color: #222;
  text-decoration: none;
  font-size: 1em;
  background: #fafafa;
  transition: background 0.2s;
  margin-bottom: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
@media (min-width: 900px) {
  .news-list-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .list-item {
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 1.05em;
  }
}
.list-item:hover {
  background: #f0f0f0;
}
.list-title {
  font-weight: bold;
}
.list-source, .list-time {
  color: #888;
  font-size: 0.95em;
}
  /* Date Header */
  .date-header {
  width: 100%;
  font-size: 1.3em;
  font-weight: bold;
  margin: 30px 0 10px 0;
  color: #333;
  border-bottom: #656565 solid 1px;
  padding: 10px 15px;
}
/* Footer styles */
  footer {
    background-color: #f2f2f2;
    padding: 20px;
    clear: both;
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
  }
  .column {
    flex: 1;
  }
  .column h3 {
    margin-bottom: 10px;
  }
  .column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  .column ul li {
    margin-bottom: 5px;
  }
  .column ul li a {
    color: #333;
    text-decoration: none;
  }
  .column ul li a:hover {
    text-decoration: underline;
  }
  .info-container-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
  }
/* Ad Block */
  .ad-block {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
  }
  .ad-block img {
    width: 100%;
    max-width: 900px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }