.listing-page {
  background: var(--bg);
}

.lp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 92% -20%, rgba(225, 29, 54, 0.24), transparent 65%),
    radial-gradient(900px 520px at -10% 120%, rgba(20, 87, 168, 0.42), transparent 66%),
    linear-gradient(145deg, #051a3a 0%, #082f60 48%, #0a3a78 100%);
  color: #fff;
  padding: clamp(3.1rem, 6.4vw, 5.2rem) 0 clamp(2.2rem, 4vw, 3rem);
}

.lp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 28%, transparent 88%);
  pointer-events: none;
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.lp-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: rgba(227, 238, 255, 0.78);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.lp-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.lp-breadcrumb a:hover {
  color: #fff;
}

.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.4rem 0.92rem;
  margin-bottom: 1.05rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.lp-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 29, 54, 0.24);
}

.lp-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.45rem);
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.026em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.lp-subtitle {
  margin-top: 1.05rem;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.62;
  color: rgba(227, 238, 255, 0.86);
}

.lp-content {
  padding: 3rem 0 5rem;
}

.lp-card {
  background: #fff;
  border: var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.lp-topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  padding: 1rem;
  margin-bottom: 1.35rem;
}

.lp-topbar-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
}

.lp-search,
.lp-select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d3deef;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 0.92rem;
}

.lp-search:focus,
.lp-select:focus {
  outline: 0;
  border-color: #7ba4d9;
  box-shadow: 0 0 0 3px rgba(29, 90, 171, 0.14);
}

.lp-count {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.66rem 0.85rem;
  border-radius: 11px;
  background: #eef3fb;
  color: var(--navy-1);
  border: 1px solid #d7e3f5;
  font-weight: 700;
}

.lp-count .count-num {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1;
}

.lp-grid-projects,
.lp-grid-news {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.lp-grid-news .news-card {
  min-height: 100%;
}

.lp-gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.lp-gallery-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.lp-gallery-pills button {
  border: 1px solid #cfdbed;
  background: #fff;
  color: var(--navy-1);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 0.9rem;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 180ms ease;
}

.lp-gallery-pills button.active,
.lp-gallery-pills button:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #ea2740, var(--red-2));
}

.lp-grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  grid-auto-flow: row;
}

.lp-gallery-item {
  border-radius: 16px;
  border: 1px solid #d6e0ef;
  overflow: hidden;
  background: #f7f9fd;
  cursor: pointer;
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 24px rgba(11, 35, 73, 0.08);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms ease;
}

.lp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease);
}

.lp-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 56, 0) 44%, rgba(6, 24, 56, 0.72));
  opacity: 0.92;
  transition: opacity 300ms ease;
}

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

.lp-gallery-item:hover::after {
  opacity: 0.5;
}

.lp-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 35, 73, 0.13);
  border-color: #c3d5ef;
}

.lp-gallery-caption {
  position: absolute;
  z-index: 2;
  left: 0.8rem;
  bottom: 0.8rem;
  right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
}

.lp-gallery-caption span:last-child {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.lp-empty {
  border: 1px dashed #ccd9ef;
  border-radius: 14px;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  color: #617797;
  font-weight: 600;
  background: linear-gradient(180deg, #f9fbff, #f4f7fc);
}

.lp-about-shell {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 1.3rem;
}

.lp-about-shell .about-card {
  background: #fff;
  border: var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.lp-about-main img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.lp-about-main h2 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.16rem);
}

.lp-about-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.lp-bullet-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.lp-bullet-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #21395e;
  font-weight: 600;
}

.lp-bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(225, 29, 54, 0.15);
}

.lp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.lp-kpi-item {
  border: 1px solid #d8e2f2;
  border-radius: 13px;
  padding: 1rem 0.85rem;
  background: #f9fbff;
}

.lp-kpi-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.66rem;
  line-height: 1;
}

.lp-kpi-item span {
  display: block;
  margin-top: 0.45rem;
  color: #5e7495;
  font-weight: 700;
  font-size: 0.84rem;
}

