/* ==========================
   Single Blog Page Styles
========================== */

/* Hero Section */
.single-hero {
  text-align: center;
  padding: 6rem 2rem;
}

.single-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.single-hero p {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Main post card styling */
#single-post .card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#single-post .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Card images */
#single-post .card-img-top {
  width: 100%;
  max-height: 400px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#single-post .card-body {
  padding: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
  color: #333;
}

/* Links */
#single-post a {
  color: #6F6D3F;
  text-decoration: none;
  transition: color 0.3s ease;
}

#single-post a:hover {
  color:  #456b9f;
  text-decoration: underline;
}

/* Post navigation links */
#single-post .d-flex a {
  background-color: #4873a2;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#single-post .d-flex a:hover {
  background-color: #5e6eae;
  transform: translateY(-2px);
}

/* Sidebar headings */
#single-post aside h4 {
  color: #000000;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Sidebar links */
#single-post aside ul li a {
  color: #6388a800;
  text-decoration: none;
  transition: color 0.3s ease;
}

#single-post aside ul li a:hover {
  color: #787da0;
  text-decoration: underline;
}

/* Recent Posts Box */
#single-post aside .recent-posts {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #ffffff91 !important;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

#single-post aside .recent-posts h4 {
  color: #000000;
  margin-bottom: 1rem;
}

#single-post aside .recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#single-post aside .recent-posts ul li {
  margin-bottom: 0.75rem;
}

#single-post aside .recent-posts ul li a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

#single-post aside .recent-posts ul li a:hover {
  color: #426f93;
  text-decoration: underline;
}

/* Column width adjustments for wider main content */
@media (min-width: 992px) {
  #single-post .col-lg-8 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  #single-post .col-lg-4 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  #single-post .card {
    min-width: auto;
  }
}

@media (max-width: 767px) {
  .single-hero h1 {
    font-size: 2rem;
  }

  .single-hero p {
    font-size: 1.2rem;
  }
}
