/* =========================================================
   RESULTS.CSS (FINAL POLISHED VERSION)
   ========================================================= */

.result-page {
  padding: 40px 15px 70px;
  min-height: 80vh;
}

.result-container {
  max-width: 1300px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  margin-bottom: 35px;
}

.result-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0d5a2d;
  margin-bottom: 10px;
}

.result-header p {
  color: #5b6f63;
  font-size: 16px;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

/* =========================
   🔥 CENTERED CARD LAYOUT
========================= */

.result-page .results-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* =========================
   🔥 CARD DESIGN (IMPROVED)
========================= */

.result-page .result-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff; /* cleaner */
  border: 1px solid rgba(18, 91, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition: 0.28s ease;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.6s ease;
}

.result-page .result-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.06);
}

/* =========================
   🔥 IMAGE (FINAL FIX)
========================= */

.result-image-box {
  width: 100%;
  height: 280px;
  margin-top: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.result-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;          /* 🔥 full image visible */
  border-radius: 12px;          /* 🔥 modern look */
  transition: transform 0.3s ease;
}

/* 🔥 hover zoom */
.result-card:hover img {
  transform: scale(1.04);
}

/* ========================= */

.result-content {
  padding: 18px 18px 22px;
  text-align: center;
}

.result-content h3 {
  font-size: 19px;
  font-weight: 800;
  color: #173e29;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-top: 8px;
  letter-spacing: 0.5px;
  min-height: 58px;
  text-transform: uppercase;
}

.declared-date {
  font-size: 15px;
  color: #0d7ec9;
  font-weight: 700;
  margin-bottom: 16px;
}

/* =========================
   🔥 BUTTON POLISH
========================= */

.result-page .view-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff9800, #ffb300);
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;   /* 🔥 better spacing */
  transition: 0.25s ease;
  box-shadow: 0 10px 25px rgba(255, 152, 0, 0.25);
  border: none;
}

.result-page .view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 152, 0, 0.35);
}

/* ========================= */

.no-results-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(13, 61, 31, 0.06);
}

.no-results-box h3 {
  font-size: 26px;
  color: #0d5a2d;
  margin-bottom: 10px;
}

.no-results-box p {
  color: #5b6f63;
  font-size: 16px;
}

/* ========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .result-page {
    padding: 25px 12px 50px;
  }

  .result-header h1 {
    font-size: 28px;
  }

  .result-header p {
    font-size: 14px;
  }

  .result-image-box {
    height: 180px;
  }

  .result-content h3 {
    font-size: 17px;
    min-height: auto;
  }

  .declared-date {
    font-size: 14px;
  }

  .result-page .view-btn {
    font-size: 14px;
    padding: 10px 18px;
  }
}