body {
  font-family: "Merriweather", sans-serif;
  line-height: 1;
  font-weight: 400;
  overflow-x: hidden;
  cursor: pointer;
  background-color: rgb(67, 67, 67);
}

.blog {
  padding: 20rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.firm-name {
  color: white;
  font-size: 4rem;
  text-shadow: 0 0 14px black;
  margin-bottom: 5rem;
}

.blog-entry {
  width: 100%;
  height: 50rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-entry h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.blog-entry p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: white;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  max-width: 100%;
  border: 2px solid rgb(97, 97, 234);
  overflow: hidden;
  background: black;
  margin: 0 auto;
  height: 80rem;
}

.video-thumbnail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 25px 0 25px 40px;
  border-color: transparent transparent transparent white;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.video-thumbnail:hover::before {
  opacity: 1;
}

.video-thumbnail video {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.7);
}

/* Overlay styles */
#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 10px;
}

#video-overlay.active {
  display: flex;
}

#video-overlay video {
  width: 100%;
  max-height: 90vh;
}

#close-btn {
  position: fixed;
  top: 125px;
  right: 20px;
  z-index: 1100;
  background: none;
  color: white;
  border: none;
  font-size: 5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.3s;
}

.my-footer {
  border-top: 2px solid white;
}

@media (max-width: 48rem) {
  .blog-entry {
    width: 100%;
    height: 30rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  #video-overlay video {
    width: 100%;
    height: 35rem;
  }

  #close-btn {
    top: 130px;
    right: 20px;
    font-size: 3rem;
  }

  .firm-name {
    color: rgb(97, 97, 234);
    font-size: 2rem;
    text-shadow: 0 0 4px black;
    margin-bottom: 5rem;
  }
}

@media (max-width: 82rem) {
  .blog-entry {
    width: 100%;
    height: 30rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 92rem) {
  #close-btn {
    top: 120px;
    right: 20px;
    font-size: 3rem;
  }
}
