/* 1. FULL PAGE BACKGROUND */
body {
  margin: 0;
  padding: 0;
  background: #000 url('https://i.ibb.co/bj72x9MR/mindless-self-indulgence-msi.webp') no-repeat center center fixed;
  background-size: cover;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-heading {
  color: #4CBB17 !important;
  font-size: 3rem;
  text-align: center;
  margin-top: 40px;
  text-transform: lowercase;
  text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
  font-family: 'Comic Sans MS', cursive;
}

/* 2. THE GRID (Adjusted for smaller boxes) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two boxes per row */
  gap: 15px;
  width: 90%;
  max-width: 800px; 
  margin: 20px auto;
}

/* 3. SMALLER BLOG BOX STYLES */
.blog-box {
  height: 250px; /* SHORTER HEIGHT for smaller boxes */
  overflow-y: auto;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 12px;
  color: white;
  text-shadow: 1px 1px 2px black;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darker for readability */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 4. TEXT STYLES */
.blog-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #4CBB17; /* Title is now green */
  border-bottom: 1px solid rgba(255,255,255,0.3);
  width: 100%;
}

.blog-box p {
  font-size: 0.85rem;
  margin: 5px 0;
}

.blog-box a {
  color: #b19cd9;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 3px 0;
  display: block;
}

.blog-box a:hover {
  color: #4CBB17;
  text-decoration: underline;
}

/* Hide Scrollbar */
.blog-box::-webkit-scrollbar { display: none; }
.blog-box { scrollbar-width: none; }



/* ... all your other old code is up here ... */

.blog-box::-webkit-scrollbar {
  display: none;
}

/* --- ADD THE NEW CODE BELOW THIS LINE --- */

.rainbow-text {
  background: linear-gradient(to right, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% auto;
  animation: rainbow-shift 5s linear infinite;
  font-weight: bold;
}

@keyframes rainbow-shift {
  to {
    background-position: -200% center;
  }
}