/* =========================
   LOGO
   ========================= */

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  /* font-family: "Georgia", "Times New Roman", serif; */
  font-family: cursive;
  letter-spacing: -0.02em;
  color: #020617;
  white-space: nowrap;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   HEADER SEARCH (INLINE)
   ========================= */

#header-search {
  width: 100%;
  max-width: 420px;
}

/* Base search bar */
.search-bar {
  display: flex;
  align-items: center;
  width: 100%;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

/* Input */
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: #0f172a;
  min-width: 0;
}

/* Button */
.search-bar button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  padding-left: 0.4rem;
  color: #64748b;
}

/* =========================
   HERO SEARCH (HOME ONLY)
   ========================= */

.hero .search-bar {
  padding: 0.75rem 1rem;
  max-width: 460px;
  border: none;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

.hero .search-bar input {
  font-size: 0.9rem;
}

/* =========================
   NAVIGATION
   ========================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.main-nav a {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: #334155;
  text-decoration: none;
}

/* CTA (Contact) */
.main-nav a:last-child {
  margin-left: 0.6rem;
  padding: 0.45rem 0.95rem;
  background: #1e293b;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* =========================
   CARDS
   ========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  padding: 1.4rem;
  border-radius: 16px;
  border: 0.1px solid #aeadad;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.caterories-links {
  color: #124bdc;
  font-weight: bold;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.05rem;
  
}

.caterories-links a {
  background-color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 10rem;
  border:1px solid grey ;

}

.caterories-links a:hover {
  background-color: #f9fafb;

}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.card:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  #header-search {
    max-width: 100%;
  }

  .main-nav {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }
}

.search-bar {
  position: relative;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: 520px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 8px;

  z-index: 9999;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 10px 12px;
  border-radius: 10px;

  text-decoration: none;
  color: #111827;
  font-size: 0.75rem;
}

.search-result-item:hover {
  background: #f3f4f6;
}

.result-title {
  font-weight: 400;
}

.result-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.search-empty {
  padding: 10px;
  color: #6b7280;
}