.lp-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.lp-mv-card {
  border: 1px solid #d8e2f2;
  border-radius: 13px;
  padding: 1rem;
  background: #fff;
}

.lp-mv-card h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.13rem;
  font-family: var(--font-display);
}

.lp-mv-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.64;
}

.lp-timeline {
  margin-top: 1.2rem;
  border-top: 1px solid #dfe7f5;
  padding-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.lp-timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.lp-timeline-year {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  min-height: 34px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #0d4793, #0a3a78);
}

.lp-timeline-copy strong {
  display: block;
  color: #173459;
  font-size: 0.95rem;
}

.lp-timeline-copy p {
  margin: 0.25rem 0 0;
  color: #607899;
  font-size: 0.89rem;
  line-height: 1.58;
}

.lp-value-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.lp-value-card {
  border: 1px solid #d8e2f2;
  border-radius: 13px;
  padding: 0.9rem;
  background: #f9fbff;
}

.lp-value-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f4e8e;
  background: #e9f1fe;
  margin-bottom: 0.5rem;
}

.lp-value-icon svg {
  width: 17px;
  height: 17px;
}

.lp-value-card h3 {
  margin: 0 0 0.4rem;
  color: #173459;
  font-size: 0.98rem;
  font-family: var(--font-display);
}

.lp-value-card p {
  margin: 0;
  color: #5d7698;
  font-size: 0.86rem;
  line-height: 1.55;
}

.lp-impact-strip {
  margin-top: 1rem;
  border: 1px solid #d8e2f2;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
  border-radius: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.lp-impact-item {
  padding: 0.9rem 0.8rem;
  border-right: 1px solid #dbe5f4;
}

.lp-impact-item:last-child {
  border-right: 0;
}

.lp-impact-item strong {
  display: block;
  color: #0d2f5e;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1;
}

.lp-impact-item span {
  display: block;
  margin-top: 0.34rem;
  color: #5d7495;
  font-weight: 650;
  font-size: 0.78rem;
}

.lp-about-cta {
  margin-top: 1.2rem;
  border: 1px solid #d7e1f2;
  border-radius: 18px;
  background:
    radial-gradient(560px 180px at 100% 0%, rgba(36, 101, 188, 0.14), transparent 68%),
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.lp-about-cta-copy h3 {
  margin: 0;
  color: #122f59;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
}

.lp-about-cta-copy p {
  margin: 0.44rem 0 0;
  color: #5e7596;
  line-height: 1.62;
  font-size: 0.9rem;
}

.lp-about-cta-actions {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lp-about-cta-actions .btn {
  min-height: 42px;
  padding-inline: 1.1rem;
}

.lp-about-cta-actions .btn-outline-light {
  border-color: #c9d9ef;
  color: #11407f;
  background: #fff;
}

.lp-about-cta-actions .btn-outline-light:hover {
  border-color: #11407f;
  background: #11407f;
  color: #fff;
}

.lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 38, 0.88);
  backdrop-filter: blur(6px);
}

.lp-lightbox.open {
  display: flex;
}

.lp-lightbox-inner {
  width: min(1120px, calc(100% - 2rem));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  background: #000;
  position: relative;
}

.lp-lightbox-inner img {
  width: 100%;
  height: min(74vh, 860px);
  object-fit: contain;
  background: #030a1a;
}

.lp-lightbox-close,
.lp-lightbox-nav {
  position: absolute;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(6, 24, 56, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lp-lightbox-close {
  right: 0.8rem;
  top: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.45rem;
  line-height: 1;
}

.lp-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.3rem;
}

.lp-lightbox-nav.prev {
  left: 0.8rem;
}

.lp-lightbox-nav.next {
  right: 0.8rem;
}

.lp-lightbox-meta {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  right: 0.8rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  background: rgba(4, 15, 35, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .lp-grid-projects,
  .lp-grid-news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-grid-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .lp-about-shell {
    grid-template-columns: 1fr;
  }

  .lp-grid-projects,
  .lp-grid-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-topbar-controls {
    grid-template-columns: 1fr;
  }

  .lp-count {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .lp-content {
    padding: 2rem 0 3.3rem;
  }

  .lp-title {
    font-size: clamp(1.72rem, 8.6vw, 2.4rem);
  }

  .lp-subtitle {
    font-size: 0.98rem;
  }

  .lp-grid-projects,
  .lp-grid-news,
  .lp-grid-gallery {
    grid-template-columns: 1fr;
  }

  .lp-kpi-grid,
  .lp-mv-grid {
    grid-template-columns: 1fr;
  }

  .lp-value-grid {
    grid-template-columns: 1fr;
  }

  .lp-impact-strip {
    grid-template-columns: 1fr;
  }

  .lp-impact-item {
    border-right: 0;
    border-bottom: 1px solid #dbe5f4;
  }

  .lp-impact-item:last-child {
    border-bottom: 0;
  }

  .lp-about-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .lp-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lp-lightbox-inner img {
    height: min(66vh, 620px);
  }
}

/* ======================================================
   V2 Premium Listing Upgrade
   ====================================================== */

.lp-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  gap: 1.4rem;
  align-items: end;
}

.lp-hero-inner {
  max-width: 100%;
}

.lp-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 0.9rem;
}

.lp-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
}

.lp-hero-btn {
  min-height: 46px;
  border-radius: 11px;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  text-transform: uppercase;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.lp-hero-btn .lp-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-hero-btn .lp-btn-icon svg {
  width: 14px;
  height: 14px;
}

.lp-hero-btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #f52f4b, #d91533);
  box-shadow: 0 10px 24px rgba(225, 29, 54, 0.35);
}

.lp-hero-btn.primary .lp-btn-icon {
  background: rgba(255, 255, 255, 0.17);
}

.lp-hero-btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(6, 28, 62, 0.32);
}

