/* Global styles */
body {
  background-color: #e3f2fd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.homeTitle {
  font-size: 36px;
  text-align: center;
  margin-top: 20px;
  color: #0d47a1;
}

/* Container for all blog posts */
.box-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem; /* space between boxes */
  padding: 2rem;
}

/* Individual post box */
.box {
  width: 85%;
  background-color: blue;
  color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease; /* smooth transition */
}

.box:hover {
  transform: scale(1.03); /* grow slightly by 3% */
}

/* Post image */
.box img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Post title link — always white */
.box-title-link {
  color: white !important;
  text-decoration: none;
}

.box-title-link:visited {
  color: white !important;
}

.box-title-link:hover {
  text-decoration: underline;
}

.box-title-link:active {
  color: white !important;
}

/* Optional hover effect */
.box-title-link:hover {
  text-decoration: underline;
}

/* Paragraph content */
.box h2,
.box h4,
.box h5,
.box p.blogText {
  margin: 5px 0;
}

/* Review section inside post */
.reviews {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  margin-top: 15px;
  width: 100%;
  text-align: left;
  color: #e3f2fd;
  font-size: 0.9rem;
}

/* Review list and links */
.reviews ul {
  list-style-type: none;
  padding: 0;
}

.reviews li {
  margin-bottom: 10px;
}

.reviews a {
  color: #ffccbc;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .box {
    width: 90%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Apply animation to everything */
* {
  animation: fadeIn 0.7s ease-in-out;
}

footer {
  text-align: center;
  padding: 15px 0;
  background-color: #1565c0;
  color: white;
  font-weight: 600;
  position: relative;
  bottom: 0;
  width: 100%;
}