/* ===== Global Styles ===== */

a {
  text-decoration: none;
  color: #f0f0f0;
}

a:hover {
  color: #a8aaad;
}

/* ===== Blog Post Card ===== */
.blog-card {
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 30px;
}

.blog-card img {
  width: 100%;
  height: 500px;
  object-fit:scale-down;
  border-radius: 12px;
  margin-bottom: 20px;
}

.blog-card-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.blog-card-text {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* ===== Sidebar ===== */
.sidebar {
  border-radius: 18px;
  padding: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  transition: transform 0.3s ease, border 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: none;
}

.sidebar:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}

.sidebar h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-bottom: 0.75rem;
  color: #e3e5f7;
}

.sidebar > div + div {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

#recent-posts a,
#social-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: #f7f7f7;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

#recent-posts a::after,
#social-links a::after {
  content: ">";
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#recent-posts a:hover,
#social-links a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

#recent-posts a:hover::after,
#social-links a:hover::after {
  opacity: 0.8;
  transform: translateX(0);
}

/* ===== Previous/Next Buttons ===== */
#prev-post, #next-post {
  color: #ffffff;
  margin: 0em 2em;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}

#prev-post:hover, #next-post:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  h1, .blog-card-title { font-size: 2rem; }
  .sidebar { margin-top: 30px; }
}

@media (max-width: 576px) {
  .blog-card img { height: 250px; }
  .blog-card-title { font-size: 1.5rem; }
}
