 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  padding-top: 70px; /* navbar height compensation */
}

.navbar {
  background-color: #1e1e1e;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ff4c4c;
  transition: width 0.3s ease;
}

.arrow {
  margin-left: 5px;
  font-size: 0.8em;
}

/* Dropdown styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  border-radius: 5px;
  min-width: 160px;
  z-index: 999;
}

.dropdown-content li {
  padding: 0;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* Main content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.featured-news {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  text-align: center;
}

.featured-news img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.featured-news a {
  display: inline-block;
  margin-top: 1rem;
  color: #ff4c4c;
  font-weight: bold;
  text-decoration: none;
  position: relative;
}

.featured-news a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: #ff4c4c;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
}

.news-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #ff4c4c;
  font-weight: bold;
  text-decoration: none;
  position: relative;
}

.news-card a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: #ff4c4c;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}