* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  padding: 10px;
  overflow-x: hidden;
}

.blog2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  max-width: 100%;
  width: 100%;
  margin: 40px auto;
  align-items: stretch;
  overflow: hidden;
}

.blog2-box:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px 0 0 15px;
  display: block;
}

.blog2-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}


.heading1 {
  color: #334960;
  font-size: 20px;
  margin-bottom: 10px;
  width: auto;
}

.blog2-box p {
  text-align: left;
  color: #334960;
  font-size: clamp(14px, 2vw, 17px);
  width: auto;
}

.button-2 {
  background-color: #0e2943;
  border-radius: 7px;
  padding: 6px 15px;
  border: none;
  color: white;
  font-size: 15px;
  margin-top: 10px;
  align-self: flex-start;
  transition: 0.3s ease;
}

.button-2:hover {
  transform: perspective(500px) translateZ(20px);
}

/* Medium Screens */
@media (max-width: 900px) {
  .blog2 {
    grid-template-columns: 1fr;
  }

  .blog2-box:first-child img {
    border-radius: 15px;
    height: auto;
  }
}

/* Small Screens */
@media (max-width: 500px) {
  .blog2-box {
    padding: 15px 10px;
  }

  .button-2 {
    font-size: 14px;
    padding: 5px 10px;
  }
}
