/* ── IMPACT DETAIL PAGE STYLES (Template 2: Table + Gallery) ── */

:root {
  --navy: #003366;
  --navy-deep: #0f2a4a;
  --gold: #c8a84b;
  --green: #4caf50;
  --orange: #f05423;
  --blue-accent: #3498db;
  --bg-gray: #f8fafd;
  --muted: #6b7c75;
  --border: #eef2f5;
}

/* ── HERO ────────────────────────────────────── */
.id-hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600&q=80') center/cover no-repeat;
  padding: 120px 80px;
  color: #fff;
}

.id-hero-olive {
  background-image: url('https://images.unsplash.com/photo-1474979266404-7eaacbcd87d5?w=1600&q=80');
}

.id-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.88) 0%, rgba(15, 42, 74, 0.6) 100%);
  z-index: 1;
}

.id-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.id-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 168, 75, 0.9);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.id-hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff;
}

.id-hero-title {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  font-weight: 950;
  line-height: 1.1;
  margin-bottom: 20px;
}

.id-hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  line-height: 1.7;
}

/* ── STATS ROW ──────────────────────────────── */
.id-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
  padding: 0 80px;
}

.id-stat-item {
  background: #fff;
  padding: 35px 30px;
  text-align: center;
  border-right: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.id-stat-item:first-child {
  border-radius: 12px 0 0 12px;
}

.id-stat-item:last-child {
  border-radius: 0 12px 12px 0;
  border-right: none;
}

.id-stat-val {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.id-stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* ── DATA TABLE ─────────────────────────────── */
.id-table-section {
  padding: 100px 80px;
  background: var(--bg-gray);
}

.id-table-container {
  max-width: 1200px;
  margin: 0 auto;
}

.id-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.id-table-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy-deep);
  position: relative;
}

.id-table-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.id-last-update {
  background: #fff;
  padding: 8px 16px;
  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;
}

.id-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

.id-table th {
  padding: 20px 30px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: #f0f2f5;
  border-bottom: 2px solid #eee;
}

.id-table td {
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #444;
}

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

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

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

.status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.status-badge.green {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.blue {
  background: #e3f2fd;
  color: #1565c0;
}

.status-badge.orange {
  background: #fff3e0;
  color: #e65100;
}

/* ── GALLERY ────────────────────────────────── */
.id-gallery {
  padding: 100px 80px;
  text-align: center;
}

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

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

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

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

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

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .id-hero { padding: 100px 40px; }
  .id-stats-row { padding: 0 40px; }
  .id-table-section { padding: 80px 40px; }
  .id-gallery { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .id-hero {
    padding: 60px 20px;
  }

  .id-hero-title {
    font-size: 2rem;
  }

  .id-stats-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    margin-top: -30px;
  }

  .id-stat-item {
    padding: 25px 20px;
  }

  .id-stat-item:first-child { border-radius: 12px 0 0 0; }
  .id-stat-item:nth-child(2) { border-radius: 0 12px 0 0; border-right: none; }
  .id-stat-item:nth-child(3) { border-radius: 0 0 0 12px; }
  .id-stat-item:last-child { border-radius: 0 0 12px 0; }

  .id-stat-val {
    font-size: 1.6rem;
  }

  .id-table-section {
    padding: 60px 20px;
  }

  .id-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .id-table-header h2 {
    font-size: 1.5rem;
  }

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

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

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

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