/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #141e30, #243b55);
  color: #ffffff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b0c10;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #1f90ff;
}



/* Read More Hover Effect */
a:hover {
  text-decoration: underline;
}

/* Fix: Dropdown hover delay */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #1c1f25;
  top: 100%;
  left: 0;
  min-width: 160px;
  z-index: 1000;
}
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}
.dropdown-content li {
  padding: 10px 20px;
  white-space: nowrap;
}




/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Featured News */
.featured-news {
  background: #1f2833;
  display: flex;
  flex-wrap: wrap;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.featured-news img {
  width: 100%;
  max-width: 600px;
  object-fit: cover;
}
.featured-content {
  padding: 25px;
  flex: 1;
}
.featured-content h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.featured-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.featured-content a {
  color: #00d8ff;
  text-decoration: none;
  font-weight: bold;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
}
.news-card {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.news-card:hover {
  transform: translateY(-5px);
}
.news-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.news-card p {
  font-size: 1rem;
  color: #cccccc;
}
.news-card a {
  display: inline-block;
  margin-top: 10px;
  color: #1f90ff;
  text-decoration: none;
  font-weight: 500;
}


/* Footer */
footer {
  background-color: #0b0c10;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}






/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .featured-news {
    flex-direction: column;
  }
}