﻿:root {
  --bg: #0b3b8c;
  --bg-soft: #0f5fc7;
  --card: #ffffff;
  --text: #10213d;
  --muted: #49617f;
  --brand: #f4c414;
  --brand-2: #1f73e0;
  --line: #c9daf8;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(11, 59, 140, 0.20);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 115, 224, 0.32) 0%, transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(244, 196, 20, 0.45) 0%, transparent 52%),
    linear-gradient(180deg, #fffbea 0%, #eef5ff 100%);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 76px 0 38px;
  background: linear-gradient(125deg, #0a3b8f 8%, #1565d8 52%, #f4c414 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.20), transparent 35%), radial-gradient(circle at 85% 15%, rgba(255,255,255,0.12), transparent 25%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  font-size: 0.85rem;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 26px;
  max-width: 70ch;
  color: rgba(255,255,255,0.9);
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 760px;
}

#searchInput {
  width: 100%;
  border: 2px solid rgba(244, 196, 20, 0.45);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

#clearBtn {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 700;
  color: #10213d;
  background: linear-gradient(135deg, #f7d84b, var(--brand));
  cursor: pointer;
}

.stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.main-content {
  margin-top: 26px;
}

.ad-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 34px rgba(11, 59, 140, 0.08);
}

.ad-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 12px 36px rgba(11, 59, 140, 0.10);
  transform: translateY(8px);
  opacity: 0;
  animation: reveal .45s ease forwards;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.card h2 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 6px 0;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
  border: 1px solid var(--line);
  color: var(--bg);
  background: #fff8d6;
}

.btn.primary {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 8px;
}

.pagination button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8d6;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--bg);
}

.pagination button.active {
  background: var(--brand-2);
  color: #fff;
}

.footer {
  color: #334155;
  font-size: .92rem;
  padding: 24px 0 36px;
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .hero { padding-top: 50px; }
  .search-wrap { grid-template-columns: 1fr; }
  #clearBtn { padding: 14px; }
}