.lp-hero-btn.ghost .lp-btn-icon {
  background: rgba(255, 255, 255, 0.1);
}

.lp-hero-btn:hover {
  transform: translateY(-2px);
}

.lp-hero-stats {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.lp-hero-stat {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.58rem;
  align-items: center;
  padding: 0.52rem 0.58rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 23, 52, 0.32);
}

.lp-hero-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lp-hero-stat-icon svg {
  width: 16px;
  height: 16px;
}

.lp-hero-stat-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1;
  color: #fff;
}

.lp-hero-stat-copy span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: rgba(233, 241, 255, 0.84);
  font-weight: 650;
}

.lp-topbar {
  position: relative;
  overflow: hidden;
}

.lp-topbar::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0a3a78, #2e6bb8 45%, #ea2740);
}

.lp-topbar-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: clamp(1.24rem, 2vw, 1.55rem);
}

.lp-topbar-heading p {
  margin: 0.38rem 0 0;
  color: #667f9f;
  font-weight: 520;
  font-size: 0.93rem;
}

.lp-search,
.lp-select {
  border-color: #c6d6ed;
  background: linear-gradient(180deg, #fff, #fbfdff);
  font-weight: 600;
}

.lp-search::placeholder {
  color: #8ea4c1;
}

.lp-premium-card {
  border-color: #cfdbed;
  box-shadow: 0 14px 28px rgba(16, 51, 99, 0.08);
}

.lp-premium-card:hover {
  box-shadow: 0 20px 36px rgba(10, 48, 95, 0.14);
}

.lp-project-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem 0.8rem;
  margin-bottom: 0.58rem;
}

.lp-project-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 760;
  color: #4f6789;
}

.lp-project-metrics span svg {
  width: 14px;
  height: 14px;
  color: #275c9f;
}

.lp-project-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d9e4f4;
  background: #edf3fb;
  margin-bottom: 0.92rem;
}

.lp-project-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a4d9d, #ea2740 85%);
}

