/* ===== PINS & PORTFOLIO STYLES ===== */

/* Projects Grid */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-card {
  flex: 1 1 20rem;
  max-width: 22.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-card-image {
  height: 240px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: #f3f4f6;
}

.project-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-excerpt {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: var(--white);
}

.pagination-link.active {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.pagination-link:hover:not(.active) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pagination-nav {
  padding: 0 0.75rem;
}

/* ===== SINGLE CASE STUDY PAGE ===== */
.case-study-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem 3rem;
  margin-bottom: 2.5rem;
}
.case-study-main {
  display: contents;
}
.case-study-layout h1 {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
  .case-study-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .case-study-layout h1,
  .project-body,
  .project-details-card {
    grid-column: 1;
  }
}

/* Photo Gallery Module */
.project-gallery {
  grid-column: 1 / -1;
  width: 100%;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.project-main-image-container {
  display: none !important;
}

.project-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 0;
  overflow-x: visible;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 1 !important;
  flex-shrink: 0;
}

.project-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-thumb.active {
  border-color: #e5e7eb;
}

/* Project Description Block */
.project-body {
  grid-column: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 2rem;
}

.project-body h3 {
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.project-body p {
  margin-bottom: 1.5rem;
}

/* Project Meta Sidebar Card */
.project-details-card {
  grid-column: 2;
  background: #f9fafb;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 130px;
  align-self: start;
}

.project-details-card h3 {
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.5rem;
  font-weight: 700;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
}

.details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  color: #4b5563;
}

.details-list li:last-child {
  border-bottom: none;
}

.details-list i {
  color: var(--orange);
  margin-top: 0.2rem;
  width: 18px;
  font-size: 1.1rem;
  text-align: center;
}

.details-label {
  font-weight: 700;
  color: var(--blue-dark);
  min-width: 80px;
}

.project-map-box {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-map-img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  display: block !important;
}
