* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #FFFFFF;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #0d2a5b;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo .highlight {
  color: #f97316;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  width: 300px;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background: #f97316;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #ea580c;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Navigation Styles */
.nav {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  padding: 30px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Breaking News Banner */
.breaking-news {
  background: linear-gradient(45deg, #dc2626, #ef4444);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

.breaking-news h3 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.breaking-news h3::before {
  content: "🔴";
  animation: blink 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3b82f6;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #1e3a8a;
}

.live-badge {
  background: #dc2626;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

/* Article Cards */
.articles-grid {
  display: grid;
  gap: 25px;
}

.article-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Added styling for clickable image links */
.article-image-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.article-image-link:hover {
  transform: scale(1.02);
}

.article-image-link img {
  transition: filter 0.3s ease;
}

.article-image-link:hover img {
  filter: brightness(1.1);
}

.article-content {
  padding: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
}

.category-tag {
  background: #3b82f6;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.trending-badge {
  background: #f97316;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
}

.article-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-title a {
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover {
  color: #3b82f6;
}

.article-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.views-count {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 20px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3b82f6;
}

.trending-list {
  list-style: none;
}

.trending-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s;
}

.trending-item a:hover {
  color: #3b82f6;
}

.trending-meta {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Article Detail Page */
.article-detail {
  background: white;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-detail-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.article-detail-title {
  font-size: 32px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.article-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.article-detail-content p {
  margin-bottom: 20px;
}

/* Related Articles */
.related-articles {
  margin-top: 50px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

/* Footer */
.footer {
  background: #0d2a5b;
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-text {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
}

/* Coming Soon Message */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coming-soon h2 {
  font-size: 28px;
  color: #1e3a8a;
  margin-bottom: 15px;
}

.coming-soon p {
  color: #666;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .search-box {
    width: 250px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .articles-grid {
    gap: 20px;
  }

  .article-card {
    margin-bottom: 0;
  }

  .article-detail {
    padding: 25px;
  }

  .article-detail-title {
    font-size: 24px;
  }

  .article-detail-image {
    height: 250px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .search-box {
    width: 200px;
  }

  .article-detail {
    padding: 20px;
  }

  .article-detail-title {
    font-size: 20px;
  }

  .logo {
    font-size: 24px;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