.lp-news-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.42rem 0.85rem;
  margin-bottom: 0.9rem;
  padding-top: 0.76rem;
  border-top: 1px solid #dfe8f6;
}

.lp-news-meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #637d9e;
}

.lp-news-meta-strip span svg {
  width: 13px;
  height: 13px;
  color: #486b9a;
}

.lp-gallery-item.normal {
  grid-column: auto;
  grid-row: auto;
}

.lp-gallery-item.wide {
  grid-column: auto;
  grid-row: auto;
}

.lp-gallery-item.tall {
  grid-column: auto;
  grid-row: auto;
}

.lp-gallery-caption span:last-child {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.lp-gallery-caption span:last-child svg {
  width: 14px;
  height: 14px;
}

.lp-kpi-item {
  position: relative;
  overflow: hidden;
}

.lp-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e4f90;
  background: #e8f0fe;
  margin-bottom: 0.52rem;
}

.lp-kpi-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1180px) {
  .lp-hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lp-hero-panel {
    max-width: 560px;
  }
}

@media (max-width: 980px) {
  .lp-topbar-heading p {
    font-size: 0.88rem;
  }

  .lp-grid-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lp-hero-panel {
    padding: 0.78rem;
    border-radius: 14px;
  }

  .lp-hero-actions {
    grid-template-columns: 1fr;
  }

  .lp-hero-btn {
    min-height: 44px;
    font-size: 0.78rem;
  }

  .lp-hero-stat {
    grid-template-columns: 28px 1fr;
  }

  .lp-hero-stat-copy strong {
    font-size: 1rem;
  }

  .lp-gallery-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .lp-gallery-toolbar .lp-count {
    justify-self: start;
  }

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

  .lp-gallery-item.wide,
  .lp-gallery-item.tall,
  .lp-gallery-item.normal {
    grid-column: auto;
    grid-row: auto;
  }

  .lp-project-metrics {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-news-meta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .lp-grid-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) and (min-width: 721px) {
  .lp-grid-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   V4.1 — Mobile listing pages (single-card swipe rails)
   ========================================================= */
@media (max-width: 720px) {
  .lp-topbar {
    padding: 0.65rem 0;
  }

  .lp-topbar-heading p {
    font-size: 0.8rem;
    max-width: 30ch;
  }

  .lp-hero {
    padding: 4.8rem 0 2.05rem;
  }

  .lp-hero-panel {
    padding: 0.86rem;
    border-radius: 14px;
  }

  .lp-hero-layout {
    gap: 0.8rem;
  }

  .lp-content {
    padding: 1.75rem 0 2.75rem;
  }

  .lp-gallery-pills {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    width: 100%;
    gap: 0.45rem;
    padding-bottom: 0.2rem;
  }

  .lp-gallery-pills::-webkit-scrollbar {
    display: none;
  }

  .lp-grid-projects,
  .lp-grid-news,
  .lp-grid-gallery {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
    padding: 0.1rem 0.05rem 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .lp-grid-projects::-webkit-scrollbar,
  .lp-grid-news::-webkit-scrollbar,
  .lp-grid-gallery::-webkit-scrollbar {
    display: none;
  }

  .lp-grid-projects > .project-card,
  .lp-grid-news > .news-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .lp-grid-gallery > .lp-gallery-item {
    flex: 0 0 88%;
    min-width: 88%;
    max-width: 88%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    aspect-ratio: 4 / 3;
  }

  .lp-gallery-toolbar .lp-count {
    justify-self: start;
  }

  .lp-project-metrics,
  .lp-news-meta-strip {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* =========================================================
   V6 — Listing pages corporate polish
   ========================================================= */

.lp-hero {
  background:
    linear-gradient(135deg, #061d42 0%, #063a78 54%, #0f6d79 100%);
}

.lp-title {
  letter-spacing: 0;
}

.lp-hero-panel,
.lp-topbar,
.lp-premium-card,
.lp-news-card,
.lp-gallery-item,
.lp-about-card,
.lp-about-cta {
  border-radius: 8px;
  border-color: rgba(219, 229, 241, 0.95);
  box-shadow: 0 10px 26px rgba(7, 23, 47, 0.08);
}

.lp-hero-stat,
.lp-hero-btn,
.lp-search,
.lp-select,
.lp-count,
.lp-gallery-pill {
  border-radius: 8px;
}

.lp-hero-btn.primary {
  background: linear-gradient(135deg, #d91f35, #b91529);
}

.lp-topbar {
  position: relative;
  overflow: hidden;
}

.lp-topbar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #d91f35, #0f8b7d);
}

.lp-search,
.lp-select {
  min-height: 46px;
}

.lp-premium-card,
.lp-news-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.lp-premium-card:hover,
.lp-news-card:hover {
  border-color: rgba(6, 58, 120, 0.22);
  transform: translateY(-4px);
}

@media (max-width: 980px) {
  .lp-hero-layout {
    grid-template-columns: 1fr;
  }

  .lp-hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lp-hero-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .lp-hero {
    padding-block: 2.2rem 1.6rem;
  }

  .lp-title {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .lp-topbar {
    padding: 1rem;
  }

  .lp-topbar-controls {
    gap: 0.65rem;
  }

  .lp-grid-projects > .project-card,
  .lp-grid-news > .news-card {
    flex: 0 0 88%;
    min-width: 88%;
    max-width: 88%;
  }

  .lp-grid-gallery > .lp-gallery-item {
    flex: 0 0 82%;
    min-width: 82%;
    max-width: 82%;
  }
}

@media (max-width: 430px) {
  .lp-hero-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V8 - Listing/detail surface QA lock
   ========================================================= */

.listing-page {
  background: #f5f8fc;
}

.listing-page .lp-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.09), transparent 24rem),
    linear-gradient(120deg, #07172f 0%, #07376f 58%, #0f6d79 100%) !important;
  color: #fff;
  padding-top: clamp(7.1rem, 10vw, 8.6rem);
  padding-bottom: clamp(2.8rem, 6vw, 4.4rem);
}

.listing-page .lp-title {
  color: #fff !important;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.listing-page .lp-subtitle,
.listing-page .lp-breadcrumb,
.listing-page .lp-breadcrumb a,
.listing-page .lp-kicker,
.listing-page .lp-kicker span {
  color: rgba(255, 255, 255, 0.84) !important;
}

.listing-page .lp-kicker {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.listing-page .lp-hero-panel {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.54) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14) !important;
}

.listing-page .lp-content {
  background: #f5f8fc !important;
}

.listing-page .lp-topbar {
  background: #fff !important;
  border: 1px solid rgba(204, 218, 235, 0.92) !important;
  box-shadow: 0 16px 36px rgba(7, 23, 47, 0.07) !important;
}

.lp-grid-projects,
.lp-grid-news {
  align-items: stretch;
}

.lp-grid-projects > *,
.lp-grid-news > * {
  min-width: 0;
}

.lp-grid-gallery {
  align-items: stretch;
}

.lp-gallery-item {
  min-height: 240px;
}

.lp-gallery-item img {
  transform: scale(1.001);
}

.lp-lightbox[aria-hidden="true"] {
  pointer-events: none;
}

.lp-lightbox-inner {
  outline: none;
}

@media (max-width: 720px) {
  .listing-page .lp-hero {
    padding-top: 5.9rem !important;
    padding-bottom: 1.8rem !important;
  }

  .listing-page .lp-title {
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    line-height: 1.04 !important;
  }

  .lp-grid-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  .lp-grid-gallery > .lp-gallery-item {
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    scroll-snap-align: none !important;
  }
}

/* =========================================================
   V9 - Gallery card image fill reset
   ========================================================= */

.lp-gallery-item,
.lp-gallery-item:hover {
  padding: 0 !important;
  transform: none !important;
}

.lp-gallery-item img,
.lp-gallery-item:hover img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  transform: none !important;
  transition: none !important;
}
