/* Base layout */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #222;
}

/* Header */
header {
  background: #0d47a1; /* dark blue */
  color: white;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

header h1 {
  margin: 0;
  font-size: 1.6em;
}

nav {
  margin-top: 5px;
}

nav a {
  color: #ccc;
  margin-right: 15px;
  text-decoration: none;
  font-size: 0.95em;
}

nav a:hover {
  color: white;
  text-decoration: underline;
}

/* Main content area */
main {
  padding: 30px 20px;
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* News list styling */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.news-list li:hover {
  background-color: #e3f2fd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* News link */
.news-list a {
  font-weight: bold;
  text-decoration: none;
  color: #0d47a1;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list a:hover {
  text-decoration: underline;
}

/* Date under title */
.news-list .date {
  display: block;
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
}

/* Like/Interaction area */
.interactions {
  margin-top: 8px;
}

.interactions button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #e91e63;
  transition: transform 0.2s;
}

.interactions button:hover {
  transform: scale(1.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  font-size: 0.9em;
  color: #555;
}
