
.blog { 
  margin-bottom: 5%; 
  margin-top: 10%;
  min-height: 80vh;
}

#myButton {
  color: #d5d0d0;
  font-weight: 300;
  font-size: large;
  font-weight: 400;
  text-transform: uppercase;
  background-color: #000;
  border: none;
}

#myButton:hover {color: hsl(45, 100%, 72%);}

.popup {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: none;
}
.popup-content {
  background-color: rgb(16, 15, 15);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888888;
  width: 30%;
  font-weight: bolder;
  position: relative;
  text-align: center;
}

.popup-content button,
.popup-content input[type="email"] {
  display: inline-block; 
  vertical-align: middle;
  background-color: hsl(0, 0%, 22%);
  width: 300px;
  height: 50px;
  border-radius: 5px;
  color: #fff;
  margin: 10px auto;
  /* border-color: none; */
}
.popup-content h3 { font-size: 25px; color:green }

.popup-input[type="email"]:focus { border-color:hsl(45, 100%, 72%); }

.popup-input[type="email"]:focus:invalid { border-color: hsl(0, 43%, 51%); }

.popup-content .popup-input[type="email"]:valid { border-color: hsl(45, 100%, 72%); }

#popup-subscribe-btn:hover { color: hsl(45, 100%, 72%); }


#popup-subscribe-btn{
  background-color: hsl(0, 0%, 25%);  
  color: hsl(0, 0%, 84%);
  width:150px;
  height: 50px;
  border-radius: 5px;
  margin-left: 5%;
}

#popup-subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
}
.show { display: block; }

.filter-list { 
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 10px;
  margin-bottom: 60px;
}

.filter-item button {
  background-color: hsl(0, 0%, 25%);  
  color: hsl(0, 0%, 84%);
  width: 200px;
  height: 50px;
  border-radius: 5pc;
  cursor: pointer;
}

.filter-item button.active {
  background-color: hsl(0, 0%, 25%);
  color: hsl(45, 100%, 72%);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* center the grid within the page */
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;

  /* center the grid and give both sides equal breathing room */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;   /* horizontal page gutter */
  padding-right: 24px;

  /* kill bullet indent so nothing shifts right */
  list-style: none;
}

.blog-item > a {
  position: relative;
  background: hsla(0, 0%, 25%, 0);
  height: 100%;
  box-shadow: hsla(0, 0%, 0%, 0.15);
  border-radius: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.blog-item > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgb(23, 22, 22);
  z-index: -1;
}

.blog-banner-box {
  width: 100%;
  height: 250px;
  border-radius:5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
}

.blog-item > a:hover .blog-banner-box img { transform: scale(1.1); }

.blog-content { 
  padding: 15px; 
  flex-grow: 1;
  margin-top: auto; 
}

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
}

.blog-meta .blog-category,
.blog-meta time {
  color: hsla(0, 0%, 84%, 0.7);
  font-size: 14px;
  font-weight: 300;
  bottom: 20px;
  position: absolute;
  right: 30px;
}

a { text-decoration: none; }


.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: 0.25s ease;
  color: #fff;
}

.blog-item > a:hover .blog-item-title { 
  color: hsl(45, 100%, 72%); 
}

/* Toolbar just under the navbar on blog page */
.blog-toolbar{
  display:flex;
  justify-content:flex-end;   /* right aligned */
  align-items:center;
  gap: 24px;
  margin: 8px 0 24px;         /* sits nicely under your fixed navbar */
}

.blog-toolbar .connect-link,
.blog-toolbar .subscribe-link{
  background: none;
  border: 0;
  text-transform: uppercase;
  font-size: large;
  font-weight: 400;
  color: #d5d0d0;
  cursor: pointer;
  padding: 0;
}

.blog-toolbar .connect-link:hover,
.blog-toolbar .subscribe-link:hover{
  color: hsl(45, 100%, 72%);
}





