body {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}

.navbar {
  background: rgba(44, 62, 80, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand, .nav-link, .navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}
.nav-link:hover {
  color: #f39c12 !important;
}

.container {
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  margin-top: 32px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
}

h1 {
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  color: #2c3e50;
  letter-spacing: 2px;
  text-shadow: 1px 2px 8px #fff, 0 2px 8px #2c3e50;
}

.news-card, .card {
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover, .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(243,156,18,0.15);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #34495e;
}

.card-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.btn-primary {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(243,156,18,0.10);
}
.btn-primary:hover {
  background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
}

#previous, #next {
  min-width: 150px;
  font-size: 1.1rem;
  border-radius: 8px;
}

#searchInput {
  border-radius: 8px;
  border: 1px solid #e67e22;
  background: #fff8f0;
  color: #2c3e50;
}

footer {
  background: rgba(44, 62, 80, 0.95);
  color: #fff;
  text-align: center;
  padding: 18px 0 10px 0;
  margin-top: 40px;
  border-radius: 0 0 16px 16px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

::-webkit-scrollbar {
  width: 10px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #f39c12;
  border-radius: 8px;
}
/* Navbar styles */
.navbar {
  background: #1a2238 !important;
  box-shadow: 0 2px 8px rgba(30,40,90,0.07);
}
.navbar .navbar-brand, .navbar .nav-link, .navbar .btn {
  color: #eaeaea !important;
  font-weight: 500;
  letter-spacing: 1px;
}
.navbar .nav-link.active, .navbar .nav-link:hover {
  color: #ff6a3d !important;
}

/* News cards */
.card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(26,34,56,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(26,34,56,0.18);
}
.card-img-top {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  object-fit: cover;
  height: 184px;
  background: #e0e7ef;
}
.card-title {
  color: #1a2238;
  font-size: 1.1rem;
  font-weight: 600;
}
.card-text {
  color: #555;
  font-size: 0.97rem;
}
.btn-primary {
  background: linear-gradient(90deg, #ff6a3d 0%, #ffb86c 100%);
  border: none;
  color: #fff;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #ffb86c 0%, #ff6a3d 100%);
  color: #fff;
}

/* Pagination buttons */
#previous, #next {
  min-width: 150px;
  font-size: 1rem;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(26,34,56,0.08);
}

/* Search bar */
form[role="search"] input {
  border-radius: 25px 0 0 25px;
  border: 1px solid #ffb86c;
  background: #f7fafc;
}
form[role="search"] button {
  border-radius: 0 25px 25px 0;
  background: #ff6a3d;
  color: #fff;
  border: none;
  font-weight: 500;
  transition: background 0.2s;
}
form[role="search"] button:hover {
  background: #ffb86c;
  color: #1a2238;
}

/* Responsive grid for cards */
@media (min-width: 768px) {
  .content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
  }
  .card {
    margin: 0;
    width: 18rem;
  }
}
@media (max-width: 767px) {
  .content {
    display: block;
  }
  .card {
    margin: 1rem auto;
    width: 95%;
  }
}

/* Result count */
#resultCount {
  color: #ff6a3d;
  font-weight: bold;
}

/* Alert styles */
.alert-danger {
  background: #ffe0e0;
  color: #c0392b;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  margin-top: 2rem;
}

