/*
Theme Name: BlogHash Child
Template: bloghash
Author: Your Name
Version: 1.0
Description: Child theme for Blog Hash.
*/

@import url("../bloghash/style.css"); /* Load parent theme styles */
.recent-section {
  color: #fff;
}

/* Section title */
.recent-section .section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: left;
}

/* Flex container */
.recent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Each post card */
.recent-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  flex: 1 1 calc(25% - 20px); /* Four cards per row with spacing */
  max-width: calc(25% - 20px); /* Prevents overflow */
  display: flex;
  flex-direction: column;
}

.recent-card:hover {
  transform: translateY(-5px);
}

.card-image img {
  width: 100%;
  height: 180px;
  display: block;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-category {
  display: inline-block;
  background-color: #000038;
  color: white;
  font-size: 12px;
  padding: 8px 15px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  width: fit-content;
  border: none;
}

.card-category a {
  color: white !important;
  text-decoration: none !important;
}

.card-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.card-title a {
  color: #000 !important;
  text-decoration: none !important;
}

.card-title a:hover {
  text-decoration: underline !important;
}

.card-meta {
  font-size: 14px;
  color: #ccc;
}

/* Responsive Tweaks */
@media screen and (max-width: 1024px) {
  .recent-card {
    flex: 1 1 calc(50% - 20px); /* Two cards per row on tablet */
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 600px) {
  .recent-card {
    flex: 1 1 100%; /* Full width on small screens */
    max-width: 100%;
  }

  .recent-section .section-title {
    font-size: 22px;
  }

  .card-title {
    font-size: 16px;
  }
}

.footer-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-thumb img {
  width: 110px !important;
  height: 65px !important;
  object-fit: cover;
  border-radius: 6px;
}

.footer-post-title a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.footer-post-title a:hover {
  text-decoration: underline;
}