/* Enhanced Blog Page Styles */

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #dc143c 0%, #b22222 50%, #8b0000 100%);
  min-height: 350px;
  position: relative;
  margin: 0 10px 3rem 10px;
  max-width: calc(100% - 20px);
  border-radius: 15px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  z-index: 2;
}

.hero-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
}

.hero-search .form-control {
  border-radius: 50px;
  padding: 12px 20px;
  border: none;
  font-size: 1rem;
}

.hero-search .btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-search .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Blog Categories */
.blog-categories {
  margin: 0 10px 3rem 10px;
  max-width: calc(100% - 20px);
}

.category-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-card.active {
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  color: white;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.category-card.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-count {
  font-size: 0.9rem;
  color: #6c757d;
}

.category-card.active .category-count {
  color: rgba(255, 255, 255, 0.8);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 0 10px 3rem 10px;
  max-width: calc(100% - 20px);
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-content {
  padding: 1.5rem;
}

.blog-category-badge {
  display: inline-block;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
}

.blog-author {
  display: flex;
  align-items: center;
}

.blog-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.blog-date {
  display: flex;
  align-items: center;
}

.blog-date i {
  margin-right: 0.5rem;
}

/* Blog Detail Page */
.blog-detail-hero {
  background: linear-gradient(135deg, #dc143c 0%, #b22222 50%, #8b0000 100%);
  min-height: 250px;
  position: relative;
  margin: 0 10px 3rem 10px;
  max-width: calc(100% - 20px);
  border-radius: 15px;
}

.blog-detail-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin: 0 10px 2rem 10px;
  max-width: calc(100% - 20px);
}

.blog-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 2rem;
}

.blog-detail-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-detail-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc143c;
  margin: 2rem 0 1rem;
}

.blog-detail-text h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem;
}

/* Enhanced Related Posts */
.related-posts {
  margin-top: 4rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
}

.related-posts-header {
  margin-bottom: 3rem;
}

.related-posts-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dc143c, #ff6b6b);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.related-posts-icon i {
  font-size: 2rem;
  color: white;
}

.related-posts-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.related-posts-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 10px;
  max-width: calc(100% - 20px);
}

.related-post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.related-post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.related-post-content {
  padding: 2rem;
}

.related-post-category {
  display: inline-flex;
  align-items: center;
  background: #dc143c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-post-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.related-post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: #dc143c;
}

.related-post-excerpt {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.related-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.related-post-date {
  color: #6c757d;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.related-post-read-more a {
  color: #dc143c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.related-post-read-more a:hover {
  color: #b22222;
  transform: translateX(3px);
}

/* Empty State */
.related-posts-empty {
  padding: 3rem;
}

.related-posts-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: #e9ecef;
  border-radius: 50%;
  margin-bottom: 2rem;
}

.related-posts-empty-icon i {
  font-size: 3rem;
  color: #6c757d;
}

.blog-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Service Areas Section */
.service-areas-section {
  margin: 3rem 10px 4rem 10px;
  max-width: calc(100% - 20px);
}

.service-areas-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-areas-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.service-areas-header i {
  font-size: 2rem;
  color: #dc143c;
  margin-right: 1rem;
}

.service-areas-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.service-areas-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 2rem;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.region-column h4 {
  color: #dc143c;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.region-column h4 i {
  margin-right: 0.5rem;
}

.region-column p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.service-areas-cta {
  text-align: center;
  margin-top: 2rem;
}

.service-areas-cta .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.service-areas-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-hero {
    min-height: 300px;
  }
  
  .hero-icon {
    font-size: 3rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 250px;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    padding: 2rem !important;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-search {
    padding: 0 1rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-detail-content {
    padding: 1.5rem;
  }
  
  .blog-detail-title {
    font-size: 1.5rem;
  }
  
  .blog-detail-text {
    font-size: 1rem;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blog-title {
    font-size: 1.1rem;
  }
  
  .blog-detail-content {
    padding: 1rem;
  }
  
  .blog-detail-title {
    font-size: 1.3rem;
  }
}
