/* Article Sidebar Widgets CSS */

/* Sidebar Container */
.region-sidebar-first,
.region-sidebar-second {
  padding: 0 15px;
}

/* Medical Review Section */
.medical-review {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #6c757d;
  border-left: 3px solid #667eea;
}

.medical-review strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Widget Base Styles */
.browse-topics-widget,
.related-blogs-widget,
.subscribe-widget {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.related-blogs-widget{
  background: #f2f2f2;
}
/* Purple Dots Separator */
.purple-dots-separator {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.purple-dot {
  width: 8px;
  height: 8px;
  background: #8B5CF6;
  border-radius: 50%;
}

/* Widget Titles */
.widget-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title .arrow-icon {
  width: 16px;
  height: 16px;
  background: #000;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  transform: rotate(-45deg);
}

/* Browse Topics Widget */
.browse-topics-list .topics-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.browse-topics-list .topics-menu li {
  margin-bottom: 0;
  border-bottom: 1px solid #E5E7EB;
}

.browse-topics-list .topics-menu li:last-child {
  border-bottom: none;
}

.browse-topics-list .topics-menu li a {
  color: #000;
  text-decoration: underline;
  font-size: 14px;
  line-height: 1.4;
  display: block;
  padding: 12px 0;
  transition: all 0.3s ease;
  font-weight: 400;
}

.browse-topics-list .topics-menu li a:hover {
  color: #8B5CF6;
  text-decoration-color: #8B5CF6;
}

/* Social Share Icons */
.social-share {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.share-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.share-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.share-icon.facebook {
  background: #3b5998;
}

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

.share-icon.linkedin {
  background: #0077b5;
}

.share-icon.email {
  background: #6c757d;
}

.share-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Related Blogs Widget */
.related-blogs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-blog-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #E5E7EB;
}

.related-blog-item:last-child {
  border-bottom: none;
}

.blog-thumbnail {
  flex-shrink: 0;
}

.blog-thumbnail img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.blog-content h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}

.blog-content h4 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content h4 a:hover {
  color: #8B5CF6;
}

.blog-date {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
}

/* Subscribe Widget */
.subscribe-widget {
  background: #8B5CF6;
  color: #fff;
  border: none;
  text-align: center;
}

.subscribe-widget .widget-title {
  color: #fff;
  border-bottom: none;
  justify-content: center;
  margin-bottom: 20px;
}

.subscribe-widget .widget-title::after {
  display: none;
}

.subscribe-text {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

.subscription-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subscription-form input[type="email"] {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255,255,255,0.9);
  color: #000;
  text-align: center;
}

.subscription-form input[type="email"]:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.btn-subscribe {
  background: #A3E635;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.btn-subscribe:hover {
  background: #84CC16;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-subscribe i {
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .region-sidebar-first,
  .region-sidebar-second {
    margin-top: 30px;
  }
  
  .browse-topics-widget,
  .related-blogs-widget,
  .subscribe-widget {
    margin-bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  .browse-topics-widget,
  .related-blogs-widget,
  .subscribe-widget {
    padding: 15px;
  }
  
  .widget-title {
    font-size: 16px;
  }
  
  .related-blog-item {
    flex-direction: column;
    text-align: center;
  }
  
  .blog-thumbnail {
    align-self: center;
  }
}

/* Sticky Sidebar (Optional) */
@media (min-width: 992px) {
  .region-sidebar-first,
  .region-sidebar-second {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* Custom Scrollbar for Sidebar */
.region-sidebar-first::-webkit-scrollbar,
.region-sidebar-second::-webkit-scrollbar {
  width: 4px;
}

.region-sidebar-first::-webkit-scrollbar-track,
.region-sidebar-second::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.region-sidebar-first::-webkit-scrollbar-thumb,
.region-sidebar-second::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.region-sidebar-first::-webkit-scrollbar-thumb:hover,
.region-sidebar-second::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
