/* GENERAL LAYOUT */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Sidebar styles */
.sidebar {
  background-color: var(--bg-card);
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.sidebar h6.fw-bold {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.sidebar h6.fw-bold .text-primary {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 1.15rem;
}

.sidebar p.text-muted.small {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Sidebar buttons */
.sidebar .btn-outline-primary.btn-sm {
  width: 100%;
  padding: 0.625rem 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  border-radius: 0.625rem;
  font-size: 0.95rem;
}

.sidebar .btn-link.btn-sm {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Navigation links */
.nav.flex-column .nav-link {
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  transition: all 0.2s ease-in-out;
}

.nav.flex-column .nav-link:hover {
  background-color: var(--primary-light);
  box-shadow: inset 4px 0 0 var(--primary);
  color: #4338ca;
}

.nav.flex-column .nav-link.active {
  background-color: #e0e7ff;
  color: #1e3a8a;
  box-shadow: inset 4px 0 0 var(--primary);
}

.nav-tabs .nav-link {
  font-weight: 500;
  color: #333;
}
.nav-tabs .nav-link.active {
  border-color: transparent;
  border-bottom: 2px solid #0d6efd;
  background-color: #f8f9fa;
}
.tab-pane .card {
  background-color: var(--bg-card, #fff);
  border: 1px solid #dee2e6;
  border-radius: 16px;
}


/* Cards */
.card {
  padding: 1.25rem;
  border-radius: 0.875rem;
  background-color: var(--bg-card);
  border: none;
}

/* Blog cards container */
.blog-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Each post card */
.post-card {
  background-color: var(--bg-card);
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

/* Tags/badges inside post */
.tags .badge {
  margin-right: 0.4rem;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

/* Footer text (reactions, comments, read time) */
.post-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

/* Avatar image */
.post-header img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}


/* Buttons */
.btn-primary {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

/* Welcome Card */
.welcome-card .card h4.fw-bold {
  font-size: 1.6rem;
}

.welcome-card .card p.text-secondary {
  font-size: 1rem;
  margin-bottom: 1.125rem;
}

/* Badges */
.badge {
  padding: 0.4em 0.75em;
  font-size: 0.75rem;
  border-radius: 0.5rem;
}

.challenge-card {
  background-color: var(--bg-card);
  padding: 1.2rem;
  border-radius: 0.875rem;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease-in-out;
}

.challenge-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.challenge-card h6 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.challenge-card small.text-muted {
  font-size: 0.8rem;
}

.challenge-card .badge {
  margin-top: 0.5rem;
  font-size: 0.7rem;
}

/* Right Sidebar */
.devops-card .card-title {
  font-size: 1.2rem;
}

/* #discuss section */
.card .fw-bold.text-dark {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p.text-muted.small {
  font-size: 0.85rem;
}

.d-flex.justify-content-between.align-items-center.py-2.border-top {
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.discuss-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.discuss-item:last-child {
  border-bottom: none;
}

.discuss-item .fw-semibold {
  font-size: 1rem;
  line-height: 1.4;
}

.discuss-item .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

.resource-item {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}


/* Custom card */
.custom-card {
  min-height: 240px;
  border-radius: 0.875rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  aside.sidebar {
    display: none !important;
  }

  main.col-lg-7.col-md-6 {
    padding: 1rem;
  }

  .challenge-card {
    margin-bottom: 1rem;
  }
}
