@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  background-color: white;
  width: 730px;
  height: 280px;
  margin: 40px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card {
  display: flex;
  height: 100%;
  width: 100%;
}
.image img {
  width: 285px;
  height: 280px;
  object-fit: cover;
  display: block;
}
.header {
  display: flex;
  align-items: center;
}
.image {
  flex: 1;
}
.content {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* text */
.Intro h1 {
  font-family: Manrope;
  font-weight: 900;
  font-size: 20px;
  color: #48556a;
  line-height: 130%;
  letter-spacing: 0.25%;
  margin-bottom: 24px;
}
.description p {
  font-family: Manrope;
  font-weight: 500;
  font-size: 13px;
  color: #6E8098;
  line-height: 140%;
  letter-spacing: 0.12%;
  margin-bottom: 24px;
}

.author h3 {
  font-family: Manrope;
  font-weight: 900;
  font-size: 13px;
  color: #48556A;
  line-height: 140%;
  letter-spacing: 0.12%;
}
.author p {
  font-family: Manrope;
  font-weight: 400;
  font-size: 13px;
  color: #9daec2;
  line-height: 140%;
  letter-spacing: 0.12%;
}
.author h3,
.author p {
  margin: 0;
  height: auto;
  width: auto;
}
.author img {
  border-radius: 50%;
  height: 40px;
  width: 40px;
}
.author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.author-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Share button and popup */
nav#share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 128, 152, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  outline: none;
}
nav#share-btn.active,
nav#share-btn:active {
  background: #6E8098;
}

nav#share-btn img {
  width: 18px;
  height: 18px;
  filter: none;
}

.share-popup {
  display: none;
  position: absolute;
  right: 0;
  bottom: 50px;
  background: #48556A;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 10;
  min-width: 120px;
  gap: 16px;
  align-items: center;
}

nav#share-btn.active .share-popup {
  display: flex;
}

.share-popup img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); 
  cursor: pointer;
}

/* Responsive tablet*/
@media (max-width: 601px) and (max-width: 900px) {
  .container {
    width: 95vw;
    height: 580px; /* Adjust height for mobile */
  }
  .card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .image img {
    width: 285px;
    height: 580px;
    overflow: cover;
  }
  /*.content {
    padding: 16px;
    width: 100%;
  }*/
}
/* Responsive mobile */
@media (max-width: 600px) {
  .container {
    width: 95vw;
    height: auto;
  }
  .card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }}
