/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

/* Header Styles */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
}

.nav ul {
  display: flex;
}

.nav ul li {
  margin-left: 20px;
}

.nav ul li a {
  padding: 5px 10px;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #9660fc;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Search Section Styles */
.search-section {
  background-color: #9660fc;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.search-section h1 {
  font-size: 36px;
  margin-bottom: 30px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-container input {
  flex: 1;
  padding: 15px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.search-container button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-container button:hover {
  background-color: #555;
}

/* Articles Section Styles */
.articles-section {
  padding: 60px 0;
}

.articles-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.column {
  flex: 1;
  min-width: 250px;
}

.article-link {
  display: block;
  background-color: #fff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #9660fc;
}

/* Search Results Styles */
.search-results-section {
  padding: 40px 0;
  background-color: #fff;
}

.results-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-item {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #9660fc;
}

.result-excerpt {
  color: #666;
  margin-bottom: 10px;
}

.result-link {
  display: inline-block;
  color: #9660fc;
  font-weight: bold;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* Loading Indicator */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #9660fc;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-section h1 {
    font-size: 28px;
  }

  .articles-grid {
    flex-direction: column;
  }
}

