/* ====================================
   BLOG STYLES - SANU RECOVERY
   ==================================== */

/* Navbar Styling for Blog Pages */
body .navbar.navbar-expand-lg {
  padding: 0.5rem 0 !important;
  position: relative !important;
  z-index: 10 !important;
  background: linear-gradient(135deg, #023023 0%, #166956 50%, #24a883 100%) !important;
  background-color: #023023 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

/* Override any conflicting navbar styles */
.navbar.navbar-expand-lg::before,
.navbar.navbar-expand-lg::after {
  display: none !important;
}

/* Ensure navbar container has no conflicting background */
.navbar.navbar-expand-lg .container {
  background: transparent !important;
}

/* Blog Header Section */
.blog-header-section {
  background: linear-gradient(135deg, #023023 0%, #166956 50%, #24a883 100%);
  color: white;
  padding: 60px 0 40px;
  margin-top: 0;
}

.blog-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.blog-main-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts-section {
  background-color: #f8f9fa;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(36, 168, 131, 0.95);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a2e;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  color: #24a883;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: gap 0.3s ease;
}

.blog-read-more:hover {
  gap: 8px;
  color: #166956;
}

/* No Posts Message */
.no-posts-message {
  background: white;
  padding: 60px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.no-posts-message i {
  color: #24a883;
}

.no-posts-message h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.no-posts-message p {
  color: #666;
  margin-bottom: 0;
}

/* Blog CTA Section */
.blog-cta-section {
  background: linear-gradient(135deg, #023023 0%, #166956 50%, #24a883 100%);
  color: white;
}

.blog-cta-section h2 {
  color: white;
  font-weight: 700;
}

.blog-cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* ====================================
   SINGLE BLOG POST STYLES
   ==================================== */

/* Breadcrumb */
.breadcrumb-section {
  background-color: #f8f9fa;
  padding: 20px 0;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: #24a883;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #166956;
}

.breadcrumb-item.active {
  color: #666;
}

/* Post Header */
.post-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 25px;
}

.post-category {
  display: inline-block;
  background: #24a883;
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  color: #666;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Featured Image */
.post-featured-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-height: 450px;
  width: 100%;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

/* Post Content */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.post-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 25px;
}

.post-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #024035;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #24a883;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 25px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: #24a883;
  text-decoration: none;
  font-weight: 500;
}

.post-content a:hover {
  color: #166956;
  text-decoration: underline;
}

/* Lists */
.post-list,
.post-steps {
  margin: 25px 0;
  padding-left: 0;
}

.post-list li,
.post-steps li {
  margin-bottom: 15px;
  line-height: 1.7;
}

.post-list {
  list-style: none;
}

.post-list li::before {
  content: "✓";
  color: #24a883;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
  margin-right: 0.5em;
}

.post-steps {
  counter-reset: step-counter;
  list-style: none;
}

.post-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.post-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #24a883;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Callout Boxes */
.post-callout {
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.post-callout h4 {
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}

.post-callout p:last-child {
  margin-bottom: 0;
}

.post-callout-tip {
  background: #fff8e1;
  border-left-color: #ffc107;
}

.post-callout-tip h4 {
  color: #f57c00;
}

.post-callout-warning {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.post-callout-warning h4 {
  color: #e65100;
}

.post-callout-success {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.post-callout-success h4 {
  color: #2e7d32;
}

.post-callout-info {
  background: #e3f2fd;
  border-left-color: #2196f3;
}

.post-callout-info h4 {
  color: #1565c0;
}

/* Post Footer */
.post-footer {
  border-top: 2px solid #f0f0f0;
  background: white !important;
  padding: 25px !important;
  margin-top: 30px !important;
}

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

.tag-link {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  margin: 5px 5px 5px 0;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: #24a883;
  color: white;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-share:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.btn-share-facebook {
  background: #1877f2;
}

.btn-share-twitter {
  background: #1da1f2;
}

.btn-share-whatsapp {
  background: #25d366;
}

/* ====================================
   SIDEBAR STYLES
   ==================================== */

.blog-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #024035;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #24a883;
}

/* CTA Widget */
.widget-cta {
  background: linear-gradient(135deg, #023023 0%, #166956 50%, #24a883 100%);
  color: white;
}

.widget-cta h3 {
  color: white;
  border-bottom-color: #ffd700;
}

.widget-cta p {
  color: rgba(255, 255, 255, 0.9);
}

/* Recent Posts */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts-list a {
  text-decoration: none;
  color: inherit;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.recent-post-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-post-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 5px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-post-item:hover h4 {
  color: #24a883;
}

.recent-post-date {
  font-size: 0.8rem;
  color: #999;
}

/* Categories List */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-list a:hover {
  background: #24a883;
  color: white;
}

.category-list span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Service Areas List */
.service-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-areas-list li {
  margin-bottom: 8px;
}

.service-areas-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.service-areas-list a:hover {
  background: #f8f9fa;
  color: #24a883;
}

.service-areas-list i {
  color: #24a883;
  font-size: 0.9rem;
}

/* Related Posts Section */
.related-posts-section {
  background-color: #f8f9fa;
}

.related-posts-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #024035;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

@media (max-width: 991px) {
  .blog-sidebar {
    position: static;
    margin-top: 50px;
  }

  .post-title {
    font-size: 2rem;
  }

  .blog-main-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .blog-main-title {
    font-size: 1.75rem;
  }

  .blog-main-subtitle {
    font-size: 1rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .share-buttons {
    justify-content: center;
  }

  .blog-card-title {
    font-size: 1.2rem;
  }

  /* Featured Image Mobile */
  .post-featured-image {
    max-height: 300px;
    border-radius: 8px;
  }

  .post-featured-image img {
    max-height: 300px;
  }

  /* Blog Card Image Mobile */
  .blog-card-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .post-featured-image {
    max-height: 250px;
    border-radius: 6px;
  }

  .post-featured-image img {
    max-height: 250px;
  }

  .blog-card-image {
    height: 180px;
  }
}
