/* Body Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Page Top Section */
.pagetop {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.pagetop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
  z-index: 1;
}

.pagetop .container {
  position: relative;
  z-index: 2;
}

.pagetop h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumbs {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}

.breadcrumbs li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs li a:hover {
  color: #f1c40f;
}

.breadcrumbs li:last-child {
  color: #f1c40f;
}

/* Section and Block */
section .block {
  padding: 40px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Blog Detail Section */
.shelter-blog-detail {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-img img {
  width: 100%;
  max-width: 900px;       /* Desktop max width */
  height: 400px;           /* Maintain aspect ratio */
  aspect-ratio: 2 / 1;    /* 900 / 450 = 2:1 */
  display: block;
  object-fit: cover;      /* Ensures image covers container */
  border-radius: 8px;     /* Optional: rounded corners */
}

.post-information {
  margin-bottom: 20px;
}

.cat-box .top-btn {
  display: inline-block;
  background: #f1c40f;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cat-box .top-btn:hover {
  background: #e67e22;
}

/* Typography */
.shelter-blog-detail h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 20px 0 10px;
}

.shelter-blog-detail h3 {
  font-size: 1.4rem;
  color: #34495e;
  margin: 15px 0 10px;
}

.shelter-blog-detail p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.shelter-blog-detail ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.shelter-blog-detail ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

/* Sidebar */
.sidebar .widget {
  margin-bottom: 30px;
}

.widget-title h4 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #f1c40f;
  padding-bottom: 5px;
}

.urgent-need {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.urgent-text p {
  font-size: 1.1rem;
  color: #34495e;
  margin-bottom: 15px;
}

.urgent-text .btn {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.urgent-text .btn:hover {
  background: #2980b9;
}

/* Responsive Design */
@media (max-width: 992px) {
  .pagetop h1 {
    font-size: 2rem;
  }

  .shelter-blog-detail {
    padding: 20px;
  }

  .col-lg-9, .col-lg-3 {
    width: 100%;
  }

  .sidebar {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .pagetop {
    min-height: 200px;
    padding: 20px;
  }

  .pagetop h1 {
    font-size: 1.5rem;
  }

  .breadcrumbs {
    font-size: 0.9rem;
  }

  .shelter-blog-detail h2 {
    font-size: 1.5rem;
  }

  .shelter-blog-detail h3 {
    font-size: 1.2rem;
  }
}

.post-img img {
  width: 100%;
  max-width: 900px;       /* Desktop max width */
  height: auto;           /* Maintain aspect ratio */
  aspect-ratio: 2 / 1;    /* 900 / 450 = 2:1 */
  display: block;
  object-fit: cover;      /* Ensures image covers container */
  border-radius: 8px;     /* Optional: rounded corners */
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .post-img img {
    max-width: 100%;      /* Full width on small screens */
    height: auto;         /* Maintain aspect ratio */
  }
}