:root {
  --primary: #bb1919;
  --accent: #ffffff;
  --background: #f6f6f6;
  --card-bg: #ffffff;
  --text: #000000;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: var(--accent);
  padding: 10px 20px;
}

.logo {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.5em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95em;
}

.live-badge {
  padding: 5px 12px;
  font-weight: bold;
  border-radius: 4px;
  animation: pulse 1s infinite alternate;
  color: #fff;
  background-color: #bb1919;
}

@keyframes pulse {
  0% { background-color: #bb1919; color: #fff; }
  50% { background-color: #fff; color: #bb1919; }
  100% { background-color: #bb1919; color: #fff; }
}

.datetime {
  font-weight: bold;
  color: #fff;
  min-width: 250px;
}

.update-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85em;
  color: #fff;
}

/* BREAKING NEWS BANNER */
.breaking-banner {
  background-color: #bb1919;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  padding: 10px;
  display: none;
}

.breaking-banner.show {
  display: block;
}

.hidden {
  display: none !important;
}

/* NEWS PANEL */
.container {
  padding: 10px;
}

.card {
  background: var(--card-bg);
  border-left: 6px solid var(--primary);
  padding: 10px;
  margin-bottom: 10px;
  overflow-y: auto;
}

.news-panel div.headline {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  position: relative;
}

.news-panel img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  margin-right: 12px;
}

.headline .details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.headline .title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 6px;
  color: #000;
  text-decoration: none;
}

.headline .description {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 6px;
}

.headline .footer {
  font-size: 0.8em;
  color: #666;
}

/* BADGES */
.badge {
  display: inline-block;
  font-size: 0.7em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.badge.new {
  background-color: #007bff;
  color: #fff;
}

.badge.breaking {
  background-color: #bb1919;
  color: #fff;
}