/* ── COMPONENT TABLE LAYOUT (Template 2) ── */

/* ── TABLE UPDATE BADGE ─────────────────────── */
.table-update-badge {
  background: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-deep);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  white-space: nowrap;
}

/* ── DATA TABLE ─────────────────────────────── */
.ct-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.ct-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #fff;
}

.ct-table th {
  padding: 18px 22px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted, #6b7c75);
  background: #f8fafd;
  border-bottom: 2px solid #eef2f5;
}

.ct-table td {
  padding: 20px 22px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.9rem;
  color: #555;
  vertical-align: middle;
}

.ct-table tr:hover {
  background: #fafbfd;
}

.ct-table tr:last-child td {
  border-bottom: none;
}

.td-name {
  font-weight: 700;
  color: var(--navy-deep, #0f2a4a);
}

/* Status Badges */
.ct-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ct-status.in-progress {
  background: #e3f2fd;
  color: #1565c0;
}

.ct-status.planning {
  background: #fff3e0;
  color: #e65100;
}

.ct-status.completed {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Progress Bar in Table */
.ct-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.ct-progress-bar {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.ct-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #c8a84b, #d4b06a);
  transition: width 1s ease;
}

.ct-progress-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-deep, #0f2a4a);
  min-width: 35px;
}

/* ── GALLERY ────────────────────────────────── */
.ct-gallery {
  padding: 100px 80px;
  text-align: center;
  background: #f8fafd;
}

.ct-gallery h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--navy-deep, #0f2a4a);
  margin-bottom: 60px;
}

.ct-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.ct-gallery-img {
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.ct-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ct-gallery-img:hover img {
  transform: scale(1.05);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .ct-gallery {
    padding: 80px 40px;
  }
}

@media (max-width: 768px) {
  .ct-table-wrap {
    max-width: calc(100vw - 40px);
    -webkit-overflow-scrolling: touch;
  }

  .ct-gallery {
    padding: 60px 20px;
  }

  .ct-gallery-grid {
    grid-template-columns: 1fr;
  }

  .ct-gallery-img {
    height: 250px;
  }
}
