/* 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 */
.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;
}

/* 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: 75px;
  height: 75px;
  border-radius: 10%;
  object-fit: cover;
  background: #000;
}

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

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

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

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

/* Subscribe Widget */
.subscribe-widget {
  background: var(--taevas-blue);
  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: var(--taevas-green);
  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: row;
    text-align: left;
  }
  
  .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;
}

/* ===========================================
   MOBILE STICKY "GO TO SECTION" (Product Page Style)
   =========================================== */

.article-mobile-nav {
  display: none;
  position: relative;
  z-index: 100;
}

/* Sticky state - positioned below the main header */
.article-mobile-nav.sticky {
  position: fixed !important;
  top: 60px; /* Below the main sticky header - adjust based on actual header height */
  left: 0;
  right: 0;
  z-index: 999; /* Below header z-index but above page content */
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure dropdown appears above content */
.article-mobile-nav.sticky .go-to-section-menu {
  z-index: 1000;
}

/* Smaller screens may have different header height */
@media (max-width: 767.98px) {
  .article-mobile-nav.sticky {
    top: 56px; /* Smaller header on mobile */
  }
}

.go-to-section-btn {
  width: 100%;
  background: #cacaca;
  color: var(--taevas-blue, #5519e4);
  border: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.go-to-section-btn .btn-hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 12px;
}

.go-to-section-btn .btn-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--taevas-blue, #5519e4);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.go-to-section-btn .btn-text {
  flex: 1;
  text-align: left;
  margin-left: 8px;
}

.go-to-section-btn .btn-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.go-to-section-btn[aria-expanded="true"] .btn-icon {
  transform: rotate(180deg);
}

.go-to-section-btn .btn-icon svg {
  width: 16px;
  height: 16px;
}

.go-to-section-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1001;
  pointer-events: none;
}

.go-to-section-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

.section-menu-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.section-menu-list li {
  margin: 0;
}

.section-menu-list a {
  display: block;
  padding: 12px 20px;
  color: var(--taevas-black, #1a1a2e);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid #eee;
}

.section-menu-list li:last-child a {
  border-bottom: none;
}

.section-menu-list a:hover,
.section-menu-list a:focus {
  background: #f7fafc;
  color: #5519e4;
  padding-left: 24px;
}

.section-menu-list a.active {
  background: #f0f0ff;
  color: #5519e4;
  border-left: 3px solid #5519e4;
}

/* Mobile: Show sticky nav */
@media (max-width: 991.98px) {
  .article-mobile-nav {
    display: block;
  }
  
  /* Hide sidebar browse topics on mobile (replaced by sticky nav) */
  .browse-topics-widget {
    display: none !important;
  }
  
  /* Hide the old floating "Go to Section" button from browse-topics.js */
  .mobile-go-to-section-btn,
  #mobile-go-to-section {
    display: none !important;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   BROWSE TOPICS - DESKTOP SIDEBAR
   =========================================== */

.browse-topics-mobile-toggle {
  display: none; /* No longer needed, using sticky nav instead */
}

/* ===========================================
   RELATED ARTICLES - FULL WIDTH SLIDER SECTION
   =========================================== */

.related-articles-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 0 80px;
  margin-top: 0;
}

.related-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 0 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.related-articles-header .header-content {
  flex: 1;
}

.related-articles-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.related-articles-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 2px;
}

.related-articles-header .section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 16px;
  font-weight: 400;
}

/* Slider Navigation */
.slider-navigation {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

.slider-nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider-nav-btn.swiper-button-disabled:hover {
  border-color: #e5e7eb;
  color: #1a1a2e;
  background: #fff;
}

.slider-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Swiper Slider */
.related-articles-slider {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  overflow: hidden;
}

.related-articles-slider .swiper-slide {
  height: auto;
}

.related-article-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.related-article-card .article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.related-article-card:hover .article-image img {
  transform: scale(1.08);
}

.related-article-card .article-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-article-card:hover .article-overlay {
  opacity: 1;
}

.related-article-card .article-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-article-card .article-category {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}

.related-article-card .article-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  margin: 0 0 auto 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-card:hover .article-title {
  color: #7c3aed;
}

.related-article-card .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.related-article-card .article-date,
.related-article-card .article-read-time {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.related-article-card .meta-dot {
  color: #d1d5db;
  font-size: 8px;
}

/* Related Articles Responsive */
@media (max-width: 991.98px) {
  .related-articles-section {
    padding: 50px 0 60px;
  }
  
  .related-articles-header {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  
  .slider-navigation {
    align-self: flex-start;
  }
  
  .related-articles-header .section-title {
    font-size: 2rem;
  }
  
  .related-articles-slider {
    padding: 0 20px;
  }
  
  .related-article-card .article-image {
    height: 180px;
  }
}

@media (max-width: 767.98px) {
  .related-articles-section {
    padding: 40px 0 50px;
  }
  
  .related-articles-header {
    margin-bottom: 24px;
    padding: 0 15px;
  }
  
  .related-articles-header .section-title {
    font-size: 1.75rem;
  }
  
  .related-articles-header .section-subtitle {
    font-size: 0.95rem;
    margin-top: 12px;
  }
  
  .slider-nav-btn {
    width: 42px;
    height: 42px;
  }
  
  .slider-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .related-articles-slider {
    padding: 0 15px;
  }
  
  .related-article-card .article-image {
    height: 200px;
  }
  
  .related-article-card .article-content {
    padding: 20px;
  }
  
  .related-article-card .article-title {
    font-size: 1.1rem;
  }
}

/* Hide subscribe widget */
.subscribe-widget {
  display: none !important;
}

/* Hide related blogs in sidebar (moved to bottom) */
.related-blogs-widget {
  display: none !important;
}
