/* Post Detail Page Styles */

/* Page Title */
.page-title {
  background-image: url("../img/office.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  height: 300px;
}

.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 47, 47, 0.6);
}

.page-title h3 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  position: relative;
  text-transform: none;
  line-height: 1.3;
}

.page-title h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 85px;
  height: 6px;
  background: #e60c3d;
  border-radius: 30px;
}

/* Blog Details */
.blog-details {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.blog-details .article-img {
  position: relative;
  overflow: hidden;
}

.blog-details .article-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-details .article-img:hover img {
  transform: scale(1.05);
}

.blog-details .article-img .date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 80px;
  height: 80px;
  text-align: center;
  font-size: 18px;
  background: #e60c3d;
  color: #fff;
  border-radius: 10px;
  padding-top: 15px;
  line-height: 25px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(230, 12, 61, 0.3);
}

.blog-details .article-text {
  padding: 40px;
}

/* Post Meta */
.post-meta {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.post-meta li {
  display: inline-block;
  margin-right: 25px;
  color: #777;
  font-size: 15px;
}

.post-meta li:last-child {
  margin-right: 0;
}

.post-meta li i {
  color: #e60c3d;
  margin-right: 8px;
  font-size: 16px;
}

.post-meta li a {
  color: #777;
  transition: color 0.3s ease;
}

.post-meta li a:hover {
  color: #e60c3d;
}

.tag-link {
  background: #f8f9fa;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 5px;
}

.tag-link:hover {
  background: #e60c3d;
  color: #fff !important;
}

/* Post Title */
.title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Post Content */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #222;
  font-weight: 600;
  margin: 30px 0 20px;
}

.post-content h2 {
  font-size: 28px;
}

.post-content h3 {
  font-size: 24px;
}

.post-content h4 {
  font-size: 20px;
}

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

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #e60c3d;
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
  font-size: 18px;
  color: #666;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

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

.post-content a:hover {
  color: #c5092f;
}

/* Post Tags */
.post-tags {
  margin: 40px 0;
  padding: 25px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.post-tags h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  background: #f8f9fa;
  color: #666;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 14px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: #e60c3d;
  color: #fff;
  border-color: #e60c3d;
}

/* Author Share */
.author-share {
  margin-top: 40px;
  padding: 35px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  text-align: center;
  border: 1px solid #eee;
}

.author-share h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #222;
  position: relative;
}

.author-share h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #e60c3d;
  border-radius: 2px;
}

.social-share {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  color: #e60c3d;
  border: 2px solid #e60c3d;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 20px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-share a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #e60c3d;
  transition: left 0.3s ease;
  z-index: 1;
}

.social-share a i {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.social-share a:hover::before {
  left: 0;
}

.social-share a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 12, 61, 0.3);
}

.social-share a:hover i {
  color: #fff;
}

/* Specific social media colors on hover */
.social-share a:nth-child(1):hover::before {
  background: #1877f2; /* Facebook */
}

.social-share a:nth-child(2):hover::before {
  background: #1da1f2; /* Twitter */
}

.social-share a:nth-child(3):hover::before {
  background: #0077b5; /* LinkedIn */
}

.social-share a:nth-child(4):hover::before {
  background: #6c757d; /* Copy Link */
}

/* Post Navigation */
.post-controls-buttons {
  margin: 50px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-controls-buttons a {
  background: #fff;
  color: #e60c3d;
  padding: 15px 30px;
  border-radius: 8px;
  border: 2px solid #e60c3d;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.post-controls-buttons a:hover {
  background: #e60c3d;
  color: #fff;
}

.controls-right {
  margin-left: auto;
}

/* Related Posts */
.related-posts-area {
  background: #f8f9fa;
}

.single-blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.single-blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

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

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

.blog-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e60c3d;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.blog-content {
  padding: 25px;
}

.blog-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-content h3 a {
  color: #222;
  text-decoration: none;
}

.blog-content h3 a:hover {
  color: #e60c3d;
}

.blog-meta {
  margin-bottom: 20px;
  font-size: 14px;
  color: #777;
}

.blog-meta span {
  margin-right: 15px;
}

.blog-meta i {
  color: #e60c3d;
  margin-right: 5px;
}

.read-more-btn {
  color: #e60c3d;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #c5092f;
}

/* Sidebar Styles - Enhanced with higher specificity */
.blog-details-area .side-bar .single-widget {
  background: #fff !important;
  padding: 35px 30px !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 35px !important;
  border: 1px solid #f0f0f0 !important;
  transition: all 0.3s ease !important;
}

.blog-details-area .side-bar .single-widget:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px) !important;
}

.blog-details-area .side-bar .single-widget .title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin-bottom: 30px !important;
  padding-bottom: 20px !important;
  border-bottom: 3px solid #e60c3d !important;
  position: relative !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-top: 0 !important;
}

