/* Container & Loader */
.project-ajax-wrapper {
  background: #ffffff;
  padding: 40px;
  margin: 20px 0 60px 0;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08); /* Soft shadow to make the card pop */
  position: relative;
  border: 1px solid #eee;
}

.project-ajax-loader {
  text-align: center;
  padding: 60px 0;
  font-weight: 500;
  color: #555;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #e8bb00;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Layout Grid */
.project-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Left Side: Image */
.project-image-col {
  width: 100%;
  height: 100%;
  max-height: 450px; /* Prevents tall images from pushing text down */
  overflow: hidden;
  border-radius: 4px;
}

.project-image-col img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Forces image to fill the box beautifully without stretching */
}

/* Right Side: Specs */
.project-specs-col h2 {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 400;
  color: #111;
  font-family: "Inter", Sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.project-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-meta-list li {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
  display: flex;
  font-family: "Inter", Sans-serif;
}

.project-meta-list strong {
  min-width: 170px;
  display: inline-block;
  font-weight: 500;
  color: #555;
}

.project-meta-list span {
  color: #222;
  font-weight: 400;
}

/* Bottom Section */
.project-bottom-col {
  grid-column: 1 / -1; /* Spans across both columns */
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid #eaeaea;
}

.project-description {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 40px;
  font-family: "Inter", Sans-serif;
}

.project-actions {
  display: flex;
  gap: 40px;
}

.project-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 3px solid #e8bb00; /* Yellow underline */
  padding-bottom: 6px;
  transition: all 0.2s ease;
  font-family: "Inter", Sans-serif;
}

.project-btn:hover {
  background-color: #e8bb00;
  color: #fff;
  padding: 6px 12px;
  margin: -6px -12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .project-details-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-ajax-wrapper {
    padding: 20px;
    margin: 10px 0 40px 0;
  }

  .project-actions {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .project-meta-list li {
    flex-direction: column;
    margin-bottom: 12px;
  }

  .project-meta-list strong {
    min-width: auto;
    margin-bottom: 5px;
    color: #888;
    font-size: 14px;
  }
}
