/* Modern Blog Detail Section Styles */

/* Blog Section Container */
.blog-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(3, 50, 112, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

/* Blog Content Area */
.modern-blog-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.modern-blog-content:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

/* Blog Title */
.modern-blog-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #033270;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* Blog Image */
.modern-blog-image-wrapper {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  border: 2px solid #e5e7eb;
  transition: all 0.4s ease;
}

.modern-blog-image-wrapper:hover {
  border-color: #2196f3;
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

.modern-blog-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.modern-blog-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Blog Paragraphs */
.modern-blog-content p {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #4b5563;
  margin-bottom: 25px;
  text-align: justify;
}

/* Blog Headings */
.modern-blog-content h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #033270;
  margin-top: 40px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.modern-blog-content h3:hover {
  color: #2196f3;
}

.modern-blog-content h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #033270;
  margin-top: 40px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.modern-blog-content h4:hover {
  color: #2196f3;
}

/* Blog Lists */
.modern-blog-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.modern-blog-content ul li {
  padding: 12px 0 12px 30px;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.modern-blog-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 12px;
  color: #2196f3;
  font-size: 14px;
}

.modern-blog-content ul li:hover {
  padding-left: 35px;
  color: #033270;
  background: rgba(33, 150, 243, 0.05);
  border-radius: 5px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.modern-blog-content ul li a {
  color: #2196f3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.modern-blog-content ul li a:hover {
  color: #033270;
  text-decoration: underline;
}

/* Sidebar Styling */
.modern-sidebar {
  position: sticky;
  top: 100px;
}

.modern-sidebar-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.modern-sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #033270 0%, #2196f3 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.modern-sidebar-card:hover::before {
  transform: scaleX(1);
}

.modern-sidebar-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

/* Sidebar Title */
.modern-sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #033270;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-sidebar-title i {
  font-size: 1.25rem;
  color: #2196f3;
}

/* Related Posts */
.modern-related-post {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.modern-related-post:hover {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(3, 50, 112, 0.05) 100%);
  border-color: #2196f3;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.15);
}

.modern-related-post-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.modern-related-post:hover .modern-related-post-img {
  border-color: #2196f3;
  transform: scale(1.1);
}

.modern-related-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-related-post-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #033270;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-related-post:hover .modern-related-post-title {
  color: #2196f3;
}

.modern-related-post-date {
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-related-post-date i {
  color: #2196f3;
  font-size: 0.875rem;
}

/* Categories */
.modern-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-radius: 10px;
  text-decoration: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modern-category-name {
  color: #033270;
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.modern-category-item:hover .modern-category-name {
  color: #2196f3;
  padding-left: 5px;
}

.modern-category-arrow {
  color: #6b7280;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.modern-category-item:hover .modern-category-arrow {
  color: #2196f3;
  transform: translateX(5px);
}

/* Tags */
.modern-tag {
  padding: 8px 16px;
  background: #f9fafb;
  color: #033270;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 5px 5px 5px 0;
  display: inline-block;
}

.modern-tag:hover {
  background: linear-gradient(135deg, #033270 0%, #2196f3 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .modern-sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .modern-blog-content {
    padding: 40px 30px;
  }
  
  .modern-sidebar-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 0;
  }
  
  .modern-blog-content {
    padding: 30px 20px;
    border-radius: 15px;
  }
  
  .modern-blog-content h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
  
  .modern-blog-content h4 {
    font-size: 1.25rem;
    margin-top: 30px;
  }
  
  .modern-blog-content p {
    font-size: 1rem;
    text-align: left;
  }
  
  .modern-sidebar-card {
    padding: 20px;
    border-radius: 15px;
  }
  
  .modern-related-post {
    padding: 12px;
  }
  
  .modern-related-post-img {
    width: 70px;
    height: 70px;
  }
  
  .modern-category-item {
    padding: 12px 15px;
  }
  
  .modern-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

