body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #fffaf7;
  color: #222;
}

/* Header Styles */
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 20px;
  background: linear-gradient(135deg, #d60000, #3a0000);
  color: white;
}

header img {
  height: 50px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-title h1 {
  margin: 0;
  font-size: 1.5rem;
}

.tagline {
  font-size: 0.9rem;
  color: #f7dddd;
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.auth-links a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  background: #b30000;
  padding: 6px 12px;
  border-radius: 5px;
}

/* Navigation Styles */
nav {
  display: flex;
  justify-content: center;
  background: #111;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: bold;
  transition: 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover {
  background: #ff0000;
  border-radius: 5px;
}

/* Breaking News */
.breaking {
  background: #fff3cd;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 10px 0;
  border-top: 2px solid #ff0000;
  border-bottom: 2px solid #ff0000;
}

marquee {
  color: #b30000;
}

/* Main News Cards */
main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: white;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

.card h3 {
  margin-top: 0;
  color: #b30000;
  font-size: 1.1rem;
}

.card p {
  color: #444;
  font-size: 0.95rem;
}

.card a {
  color: #b30000;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
}

footer .social-icons {
  margin: 20px 0;
}

footer .social-icons a {
  color: #444;
  margin: 0 10px;
  font-size: 22px;
  text-decoration: none;
  transition: 0.3s ease;
}

footer .social-icons a:hover {
  color: #ff0000;
}

/* --------- MEDIA QUERY for Mobile --------- */
@media (max-width: 600px) {
  header {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .logo-title {
    flex-direction: row;
    align-items: center;
  }

  .auth-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 0;
  }

  nav a {
    padding: 10px;
    font-size: 0.85rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  footer .social-icons a {
    font-size: 20px;
    margin: 0 6px;
  }
}
