/* ==========================
   Blog Page Styles
========================== */


/* Blog Hero */
#blog-hero {
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
}

#blog-hero h1 {
    font-size: 30rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

#blog-hero p.lead {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Blog Card Container */
.blog-card {
  display: flex;
  flex-direction: row;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Card Image (left) */
.blog-card img {
  width: 100%;
  max-width: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}



/* Card Content (right) */
.blog-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Title */
.blog-card .card-title {
  color: #2E7D32;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.blog-card:hover .card-title {
  color: #4CAF50;
}

/* Card Text */
.blog-card .card-text,
.blog-card .text-secondary {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Buttons */
.blog-card .btn {
  display: inline-block;
  background-color: #2E7D32;
  color: #fff !important;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.blog-card:hover .btn {
  background-color: #4CAF50;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

/* Responsive */
@media (max-width: 767px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
  }

  #blog-hero h1 {
    font-size: 2rem;
  }

  #blog-hero p.lead {
    font-size: 1.2rem;
  }
}

@media (max-width: 991px) {
  .col-md-6 {
    flex: 1 1 100%;
  }
}

/* Single Post Content */
#single-post-content article {
    margin-bottom: 3rem;
}

#single-post-content article p {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}

/* Sidebar */
.sidebar h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2E7D32;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: #2E7D32;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #4CAF50;
}

/* Related Posts */
.related-posts .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    #blog-posts .col-md-4 {
        flex: 1 1 45%;
    }
}

@media (max-width: 767px) {
    #blog-hero h1,
    #single-post-hero h1 {
        font-size: 2rem;
    }

    #blog-hero p.lead,
    #single-post-hero p.lead {
        font-size: 1.2rem;
    }

    #blog-posts .col-md-4 {
        flex: 1 1 100%;
    }

    .sidebar {
        margin-top: 2rem;
    }
}
