/* ==================== SEARCH PAGE ==================== */

/* Search Hero Section */
.search-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(222, 218, 207, 1) 100%
  );
  text-align: center;
  color: white;
  position: relative;
  width: 100%;
  height: 70vh;
  margin-top: 0;
  padding-top: 155px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--heading-color);
  background-image: url("../images/footer-bg.png");
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.9);
}

.search-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.search-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #fff;
}

.search-hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* Search Form */
.search-hero-form {
  margin-top: 30px;
}

.search-hero-form .input-group {
  display: flex;
  gap: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.search-hero-input {
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 0;
  flex: 1;
  background: white;
  color: #1a1a1a;
}

.search-hero-input::placeholder {
  color: #999;
}

.btn-search-hero {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 14px 20px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search-hero:hover {
  background: #f0f0f0;
}

/* Search Results Section */
.search-results-section {
  background: white;
  padding: 80px 0;
}

.search-stats {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.search-stats p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Search Grid */
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* Search Card */
.search-card {
  background: #f9f9f9;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.search-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.search-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e0e0e0;
}

.search-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.search-card:hover .search-card-image img {
  transform: scale(1.08);
}

.search-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.search-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #999;
}

.search-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.search-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.search-card:hover .search-card-title a {
  color: var(--primary-color);
}

.search-card-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 15px 0;
  flex: 1;
}

.search-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-read-more:hover {
  gap: 10px;
  color: var(--primary-color);
}

.search-read-more .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.search-card:hover .search-read-more .arrow {
  transform: translateX(4px);
}

/* Search Pagination */
.search-pagination {
  text-align: center;
  margin-top: 40px;
}

.search-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.search-pagination a,
.search-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.search-pagination a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.search-pagination span.current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* No Results */
.search-no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon {
  margin-bottom: 30px;
  color: #ddd;
}

.search-no-results h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.search-no-results p {
  font-size: 1rem;
  color: #666;
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Retry Search Form */
.search-retry-form {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-retry-form .input-group {
  display: flex;
  gap: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-retry-input {
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-radius: 0;
  flex: 1;
  background: white;
  color: #1a1a1a;
}

.search-retry-input::placeholder {
  color: #999;
}

.btn-search-retry {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-search-retry:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

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

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

  .search-hero-subtitle {
    font-size: 1rem;
  }

  .search-results-section {
    padding: 60px 0;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .search-card-content {
    padding: 20px;
  }

  .search-card-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .search-hero {
    padding: 50px 15px;
    padding-top: 150px;
  }

  .search-hero-title {
    font-size: 1.5rem;
  }

  .search-hero-subtitle {
    font-size: 0.95rem;
  }

  .search-hero-form .input-group {
    flex-direction: column;
  }

  .search-hero-input,
  .btn-search-hero {
    width: 100%;
  }

  .search-results-section {
    padding: 40px 0;
  }

  .search-card-image {
    height: 180px;
  }

  .search-card-meta {
    font-size: 0.75rem;
    gap: 8px;
  }

  .search-card-excerpt {
    font-size: 0.85rem;
  }

  .search-no-results h2 {
    font-size: 1.5rem;
  }

  .search-no-results p {
    font-size: 0.9rem;
  }
}
