.cm-main-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 40px !important;
  align-items: start !important;
}

.cm-main-content {
  min-width: 0 !important;
}

.cm-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
  width: 300px !important;
}

.cm-sidebar-box {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.cm-sidebar-post {
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cm-sidebar-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cm-sidebar-post a {
  display: block;
  color: #f4f8ff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.cm-sidebar-post span {
  color: #8ea4c4;
  font-size: 13px;
}

.cm-custom-sidebar {
  width: 340px !important;
  flex: 0 0 340px !important;
  max-width: 340px !important;
}

.cm-custom-sidebar.sticky_portion {
  position: sticky !important;
  top: 30px !important;
  align-self: flex-start !important;
}

.cm-custom-sidebar .widget {
  margin-bottom: 30px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.cm-custom-sidebar .widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f7931a;
}

.cm-custom-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cm-custom-sidebar li {
  margin-bottom: 10px;
}

.cm-custom-sidebar a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.cm-custom-sidebar a:hover {
  color: #f7931a;
}

@media (max-width: 992px) {
  .cm-main-wrapper {
    grid-template-columns: 1fr !important;
  }

  .cm-sidebar,
  .cm-custom-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: auto !important;
  }

  .cm-custom-sidebar.sticky_portion {
    position: relative !important;
    top: 0 !important;
  }
}