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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.date-time {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 10px;
}

nav {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 15px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.breaking-news {
  background: #dc3545;
  color: white;
  padding: 10px 0;
  overflow: hidden;
}

.breaking-content {
  display: flex;
  align-items: center;
  animation: scroll-left 30s linear infinite;
  gap: 15px;
}

.breaking-label {
  background: #fff;
  color: #dc3545;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

main {
  padding: 40px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.featured-article {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.featured-content {
  padding: 20px;
}

.featured-title a {
  color: #1e3c72;
  text-decoration: none;
}

.article-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 15px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.trending-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.trending-number {
  font-weight: bold;
  color: #dc3545;
}

.newsletter-input,
.newsletter-button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.newsletter-button {
  background: #3498db;
  color: white;
  cursor: pointer;
  border: none;
}

.news-section {
  margin-top: 50px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-card-content {
  padding: 15px;
}

.news-card-title a {
  color: #1e3c72;
  text-decoration: none;
  font-size: 1.1rem;
}

.news-card-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

footer {
  background: #1e3c72;
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section h3 {
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #bbb;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}
