@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg-1: #f5f9fd;
  --bg-2: #eaf2fb;
  --ink-1: #1b2a3a;
  --ink-2: #4d6275;
  --brand-1: #0d3a63;
  --brand-2: #1f6aa8;
  --teal: #34b8c5;
  --line: #d5e1ec;
  --card-line: rgba(13, 58, 99, 0.13);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 580px at 80% -10%, rgba(52, 184, 197, 0.18), transparent 70%),
    radial-gradient(900px 500px at 15% 95%, rgba(31, 106, 168, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--ink-1);
  min-height: 100vh;
}

.site-header {
  position: relative;
  color: #fff;
  padding: 1.6rem 1.5rem 1.9rem;
  overflow: hidden;
  background: linear-gradient(130deg, #0a3458 0%, #1a5f94 52%, #2791b0 100%);
}

.header-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 50%),
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 16px
    );
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo img {
  display: block;
  width: 188px;
  height: auto;
}

.header-text {
  max-width: 500px;
  text-align: right;
}

.header-sub {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.main-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem 2.4rem;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section-label {
  width: fit-content;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-1);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
}

.search-wrap {
  width: min(370px, 100%);
}

.search-input {
  width: 100%;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid #c9d9e8;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 0.95rem;
  font-size: 0.9rem;
  color: #1d3246;
  box-shadow: 0 2px 8px rgba(13, 58, 99, 0.08) inset;
}

.search-input:focus {
  outline: none;
  border-color: #5ea3d4;
  box-shadow: 0 0 0 3px rgba(94, 163, 212, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.no-results {
  grid-column: 1 / -1;
  border: 1px dashed #a9bed4;
  border-radius: 14px;
  color: #5e7288;
  font-size: 1rem;
  text-align: center;
  padding: 2.2rem 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.result-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  background: linear-gradient(170deg, #ffffff 0%, #f9fcff 100%);
  border-radius: 14px;
  border: 1px solid var(--card-line);
  box-shadow:
    0 8px 20px rgba(10, 52, 88, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  animation: card-reveal 520ms ease forwards;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.result-card:nth-child(2) { animation-delay: 70ms; }
.result-card:nth-child(3) { animation-delay: 120ms; }
.result-card:nth-child(4) { animation-delay: 160ms; }
.result-card:nth-child(5) { animation-delay: 200ms; }
.result-card:nth-child(6) { animation-delay: 240ms; }

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 52, 88, 0.15);
  border-color: rgba(31, 106, 168, 0.42);
}

.card-body {
  padding: 1rem 1.2rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f4f7f;
  background: linear-gradient(120deg, #d9f2f5, #e9f5ff);
  border: 1px solid #c0e4ef;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
}

.card-date {
  font-size: 0.74rem;
  font-weight: 600;
  color: #3e6383;
  background: #eef4fa;
  border: 1px solid #d4e2ef;
  border-radius: 999px;
  padding: 0.26rem 0.66rem;
}

.card-title {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0e3e67;
  margin-bottom: 0.56rem;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.91rem;
  color: var(--ink-2);
  line-height: 1.62;
}

.card-side {
  min-width: 176px;
  border-left: 1px solid #e3edf6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.card-keywords {
  display: none;
}

.card-link {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--brand-2);
}

.card-link .arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.result-card:hover .card-link .arrow {
  transform: translateX(4px);
}

.search-empty {
  border: 1px dashed #a9bed4;
  border-radius: 14px;
  color: #5e7288;
  font-size: 0.98rem;
  text-align: center;
  padding: 1.4rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  margin-top: 0.95rem;
}

.site-footer {
  text-align: center;
  padding: 1.6rem 1rem 2rem;
  color: #627a91;
  font-size: 0.88rem;
  border-top: 1px solid rgba(112, 147, 180, 0.3);
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 1.2rem 1rem 1.4rem;
  }

  .header-logo img {
    width: 156px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .header-text {
    max-width: none;
    text-align: left;
  }

  .main-content {
    margin-top: 0;
    padding: 1rem 1rem 1.8rem;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .search-wrap {
    width: 100%;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .card-side {
    min-width: 0;
    border-left: 0;
    border-top: 1px solid #e3edf6;
    justify-content: flex-start;
    padding: 0.72rem 1.2rem 0.85rem;
  }
}