/* document-detail.css */

.main-content-document-detail {
  margin-top: 1.5rem;
}

.document-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.document-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.document-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.document-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.document-author {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1rem;
}

.document-author span {
  font-weight: bold;
}

.document-details-box {
  background-color: #f7f7f7;
  border-right: 3px solid #e67e22;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.document-details-box p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.8;
}

/* Updated CSS for the download button alignment */
.document-full-description {
  background-color: #fff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  /* Make the container a flexbox to allow for alignment adjustments */
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 60px; /* Adjust padding to prevent overlap with the floated button */
}

.description-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.download-full-btn {
  /* Position the button at the bottom-left corner of its container */
  position: absolute;
  bottom: 2rem;
  left: 2rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: #2c3e50;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.download-full-btn:hover {
  background-color: #34495e;
}

.download-full-btn i {
  margin-right: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .document-detail-grid {
    grid-template-columns: 1fr;
  }
  .document-image-container {
    order: 2;
  }
  .document-info {
    order: 1;
    text-align: center;
  }
  .download-full-btn {
    left: 50%;
    transform: translateX(-50%);
  }
}
