 * {
      margin: 0; padding: 0; box-sizing: border-box;
    }
    body {
      background: white;
      min-height: 100vh;
      overflow-x: hidden;
      font-family: 'Poppins', sans-serif;
    }
	
header {
  background: linear-gradient(135deg, #000000 0%, #1a2a40 50%, #00d4ff 100%);
  border-bottom: 1px solid #00bfff;
  padding: 6px 20px;         /* minimal top/bottom padding */
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;              /* approx height to fit text */
  box-sizing: border-box;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  user-select: none;
  align-items: flex-start;
  text-transform: uppercase;
  margin-left: 0;            /* flush left */
  padding-left: 0;           /* no padding left */
  line-height: 1.1;
}

.subtitle {
  font-size: 0.6rem;
  color: #cccccc;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-top: 2px;
  padding-left: 2px;
}

.burger {
  font-size: 26px;
  cursor: pointer;
  color: #ffffff;
  user-select: none;
}

.nav-bar {
  margin-top: 7px;   /* no margin to push nav */
  margin-left:5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  justify-content: flex-start;
}

.nav-bar a {
  display: inline-block;
  text-decoration: none;
  color: black;
  border: 2px solid black;
  background-color: transparent;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  transition: all 0.3s ease;
  user-select: none;
}

.nav-bar a:hover,
.nav-bar a:focus {
  background-color: #00bfff;
  color: #000000;
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.7);
  outline: none;
}

.container {
  padding: 0 1rem; /* add horizontal space left and right */
}


.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
  align-items: center;
  margin: 2rem auto;
  padding: 0 1rem; 
  
  
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1rem;
  border: 2px solid #000;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
  border-color: #00bfff;
  box-shadow: 0 0 6px rgba(0, 191, 255, 0.5);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #00bfff, #0077ff);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
  background: linear-gradient(45deg, #0077ff, #005bb5);
  transform: scale(1.05);
}

	
	.related-articles h2 {
  font-size: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: #000;
}

.related-articles .meme-grid {
  margin-top: 1rem;
}

.tags {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #333;
}

.tag-link {
  display: inline-block;
  margin: 0 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f1f1;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

p {
  margin-bottom: 1.2em;
}


.tag-link:hover {
  background: #00bfff;
  color: white;
}

.meme-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.meme-summary {
  font-size: 0.9rem;
  color: #666666;     /* subtle gray color */
  margin-top: 6px;    /* spacing from the title */
  line-height: 1.4;   /* improve readability */
  max-height: 4.2em;  /* roughly 3 lines, adjust as needed */
  overflow: hidden;   /* cut off overflow */
  text-overflow: ellipsis;
}



	
    .container {
      max-width: 1200px; margin: auto; padding: 2rem 1rem;
    }
    .feed-section h2 {
      text-align: center;
      font-size: 3rem;
      color: #000;
      margin-bottom: 2rem;
      text-shadow: 2px 2px 4px rgba(255,252,0,0.5);
    }
    .meme-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
    }
    .meme-card {
      background: white;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
      border: 3px solid #000;
      transition: 0.3s ease;
    }
    .meme-card:hover {
      transform: translateY(-10px) rotate(1deg);
      box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    }
    .meme-image {
      width: 100%;
      height: 250px;
      object-fit: cover;
      transition: 0.3s ease;
    }
    .meme-card:hover .meme-image {
      transform: scale(1.05);
    }
    .meme-content {
      padding: 1.5rem;
    }
    .meme-headline {
      font-size: 1.4rem;
      font-weight: 700;
      color: #000;
      margin-bottom: 0.5rem;
    }
    .meme-meta {
      color: #666; font-size: 0.9rem; margin-bottom: 1rem;
    }
    .meme-reactions {
      display: flex; justify-content: space-between; align-items: center;
    }
    .reaction-group {
      display: flex; gap: 0.5rem;
    }
    .reaction-count {
      background: #f0f0f0;
      padding: 0.3rem 0.8rem;
      border-radius: 15px;
      font-size: 0.9rem;
      cursor: pointer;
    }
    .share-btn {
      background: linear-gradient(45deg, #FF6B35, #FF0000);
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 25px;
      font-weight: 700;
      cursor: pointer;
    }
    .fab {
      position: fixed; bottom: 2rem; right: 2rem;
      background: linear-gradient(45deg, #FF6B35, #FFFC00);
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px; height: 60px;
      font-size: 1.5rem; cursor: pointer;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
      z-index: 50;
    }
    .notification-badge {
      position: absolute; top: -5px; right: -5px;
      background: #FF0000; color: white;
      border-radius: 50%; width: 20px; height: 20px;
      font-size: 0.8rem;
      display: flex; align-items: center; justify-content: center;
    }
    @media (max-width: 768px) {
      .meme-grid { grid-template-columns: 1fr; }
    }
    @keyframes floatUp {
      0% { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
    }
	
	footer {
  background: #000000;
  color: #cccccc;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 2px solid #00d4ff;
  margin-top: 3rem;
}
 
footer p {
  margin: 0.5rem 0;
}

footer a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: #ffffff;
  text-decoration: underline;
}
