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

header {
  background-color: #1e1e1e;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}

.location {
  font-weight: 400;
}

.global-link {
  font-weight: 700;
  color: #00acee;
  text-decoration: none;
  border: 2px solid #00acee;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}

.global-link:hover {
  background-color: #00acee;
  color: #fff;
  text-decoration: none;
}

main {
  padding: 30px;
}

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

.article {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.article:hover {
  transform: translateY(-4px);
}

.article h3 {
  margin-top: 0;
  font-size: 18px;
  color: #1e1e1e;
}

.article p {
  font-size: 14px;
  color: #555;
}

.article a {
  display: inline-block;
  margin-top: 10px;
  color: #0078D4;
  text-decoration: none;
  font-weight: bold;
}

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

footer {
  background-color: #1e1e1e;
  color: #ccc;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  margin-top: 40px;
}

/* Added styles for email toggle button and email display */
.toggle-email-btn {
  margin-left: 1em;
  cursor: pointer;
  background: #0070ba;
  color: white;
  border: none;
  padding: 0.25em 0.6em;
  border-radius: 3px;
  font-size: 0.9rem;
  vertical-align: middle;
  white-space: nowrap;
}

.user-email {
  margin-left: 0.5em;
  font-weight: 500;
  color: #444;
  vertical-align: middle;
  user-select: text;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 100%;
    margin-bottom: 10px;
  }

  .header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .global-link,
  .toggle-email-btn {
    width: 100%;
    box-sizing: border-box;
  }

  footer {
    padding: 20px 10px;
    font-size: 13px;
    line-height: 1.6;
  }

  footer a {
    display: inline-block;
    margin: 4px 6px;
  }
}
