* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

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

.navbar {
  background-color: #c41e3a;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: "Times New Roman", serif;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffd700;
}

.signin-btn {
  background-color: #ffd700;
  color: #c41e3a !important;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
}

.signin-btn:hover {
  background-color: #ffed4e;
  color: #c41e3a !important;
}

main {
  background-color: white;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breaking-news {
  background-color: #c41e3a;
  color: white;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.breaking-label {
  background-color: #ffd700;
  color: #c41e3a;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.breaking-news p {
  font-weight: 500;
}

main h2 {
  margin-bottom: 2rem;
  color: #c41e3a;
  border-bottom: 3px solid #c41e3a;
  padding-bottom: 0.5rem;
  font-size: 1.8rem;
}

.post {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.post:last-child {
  border-bottom: none;
}

.post.featured {
  background-color: #fff9e6;
  padding: 1.5rem;
  border-left: 4px solid #ffd700;
}

.category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.category.tech {
  background-color: #3498db;
  color: white;
}

.category.business {
  background-color: #27ae60;
  color: white;
}

.category.sports {
  background-color: #e74c3c;
  color: white;
}

.post h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.post h3 a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
}

.post h3 a:hover {
  color: #c41e3a;
}

.meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.post p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.read-more {
  color: #c41e3a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.read-more:hover {
  color: #a01729;
}

.article-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #c41e3a;
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #c41e3a;
  text-decoration: none;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.back-link:hover {
  color: #a01729;
}

.category-page h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .breaking-news {
    flex-direction: column;
    text-align: center;
  }
}
