/* ==========================================================================
   TutorGuide in India — Modern Modular Sidebar Component Styles
   ========================================================================== */

#right-sidebar {
  flex: 0 0 340px;
  max-width: 340px;
  width: 340px;
  float: none !important;
  display: block;
}

.inside-right-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tg-sb-widget {
  background: #ffffff;
  border: 1px solid var(--tg-border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 10px rgba(11, 26, 48, 0.04);
}

.tg-sb-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--tg-navy-dark, #0b1a30);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tg-amber-gold, #e59819);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 1. Search Widget */
.tg-sb-search-form {
  display: flex;
  gap: 6px;
}

.tg-sb-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.tg-sb-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.tg-sb-search-field {
  width: 100% !important;
  padding: 9px 10px 9px 32px !important;
  font-size: 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.tg-sb-search-field:focus {
  outline: none !important;
  border-color: var(--tg-navy-primary, #132e54) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(19, 46, 84, 0.12) !important;
}

.tg-sb-search-submit {
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: var(--tg-navy-primary, #132e54) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background-color 0.18s ease !important;
}

.tg-sb-search-submit:hover {
  background: var(--tg-amber-gold, #e59819) !important;
}

/* 2. Free Student Counseling Card */
.tg-sb-counseling-card {
  background: linear-gradient(135deg, #0b1a30 0%, #132e54 100%) !important;
  border: 1px solid rgba(229, 152, 25, 0.3) !important;
  color: #ffffff !important;
  padding: 1.5rem 1.25rem !important;
}

.tg-sb-counseling-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tg-amber-gold, #e59819);
  display: block;
  margin-bottom: 0.4rem;
}

.tg-sb-counseling-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.tg-sb-counseling-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 1rem;
}

.tg-sb-counseling-btn {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #e59819 0%, #c9820f 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(229, 152, 25, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tg-sb-counseling-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 152, 25, 0.45);
  color: #ffffff !important;
}

/* 3. Quick Access Hubs */
.tg-sb-hubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tg-sb-hub-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.tg-sb-hub-pill:hover {
  background: var(--tg-navy-primary, #132e54);
  color: #ffffff !important;
  border-color: var(--tg-navy-primary, #132e54);
  transform: translateY(-1px);
}

.tg-sb-hub-icon {
  font-size: 14px;
}

/* 4. Related & Featured Articles & 5. Recent Audits */
.tg-sb-article-list,
.tg-sb-recent-list {
  display: flex;
  flex-direction: column;
}

.tg-sb-article-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-sb-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tg-sb-article-item:first-child {
  padding-top: 0;
}

.tg-sb-article-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tg-navy-primary, #132e54);
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
  letter-spacing: 0.04em;
}

.tg-sb-article-heading {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--tg-navy-dark, #0b1a30);
}

.tg-sb-article-heading a {
  color: var(--tg-navy-dark, #0b1a30) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.tg-sb-article-heading a:hover {
  color: var(--tg-amber-gold, #e59819) !important;
}

.tg-sb-article-meta {
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.tg-sb-meta-check {
  color: var(--tg-emerald, #059669);
  font-weight: 600;
}

/* Recent list with numbered badge */
.tg-sb-recent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.tg-sb-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tg-sb-recent-item:first-child {
  padding-top: 0;
}

.tg-sb-rank-badge {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--tg-navy-primary, #132e54);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-sb-recent-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tg-sb-recent-date {
  font-size: 11.5px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

/* 6. Editorial Integrity Trust Card */
.tg-sb-trust-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 1.15rem 1.1rem;
}

.tg-sb-trust-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tg-emerald, #059669);
  margin-bottom: 0.4rem;
}

.tg-sb-trust-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.6rem;
}

.tg-sb-trust-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--tg-navy-dark, #0b1a30) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tg-sb-trust-link:hover {
  color: var(--tg-amber-gold, #e59819) !important;
  text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 991px) {
  #right-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .inside-right-sidebar {
    position: static !important;
  }

  .tg-sb-hubs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .tg-sb-hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
