/*!---------- NEWDESIGN2 PROJECTS PAGE ----------
   Loaded AFTER newdesign2.css and newdesign2-inner.css (projects.html only).
   Featured project cards, category filter bar and the additional-projects grid.
   Reuses .project-card from newdesign2.css for the grid so it matches the
   homepage slider.
*/

/* ---- Featured project cards (large, horizontal) ---- */
.feature-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:last-child { margin-bottom: 0; }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.feature-card.reverse { flex-direction: row-reverse; }

.feature-card-image {
  position: relative;
  flex: 0 0 52%;
  min-height: 400px;
  overflow: hidden;
  background: #17181a;
}

.feature-card-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-card-image img { transform: scale(1.04); }

.feature-card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #c8232c;
  color: #fff;
  border-radius: 2px;
  padding: 7px 14px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px;
}

.feature-card-meta {
  display: block;
  margin-bottom: 14px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c8232c;
}

.feature-card-meta i { margin-right: 6px; }

.feature-card-body h3 {
  font-size: 30px;
  line-height: 38px;
  margin-bottom: 16px;
}

.feature-card-body p {
  font-size: 18px;
  line-height: 29px;
  margin-bottom: 28px;
}

.feature-card-body .btn { align-self: flex-start; margin: 0; }

@media (max-width: 991px) {
  .feature-card,
  .feature-card.reverse { flex-direction: column; }
  .feature-card-image { flex: 0 0 auto; min-height: 0; padding-bottom: 62%; }
  .feature-card-body { padding: 30px 26px 32px; }
  .feature-card-body h3 { font-size: 26px; line-height: 34px; }
}

/* ---- Category filter bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.filter-bar li { margin: 0 4px 10px; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
  border: 1px solid #d6d6d6;
  border-radius: 40px;
  background: #fff;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: #c8232c; color: #c8232c; }

.filter-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(200, 35, 44, 0.25); }

.filter-btn .count {
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 20px;
  background: #f0f0f0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  color: #444;
}

.filter-btn.is-active,
.filter-btn.is-active:hover {
  background: #c8232c;
  border-color: #c8232c;
  color: #fff;
}

.filter-btn.is-active .count { background: rgba(255, 255, 255, 0.22); color: #fff; }

.filter-status {
  text-align: center;
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 22px;
  color: #555;
}

/* ---- Additional projects grid ---- */
.project-grid { display: flex; flex-wrap: wrap; }

.project-grid > .project-item {
  display: flex;
  margin-bottom: 30px;
}

.project-grid > .project-item.is-hidden { display: none; }

.project-grid > .project-item.is-entering { animation: projectIn 0.35s ease both; }

@keyframes projectIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.project-grid .project-card { width: 100%; }

.project-card-category {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b6b6b;
}

.project-card-body p:last-of-type { margin-bottom: 20px; }

.project-empty {
  display: none;
  padding: 40px 20px;
  text-align: center;
}

.project-empty.is-visible { display: block; }

@media (prefers-reduced-motion: reduce) {
  .project-grid > .project-item.is-entering { animation: none; }
  .feature-card, .feature-card-image img { transition: none; }
}

/* ---- Apply page ---- */
.apply-card { padding: 28px 28px 8px; }
.apply-card iframe { display: block; width: 100%; border: 0; }

.apply-note {
  margin: 28px 0 0;
  padding: 22px 26px;
  border-left: 4px solid #c8232c;
  background: #fff;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.apply-note p { font-size: 16px; line-height: 26px; margin: 0; }

@media (max-width: 767px) {
  .apply-card { padding: 14px 8px 0; }
}

/* ---- Project value / status stats ---- */
.feature-card-stats { display: flex; flex-wrap: wrap; margin: 0 -8px 28px; }
.feature-card-stats > div {
  flex: 1 1 160px;
  margin: 0 8px 12px;
  padding: 14px 18px;
  border-left: 4px solid #c8232c;
  background: #f6f6f6;
  border-radius: 0 4px 4px 0;
}
.feature-card-stats .stat-label {
  display: block;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b6b6b;
}
.feature-card-stats .stat-value {
  display: block;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: #111;
}
.project-card-stats {
  display: block;
  margin-bottom: 18px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  color: #111;
}
.feature-card-body h3 { font-size: 28px; line-height: 36px; }
.feature-card-body p { font-size: 17px; line-height: 27px; margin-bottom: 22px; }

/* ---- Project detail page: "at a glance" tiles ---- */
.glance-item {
  width: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-top: 4px solid #c8232c;
  border-radius: 6px;
  padding: 26px 24px;
}
.glance-item i { display: block; margin-bottom: 12px; font-size: 24px; color: #c8232c; }
.glance-label {
  display: block;
  margin-bottom: 6px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b6b6b;
}
.glance-value {
  display: block;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #111;
}
.on-dark .stat-box strong { display: block; font-size: 28px; line-height: 34px; font-family: "IBM Plex Sans", Arial, sans-serif; }

/* ---- Project photo gallery (lightbox) ---- */
.gallery-row { display: flex; flex-wrap: wrap; }
.gallery-row > [class*="col-"] { margin-bottom: 30px; }

.gallery-item {
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden;
  border-radius: 6px;
  background: #17181a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

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

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

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}

@media (max-width: 767px) { .gallery-item { height: 260px; } }