.blog-details-area .side-bar .single-widget .title::after {
  content: "" !important;
  position: absolute !important;
  bottom: -3px !important;
  left: 0 !important;
  width: 60px !important;
  height: 3px !important;
  background: #e60c3d !important;
  border-radius: 2px !important;
}

/* Recent Posts - Improved Design with higher specificity */
.blog-details-area .side-bar .recent-post .single-recent-post {
  display: flex !important;
  margin-bottom: 25px !important;
  padding: 20px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  border: 1px solid #eee !important;
  flex-wrap: nowrap !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post:hover {
  background: #fff !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post:last-child {
  margin-bottom: 0 !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .img {
  width: 90px !important;
  height: 90px !important;
  margin-right: 15px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  flex: none !important;
  max-width: none !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
  border-radius: 8px !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post:hover .img img {
  transform: scale(1.1) !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .content {
  flex: 1 !important;
  max-width: none !important;
  padding-left: 0 !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .content h4 {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .content h4 a {
  color: #222 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .content h4 a:hover {
  color: #e60c3d !important;
}

.blog-details-area .side-bar .recent-post .single-recent-post .content span {
  color: #fff !important;
  font-size: 13px !important;
  background: #e60c3d !important;
  padding: 4px 8px !important;
  border-radius: 15px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  margin-top: 5px !important;
}

/* Social Share - Enhanced Design */
.blog-details .author-share {
  margin-top: 40px !important;
  padding: 35px !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border-radius: 15px !important;
  text-align: center !important;
  border: 1px solid #eee !important;
}

.blog-details .author-share h4 {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 25px !important;
  color: #222 !important;
  position: relative !important;
}

.blog-details .author-share h4::after {
  content: "" !important;
  position: absolute !important;
  bottom: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 50px !important;
  height: 3px !important;
  background: #e60c3d !important;
  border-radius: 2px !important;
}

.blog-details .author-share .social-share {
  display: flex !important;
  justify-content: center !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  text-align: center !important;
  margin-top: 0 !important;
}

.blog-details .author-share .social-share a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  background: #fff !important;
  color: #e60c3d !important;
  border: 2px solid #e60c3d !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  font-size: 20px !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  line-height: 1 !important;
}

.blog-details .author-share .social-share a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: #e60c3d !important;
  transition: left 0.3s ease !important;
  z-index: 1 !important;
}

.blog-details .author-share .social-share a i {
  position: relative !important;
  z-index: 2 !important;
  transition: color 0.3s ease !important;
}

.blog-details .author-share .social-share a:hover::before {
  left: 0 !important;
}

.blog-details .author-share .social-share a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(230, 12, 61, 0.3) !important;
}

.blog-details .author-share .social-share a:hover i {
  color: #fff !important;
}

/* Specific social media colors on hover */
.blog-details .author-share .social-share a:nth-child(1):hover::before {
  background: #1877f2 !important; /* Facebook */
}

.blog-details .author-share .social-share a:nth-child(2):hover::before {
  background: #1da1f2 !important; /* Twitter */
}

.blog-details .author-share .social-share a:nth-child(3):hover::before {
  background: #0077b5 !important; /* LinkedIn */
}

.blog-details .author-share .social-share a:nth-child(4):hover::before {
  background: #6c757d !important; /* Copy Link */
}

/* Tags */
.blog-details-area .side-bar .tags-box ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.blog-details-area .side-bar .tags-box ul li {
  display: block !important;
  margin-top: 0 !important;
}

.blog-details-area .side-bar .tags-box ul li a {
  background: #f8f9fa !important;
  color: #666 !important;
  padding: 8px 15px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  border: 1px solid #eee !important;
  transition: all 0.3s ease !important;
  border-bottom: 1px solid #eee !important;
}

.blog-details-area .side-bar .tags-box ul li a:hover {
  background: #e60c3d !important;
  color: #fff !important;
  border-color: #e60c3d !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title h3 {
    font-size: 28px;
  }

  .blog-details .article-text {
    padding: 25px;
  }

  .title {
    font-size: 24px;
  }

  .post-controls-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .controls-right {
    margin-left: 0;
  }

  .author-share .row {
    flex-direction: column;
    gap: 20px;
  }

  .social-share {
    text-align: left;
  }

  .article-author {
    flex-direction: column;
    text-align: center;
  }

  .article-author .author-img {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .single-recent-post {
    flex-direction: column;
  }

  .single-recent-post .img {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-title h3 {
    font-size: 24px;
  }

  .blog-details .article-img .date {
    width: 60px;
    height: 60px;
    font-size: 14px;
    padding-top: 10px;
    line-height: 20px;
  }

  .post-content {
    font-size: 15px;
  }

  .tags-list {
    flex-direction: column;
  }

  .tag-item {
    text-align: center;
  }
}
